:root {
  --paper: #f4f1e9;
  --paper-light: #fbf8f1;
  --ink: #242120;
  --ink-soft: #615a58;
  --green: #55665f;
  --plum: #6d4e59;
  --violet: #805b87;
  --yellow: #f2d958;
  --line: rgba(36, 33, 32, 0.2);
  --line-strong: rgba(36, 33, 32, 0.38);
  --halu: #b64b48;
  --naytto: #9e4f82;
  --tarve: #2f858a;
  --toimeentulo: #4d62a7;
  --ok: #426b51;
  --warn: #876628;
  --stop: #8f403d;
  --danger: #a3211d;
  font-family: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: transparent;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page {
  width: min(100%, 920px);
  height: 920px;
  margin: 0 auto;
}

.prototype {
  --floating-ink: #242120;
  --floating-shadow:
    0 2px 2px rgba(255, 255, 255, 0.98),
    0 0 10px rgba(255, 255, 255, 0.90);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 920px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(36, 33, 32, 0.14);
  isolation: isolate;
}

/* Vaalea tausta */
.prototype[data-bg-tone="light"] {
  --floating-ink: #242120;
  --floating-shadow:
    0 2px 2px rgba(255, 255, 255, 0.98),
    0 0 10px rgba(255, 255, 255, 0.90);
}

/* Tumma tausta */
.prototype[data-bg-tone="dark"] {
  --floating-ink: #f4f1e9;
  --floating-shadow:
    0 2px 3px rgba(0, 0, 0, 0.98),
    0 0 10px rgba(0, 0, 0, 0.88);
}

.prototype.has-background {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.topbar {
  flex: 0 0 auto;
  padding: clamp(1.15rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 233, 0.80);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.eyebrow,
.view-id,
.condition-label,
.chapter-state {
  margin: 0;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand-title {
  margin: 0.3rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.08;
  text-wrap: balance;
}

.version {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.progress-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: center;
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.breadcrumb {
  display: inline;
  min-width: 0;
  line-height: 1.45;
}

.breadcrumb-chapter,
.breadcrumb-parent {
  font-weight: 400;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 800;
}

.breadcrumb-separator {
  white-space: pre;
}

.progress-track {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: rgba(85, 102, 95, 0.16);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(111, 91, 12, 0.2);
  transition: width 180ms ease;
}

.chapter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.chapter-chip {
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.25;
}

.chapter-chip strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-chip.done {
  border-color: rgba(66, 107, 81, 0.42);
  background: rgba(66, 107, 81, 0.08);
}

.chapter-chip.active {
  border-color: rgba(109, 78, 89, 0.5);
  box-shadow: inset 0 0 0 1px rgba(109, 78, 89, 0.16);
}

.experiment-progress {
  margin: 1rem 0 1.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(36, 33, 32, 0.28);
  border-radius: 5px;
  background: rgba(244, 241, 233, 0.80);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--ink);
  text-shadow: none;
}

.experiment-progress-heading {
  display: flex;
  gap: 0.45rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.experiment-progress-heading span {
  color: var(--plum);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.experiment-progress-heading strong {
  font-size: 0.88rem;
  text-align: right;
}

.experiment-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.experiment-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  padding: 0.52rem;
  border: 1.5px dashed rgba(36, 33, 32, 0.48);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.48);
}

.experiment-step.done {
  border-style: solid;
  border-color: rgba(66, 107, 81, 0.52);
  background: rgba(177, 232, 84, 0.22);
}

.experiment-step.active {
  border-style: solid;
  border-color: var(--plum);
  box-shadow: inset 0 0 0 1px rgba(109, 78, 89, 0.18);
}

.experiment-step-marker {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(36, 33, 32, 0.10);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.experiment-step.done .experiment-step-marker {
  background: #B1E854;
}

.experiment-step.active .experiment-step-marker {
  background: var(--plum);
  color: #fff;
}

.experiment-step-copy {
  min-width: 0;
}

.experiment-step-copy strong,
.experiment-step-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.experiment-step-copy strong {
  font-size: 0.71rem;
  line-height: 1.18;
}

.experiment-step-copy small {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.64rem;
  line-height: 1.15;
}

.content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1rem, 2.5vw, 1.65rem) clamp(1.25rem, 4vw, 2.6rem) clamp(1.25rem, 4vw, 2.6rem);
  background: transparent;
  scrollbar-gutter: stable;
}

.floating-copy {
  width: fit-content;
  max-width: 100%;
  color: var(--floating-ink);
  text-shadow: var(--floating-shadow);
}

.floating-copy * {
  color: inherit;
  text-shadow: inherit;
}

.view .button {
  text-shadow: none;
}

.chapter-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-list .building-card {
  width: 100%;
}

.article-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 0 clamp(1.3rem, 3vw, 2rem);
  border-radius: 14px;
  object-fit: contain;
}

.view {
  animation: appear 170ms ease-out;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.65rem, 5vw, 2.45rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
}

h4 {
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
}

p,
li {
  max-width: 68ch;
  line-height: 1.58;
}

.lead {
  color: #3c3735;
  font-size: 1.08rem;
}

.muted,
.privacy,
.empty-state {
  color: var(--ink-soft);
}

.help {
  color: var(--ink);
}

.help,
.empty-state {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.privacy {
  max-width: none;
  margin: 1.8rem 0 0;
  font-size: 0.82rem;
}

.callout {
  margin: 1.2rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 5px solid var(--plum);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.callout p:last-child,
.summary-card p:last-child {
  margin-bottom: 0;
}

.callout.ok {
  border-color: var(--ok);
}

.callout.warn {
  border-color: var(--warn);
}

.callout.stop {
  border-color: var(--stop);
}

.field {
  margin: 1.25rem 0;
}

.field-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  width: 100%;
  margin-bottom: 0.42rem;
}

.field-heading > label {
  min-width: 0;
  margin-bottom: 0;
}

label,
legend {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--ink);
  font-weight: 730;
}

fieldset {
  min-width: 0;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.prototype input:not([type]),
.prototype input[type="text"],
.prototype input[type="email"],
.prototype input[type="date"],
.prototype input[type="number"],
.prototype textarea,
.prototype select {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(36, 33, 32, 0.28);
  border-radius: 9px;
  background: rgba(244, 241, 233, 0.80);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--ink);
  line-height: 1.45;
  text-shadow: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 217, 88, 0.9);
  outline-offset: 3px;
}

.options {
  display: grid;
  gap: 0.65rem;
}

.option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: start;
  margin: 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-weight: 500;
  cursor: pointer;
}

