* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scrollbar-gutter: stable;
  background: var(--surface-color-canvas);
  color: var(--surface-color-ink);
  font-family: var(--surface-font-family);
  font-size: var(--foundation-font-size-body);
  line-height: var(--foundation-line-height-body);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(155deg, rgba(216, 239, 114, 0.22), transparent 38%),
    var(--surface-color-canvas);
}

[data-product-theme="sproutly"] {
  --color-canvas: var(--foundation-color-canvas);
  --color-surface: var(--foundation-color-surface);
  --color-surface-subtle: var(--foundation-color-surface-subtle);
  --color-field: var(--sproutly-color-field);
  --color-muted: var(--foundation-color-ink-muted);
  --color-line: var(--foundation-color-divider);
}

button,
input,
progress {
  font: inherit;
}

button {
  min-height: var(--surface-target-min);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: var(--foundation-focus-ring);
  outline-offset: var(--foundation-focus-ring-offset);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

::selection {
  background: var(--sproutly-color-attention);
  color: var(--sproutly-color-field);
}

* {
  scrollbar-color: var(--sproutly-color-leaf-deep) var(--foundation-color-surface-subtle);
  scrollbar-width: thin;
}

.svg-sprite,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: var(--foundation-radius-control);
  background: var(--foundation-color-surface);
  color: var(--foundation-color-ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--foundation-motion-fast) var(--foundation-motion-ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  --sproutly-page-gap: 24px;
  --sproutly-card-gap: 16px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 48px;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--foundation-space-4);
  min-height: 64px;
  margin-bottom: 16px;
  padding: 6px 8px 6px 10px;
  border-radius: 20px;
  background: #fffef5;
  box-shadow: 0 10px 28px rgba(25, 58, 45, 0.12);
  font-family: var(--foundation-font-family-interface);
}

.brand-button,
.mode-button,
.quiet-button,
.play-button,
.answer-button,
.parent-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  transition:
    transform var(--foundation-motion-fast) var(--foundation-motion-ease-out),
    background-color var(--foundation-motion-fast) var(--foundation-motion-ease-out),
    color var(--foundation-motion-fast) var(--foundation-motion-ease-out),
    box-shadow var(--foundation-motion-fast) var(--foundation-motion-ease-out);
}

.brand-button:hover,
.mode-button:hover,
.quiet-button:hover,
.play-button:hover,
.answer-button:hover,
.parent-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.brand-button {
  min-width: 0;
  min-height: 44px;
  justify-content: flex-start;
  padding: 3px 12px 3px 3px;
  border-radius: 16px;
  background: transparent;
  color: var(--sproutly-color-leaf-deep);
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--sproutly-color-growth);
  color: var(--sproutly-color-leaf-deep);
}

.brand-mark .icon { width: 25px; height: 25px; stroke-width: 2; }
.topbar-actions, .growth-signal { display: flex; align-items: center; }
.topbar-actions { gap: 10px; }
.growth-signal { min-height: 44px; gap: 6px; padding: 0 12px; border-radius: 13px; background: var(--sproutly-color-pause); color: var(--sproutly-color-leaf-deep); font-variant-numeric: tabular-nums; }
.growth-signal > .icon { width: 19px; height: 19px; }
.growth-signal strong { min-width: 1ch; font-size: 1.05rem; }
.growth-signal span { color: #315b51; font-size: .78rem; font-weight: 800; }

.mode-button,
.quiet-button {
  padding: 0 18px;
  border-radius: var(--surface-radius-control);
  background: var(--foundation-color-surface);
  color: var(--foundation-color-ink);
  box-shadow: 0 8px 24px rgba(23, 54, 45, 0.1);
  font-weight: 800;
}

.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: stretch;
}

.scene-field {
  position: relative;
  min-height: min(650px, calc(100vh - 130px));
  overflow: hidden;
  border-radius: var(--foundation-radius-stage);
  background:
    linear-gradient(180deg, rgba(32, 151, 103, 0.18), transparent 48%),
    var(--sproutly-color-field);
  color: #f4f9f4;
  box-shadow: var(--foundation-elevation-float);
  isolation: isolate;
}

.scene-field::after {
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 72%;
  height: 58%;
  border-radius: 50% 45% 0 0;
  background: var(--sproutly-color-leaf-deep);
  content: "";
  transform: rotate(-7deg);
  z-index: -1;
}

.sample-label {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f4f9f4;
  color: var(--sproutly-color-field);
  font-family: var(--foundation-font-family-interface);
  font-size: 0.82rem;
  font-weight: 800;
}

.sample-label::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sproutly-color-attention);
  content: "";
  box-shadow: 0 0 0 2px var(--sproutly-color-field);
}

.scene-copy {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 6vw, 72px);
  top: 24%;
}

.scene-word {
  margin: 0;
  color: var(--sproutly-color-growth);
  font-size: clamp(4.6rem, 13vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.84;
  text-transform: uppercase;
  text-wrap: balance;
}

.scene-copy p {
  max-width: 32ch;
  margin: 24px 0 0;
  color: #cfe5d9;
  font-family: var(--foundation-font-family-interface);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.sun-disc {
  position: absolute;
  top: 18%;
  right: 11%;
  width: clamp(72px, 12vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sproutly-color-attention);
  box-shadow: 0 18px 50px rgba(255, 212, 95, 0.24);
}

.jump-arc {
  position: absolute;
  right: 10%;
  bottom: 25%;
  width: 48%;
  height: 28%;
  border-top: 4px solid rgba(216, 239, 114, 0.56);
  border-radius: 50% 50% 0 0;
  transform: rotate(-8deg);
}

.motion-marker {
  position: absolute;
  z-index: 2;
  right: 43%;
  bottom: 41%;
  display: grid;
  width: 68px;
  height: 52px;
  place-items: center;
  border-radius: 60% 40% 60% 40%;
  background: var(--sproutly-color-growth);
  color: var(--sproutly-color-field);
  box-shadow: 0 12px 30px rgba(7, 29, 23, 0.28);
  transform: rotate(-18deg);
}

.scene-field.is-playing .motion-marker {
  animation: sample-jump 2.8s var(--foundation-motion-ease-out) infinite;
}

.scene-action-area {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(24px, 5vw, 52px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-action {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--surface-radius-control);
  background: var(--sproutly-color-growth);
  color: var(--sproutly-color-field);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(7, 29, 23, 0.28);
  transition:
    transform var(--foundation-motion-base) var(--foundation-motion-ease-out),
    box-shadow var(--foundation-motion-base) var(--foundation-motion-ease-out);
}

.primary-action:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px rgba(7, 29, 23, 0.34);
}

.action-note {
  max-width: 24ch;
  color: #cfe5d9;
  font-family: var(--foundation-font-family-interface);
  font-size: 0.9rem;
}

.quiet-field {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: var(--foundation-radius-panel);
  background: var(--sproutly-color-pause);
  color: var(--sproutly-color-field);
  box-shadow: var(--foundation-elevation-raised);
}

.quiet-field h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.quiet-field p {
  margin: 0;
  color: #315b51;
  font-family: var(--foundation-font-family-interface);
}

.quiet-stat {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #aacdd0;
}

.quiet-stat strong {
  display: block;
  font-size: 2.7rem;
  letter-spacing: -0.03em;
}

.watch-shell {
  display: grid;
  gap: 18px;
}

.watch-stage {
  position: relative;
  min-height: min(640px, calc(100vh - 230px));
  overflow: hidden;
  border-radius: var(--foundation-radius-stage);
  background: var(--sproutly-color-field);
  color: #f4f9f4;
  box-shadow: var(--foundation-elevation-float);
}

.watch-stage .scene-copy {
  top: 28%;
}

.watch-stage .scene-word {
  font-size: clamp(4rem, 11vw, 6rem);
}

.watch-stage .motion-marker {
  animation-play-state: paused;
}

.watch-stage.is-playing .motion-marker {
  animation: sample-jump 2.8s var(--foundation-motion-ease-out) infinite;
}

.watch-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--foundation-radius-panel);
  background: var(--foundation-color-surface);
  box-shadow: var(--foundation-elevation-raised);
}