.option:hover {
  border-color: rgba(109, 78, 89, 0.5);
}

.option:has(> input[type="radio"]:checked) {
  border-color: var(--ok);
  background: #B1E854;
  box-shadow: inset 0 0 0 1px var(--ok);
  color: var(--ink);
  text-shadow: none;
}

.option:has(> input[type="radio"]:checked) * {
  color: var(--ink);
  text-shadow: none;
}

.option:has(> input[type="checkbox"]:checked) {
  border-color: var(--plum);
  box-shadow: inset 0 0 0 1px rgba(109, 78, 89, 0.28);
}

.option:has(> input:focus-visible) {
  outline: 3px solid rgba(242, 217, 88, 0.95);
  outline-offset: 3px;
}

.option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.18rem 0 0;
  accent-color: var(--plum);
}

.option input[type="radio"] {
  display: grid;
  flex: 0 0 auto;
  place-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--ok);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.option input[type="radio"]::before {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--ok);
  content: "";
  transform: scale(0);
}

.option input[type="radio"]:checked::before {
  transform: scale(1);
}

.option strong,
.option small {
  display: block;
}

.option small {
  margin-top: 0.18rem;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.4;
}

.two-col,
.summary-grid,
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.summary-card,
.prior-answer,
.building-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.summary-card h4,
.prior-answer h4,
.building-card h4 {
  margin-bottom: 0.35rem;
}