.play-button {
  width: 58px;
  padding: 0;
  border-radius: 50%;
  background: var(--sproutly-color-leaf-deep);
  color: #fff;
}

.timeline-block {
  min-width: 0;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--foundation-color-ink-muted);
  font-family: var(--foundation-font-family-interface);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.timeline-labels strong {
  color: var(--foundation-color-ink);
}

.timeline {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--foundation-color-divider);
  accent-color: var(--sproutly-color-leaf);
}

.timeline::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--foundation-color-divider);
}

.timeline::-webkit-progress-value {
  border-radius: 999px;
  background: var(--sproutly-color-leaf);
}

.review-ready {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foundation-color-success);
  font-weight: 850;
}

.word-stage,
.review-stage {
  display: grid;
  min-height: calc(100vh - 128px);
  place-items: center;
  padding: 32px 0;
}

.moment-panel {
  width: min(720px, 100%);
  padding: clamp(28px, 7vw, 64px);
  border-radius: var(--foundation-radius-stage);
  background: var(--sproutly-color-pause);
  color: var(--sproutly-color-field);
  box-shadow: var(--foundation-elevation-float);
  text-align: center;
}

.step-track {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  padding: 0;
  list-style: none;
}

.step-track li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #496f68;
  font-family: var(--foundation-font-family-interface);
  font-size: 0.86rem;
  font-weight: 750;
}

.step-track li::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9abdc0;
  content: "";
}

.step-track li.current {
  color: var(--sproutly-color-field);
}

.step-track li.current::before {
  background: var(--sproutly-color-leaf-deep);
  box-shadow: 0 0 0 4px rgba(20, 87, 63, 0.14);
}

.step-track li.done::before {
  background: var(--sproutly-color-leaf);
}

.moment-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 28px;
  background: var(--sproutly-color-attention);
  color: var(--sproutly-color-field);
  transform: rotate(-3deg);
}

.moment-icon .icon {
  width: 38px;
  height: 38px;
}

.moment-panel h1 {
  margin: 0;
  font-size: clamp(3.5rem, 11vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.moment-panel > p {
  max-width: 42ch;
  margin: 20px auto 32px;
  color: #315b51;
  font-family: var(--foundation-font-family-interface);
}

.moment-panel .primary-action {
  min-width: min(310px, 100%);
}

.inline-message {
  display: flex;
  max-width: 52ch;
  align-items: flex-start;
  gap: 10px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff5dc;
  color: #654400;
  font-family: var(--foundation-font-family-interface);
  text-align: left;
}

.review-panel {
  width: min(900px, 100%);
}

.review-scene {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--foundation-radius-stage);
  background:
    linear-gradient(180deg, #bde6eb 0 58%, #1d7a55 58% 100%);
  color: var(--sproutly-color-field);
  box-shadow: var(--foundation-elevation-float);
}

.review-scene::before {
  position: absolute;
  left: 12%;
  bottom: 31%;
  width: 65%;
  height: 38%;
  border-top: 4px dashed var(--sproutly-color-leaf-deep);
  border-radius: 50% 50% 0 0;
  content: "";
  transform: rotate(-4deg);
}

.review-scene::after {
  position: absolute;
  right: 12%;
  bottom: 21%;
  width: 116px;
  height: 24px;
  border-radius: 12px;
  background: #754d2e;
  content: "";
  transform: rotate(3deg);
}

.review-scene h1 {
  position: relative;
  z-index: 2;
  max-width: 12ch;
  margin: 52px 0 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.review-scene p {
  position: relative;
  z-index: 2;
  max-width: 28ch;
  margin: 18px 0 0;
  font-family: var(--foundation-font-family-interface);
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.answer-button {
  min-height: 64px;
  padding: 0 22px;
  border-radius: var(--surface-radius-control);
  background: var(--foundation-color-surface);
  color: var(--foundation-color-ink);
  box-shadow: 0 10px 24px rgba(23, 54, 45, 0.12);
  font-size: 1.05rem;
  font-weight: 900;
}

.feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--foundation-radius-control);
  font-family: var(--foundation-font-family-interface);
  font-weight: 750;
}

.feedback.retry {
  background: #fff0ec;
  color: #7a241b;
  box-shadow: inset 0 0 0 2px var(--sproutly-color-retry);
}

.feedback.success {
  background: #e8f6ec;
  color: #0e5b3b;
  box-shadow: inset 0 0 0 2px var(--foundation-color-success);
}

.feedback + .primary-action {
  margin-top: 18px;
}

.parent-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  min-height: calc(100vh - 128px);
}

.parent-rail {
  align-self: start;
  padding: 22px;
  border-radius: var(--foundation-radius-panel);
  background: var(--sproutly-color-field);
  color: #fff;
  box-shadow: var(--foundation-elevation-raised);
}

.parent-rail h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.parent-rail p {
  margin: 0 0 28px;
  color: #cfe5d9;
  font-size: 0.9rem;
}

.parent-rail .mode-button {
  width: 100%;
  min-height: 44px;
  box-shadow: none;
}

.parent-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--foundation-radius-panel);
  background: var(--foundation-color-surface);
  box-shadow: var(--foundation-elevation-raised);
}

.parent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.parent-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.parent-heading p {
  max-width: 68ch;
  margin: 0;
  color: var(--foundation-color-ink-muted);
}

.summary-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--foundation-color-divider);
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--foundation-color-divider);
}

.summary-row dt {
  color: var(--foundation-color-ink-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.summary-row dd {
  margin: 0;
  color: var(--foundation-color-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-line.ok {
  color: var(--foundation-color-success);
}

.status-line.paused {
  color: var(--foundation-color-warning);
}

.parent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.parent-button,
.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--foundation-radius-control);
  font-weight: 800;
}

.parent-button {
  background: var(--foundation-color-action);
  color: #fff;
}

.parent-button.secondary {
  background: var(--foundation-color-surface-subtle);
  color: var(--foundation-color-ink);
  box-shadow: inset 0 0 0 1px var(--foundation-color-divider);
}

.danger-button {
  background: #fff0f0;
  color: var(--foundation-color-danger);
  box-shadow: inset 0 0 0 1px #e8bfc2;
}

.parent-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--foundation-radius-control);
  background: var(--foundation-color-surface-subtle);
  color: var(--foundation-color-ink-muted);
  font-size: 0.92rem;
}