.summary-card p,
.prior-answer p,
.building-card p {
  overflow-wrap: anywhere;
}

.prior-answer {
  margin: 0.8rem 0 1.15rem;
  border-style: dashed;
}

.condition-halu {
  border-top: 7px solid var(--halu);
  background: linear-gradient(rgba(182, 75, 72, 0.08), rgba(182, 75, 72, 0.08)), rgba(255, 255, 255, 0.60);
}

.condition-naytto {
  border-top: 7px solid var(--naytto);
  background: linear-gradient(rgba(158, 79, 130, 0.08), rgba(158, 79, 130, 0.08)), rgba(255, 255, 255, 0.60);
}

.condition-tarve {
  border-top: 7px solid var(--tarve);
  background: linear-gradient(rgba(47, 133, 138, 0.08), rgba(47, 133, 138, 0.08)), rgba(255, 255, 255, 0.60);
}

.condition-toimeentulo {
  border-top: 7px solid var(--toimeentulo);
  background: linear-gradient(rgba(77, 98, 167, 0.08), rgba(77, 98, 167, 0.08)), rgba(255, 255, 255, 0.60);
}

.score {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.star-result {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(circle, rgba(242, 217, 88, var(--glow, .18)), transparent 60%);
  text-align: center;
}

.star-result .star {
  color: #b59821;
  font-size: clamp(4rem, 15vw, 7rem);
  line-height: 0.85;
  text-shadow: 0 0 calc(8px + 34px * var(--glow, .18)) rgba(242, 217, 88, 0.72);
}

.star-result .question {
  display: inline-block;
  margin-left: -0.25em;
  color: var(--plum);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 700;
}

.star-result strong {
  display: block;
  margin-top: 0.7rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.7rem;
}

.navigation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.7rem;
}

.navigation-back,
.navigation-forward {
  display: flex;
  min-width: 0;
}

.navigation-back {
  justify-content: flex-start;
}

.navigation-forward {
  justify-content: flex-end;
}

.navigation-alternatives + .navigation-actions,
.save-actions + .navigation-actions,
.choice-actions + .navigation-actions {
  margin-top: 0.75rem;
}

.button {
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-weight: 730;
  line-height: 1.25;
}

.button:hover {
  filter: brightness(0.94);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--ink);
}