.source-panel {
  margin-bottom: 32px;
  padding: 22px;
  border-radius: var(--foundation-radius-panel);
  background: var(--foundation-color-surface-subtle);
  box-shadow: inset 0 0 0 1px var(--foundation-color-divider);
}

.source-panel h3,
.source-panel p { margin: 0; }

.source-panel > p,
.source-heading p,
.source-preview p { margin-top: 8px; color: var(--foundation-color-ink-muted); }

.source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }

.source-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--foundation-color-success); font-weight: 800; white-space: nowrap; }

.source-error { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: var(--foundation-radius-control); background: #fff0ec; color: #7a241b; box-shadow: inset 0 0 0 2px var(--sproutly-color-retry); }

.source-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-top: 20px; }
.source-form label { display: grid; gap: 7px; color: var(--foundation-color-ink-muted); font-size: .9rem; font-weight: 750; }
.source-form input { min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--foundation-color-divider); border-radius: var(--foundation-radius-control); background: var(--foundation-color-surface); color: var(--foundation-color-ink); font: inherit; font-size: 1rem; }
.source-form .parent-button { grid-column: 1 / -1; justify-self: start; }

.source-list { display: grid; gap: 10px; margin-top: 18px; }
.source-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 10px 14px; border-radius: var(--foundation-radius-control); background: var(--foundation-color-surface); color: var(--foundation-color-ink); box-shadow: inset 0 0 0 1px var(--foundation-color-divider); text-align: start; }
.source-item span { min-width: 0; overflow-wrap: anywhere; }
.source-item strong { color: var(--foundation-color-action); white-space: nowrap; }

.source-preview { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 20px; }
.source-preview video { display: block; width: 100%; max-height: 240px; border-radius: var(--foundation-radius-control); background: var(--sproutly-color-field); }

.source-form input:focus-visible,
.source-item:focus-visible { outline: 3px solid var(--foundation-color-focus); outline-offset: 3px; }

.confirm-panel {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--foundation-radius-control);
  background: #fff5f4;
  box-shadow: inset 0 0 0 2px #e8bfc2;
}

.confirm-panel h3 {
  margin: 0 0 8px;
  color: var(--foundation-color-danger);
}

.confirm-panel p {
  margin: 0;
  color: var(--foundation-color-ink-muted);
}

.confirm-panel .parent-actions {
  margin-top: 16px;
}

.empty-panel,
.system-state {
  display: grid;
  min-height: 58vh;
  place-items: center;
  align-content: center;
  padding: 40px;
  border-radius: var(--foundation-radius-stage);
  background: var(--foundation-color-surface);
  color: var(--foundation-color-ink);
  box-shadow: var(--foundation-elevation-raised);
  text-align: center;
}

.system-state {
  width: min(720px, calc(100% - 40px));
  min-height: min(620px, calc(100vh - 40px));
  margin: 20px auto;
}

.system-state h1,
.empty-panel h3 {
  max-width: 16ch;
  margin: 18px 0 10px;
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.system-state p,
.empty-panel p {
  max-width: 52ch;
  margin: 0 0 24px;
  color: var(--foundation-color-ink-muted);
}

.state-orbit,
.state-symbol {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 26px;
  background: var(--sproutly-color-pause);
  color: var(--sproutly-color-leaf-deep);
}

.state-orbit::before {
  width: 22px;
  height: 22px;
  border: 4px solid var(--sproutly-color-leaf-deep);
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
  animation: orbit 0.8s linear infinite;
}

.state-symbol.error {
  background: #fff0ec;
  color: var(--foundation-color-danger);
}

.state-symbol .icon {
  width: 36px;
  height: 36px;
}

.notice {
  margin-top: 18px;
  color: var(--foundation-color-success);
  font-weight: 800;
}

@keyframes sample-jump {
  0%, 100% { transform: translate(-92%, 44%) rotate(-18deg); }
  46% { transform: translate(18%, -130%) rotate(18deg); }
  70% { transform: translate(74%, -20%) rotate(28deg); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 800px) {
  .app-shell {
    width: min(100% - 28px, 680px);
    padding-top: 10px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .scene-layout,
  .parent-shell {
    grid-template-columns: 1fr;
  }

  .scene-field {
    min-height: min(630px, calc(100vh - 112px));
  }

  .quiet-field {
    display: none;
  }

  .parent-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
  }

  .parent-rail h1,
  .parent-rail p {
    display: none;
  }

  .parent-rail .mode-button {
    width: auto;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .topbar { min-height: 60px; margin-bottom: 8px; border-radius: 18px; }
  .brand-button { font-size: 1.08rem; }
  .brand-mark { width: 38px; height: 38px; }
  .growth-signal { min-height: 40px; padding: 0 10px; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: #fffef5; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .topbar { box-shadow: inset 0 0 0 2px var(--foundation-color-ink), 0 10px 28px rgba(25, 58, 45, 0.12); }
}

@media (max-width: 520px) {
  .brand-button {
    min-width: 0;
    padding-left: 4px;
  }

  .brand-button > span:last-child {
    display: none;
  }

  .mode-button,
  .quiet-button {
    padding: 0 14px;
  }

  .scene-field,
  .watch-stage {
    border-radius: 18px;
  }

  .scene-copy {
    top: 26%;
  }

  .scene-word {
    font-size: clamp(4rem, 22vw, 5.25rem);
  }

  .sun-disc {
    top: 18%;
    right: -4%;
  }

  .jump-arc {
    right: -7%;
    bottom: 29%;
    width: 70%;
  }

  .scene-action-area {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

  .action-note {
    max-width: none;
    text-align: center;
  }

  .watch-stage {
    min-height: 510px;
  }

  .watch-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .review-ready {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .word-stage,
  .review-stage {
    min-height: calc(100vh - 106px);
    padding: 12px 0;
  }

  .moment-panel {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .step-track {
    gap: 6px;
    margin-bottom: 28px;
  }

  .step-track li {
    flex-direction: column;
    gap: 4px;
    font-size: 0.76rem;
  }

  .review-scene {
    min-height: 300px;
    padding: 24px;
    border-radius: 18px;
  }

  .answers {
    grid-template-columns: 1fr;
  }

  .parent-main {
    padding: 22px 18px;
  }

  .parent-heading {
    flex-direction: column;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }

  .parent-actions > * {
    width: 100%;
  }

  .source-heading,
  .source-preview { grid-template-columns: 1fr; flex-direction: column; }

  .source-form { grid-template-columns: 1fr; }

  .source-form .parent-button { width: 100%; }

  .system-state,
  .empty-panel {
    width: calc(100% - 20px);
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-field.is-playing .motion-marker,
  .watch-stage.is-playing .motion-marker,
  .state-orbit::before {
    animation: none;
  }

  .motion-marker {
    right: 20%;
    bottom: 36%;
    transform: rotate(10deg);
  }

  .brand-button,
  .mode-button,
  .quiet-button,
  .play-button,
  .answer-button,
  .parent-button,
  .danger-button,
  .primary-action,
  .skip-link {
    transition-duration: 0ms;
  }
}
.word-explorer { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; width: 100%; min-width: 0; max-width: 100%; margin-top: 1rem; font-size: .9rem; }
.word-explorer > span { min-width: 0; overflow-wrap: anywhere; }
.letter-button { min-width: 56px; min-height: 56px; border: 0; border-radius: 999px; background: var(--color-lime, #d8ef72); font-weight: 800; }
.letter-button:disabled { background: #e8eee9; opacity: .45; }
.occurrence-list { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: .4rem; align-items: center; min-width: 0; max-width: 100%; }
.occurrence-list .parent-button { min-height: 56px; max-width: 100%; white-space: normal; }
.subtitle-strip { max-width: 48rem; margin: 0 auto; padding: 1rem 1.25rem; overflow-wrap: anywhere; border-radius: 0 0 16px 16px; background: #fff; text-align: center; font-size: 1.15rem; }
.subtitle-strip mark { padding: 0 .16em; border-radius: .25em; background: var(--color-lime, #d8ef72); font-weight: 800; }
.local-video-player { display: block; width: min(100%, 720px); max-height: 300px; margin: 18px auto 0; border: 1px solid #5c897b; border-radius: 16px; background: #081b17; }
.parent-panel { max-width: 100%; min-width: 0; margin: 1rem 0; padding: 1rem; overflow-wrap: anywhere; border-radius: 16px; background: #fff; }
.parent-note { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .scene-action-area { min-width: 0; }
  .word-explorer { display: grid; grid-template-columns: auto repeat(2, 56px); width: 100%; }
  .word-explorer > span,
  .occurrence-list { grid-column: 1 / -1; width: 100%; }
  .local-video-player { max-height: 220px; }
}

.s11-nav { display: flex; gap: 3px; max-width: 600px; padding: 4px; border-radius: 15px; background: rgba(20, 87, 63, .07); }
.s11-nav button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 11px; color: var(--color-ink, #17362d); background: transparent; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background-color var(--foundation-motion-fast) var(--foundation-motion-ease-out), transform var(--foundation-motion-fast) var(--foundation-motion-ease-out); }
.s11-nav button:hover { background: rgba(255,255,255,.72); }
.s11-nav button .icon { width: 17px; height: 17px; }
.s11-nav button[aria-current="page"] { background: var(--color-lime, #d8ef72); }
.s11-owner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.s11-panel h2, .s11-panel h3, .s11-owner h2, .s11-owner h3 { margin: 0 0 6px; color: var(--color-field, #102a24); }
.s11-panel p, .s11-owner p { max-width: 65ch; margin: 0; color: var(--color-muted, #4d685f); line-height: 1.55; }
.s11-local { flex: 0 0 auto; min-height: 32px; padding: 7px 10px; border: 1px solid var(--color-line, #c8d7cf); border-radius: 999px; color: var(--color-muted, #4d685f); background: #f6f9f3; font-size: .82rem; font-weight: 700; }
.s11-panel, .s11-owner { padding: 20px; border: 0; border-radius: 16px; background: var(--foundation-color-surface-subtle); box-shadow: none; }
.s11-owner { flex-wrap: wrap; align-items: center; background: #f5f8f2; }
.s11-owner > div { flex: 1 1 360px; }
.s11-choice { min-height: 60px; display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; cursor: pointer; transition: background-color var(--foundation-motion-fast) var(--foundation-motion-ease-out), transform var(--foundation-motion-fast) var(--foundation-motion-ease-out); }
.s11-choice:hover { background: #f4f9f4; transform: translateY(-1px); }
.s11-choice:has(input:checked) { background: #eef7bd; }
.s11-choice input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-leaf, #14573f); }
.s11-choice small { display: block; margin-top: 3px; color: var(--color-muted, #4d685f); font-size: .88rem; line-height: 1.4; }
.s11-export-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.s11-export-heading .parent-actions { margin-top: 0; }
.s11-batch-list { display: grid; gap: 8px; margin-top: 16px; }
.s11-batch-list .s11-choice { margin: 0; }
.s11-rich-preview { max-height: min(50vh, 520px); margin-top: 16px; padding: 20px; overflow: auto; border: 0; border-radius: 14px; background: #fffbed; color: var(--color-field, #102a24); }
.s11-rich-preview h1 { margin: 0 0 8px; font-size: 1.45rem; }
.s11-rich-preview h2 { margin: 20px 0 5px; font-size: 1.1rem; }
.s11-rich-preview p, .s11-rich-preview ul { margin: 7px 0; line-height: 1.55; }
.s11-rich-preview ul { padding-left: 22px; }
.s16-share-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; overflow: hidden; border: 0; background: transparent; place-items: center; }
.s16-share-dialog[open] { display: grid; }
.s16-share-dialog::backdrop { background: rgba(16, 42, 36, .58); }
.s16-share-dialog-panel { width: min(640px, 100%); max-height: calc(100vh - 48px); padding: 22px; overflow: auto; border-radius: 16px; background: var(--foundation-color-surface); box-shadow: var(--foundation-elevation-float); }
.s16-share-dialog-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.s16-share-dialog-heading h3, .s16-share-dialog-heading p { margin: 0; }
.s16-share-dialog-heading h3 { color: var(--sproutly-color-field); font-size: 1.45rem; }
.s16-share-dialog-heading p { margin-top: 4px; color: var(--foundation-color-ink-muted); }
.s16-share-close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--sproutly-color-field); background: var(--foundation-color-surface-subtle); cursor: pointer; }
.s16-share-boundary { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--foundation-color-ink-muted); font-size: .86rem; }
.s16-share-boundary .icon { width: 18px; height: 18px; color: var(--sproutly-color-leaf-deep); }
.s16-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.s16-share-actions .primary-action { min-height: 52px; box-shadow: none; }
.s11-confirm { flex-basis: 100%; padding-top: 4px; }
.s11-storage-recovery { width: min(760px, calc(100% - 24px)); }
.s11-storage-recovery > section { width: 100%; padding: 14px; border: 1px solid var(--color-line, #c8d7cf); border-radius: 12px; text-align: left; }
.s11-recording-composer { display: grid; justify-items: start; gap: 14px; margin: 0; padding: 22px 20px; border: 0; border-radius: 16px; background: var(--sproutly-color-pause); text-align: left; box-shadow: none; }
.s11-recording-composer h2, .s11-recording-composer h3 { margin: 0 0 6px; color: var(--color-field, #102a24); }
.s11-recording-composer p { max-width: 42ch; margin: 0; color: var(--color-muted, #4d685f); line-height: 1.5; }
.s11-recording-composer .primary-action { min-height: 56px; min-width: min(100%, 290px); }
.s11-recording-composer.is-requesting { background: #f5f8f2; box-shadow: none; }
.s11-recording-composer.is-recording { border-color: #e6b838; background: #fff7dc; }
.s11-recording-composer.is-error, .s11-recording-composer.is-denied { border-style: dashed; background: #fff0ec; }
.s11-recording-composer.is-unsupported { border-style: dashed; background: #f5f8f2; box-shadow: none; }
.s11-recording-composer.is-skipped { justify-items: start; padding: 18px 20px; background: #f5f8f2; text-align: left; }
.s11-recording-action { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.s11-recording-action output { color: var(--color-muted, #4d685f); font-size: .9rem; }
.s11-recording-time { color: var(--color-field, #102a24); font-family: var(--sproutly-font-family-kid); font-size: clamp(2rem, 9vw, 3.4rem); font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1; }
.s11-recording-secondary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.s11-audio-progress { width: min(100%, 440px); min-height: 44px; accent-color: var(--color-leaf, #14573f); }
.s11-recording-choice { display: grid; gap: 5px; width: min(100%, 440px); padding: 12px; border: 1px solid var(--color-line, #c8d7cf); border-radius: 12px; background: #fffdf8; text-align: left; }
.s11-recording-choice label { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; color: var(--color-field, #102a24); font-weight: 750; line-height: 1.4; }
.s11-recording-choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-leaf, #14573f); }
.s11-recording-choice small { color: var(--color-muted, #4d685f); line-height: 1.4; }
.s11-recording-retain { display: grid; gap: 6px; justify-items: center; width: min(100%, 440px); }
.s11-recording-retain .parent-button { min-height: 44px; width: 100%; }
.s11-recording-retain small, .s11-recording-retain p { color: var(--color-muted, #4d685f); line-height: 1.4; }
.s11-recording-retain p { margin: 0; color: #7a241b; }
.s11-recording-library { margin-bottom: 18px; }
.s11-recording-library.is-error { border-style: dashed; background: #fff0ec; }
.s11-recording-library.is-empty { background: #f5f8f2; box-shadow: none; }
.s11-recording-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.s11-recordings { padding: 0; margin: 16px 0 0; list-style: none; }
.s11-recordings > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--color-line, #c8d7cf); }
.s11-recording-meta { min-width: 0; }
.s11-recording-meta strong, .s11-recording-meta span { display: block; overflow-wrap: anywhere; }
.s11-recording-meta strong { color: var(--color-field, #102a24); font-size: 1.05rem; }
.s11-recording-meta span { margin-top: 4px; color: var(--color-muted, #4d685f); font-size: .88rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
.s11-recording-row-actions { display: flex; align-items: center; gap: 6px; }
.s11-recording-row-actions .primary-action { min-height: 44px; padding: 8px 14px; }
.s11-recording-row-actions .text-action { flex: 0 0 auto; min-width: 56px; white-space: nowrap; }
.s11-recording-playback-status, .s11-recording-item-error { grid-column: 1 / -1; color: var(--color-muted, #4d685f); font-size: .88rem; }
.s11-recording-item-error { margin: 0; color: #7a241b; }
.s11-recording-delete-confirm { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: #fff0ec; }
.s11-recording-delete-confirm p { flex: 1 1 260px; margin: 0; color: #6f252c; }
.text-action { min-height: 44px; padding: 8px 12px; border: 0; color: var(--color-leaf, #14573f); background: transparent; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.scene-setup-action { min-height: 44px; padding: 8px 2px; border: 0; color: rgba(255,255,255,.86); background: transparent; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.s17-learning-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; overflow: hidden; border: 0; background: transparent; place-items: center; font-family: var(--foundation-font-family-interface); }
.s17-learning-dialog[open] { display: grid; }
.s17-learning-dialog::backdrop { background: rgba(16,42,36,.62); backdrop-filter: blur(5px); }
.s17-learning-panel { width: min(620px, 100%); max-height: calc(100vh - 48px); padding: 24px; overflow: auto; border-radius: var(--foundation-radius-stage); background: #fffdf7; box-shadow: var(--foundation-elevation-float); }
.s17-learning-panel.is-local { width: min(1380px, 100%); background: var(--foundation-color-surface); }
.s17-learning-heading, .s17-learning-heading > div { display: flex; align-items: center; gap: 12px; }
.s17-learning-heading { justify-content: space-between; margin-bottom: 20px; }
.s17-learning-heading h2 { margin: 0; color: var(--sproutly-color-field); font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.s17-close, .s17-back { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--sproutly-color-field); background: var(--foundation-color-surface-subtle); cursor: pointer; }
.s17-back .icon { transform: rotate(180deg); }
.s17-learning-choices { display: grid; gap: 12px; }
.s17-learning-choice { min-height: 92px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 16px; border: 0; border-radius: 18px; color: var(--sproutly-color-field); background: var(--sproutly-color-pause); text-align: left; cursor: pointer; transition: transform var(--foundation-motion-fast) var(--foundation-motion-ease-out), background-color var(--foundation-motion-fast) var(--foundation-motion-ease-out); }
.s17-learning-choice:hover { transform: translateY(-2px); }
.s17-learning-choice.is-primary { background: var(--sproutly-color-growth); }
.s17-learning-choice > span:nth-child(2) { display: grid; gap: 3px; }
.s17-learning-choice strong { font-size: 1.1rem; }
.s17-choice-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.72); }
.s19-resume { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; border-radius: 20px; background: var(--sproutly-color-pause); }
.s19-resume-letter { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; color: var(--sproutly-color-growth); background: var(--sproutly-color-field); font: 900 2.25rem/1 var(--sproutly-font-family-kid); text-transform: uppercase; }
.s19-resume-copy { min-width: 0; display: grid; gap: 3px; color: var(--foundation-color-ink-muted); }
.s19-resume-copy small { color: var(--sproutly-color-leaf-deep); font-size: .78rem; font-weight: 800; }
.s19-resume-copy strong { overflow: hidden; color: var(--foundation-color-ink); font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.s19-resume-copy > span { font-size: .9rem; }
.s19-resume-copy em { color: var(--foundation-color-warning); font-size: .82rem; font-style: normal; font-weight: 800; }
.s19-resume[data-state="ready"] .s19-resume-copy em { color: var(--foundation-color-success); }
.s19-resume[data-state="error"] .s19-resume-copy em { color: var(--foundation-color-danger); }
.s19-resume-action { min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px; color: var(--sproutly-color-field); background: var(--sproutly-color-growth); font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 12px 24px rgba(20,87,63,.15); }
.s19-resume-action:disabled { color: var(--foundation-color-ink-muted); background: rgba(255,255,255,.62); box-shadow: none; cursor: wait; }
.s19-saved-packs { margin-top: 12px; }
.s19-saved-packs > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 4px; color: var(--sproutly-color-leaf-deep); font-weight: 800; cursor: pointer; }
.s19-saved-packs > summary span { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--foundation-color-surface-subtle); font-size: .78rem; }
.s19-pack-list { display: grid; gap: 8px; padding-top: 6px; }
.s19-pack-list button { min-height: 62px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; color: var(--foundation-color-ink); background: var(--foundation-color-surface-subtle); font: inherit; text-align: left; cursor: pointer; }
.s19-pack-list button > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.s19-pack-list small { color: var(--foundation-color-ink-muted); }
.s19-pack-letter { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--sproutly-color-field); background: var(--sproutly-color-growth); font-weight: 900; }
.s17-learning-choices.has-resume { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.s17-learning-choices.has-resume .s17-learning-choice { min-height: 64px; grid-template-columns: 40px minmax(0, 1fr) 20px; padding: 12px; background: var(--foundation-color-surface-subtle); }
.s17-learning-choices.has-resume .s17-choice-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.s17-setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.s17-setup-steps span { min-height: 40px; display: grid; place-items: center; padding: 8px 10px; border-radius: 12px; color: var(--foundation-color-ink-muted); background: var(--foundation-color-surface-subtle); font-size: .84rem; font-weight: 800; text-align: center; }
.s17-setup-steps span[aria-current="step"] { color: var(--sproutly-color-field); background: var(--sproutly-color-growth); }
.s17-learning-panel.is-local .media-pack-studio { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.s17-learning-panel .media-studio-actions:empty { display: none; }
@media (max-width: 760px) {
  .topbar { display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 6px; }
  .app-shell .topbar-actions { display: contents; }
  .s11-nav { display: grid; grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s11-nav button { min-width: 0; padding: 0 8px; }
  .growth-signal { grid-column: 3; grid-row: 1; justify-self: end; }
  .s11-owner { flex-direction: column; }
  .s11-export-heading { flex-direction: column; }
  .s11-export-heading .parent-actions { width: 100%; }
  .s11-export-heading .parent-actions > * { flex: 1 1 0; width: auto; }
  .s11-owner > div { flex: 0 1 auto; }
  .s11-recording-action { align-items: stretch; flex-direction: column; }
  .s11-recording-secondary { width: 100%; }
  .s11-recording-secondary > * { flex: 1 1 140px; }
  .s11-recording-library-head { flex-direction: column; }
  .s11-recordings > li { grid-template-columns: 1fr; }
  .s11-recording-row-actions { align-items: stretch; width: 100%; }
  .s11-recording-row-actions .primary-action { flex: 1 1 auto; }
  .s11-recording-playback-status, .s11-recording-item-error, .s11-recording-delete-confirm { grid-column: 1; }
  .s16-share-dialog { padding: 8px; }
  .s16-share-dialog-panel { max-height: calc(100vh - 16px); padding: 18px 16px; }
  .s16-share-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .s11-nav button { transition-duration: 0ms; }
}

.personal-shell { width: 100%; margin: 0; padding: 0 0 64px; }
.personal-workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 650px; overflow: hidden; border-radius: var(--foundation-radius-stage); background: var(--sproutly-color-field); box-shadow: var(--foundation-elevation-float); }
.personal-rail { position: relative; isolation: isolate; overflow: hidden; grid-column: 1; padding: 30px 24px; color: #f4f9f4; background: var(--sproutly-color-field); }
.personal-rail::before, .personal-rail::after { position: absolute; z-index: -1; content: ""; border-radius: 50%; }
.personal-rail::before { left: -84px; bottom: -110px; width: 280px; height: 230px; background: var(--sproutly-color-leaf-deep); transform: rotate(-12deg); }
.personal-rail::after { right: -88px; bottom: -42px; width: 210px; height: 120px; background: rgba(32, 151, 103, .34); transform: rotate(14deg); }
.personal-nav { display: grid; gap: 8px; }
.personal-nav button { min-height: 52px; display: flex; align-items: center; gap: 11px; width: 100%; padding: 0 14px; border: 0; border-radius: 12px; color: #f4f9f4; background: transparent; font: inherit; font-weight: 800; text-align: left; cursor: pointer; transition: transform var(--foundation-motion-fast) var(--foundation-motion-ease-out), background-color var(--foundation-motion-fast) var(--foundation-motion-ease-out), color var(--foundation-motion-fast) var(--foundation-motion-ease-out); }
.personal-nav button:hover { background: rgba(255,255,255,.1); transform: translateX(2px); }
.personal-nav button[aria-current="page"] { color: var(--sproutly-color-field); background: var(--sproutly-color-growth); }
.personal-nav .icon { width: 20px; height: 20px; }
.personal-content { min-width: 0; grid-column: 2; padding: 34px clamp(24px, 4vw, 46px) 44px; border-radius: var(--foundation-radius-stage) 0 0 var(--foundation-radius-stage); background: var(--foundation-color-surface); }
.personal-page-heading { margin: 0 0 var(--sproutly-page-gap); }
.personal-page-heading h1 { margin: 0; color: var(--foundation-color-ink); font-family: var(--sproutly-font-family-kid); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1; }
.personal-section { display: grid; gap: var(--sproutly-page-gap); }
.personal-section > .s11-panel, .personal-section > .s11-recording-composer, .personal-section > .parent-panel, .personal-section > .s11-owner { margin: 0; }
.media-pair-status { min-height: 52px; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 2px; color: var(--foundation-color-ink-muted); }
.media-pair-status > .icon { color: var(--sproutly-color-leaf-deep); }
.media-pair-status > span { display: grid; gap: 2px; }
.media-pair-status strong { color: var(--foundation-color-ink); }
.media-pair-status small { line-height: 1.4; }
.media-pair-status.is-ready { color: var(--foundation-color-success); }
.media-pair-status.is-error, .media-pair-status.is-error > .icon { color: var(--foundation-color-danger); }
.personal-local .s12-data-controls { box-shadow: none; }
.personal-local .parent-note { margin-top: 0; }
.personal-records .s11-panel > h3, .personal-export .s11-panel h2, .personal-export .s11-panel h3 { font-size: 1.25rem; }
.personal-records-grid { display: grid; grid-template-columns: 1fr; gap: var(--sproutly-page-gap); align-items: start; }
.personal-recording-stack { display: grid; gap: var(--sproutly-page-gap); }
.s16-activity-card { background: #fffbed; }
.s16-activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.s16-learning-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px; color: var(--foundation-color-ink-muted); font-size: .84rem; }
.s16-learning-summary span { white-space: nowrap; }
.s16-learning-summary strong { color: var(--sproutly-color-leaf-deep); font-size: 1rem; }
.s16-learning-summary .text-action { min-height: 32px; padding: 3px 0; font-size: .82rem; }
.s23-point-total { display: inline-flex; align-items: center; gap: 5px; }
.s23-point-total .icon { width: 17px; height: 17px; color: var(--sproutly-color-leaf-deep); }
.s16-activity-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.s23-point-event { min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; color: var(--sproutly-color-field); background: var(--sproutly-color-growth); font-size: .75rem; font-style: normal; font-weight: 850; white-space: nowrap; }
.s23-point-event.is-corrected { color: var(--foundation-color-ink-muted); background: var(--foundation-color-surface-subtle); }
.s16-activity-days, .s16-activity-day > ol { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.s16-activity-day { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.s16-activity-day > time { display: grid; justify-items: start; gap: 2px; padding: 11px 12px; border-radius: 12px; background: var(--sproutly-color-pause); color: var(--sproutly-color-leaf-deep); font-variant-numeric: tabular-nums; }
.s16-activity-day > time strong { font-size: 1.05rem; }
.s16-activity-day > time span { color: #315b51; font-size: .76rem; }
.s16-activity-day > ol { margin: 0; }
.s16-activity-day > ol > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 11px 14px; border-radius: 12px; background: #fff; }
.s16-activity-day > ol > li span { color: var(--foundation-color-ink-muted); font-size: .84rem; font-variant-numeric: tabular-nums; text-align: right; }
.s16-record-empty, .s16-export-empty { display: grid; justify-items: start; gap: 12px; margin-top: 18px; }
.s16-record-empty p, .s16-export-empty h3, .s16-export-empty p { margin: 0; }
.personal-recording-stack .s11-recording-composer .primary-action { width: 100%; min-width: 0; }
.personal-recording-stack .s11-recording-library { margin: 0; }
.s11-export { background: #fffbed; }
.s16-export-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--sproutly-color-pause); }
.s16-export-summary { display: grid; gap: 3px; color: var(--foundation-color-ink-muted); font-size: .86rem; }
.s16-export-summary strong { color: var(--sproutly-color-leaf-deep); font-size: 1rem; }
.s16-export-footer .primary-action { min-height: 52px; box-shadow: none; }

@media (max-width: 760px) {
  .personal-shell { padding-top: 0; }
  .personal-workspace { grid-template-columns: 1fr; min-height: 0; overflow: visible; background: transparent; box-shadow: none; }
  .personal-rail { grid-column: 1; grid-row: 1; padding: 14px; border-radius: var(--foundation-radius-panel) var(--foundation-radius-panel) 0 0; }
  .personal-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .personal-nav button { min-height: 48px; justify-content: center; gap: 7px; padding: 0 8px; text-align: center; }
  .personal-nav button:hover { transform: translateY(-1px); }
  .personal-nav .icon { width: 18px; height: 18px; }
  .personal-rail::before, .personal-rail::after { display: none; }
  .personal-content { grid-column: 1; padding: 26px 18px 32px; border-radius: 0 0 var(--foundation-radius-panel) var(--foundation-radius-panel); }
  .personal-records-grid { grid-template-columns: 1fr; }
  .s16-activity-heading, .s16-export-footer { align-items: stretch; flex-direction: column; }
  .s16-learning-summary { justify-content: flex-start; }
  .s16-export-footer .primary-action { width: 100%; }
}

@media (max-width: 420px) {
  .personal-nav button { gap: 5px; font-size: .8rem; }
  .personal-nav .icon { width: 16px; height: 16px; }
  .s16-activity-day { grid-template-columns: 1fr; }
  .s16-activity-day > time { display: flex; align-items: baseline; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .personal-nav button { transition-duration: 0ms; }
}

.s12-word-book, .s12-context-watch { width: 100%; margin: 0; padding: 0 0 64px; }
.s12-word-workspace { padding: clamp(22px, 3vw, 34px); border: 0; border-radius: var(--foundation-radius-stage); background: linear-gradient(145deg, #fffdf7, #f3f7ee); box-shadow: none; }
.s12-book-heading, .s12-word-list-section > header, .s12-modal-heading, .s12-context-block > header, .s12-return-bar, .s12-context-player > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.s12-book-heading h1, .s12-context-player h1, .s12-modal-heading h2 { margin: 0; color: var(--color-field, #102a24); font-family: var(--sproutly-font-family-kid); letter-spacing: -.03em; }
.s12-book-heading h1, .s12-context-player h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.s12-book-count { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; color: var(--color-field, #102a24); background: var(--sproutly-color-pause, #d8eff2); }
.s12-book-count strong { font-family: var(--sproutly-font-family-kid); font-size: 1.35rem; }
.s12-book-count span { color: var(--color-muted, #4d685f); font-size: .86rem; }
.s12-word-list-section { margin-top: var(--sproutly-page-gap); }
.s12-word-list-section > header { align-items: center; }
.s12-word-list-section h2 { margin: 0; color: var(--color-field, #102a24); font-size: 1.35rem; }
.s12-word-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sproutly-card-gap); margin-top: var(--sproutly-card-gap); }
.s12-word-card { min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: var(--foundation-radius-panel, 16px); color: var(--color-field, #102a24); background: var(--color-surface, #fff); text-align: left; box-shadow: var(--foundation-elevation-raised); cursor: pointer; transition: transform var(--foundation-motion-fast) var(--foundation-motion-ease-out), box-shadow var(--foundation-motion-fast) var(--foundation-motion-ease-out); }
.s12-word-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(16, 42, 36, .16); }
.s12-word-card[aria-expanded="true"] { outline: 2px solid var(--sproutly-color-leaf-deep, #14573f); outline-offset: -2px; }
.s12-card-visual { position: relative; height: 146px; display: block; overflow: hidden; background: var(--sproutly-color-pause, #d8eff2); }
.s12-card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.s12-word-card:nth-child(1) .s12-card-visual img { object-position: center 38%; }
.s12-word-card:nth-child(2) .s12-card-visual img { object-position: center 62%; }
.s12-card-visual.is-typographic, .s12-modal-visual.is-typographic { display: grid; place-items: center; color: var(--sproutly-color-growth, #d8ef72); background: var(--sproutly-color-field, #102a24); }
.s12-card-letter, .s12-modal-visual.is-typographic > span:first-child { font-family: var(--sproutly-font-family-kid); font-size: 5rem; font-weight: 850; line-height: 1; }
.s12-video-chip { position: absolute; left: 14px; top: 14px; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; color: var(--color-field, #102a24); background: rgba(255, 255, 255, .94); font-size: .82rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.s12-video-chip .icon { width: 16px; height: 16px; }
.s12-card-body { display: grid; gap: 8px; padding: 14px 15px 15px; }
.s12-card-title, .s12-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s12-card-title > strong { font-family: var(--sproutly-font-family-kid); font-size: 1.55rem; letter-spacing: -.03em; }
.s12-status-pill { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px; color: var(--sproutly-color-leaf-deep, #14573f); background: #eef7bd; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.s12-status-pill.is-learning { color: #674f00; background: #fff0b7; }
.s12-status-pill .icon { width: 15px; height: 15px; }
.s12-card-body > small { min-height: 2.7em; display: -webkit-box; overflow: hidden; color: var(--color-muted, #4d685f); font-size: .86rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.s12-card-foot { padding-top: 4px; color: var(--color-muted, #4d685f); font-size: .84rem; font-weight: 750; }
.s12-card-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.s12-card-foot .icon { width: 16px; height: 16px; }
.s12-empty { display: grid; justify-items: start; gap: 12px; margin-top: 16px; padding: 24px; border-radius: var(--foundation-radius-panel, 16px); background: var(--color-surface-subtle, #f5f8f2); }
.s12-empty h3, .s12-empty p { margin: 0; }
.s12-empty p { color: var(--color-muted, #4d685f); }

.s12-word-modal { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; place-items: center; overflow: hidden; }
.s12-word-modal[open] { display: grid; }
.s12-word-modal::backdrop { background: rgba(16, 42, 36, .58); backdrop-filter: blur(4px); }
.s12-word-modal-panel { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; background: var(--color-surface, #fff); box-shadow: var(--foundation-elevation-float); animation: s12-modal-in var(--foundation-motion-fast) var(--foundation-motion-ease-out); }
.s12-word-modal-panel::-webkit-scrollbar { width: 10px; }
.s12-word-modal-panel::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: var(--color-line, #c8d7cf); background-clip: content-box; }
.s12-modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(16, 42, 36, .16); border-radius: 50%; color: var(--color-field, #102a24); background: rgba(255, 255, 255, .94); box-shadow: 0 8px 20px rgba(16, 42, 36, .13); cursor: pointer; }
.s12-modal-close:hover { background: var(--sproutly-color-growth, #d8ef72); }
.s12-modal-visual { position: relative; height: 176px; overflow: hidden; background: var(--sproutly-color-pause, #d8eff2); }
.s12-modal-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 40%; }
.s12-modal-content { padding: 20px; }
.s12-modal-heading { align-items: center; }
.s12-modal-heading h2 { font-size: clamp(2.8rem, 7vw, 4.2rem); line-height: .9; }
.s12-context-block { margin-top: 14px; padding: 16px; border-radius: 14px; color: var(--color-field, #102a24); background: var(--sproutly-color-pause, #d8eff2); }
.s12-context-block > header { align-items: center; }
.s12-context-block h3, .s12-context-block > header > span { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.s12-context-block > header > span { min-height: 32px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.76); font-size: .82rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.s12-context-block blockquote { margin: 0; font-family: var(--sproutly-font-family-kid); font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.35; }
.s12-context-block p { margin: 12px 0 0; display: flex; align-items: center; gap: 7px; color: var(--color-muted, #4d685f); font-size: .84rem; }
.s12-context-block p span { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 750; }
.s12-context-block p .icon { width: 17px; height: 17px; }
.s12-context-state { display: grid; gap: 3px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; color: var(--color-muted, #4d685f); background: var(--color-surface-subtle, #f5f8f2); }
.s12-context-state strong { color: var(--color-field, #102a24); }
.s12-context-state.is-warning { background: #fff4d6; }
.s12-context-state.is-error { color: #6f252c; background: #ffebe7; }
.s12-context-state.is-error strong { color: #6f252c; }
.s12-modal-action { width: 100%; margin-top: 12px; }
.s12-navigation-boundary { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--color-muted, #4d685f); font-size: .86rem; line-height: 1.45; }
.s12-navigation-boundary .icon { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sproutly-color-leaf-deep, #14573f); }

.s12-return-bar { align-items: center; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: var(--sproutly-color-pause, #d8eff2); }
.s12-recovery-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--foundation-radius-panel); background: var(--foundation-color-surface-subtle); color: var(--foundation-color-ink); }
.s12-recovery-panel > div { display: grid; gap: 3px; }
.s12-recovery-panel span { color: var(--foundation-color-ink-muted); font-size: .9rem; }
.s12-recovery-panel.is-ready { background: var(--sproutly-color-pause); }
.s12-recovery-panel.is-error { background: #fff0ec; }
.s12-recovery-panel .primary-action { min-height: 56px; white-space: nowrap; }
.s12-return-bar > div { display: grid; gap: 3px; }
.s12-return-bar span { color: var(--color-muted, #4d685f); font-size: .82rem; }
.s12-return-bar strong { color: var(--color-field, #102a24); }
.s12-return-bar button .icon { transform: rotate(180deg); }
.s12-context-player { padding: 22px; border-radius: var(--foundation-radius-panel, 16px); background: var(--color-surface, #fff); box-shadow: var(--foundation-elevation-raised); }
.s12-context-player > header { align-items: center; }
.s12-context-stage { position: relative; height: min(54vw, 520px); min-height: 340px; margin-top: 18px; overflow: hidden; border-radius: var(--foundation-radius-stage, 24px); color: #fff; background: var(--sproutly-color-field, #102a24); }
.s12-context-stage .scene-canvas { width: 100%; height: 100%; }
.s12-context-stage .scene-copy { position: absolute; z-index: 2; left: clamp(20px, 6vw, 62px); top: 44%; transform: translateY(-50%); }
.s12-context-stage .scene-word { margin: 0; color: var(--sproutly-color-growth, #d8ef72); font-size: clamp(3rem, 10vw, 6rem); }
.s12-context-stage .motion-marker { transition: transform var(--foundation-motion-base) var(--foundation-motion-ease-out); }
.s12-context-stage.is-playing .motion-marker { animation: jump-marker 1.25s ease-in-out infinite; }
.s12-context-stage .local-video-player { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; object-fit: contain; }
.s12-context-stage:has(.local-video-player) .scene-copy, .s12-context-stage:has(.local-video-player) .sun-disc, .s12-context-stage:has(.local-video-player) .jump-arc, .s12-context-stage:has(.local-video-player) .motion-marker, .s12-context-stage:has(.local-video-player) .scene-canvas::after { display: none; }
.s12-context-caption { position: absolute; z-index: 3; left: 50%; bottom: 18px; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 10px 14px; border-radius: 12px; color: #fff; background: rgba(16, 42, 36, .9); font-size: clamp(1rem, 2.4vw, 1.35rem); text-align: center; transform: translateX(-50%); }
.s12-context-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 16px; }
.s12-context-controls > .primary-action { min-width: 180px; }
.s12-context-progress { display: grid; gap: 8px; }
.s12-context-progress > div { display: flex; justify-content: space-between; gap: 12px; color: var(--color-muted, #4d685f); font-size: .86rem; font-variant-numeric: tabular-nums; }
.s12-context-progress strong { color: var(--color-field, #102a24); }
.s12-context-progress progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--color-canvas, #eef3ea); }
.s12-context-progress progress::-webkit-progress-bar { background: var(--color-canvas, #eef3ea); }
.s12-context-progress progress::-webkit-progress-value { background: var(--sproutly-color-leaf-deep, #14573f); }
.s12-context-progress progress::-moz-progress-bar { background: var(--sproutly-color-leaf-deep, #14573f); }

@keyframes s12-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 761px) {
  .home-app { height: 100dvh; padding-bottom: 14px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .home-app .scene-layout, .home-app .scene-field { height: 100%; min-height: 0; }
}

@media (max-width: 1180px) and (min-width: 941px) {
  .s12-word-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) and (min-width: 761px) {
  .s12-word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .s17-learning-dialog { padding: 8px; }
  .s17-learning-panel { max-height: calc(100vh - 16px); padding: 18px 16px; border-radius: 18px; }
  .s17-learning-heading { margin-bottom: 16px; }
  .s19-resume { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .s19-resume-letter { width: 56px; height: 56px; border-radius: 16px; font-size: 1.8rem; }
  .s19-resume-action { grid-column: 1 / -1; width: 100%; }
  .s17-learning-choices.has-resume { grid-template-columns: 1fr; }
  .s17-setup-steps { gap: 5px; }
  .s17-setup-steps span { padding-inline: 5px; font-size: .74rem; }
  .s12-word-book, .s12-context-watch { padding-top: 0; }
  .s12-word-workspace { padding: 18px; border-radius: 18px; }
  .s12-word-grid { grid-template-columns: 1fr; }
  .s12-word-modal { padding: 8px; }
  .s12-word-modal-panel { max-height: calc(100vh - 16px); border-radius: 18px; }
  .s12-modal-visual { height: 140px; }
  .s12-modal-content { padding: 18px 16px; }
  .s12-modal-heading h2 { font-size: 3rem; }
  .s12-context-block > header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .s12-return-bar { align-items: stretch; flex-direction: column; }
  .s12-return-bar button { width: 100%; }
  .s12-recovery-panel { align-items: stretch; flex-direction: column; }
  .s12-recovery-panel button { width: 100%; }
  .s12-context-player { padding: 16px; }
  .s12-context-stage { height: 58vw; min-height: 250px; border-radius: 18px; }
  .s12-context-controls { grid-template-columns: 1fr; }
  .s12-context-controls > .primary-action { width: 100%; }
}

@media (max-width: 420px) {
  .s12-book-heading { align-items: flex-start; }
  .s12-card-visual { height: 148px; }
  .s12-card-title { align-items: flex-start; }
  .s12-card-title > strong { font-size: 1.65rem; }
  .s12-status-pill { font-size: .74rem; }
  .s12-context-player > header { align-items: flex-start; flex-direction: column; }
  .s12-context-stage { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .s12-word-card, .s12-word-modal-panel, .s12-context-stage .motion-marker { animation: none; transition-duration: 0ms; }
}