.button.tertiary {
  border-color: transparent;
  background: transparent;
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nav-icon {
  display: inline-block;
  text-decoration: none;
}

.button-icon {
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.22em;
}

.final-controls .actions {
  margin-top: 0.7rem;
}

.final-controls .final-edit-actions {
  margin-top: 1.7rem;
}

.final-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-export-actions .button {
  width: 100%;
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.role-change-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.role-change-actions .button {
  width: 100%;
}

.reset-zone {
  margin-top: 0.7rem;
}

.button.reset-button {
  border: 2px solid var(--danger);
  background: rgba(255, 239, 237, 0.92);
  color: #861b18;
}

.button.reset-button:hover {
  background: #fbd9d6;
  filter: none;
}

.button.reset-button:focus-visible,
.button.danger:focus-visible {
  outline: 3px solid rgba(163, 33, 29, 0.32);
  outline-offset: 3px;
}

/* v1.8 · yhteinen kortti- ja huipennuskieli */
.condition-halu { --condition: #9d4a41; --condition-light: #d56558; --condition-soft: rgba(157, 74, 65, 0.09); }
.condition-naytto { --condition: #884a77; --condition-light: #d85eb7; --condition-soft: rgba(136, 74, 119, 0.09); }
.condition-toimeentulo { --condition: #4d62a7; --condition-light: #748fe0; --condition-soft: rgba(77, 98, 167, 0.09); }
.condition-tarve { --condition: #42777e; --condition-light: #3399a6; --condition-soft: rgba(66, 119, 126, 0.09); }

/* Näkymä 03 · yksi lähtökohta, neljän ehdon ryhmä ja yksi rajaus */
.view03-plan {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.view03-plan-card,
.view03-condition-card {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.view03-plan-card {
  border: 1.5px solid rgba(36, 33, 32, 0.72);
}

.view03-plan-card h3,
.view03-condition-card h3 {
  margin: 0.12rem 0 0.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1;
}

.view03-plan-card h3 {
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
}

.view03-plan-card > p:last-child,
.view03-condition-copy > p:last-child {
  margin: 0;
}

.view03-group-label,
.view03-card-label {
  margin: 0;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.view03-group-label {
  margin: 0.2rem 0 -0.35rem;
}

.view03-condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.view03-condition-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--condition);
  background: linear-gradient(var(--condition-soft), var(--condition-soft)), rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-shadow: none;
}

.view03-condition-heading,
.view03-condition-copy {
  position: relative;
  z-index: 1;
}

.view03-condition-heading {
  min-height: 68px;
}

.view03-condition-heading .condition-question {
  margin-top: 0;
}

.view03-condition-heading h3 {
  font-size: clamp(1.75rem, 4.5vw, 2.1rem);
}

.view03-condition-copy {
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--condition) 24%, white);
}

.view03-condition-copy .view03-card-label {
  margin-bottom: 0.35rem;
  color: var(--condition);
}

.building-card {
  border: 1.5px dashed rgba(36, 33, 32, 0.72);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.66);
}

.neutral-grid,
.static-grid,
.clickable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.neutral-grid {
  margin: 0.6rem 0 1.7rem;
}

.neutral-card {
  min-width: 0;
  padding: 1rem;
  border: 1.5px solid rgba(36, 33, 32, 0.72);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.neutral-label {
  margin: 0 0 0.4rem;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.neutral-card h3,
.neutral-card p {
  margin-bottom: 0.55rem;
}

.neutral-card button,
.card-actions button {
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.condition-card {
  min-width: 0;
  color: var(--ink);
  text-shadow: none;
}

.static-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border: 2px solid var(--condition);
  border-radius: 5px;
  background: linear-gradient(var(--condition-soft), var(--condition-soft)), rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.condition-orb {
  position: absolute;
  top: -24px;
  left: -18px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--condition-light);
  opacity: 0.68;
}

.static-card-header {
  position: relative;
  min-height: 92px;
}

.static-card-header.without-state,
.compact-static-card .static-card-header.without-state {
  min-height: 66px;
}

.static-card-header.without-state .condition-question {
  margin-top: 0;
}

.condition-state {
  margin: 0;
  color: color-mix(in srgb, var(--condition) 72%, #1f1d1c);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.condition-question {
  display: block;
  margin-top: 0.22rem;
  color: color-mix(in srgb, var(--condition) 72%, #1f1d1c);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.static-card-header h3 {
  margin: 0.12rem 0 0;
  font-size: clamp(1.75rem, 4.5vw, 2.1rem);
  line-height: 1;
}

.card-sections {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.card-sections section {
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--condition) 24%, white);
}

.card-sections h4 {
  margin: 0 0 0.35rem;
  color: var(--condition);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.card-sections p {
  margin: 0.28rem 0 0;
  font-size: 0.85rem;
  line-height: 1.48;
}

.compact-condition-grid {
  margin: 0.9rem 0 1.3rem;
}

.compact-static-card .static-card-header {
  min-height: 84px;
}

.open-condition-grid {
  margin: 1rem 0 0;
}

.open-condition-card {
  min-height: 220px;
  border-style: dashed;
}

.summary-card {
  border: 1.5px solid rgba(36, 33, 32, 0.72);
  border-radius: 5px;
}

.summary-groups {
  display: grid;
  gap: 1.35rem;
}

.experiment-summary-groups {
  gap: 1.65rem;
}

.experiment-summary-groups .single-card-group .summary-card,
.experiment-summary-groups .interpretation-group .summary-card:last-child {
  grid-column: 1 / -1;
}

.experiment-summary-groups .experiment-summary-part .summary-divider h3 {
  font-size: 0.76rem;
}

.summary-divider {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
  color: var(--floating-ink);
  text-shadow: var(--floating-shadow);
}

.summary-divider h3 {
  flex: 0 0 auto;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-shadow: inherit;
  text-transform: uppercase;
}

.summary-divider span {
  flex: 1 1 auto;
  height: 1.5px;
  background: var(--floating-ink);
  box-shadow: var(--floating-shadow);
  opacity: 0.68;
}

.summary-card-wide {
  grid-column: 1 / -1;
}

.summary-grid .completed-checks {
  margin-top: 0;
}

.open-condition-copy {
  position: relative;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--condition) 24%, white);
  font-size: 0.94rem;
  line-height: 1.52;
}

.static-score-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-top: 0.75rem;
  padding: 0.35rem 0;
}

.static-score-row > span:first-child {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.static-score-row small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 780;
  text-transform: uppercase;
}

.static-score-row strong,
.card-score {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
}

.limit-tag,
.support-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 180px;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.limit-tag {
  background: #1f1d1c;
  color: #fff;
}

.support-tag {
  border: 1px solid color-mix(in srgb, var(--condition) 45%, white);
  background: rgba(255, 255, 255, 0.7);
}

.assumption-note {
  margin: 0.15rem 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--condition) 24%, white);
}

.card-actions button:hover,
.card-actions button:focus-visible,
.neutral-card button:hover,
.neutral-card button:focus-visible {
  color: #1f1d1c;
  text-decoration-thickness: 2px;
}

.clickable-grid {
  margin-top: 0.8rem;
}

.clickable-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: 190px;
  padding: 1.05rem;
  border: 2px solid var(--condition);
  border-radius: 10px;
  background: linear-gradient(var(--condition-soft), var(--condition-soft)), rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 11px rgba(33, 31, 30, 0.11);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(33, 31, 30, 0.15);
}

.clickable-card:focus-visible {
  outline: 3px solid #1f1d1c;
  outline-offset: 3px;
}

.click-card-heading,
.click-card-result,
.edit-prompt {
  position: relative;
  z-index: 1;
}

.click-card-heading {
  display: block;
  min-height: 76px;
}

.condition-title {
  display: block;
  margin-top: 0.12rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.click-card-result {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 0.3rem 0 0.65rem;
}

.edit-prompt {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.edit-prompt svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(300px, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  min-height: 310px;
  margin: 1rem 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.star-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 250px;
  overflow: hidden;
}

.light-field {
  position: absolute;
  z-index: 0;
  width: 238px;
  height: 238px;
  overflow: visible;
}

.condition-light {
  opacity: 0.82;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.light-left { animation: arrive-from-left 1050ms cubic-bezier(.2,.72,.22,1) both; }
.light-right { animation: arrive-from-right 1050ms cubic-bezier(.2,.72,.22,1) both; }
.light-top { animation: arrive-from-top 1050ms cubic-bezier(.2,.72,.22,1) both; }
.light-bottom { animation: arrive-from-bottom 1050ms cubic-bezier(.2,.72,.22,1) both; }

.white-star-aura {
  position: absolute;
  z-index: 1;
  width: 208px;
  height: 208px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.98) 0 12%, rgba(255,255,255,.76) 32%, rgba(255,255,255,.34) 54%, rgba(255,255,255,.14) 61%, rgba(255,255,255,0) 66%);
  opacity: var(--glow-final-opacity);
  transform: scale(var(--glow-final-index));
  transform-origin: center;
  will-change: transform, opacity;
  animation: reveal-white-aura 720ms 620ms cubic-bezier(.18,.78,.28,1) both;
}

.finished-star {
  position: relative;
  z-index: 2;
  width: 158px;
  height: 158px;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(255, 241, 165, 0.9));
  animation: reveal-finished-star 720ms 620ms cubic-bezier(.18,.78,.28,1) both;
}

.star-glow { fill: rgba(255, 241, 165, 0.34); }
.star-edge { fill: #fff1a5; }
.star-core,
.star-diagonal { fill: #fff; }

.star-question {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  color: #4d3740;
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  animation: reveal-question 620ms 790ms ease-out both;
}

@keyframes arrive-from-left {
  0% { opacity: .08; transform: translateX(-145px) scale(.58); }
  76% { opacity: .88; transform: translateX(7px) scale(1.03); }
  100% { opacity: .82; transform: translateX(0) scale(1); }
}

@keyframes arrive-from-right {
  0% { opacity: .08; transform: translateX(145px) scale(.58); }
  76% { opacity: .88; transform: translateX(-7px) scale(1.03); }
  100% { opacity: .82; transform: translateX(0) scale(1); }
}

@keyframes arrive-from-top {
  0% { opacity: .08; transform: translateY(-145px) scale(.58); }
  76% { opacity: .88; transform: translateY(7px) scale(1.03); }
  100% { opacity: .82; transform: translateY(0) scale(1); }
}

@keyframes arrive-from-bottom {
  0% { opacity: .08; transform: translateY(145px) scale(.58); }
  76% { opacity: .88; transform: translateY(-7px) scale(1.03); }
  100% { opacity: .82; transform: translateY(0) scale(1); }
}

@keyframes reveal-finished-star {
  0% { opacity: 0; transform: scale(.54); }
  68% { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes reveal-white-aura {
  0% { opacity: 0; transform: scale(0); }
  68% { opacity: 1; transform: scale(1.25); }
  100% { opacity: var(--glow-final-opacity); transform: scale(var(--glow-final-index)); }
}

@keyframes reveal-question {
  0% { opacity: 0; transform: scale(.72); }
  100% { opacity: 1; transform: scale(1); }
}

.result-copy > p {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: #1f1d1c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.result-copy h4 {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2.35vw, 1.55rem);
  font-weight: 650;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.result-copy h3 strong {
  color: var(--plum);
  white-space: nowrap;
}

.result-copy > span {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
}

.coach-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin: 1rem 0 1.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--plum);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.coach-note p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.coach-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--plum);
}

.coach-icon svg {
  width: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.2fr);
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 0.8rem;
}

.section-intro h3,
.section-intro p {
  margin: 0;
}

.section-intro p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.52;
}

.score-figure {
  --axis-width: 58px;
  --bar-gap: 26px;
  position: relative;
  margin-bottom: 1.65rem;
  padding: 1.75rem 1rem 1rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.chart-plot {
  position: relative;
  display: grid;
  grid-template-columns: var(--axis-width) minmax(0, 1fr);
  height: 234px;
}

.axis-labels {
  position: relative;
  height: 100%;
  font-size: 0.62rem;
  text-align: right;
}

.axis-labels span {
  position: absolute;
  right: 9px;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(50%);
}

.bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bar-gap);
  height: 100%;
}

.bar-column {
  position: relative;
  min-width: 0;
  border: 0;
  background: none;
  text-align: center;
}

.bar-track {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 0;
  border-radius: 5px;
  background: color-mix(in srgb, var(--condition) 6%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--condition) 25%, white);
}

.bar-track i {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  background: white;
}

.bar-track i:nth-of-type(1) { bottom: 20%; }
.bar-track i:nth-of-type(2) { bottom: 40%; }
.bar-track i:nth-of-type(3) { bottom: 60%; }
.bar-track i:nth-of-type(4) { bottom: 80%; }

.bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--condition) 0%, var(--condition-light) 100%);
  clip-path: inset(calc(100% - var(--bar-score)) 0 0 0);
}

.shared-limit-marker {
  position: absolute;
  z-index: 4;
  right: -5px;
  left: 0;
  height: 0;
  pointer-events: none;
}

.shared-limit-marker::after {
  position: absolute;
  right: 0;
  left: 0;
  top: -1.5px;
  height: 3px;
  background: #1f1d1c;
  content: "";
}

.shared-limit-marker span {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  background: #1f1d1c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-50%);
}

.limit-caret {
  width: 16px;
  height: 12px;
  margin-left: 1px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.bar-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bar-gap);
  margin: 0.5rem 0 0 var(--axis-width);
  text-align: center;
}

.bar-labels strong,
.bar-labels span {
  display: block;
}

.bar-labels strong {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.bar-labels span {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
}

.experiment-note {
  margin: 1.15rem 0;
  font-size: 0.92rem;
}

.summary-intro {
  margin-top: 1.5rem;
}

.shared-result {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.15rem;
  padding: 1rem;
  border-left: 5px solid var(--plum);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.shared-result span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.save-heading {
  margin-top: 1.8rem;
}

.final-result-stage {
  margin-top: 1.15rem;
}

.final-coach-note {
  margin-bottom: 1.8rem;
}

.completed-checks {
  margin-top: 0.85rem;
}

.final-next-step {
  margin-top: 1.4rem;
}

.final-next-step h3 {
  margin-bottom: 0.45rem;
}

.error {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 5px solid var(--stop);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #652d2b;
  font-weight: 650;
}

.character-counter {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: right;
}

.character-counter.over-limit {
  color: var(--danger);
  font-weight: 760;
}

.action-feedback {
  min-height: 1.5em;
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 4px solid #607987;
  border-radius: 4px;
  background: rgba(236, 242, 245, 0.94);
  color: #334d5a;
  font-size: 0.88rem;
}

.action-feedback.success {
  border-left-color: var(--ok);
  color: var(--ok);
}

.action-feedback.error {
  border-left-color: var(--danger);
  background: rgba(255, 239, 237, 0.95);
  color: #861b18;
}

.restore-notices {
  display: grid;
  gap: 0.75rem;
  margin: 1.15rem 0;
}

.info-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid #9aadb7;
  border-left: 5px solid #607987;
  border-radius: 5px;
  background: rgba(236, 242, 245, 0.96);
  color: #334d5a;
}

.info-notice p,
.limit-warning p {
  margin: 0;
}

.info-notice-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.limit-warning {
  padding: 0.95rem 1rem;
  border: 1px solid #cf8782;
  border-left: 5px solid var(--danger);
  border-radius: 5px;
  background: rgba(255, 239, 237, 0.96);
  color: #6e1715;
}

.limit-warning ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
  padding-left: 1.2rem;
}

.limit-warning li {
  padding-left: 0.15rem;
}

.limit-warning button {
  margin-left: 0.55rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.debug {
  margin-bottom: 0.75rem;
  padding: 0.7rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(244, 241, 233, 0.94);
  font-size: 0.82rem;
}

.debug label {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
}

.debug select {
  min-height: 36px;
  padding: 0.35rem 0.5rem;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(24, 21, 21, 0.58);
}

.modal {
  overflow: auto;
  width: min(100%, 620px);
  max-height: min(86vh, 720px);
  padding: clamp(1.25rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
  box-shadow: 0 24px 70px rgba(20, 18, 18, 0.36);
}

.example-content > p {
  margin: 0 0 1rem;
}

.example-lines {
  display: grid;
  gap: 0.35rem;
}

.example-lines > p {
  margin: 0;
}

.example-content .example-field {
  margin-top: 1.15rem;
}

.example-content .example-field + .example-field {
  margin-top: 0.8rem;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .version {
    display: none;
  }

  .page {
    width: min(100% - 0.8rem, 920px);
    margin: 0.4rem auto;
  }

  .prototype {
    border-radius: 15px;
  }

  .chapter-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiment-progress-heading {
    display: block;
  }

  .experiment-progress-heading strong {
    display: block;
    margin-top: 0.28rem;
    text-align: left;
  }

  .experiment-steps {
    gap: 0.3rem;
  }

  .experiment-step {
    display: grid;
    place-items: center;
    padding: 0.45rem 0.2rem;
  }

  .experiment-step-copy {
    display: none;
  }

  .experiment-progress.overview .experiment-steps {
    grid-template-columns: 1fr;
  }

  .experiment-progress.overview .experiment-step {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    padding: 0.55rem;
  }

  .experiment-progress.overview .experiment-step-copy {
    display: block;
  }

  .field-heading {
    grid-template-columns: minmax(0, 3fr) minmax(7.5rem, 2fr);
  }

  .character-counter {
    overflow-wrap: anywhere;
  }

  .two-col,
  .summary-grid,
  .conditions-grid,
  .neutral-grid,
  .static-grid,
  .clickable-grid,
  .result-stage,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .view03-condition-grid {
    grid-template-columns: 1fr;
  }

  .result-stage {
    gap: 0.25rem;
    padding: 1rem;
  }

  .star-scene {
    min-height: 210px;
  }

  .coach-note {
    grid-template-columns: 1fr;
  }

  .coach-icon {
    width: 34px;
    height: 34px;
  }

  .score-figure {
    --axis-width: 43px;
    --bar-gap: 8px;
    margin-right: -0.45rem;
    margin-left: -0.45rem;
    padding: 1.6rem 0.5rem 1rem 0.35rem;
  }

  .chart-plot {
    height: 205px;
  }

  .axis-labels span {
    right: 6px;
    font-size: 0.56rem;
  }

  .shared-limit-marker span {
    min-height: 25px;
    padding: 0.25rem 0.4rem;
    font-size: 0.52rem;
    letter-spacing: 0;
  }

  .bar-labels strong {
    font-size: 1.15rem;
  }

  .bar-labels span {
    font-size: 0.58rem;
  }

  .static-card {
    padding: 1rem;
  }

  .progress-meta {
    grid-template-columns: 1fr;
  }

  .progress-meta > :nth-child(2) {
    text-align: left;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .navigation-actions {
    grid-template-columns: 1fr;
  }

  .navigation-back,
  .navigation-forward {
    display: grid;
  }

  .navigation-back:empty {
    display: none;
  }

  .navigation-actions .button {
    width: 100%;
  }

  .final-export-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Näkymän kaksitilainen tekstiteema voittaa tekstityyppien omat värit. */
.prototype[data-bg-tone] .content .floating-copy,
.prototype[data-bg-tone] .content .floating-copy * {
  color: var(--floating-ink);
  text-shadow: var(--floating-shadow);
}

/* Ylipitkän palautetun vastauksen varoitus säilyy erotettavana molemmissa tekstiteemoissa. */
.prototype[data-bg-tone] .content .field-heading.floating-copy .character-counter.over-limit {
  padding: 0.12rem 0.32rem;
  border-radius: 3px;
  background: rgba(255, 239, 237, 0.94);
  box-shadow: 0 0 0 1px rgba(134, 27, 24, 0.26);
  color: #861b18;
  text-shadow: none;
}

/* Esimerkkitoiminto kuuluu samaan kontrastiteemaan kuin kuvan päällä oleva teksti. */
.prototype[data-bg-tone] .view .button.example-button,
.prototype[data-bg-tone] .view .button.example-button * {
  color: var(--floating-ink);
  text-shadow: var(--floating-shadow);
}

/* Loppunäkymän kuvan päällä olevat tekstipainikkeet seuraavat taustan kontrastiteemaa. */
.prototype[data-bg-tone] .view .final-edit-actions .button.tertiary,
.prototype[data-bg-tone] .view .final-edit-actions .button.tertiary * {
  color: var(--floating-ink);
  text-shadow: var(--floating-shadow);
}

/* Ohjelmallinen otsikkokohdistus säilyy ruudunlukijalle ilman Safarin sinistä kehystä. */
#view-heading:focus,
#view-heading:focus-visible {
  outline: none;
}
