/* Companion · Stage on v2 (design fork). The Stage layout from companion-stage/stage (one message at a time, Cueme
   in the middle, "Here's what I know" strip), with v2's engine behind it. What update_screen shows sits under the
   message: the offerings, a topic map, the book, its chapters, a chapter's lessons (Student App, Figma 17206:60596 /
   47415 / 47545). Components come from the CueDesign bundle; the character from cueme-bot.css. */

[hidden] { display: none !important; }

/* The page's motion curves, the same as Cueme's (cueme-bot.css). They have to live here too: cueme-bot.css defines
   them on .cueme-bot only, and a var() that doesn't resolve drops the whole animation, so words stayed invisible. */
:root {
  --bot-ease:     cubic-bezier(0.37, 0, 0.63, 1);
  --bot-ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bot-ease-in:  cubic-bezier(0.55, 0.06, 0.68, 0.19);
  /* Cueme's soft spring, written here by stage.js (a CSS linear() curve); a plain ease-out until it loads. */
  --st-spring: var(--bot-ease-out);
  --st-spring-ms: 700ms;
}

html, body { height: 100%; }
body { margin: 0; background: var(--neutral-2); color: var(--text-primary); font-family: var(--font-body); }

/* One screen, no page scroll: the top (Cueme, their last reply, the heading, the buttons) stays put, and only what
   Cueme is showing scrolls, inside its own area (.st-show). */
.st-app { position: relative; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr); }

/* ── Top: the strip + quiet utilities ─────────────────────────────── */
/* Top right: the speaker toggle (when voice is on), floating over the page, out of the layout's way. */
.st-top { position: absolute; top: 0; left: 0; right: 0; z-index: var(--z-sticky); padding: var(--space-20) var(--space-32); display: flex; align-items: center; pointer-events: none; }
.st-top > * { pointer-events: auto; }
.st-top-right { margin-left: auto; }
.st-back-top { gap: var(--space-8); }
.st-top-right { display: flex; align-items: center; gap: var(--space-4); }

/* ── Centre ───────────────────────────────────────────────────────── */
.st-main { min-height: 0; display: flex; justify-content: center; padding: var(--space-64) var(--space-40) var(--space-24); }
.st-center {
  width: 100%;
  max-width: calc(var(--space-80) * 11);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-24);
  text-align: center;
  justify-content: center; /* the conversation sits in the vertical middle of the page */
}
/* The conversation block: Cueme, their last reply, the question and answers, the input. */
.st-chat { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); width: 100%; flex: none; }
.st-chat > * { flex: none; }
.st-show { view-transition-name: st-show; }
/* Single column ⇄ 30:70: each part moves on its own (Cueme, its reply bubble, the heading, the answers, the input) so
   nothing stretches. Text keeps its size and crossfades while its box travels; the screen area is empty by then. */
#cueme { view-transition-name: st-cueme; }
#you { view-transition-name: st-you; }
#say { view-transition-name: st-say; }
#answers { view-transition-name: st-answers; }
#composer { view-transition-name: st-composer; }
::view-transition-group(*) { animation-duration: 720ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(st-say), ::view-transition-new(st-say),
::view-transition-old(st-you), ::view-transition-new(st-you),
::view-transition-old(st-answers), ::view-transition-new(st-answers) { width: auto; height: auto; }
::view-transition-old(st-say), ::view-transition-old(st-you), ::view-transition-old(st-answers) { animation-duration: 220ms; }
::view-transition-new(st-say), ::view-transition-new(st-you), ::view-transition-new(st-answers) { animation-duration: 420ms; animation-delay: 160ms; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 480ms; }

/* Split, on the chapter and lesson screens: a dedicated panel down the left (30%, full height, left aligned) holds the
   conversation; the screen scrolls on the right (70%). On the lesson screen only the area behind the lessons takes the
   lesson colour; the panel stays as it is. */
@media (min-width: 901px) {
  .st-app[data-layout="split"] .st-main { padding: 0; }
  .st-app[data-layout="split"] .st-center { flex-direction: row; align-items: stretch; justify-content: flex-start; max-width: none; gap: 0; }
  /* Top down: Cueme, their reply, the question and answers at the top; the input pinned to the panel's foot. */
  .st-app[data-layout="split"] .st-chat {
    flex: 0 0 30%; height: 100%; overflow-y: auto; box-sizing: border-box;
    align-items: flex-start; justify-content: flex-start; text-align: left; gap: var(--space-20);
    padding: var(--space-48) var(--space-40);
    background: var(--neutral-0); border-right: 1px solid var(--border-tertiary-soft);
  }
  .st-app[data-layout="split"] .st-say { max-width: none; }
  .st-app[data-layout="split"] .st-question { font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); text-wrap: pretty; }
  .st-app[data-layout="split"] .st-answers { align-items: flex-start; }
  .st-app[data-layout="split"] .st-reply-row { justify-content: flex-start; }
  .st-app[data-layout="split"] .st-composer { max-width: none; margin-top: auto; }
  .st-app[data-layout="split"] .st-you { max-width: 100%; }
  .st-app[data-layout="split"] .cueme-bot { align-self: flex-start; }
  .st-app[data-layout="split"] .st-show { flex: 1 1 70%; height: 100%; padding: var(--space-64) var(--space-40) var(--space-40); justify-content: flex-start; }
  /* The book sits in the middle of its side; chapters and lessons run from the top. */
  .st-app[data-layout="split"][data-scene="sm_lessons"] .st-show,
  .st-app[data-layout="split"][data-scene="tp_chapter"] .st-show,
  .st-app[data-layout="split"][data-scene="start"] .st-show { background: var(--brand-1); }
}
/* The first screen sits in the middle of the page, both ways; once they've chosen, the page runs top-down. */
.st-center { min-height: 0; }
.st-app[data-centre] .st-center { justify-content: center; }

/* Cueme scales with the moment: large while it's only talk, smaller once there's something to look at. */
.st-app .cueme-bot { transition: width 900ms var(--bot-ease); }
.st-app[data-size="lg"] .cueme-bot { --bot-size: 144px; }
.st-app[data-size="md"] .cueme-bot { --bot-size: 104px; }
.st-app[data-size="sm"] .cueme-bot { --bot-size: 72px; }

/* The message: the question is the heading (first, largest); the rest of the message is the subheading under it. */
.st-say { display: flex; flex-direction: column; gap: var(--space-8); max-width: calc(var(--space-80) * 9); }
.st-lead, .st-question { margin: 0; font-family: var(--font-display); text-wrap: balance; }
/* One heading size on every conversation screen (heading-lg, 28px), never scaled by length; the intro's welcome is
   the same style as every other heading (2026-10-14). The split panel uses heading-md (24px) for its narrower column. */
.st-question { font-size: var(--type-heading-lg-size); line-height: var(--type-heading-lg-lh); font-weight: var(--type-heading-lg-weight); color: var(--text-primary); }
.st-lead { font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); font-weight: var(--type-heading-sm-weight); color: var(--text-secondary); }
.st-lead strong, .st-question strong { font-weight: inherit; color: inherit; } /* no yellow: it wasn't legible */
.st-lead:empty, .st-question:empty { display: none; }

/* The reveal (stage.js say): a subtle fade, heading first, the subheading 120ms after. The old message, replies and
   screen fade out first. Everything eases; nothing snaps. */
.st-question.is-in, .st-lead.is-in { animation: st-fade 420ms var(--bot-ease-out) both; }
.st-lead.is-in { animation-delay: 120ms; }
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
.st-say, .st-answers, .st-show { transition: opacity 260ms var(--bot-ease), transform 260ms var(--bot-ease); }
.is-leaving { opacity: 0; transform: translateY(calc(-1 * var(--space-4))); }
.st-answers .btn, .st-offer-card, .st-offers-other { animation: st-rise var(--st-spring-ms) var(--st-spring) both; }
.st-reply-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); }
.st-answers .st-continue { animation: st-fade 420ms var(--bot-ease-out) 260ms both; }

.st-answers { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--space-12); }
.st-answers:empty { display: none; }
.st-answers .filter-chip-group { justify-content: center; }

/* ── What Cueme is showing ────────────────────────────────────────── */
.st-show { width: 100%; display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-4) var(--space-4) var(--space-24); box-sizing: border-box; overscroll-behavior: contain; }
.st-show:empty { display: none; }
.st-show.is-held { visibility: hidden; }
.st-show.is-held, .st-show.is-held * { animation-play-state: paused; }
.st-show > * { animation: st-rise var(--st-spring-ms) var(--st-spring) both; }
/* On the spring, opacity would overshoot past 1 and clip; it settles within the first part of the rise, so it reads clean. */
@keyframes st-rise { 0% { opacity: 0; transform: translateY(var(--space-16)) scale(0.98); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.st-kicker { color: var(--text-tertiary); }
.st-pick { color: var(--success-7); }

/* Offerings: what Cuemath has. The one they're here for is picked out; "coming soon" stays quiet. */
.st-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); width: 100%; max-width: calc(var(--space-80) * 13); text-align: left; } /* wide enough that the three cards stay short: no scroll */
.st-offer-card {
  display: flex; flex-direction: column; gap: var(--space-8);
  padding: var(--space-20); border-radius: var(--radius-md);
  background: var(--neutral-0); border: 1px solid var(--border-tertiary-soft);
  transition: opacity 400ms var(--bot-ease), border-color 400ms var(--bot-ease), background-color 400ms var(--bot-ease);
}
/* Icon on a tinted tile in its own colour, title in the heading face, description in body-lg grey (design ref 2026-09-30). */
.st-offer-icon { display: grid; place-items: center; width: var(--space-48); height: var(--space-48); margin-bottom: var(--space-8); border-radius: var(--radius-md); }
.st-offer-icon svg, .st-offer-icon img { width: var(--space-32); height: var(--space-32); }
.st-offer-icon[data-v="school_math"] { background: var(--brand-1); }
.st-offer-icon[data-v="test_prep"] { background: var(--info-1); }
.st-offer-icon[data-v="enrichment"] { background: var(--purple-accent-1); }
.st-offer-card h2 { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); font-weight: var(--type-heading-sm-weight-bold); color: var(--text-primary); } /* heading-sm bold (heading-xs bold on a phone) */
.st-offer-card p { margin: 0; font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); color: var(--text-secondary); }
.st-offer-tags { margin-top: var(--space-4); } /* v3's tags under each offering */
/* the bundle has no badge-group rule: tags wrap with a gap instead of touching */
.st-app .badge-group { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.st-offers.is-focused .st-offer-card:not(.is-focus) { opacity: 0.45; }
.st-offer-card.is-focus { border-color: var(--border-primary-soft); background: var(--success-1); }
.st-offers-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); width: 100%; }
/* Tappable on the first screen: a card is the answer. */
button.st-offer-card { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color 200ms var(--bot-ease), background-color 200ms var(--bot-ease), transform 200ms var(--bot-ease); }
button.st-offer-card:not(:disabled):hover { border-color: var(--border-primary-soft); transform: translateY(calc(-1 * var(--space-2))); }
button.st-offer-card:focus-visible { outline: 2px solid var(--border-selected); outline-offset: 2px; }
button.st-offer-card:disabled:not(.is-active) { opacity: 0.45; cursor: default; transform: none; }

/* The book (Figma 17206:60596): 108×128 at 1×. The cover shape is drawn here, not an image, so it can take the grade's
   colour; the page edges are the Figma assets. --book-a is the cover (tier 5), --book-b the spine (tier 7). */
.st-book-row { display: flex; align-items: center; justify-content: center; gap: var(--space-40); flex-wrap: wrap; text-align: left; }
.st-book-art { --book-scale: 1.6; width: calc(108px * var(--book-scale)); height: calc(128px * var(--book-scale)); flex: none; filter: drop-shadow(0 var(--space-4) var(--space-8) var(--border-tertiary-soft)); }
.st-book {
  position: relative; width: 108px; height: 128px; transform: scale(var(--book-scale)); transform-origin: 0 0;
  --book-a: var(--brand-5); --book-b: var(--brand-7);
}
.st-book[data-band="k2"] { --book-a: var(--purple-accent-5); --book-b: var(--purple-accent-7); }
.st-book[data-band="g3"] { --book-a: var(--brand-5); --book-b: var(--brand-7); }
.st-book[data-band="g6"] { --book-a: var(--info-5); --book-b: var(--info-7); }
.st-book[data-band="g9"] { --book-a: var(--success-5); --book-b: var(--success-7); }
.st-book > img, .st-book > svg { position: absolute; top: 0; height: 128px; }
.st-book .edge-a { left: 99px; width: 9px; }
.st-book .edge-b { left: 98.75px; width: 7px; }
.st-book .cover { left: 0; width: 103px; }
.st-book .cover path:first-child { fill: var(--book-a); }
.st-book .spine { position: absolute; left: 1px; top: 1px; width: 5px; height: 126px; background: var(--book-b); }
.st-book .title {
  position: absolute; left: 10px; top: 16px; width: 88px; margin: 0; /* the cover face past the spine; a long single word ("Kindergarten", 91px) still sits inside the cover */
  font-family: var(--type-label-md-font); font-size: var(--type-label-md-size); line-height: var(--type-label-md-lh); font-weight: var(--type-label-md-weight); /* covers: label-md, every title fits */
  color: var(--text-primary); overflow-wrap: break-word;
}
.st-book-facts { display: flex; flex-direction: column; gap: var(--space-8); max-width: calc(var(--space-80) * 4); }
.st-book-name { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); font-weight: var(--type-heading-md-weight); }
.st-book-meta { margin: 0; color: var(--text-secondary); }
.st-book-facts .badge-group { display: flex; flex-wrap: wrap; gap: var(--space-8); }
/* The book screen's picker (book-picker.js): the grade deck finds their book, then it stacks with its other levels.
   Books are absolutely placed by the script; this is their art (the same build as .st-book) and the facts beside them. */
.st-picker-host { width: 100%; align-self: stretch; }
.pk { position: relative; width: 100%; height: min(400px, 46vh); }
/* The book screen: the picker fills the space between the question and the input, and the books fit inside it
   (book-picker.js sizes them), so nothing runs into the input whatever the heading's length or the screen's height. */
.st-app[data-scene="sm_book"] .st-center { height: 100%; }
.st-app[data-scene="sm_book"] .st-show { flex: 1 1 0; }
.st-app[data-scene="sm_book"] .st-picker-host { height: 100%; }
.st-app[data-scene="sm_book"] .pk { height: 100%; min-height: calc(var(--space-80) * 3); max-height: calc(var(--space-80) * 7); }
/* the book screen doesn't crop the books: its screen area doesn't scroll, the finding fits the box */
.st-app[data-scene="sm_book"] .st-show { overflow: visible; }
/* the books get their own layer, so the facts (next in the page) always sit above them */
.pk-books { position: absolute; inset: 0; isolation: isolate; perspective: 1600px; }
/* under the stack: the levels, then the facts, centred */
.pk-facts {
  position: absolute; left: 50%; translate: -50% 0; width: min(100%, calc(var(--space-80) * 5)); opacity: 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-16); text-align: center;
}
.pk-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); }
.pk-levels .btn[aria-checked="true"] { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.pk-facts .st-book-facts { align-items: center; max-width: none; }
.pk-facts .badge-group { justify-content: center; }
.pk-book {
  position: absolute; left: 0; top: 0; width: 108px; height: 128px; transform-origin: 54px 64px; will-change: transform;
  --book-a: var(--brand-5); --book-b: var(--brand-7);
  filter: drop-shadow(0 var(--space-4) var(--space-8) var(--border-tertiary-soft));
}
.pk-book[data-band="k2"] { --book-a: var(--purple-accent-5); --book-b: var(--purple-accent-7); }
.pk-book[data-band="g3"] { --book-a: var(--brand-5); --book-b: var(--brand-7); }
.pk-book[data-band="g6"] { --book-a: var(--info-5); --book-b: var(--info-7); }
.pk-book[data-band="g9"] { --book-a: var(--success-5); --book-b: var(--success-7); }
.pk-book > img, .pk-book > svg { position: absolute; top: 0; height: 128px; }
.pk-book .edge-a { left: 99px; width: 9px; }
.pk-book .edge-b { left: 98.75px; width: 7px; }
.pk-book .cover { left: 0; width: 103px; }
.pk-book .cover path:first-child { fill: var(--book-a); }
.pk-book .spine { position: absolute; left: 1px; top: 1px; width: 5px; height: 126px; background: var(--book-b); }
.pk-book .title {
  position: absolute; left: 10px; top: 14px; width: 88px; margin: 0;
  font-family: var(--type-label-md-font); font-size: var(--type-label-md-size); line-height: var(--type-label-md-lh); font-weight: var(--type-label-md-weight); color: var(--text-primary);
}
.pk-book .level {
  position: absolute; left: 16px; bottom: 12px; margin: 0; opacity: 0; transition: opacity 240ms;
  font-family: var(--type-label-sm-font); font-size: var(--type-label-sm-size); line-height: var(--type-label-sm-lh); font-weight: var(--type-label-sm-weight); color: var(--text-primary);
}
.pk.is-stacked .pk-book .level { opacity: 0.75; }
/* a back book is a reply: it lifts a little under the pointer (only its art moves, so the hit area stays put) */
.pk-book.is-back { cursor: pointer; }
.pk-book > * { transition: translate 200ms var(--bot-ease-out); }
@media (hover: hover) { .pk-book.is-back:hover > * { translate: 0 calc(var(--space-8) * -1); } }
.pk-book.is-back:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.st-book-art.is-new { animation: st-book-in 900ms var(--bot-ease-out) both; }
@keyframes st-book-in { 0% { opacity: 0; transform: translateY(var(--space-24)) rotate(-6deg) scale(0.9); } 60% { opacity: 1; } 100% { transform: none; } }

/* Chapters, as in the app (app.cuemath.com/school-math): the book name up top, then white cards with the number, the
   chapter's round graphic (Leap V4 set) and its name. The picked chapter is lit. */
.st-chapters-wrap { width: 100%; }
.st-chapters-head { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-20); text-align: left; }
.st-chapters-head img { width: var(--space-24); height: var(--space-24); }
.st-chapters-head h2 { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); font-weight: var(--type-heading-md-weight); }
.st-chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12); width: 100%; }
.st-chapter {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-16);
  min-height: calc(var(--space-80) * 2.3); padding: var(--space-24) var(--space-16);
  border-radius: var(--radius-md); background: var(--neutral-0); border: 1px solid transparent;
  font: inherit; color: inherit; cursor: pointer; text-align: center;
  transition: opacity 400ms var(--bot-ease), border-color 200ms var(--bot-ease), transform 200ms var(--bot-ease);
  animation: st-rise var(--st-spring-ms) var(--st-spring) both;
}
.st-chapter:hover { border-color: var(--border-selected); transform: translateY(calc(-1 * var(--space-2))); } /* a dark stroke, as on the test books */
.st-chapter:focus-visible { outline: 2px solid var(--border-selected); outline-offset: 2px; }
/* tapped while Cueme was replying: it goes when the reply ends (stage.js queueTap) */
.st-app [data-tap].is-queued { outline: 2px solid var(--border-selected); outline-offset: 2px; }
.st-art { display: block; flex: none; width: var(--space-80); height: var(--space-80); border-radius: var(--radius-full); overflow: hidden; }
.st-art img { display: block; width: 100%; height: 100%; }
.st-art img.is-fallback { border-radius: 0; }
.st-chapter .name { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); color: var(--text-primary); }
.st-count {
  position: absolute; left: var(--space-16); top: var(--space-16);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--space-24); height: var(--space-24); padding: 0 var(--space-4); box-sizing: border-box;
  border-radius: var(--radius-full); background: var(--border-tertiary-soft);
  font-size: var(--type-label-sm-size); line-height: var(--type-label-sm-lh); font-weight: var(--type-label-sm-weight); color: var(--text-secondary);
}
.st-chapters.has-pick .st-chapter:not(.is-pick) { opacity: 0.6; }
/* The picked chapter wears the hover state: lifted, soft border, no tint. */
.st-chapter.is-pick { border-color: var(--border-selected); transform: translateY(calc(-1 * var(--space-2))); opacity: 1; }
.st-chapter .st-pick { font-size: var(--type-label-sm-size); line-height: var(--type-label-sm-lh); font-weight: var(--type-label-sm-weight); }
.st-lessons-head .st-art { width: calc(var(--space-80) + var(--space-8)); height: calc(var(--space-80) + var(--space-8)); margin-bottom: var(--space-8); }

/* Lessons (Figma 17206:47545): a chapter's lessons, with the one to start with lit (the "up next" number ring). */
.st-lessons-wrap { width: 100%; max-width: calc(var(--space-80) * 7); display: flex; flex-direction: column; align-items: center; gap: var(--space-24); padding: var(--space-32) var(--space-24); box-sizing: border-box; border-radius: var(--radius-lg); background: var(--brand-1); }
.st-lessons-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.st-lessons-head h2 { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); font-weight: var(--type-heading-md-weight); }
.st-lessons { list-style: none; margin: 0; padding: 0; width: 100%; text-align: left; }
.st-lessons li + li { border-top: 1px solid var(--border-tertiary-soft); }
.st-lesson {
  display: flex; align-items: center; gap: var(--space-24); width: 100%; min-height: 88px;
  padding: var(--space-16) 0; box-sizing: border-box;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.st-lesson:focus-visible { outline: 2px solid var(--border-selected); outline-offset: 2px; border-radius: var(--radius-sm); }
.st-num { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.st-num::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-full); border: 2px solid var(--border-tertiary-soft); background: var(--neutral-0); box-sizing: border-box; }
.st-num span { position: relative; font-family: var(--font-heading); font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); color: var(--text-tertiary); }
.st-num img { position: absolute; }
.st-num .ring { width: 44px; height: 44px; left: -2px; top: -2px; }
.st-num .halo-in { width: 56px; height: 56px; left: -8px; top: -8px; }
.st-num .halo-out { width: 64px; height: 64px; left: -12px; top: -12px; }
.st-lesson.is-pick .st-num::before { display: none; }
.st-lesson.is-pick .st-num span { color: var(--text-primary); }
/* Cueme's lesson: the halo breathes out from the number, so the eye finds where to start (no "Start here" label) */
.st-lesson.is-pick .st-num .halo-out, .st-lesson.is-pick .st-num .halo-in { transform-origin: center; animation: st-halo 1.8s var(--bot-ease) infinite; }
.st-lesson.is-pick .st-num .halo-in { animation-delay: 0.15s; }
@keyframes st-halo { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.16; opacity: 0.45; } }
li.is-started .st-num img { animation: none; }
@media (prefers-reduced-motion: reduce) { .st-lesson.is-pick .st-num img { animation: none; } }
.st-lesson .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.st-lesson .name { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); color: var(--text-secondary); }
.st-lesson.is-pick .name { color: var(--text-primary); }
.st-lesson .sub { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-secondary); }
.st-lesson .st-pick { font-family: var(--type-label-sm-font); font-size: var(--type-label-sm-size); line-height: var(--type-label-sm-lh); font-weight: var(--type-label-sm-weight); }
.st-go { flex: none; display: grid; place-items: center; width: var(--space-32); height: var(--space-32); border-radius: var(--radius-sm); border: 1px solid var(--border-selected); background: var(--neutral-0); }
.st-go img { width: var(--space-16); height: var(--space-16); }
.st-lessons.has-pick .st-lesson:not(.is-pick) { opacity: 0.7; }
.st-lessons .is-started .st-pick { color: var(--success-7); }
div.st-lesson { cursor: default; }
.st-start { flex: none; }
.st-how { margin: 0; color: var(--text-secondary); text-align: center; max-width: calc(var(--space-80) * 5); }
.st-how b { font-family: var(--type-label-sm-font); font-weight: var(--type-label-sm-weight); color: var(--text-primary); }

/* Topic map: where a topic is taught, a small book per grade. */
.st-topic { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); width: 100%; }
.st-ladder { display: flex; justify-content: center; gap: var(--space-16); flex-wrap: wrap; }
.st-rung { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); width: calc(var(--space-80) * 2.4); text-align: center; }
.st-rung .st-book-art { --book-scale: 0.8; filter: none; }
.st-rung .hit { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-secondary); }
.st-rung .hit b { font-family: var(--type-label-sm-font); font-weight: var(--type-label-sm-weight); color: var(--text-primary); }
.st-rung.is-own .badge { visibility: visible; }
.st-rung .badge { visibility: hidden; }

/* Started */

/* ── Opening a lesson or activity: one centred card in the screen area. ── */
.st-state {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-12);
  width: 100%; max-width: calc(var(--space-80) * 5); margin: var(--space-64) auto; padding: var(--space-32) var(--space-24); box-sizing: border-box;
  border-radius: var(--radius-lg); background: var(--neutral-0); border: 1px solid var(--border-tertiary-soft); text-align: center;
  animation: st-rise var(--st-spring-ms) var(--st-spring) both;
}
.st-state h2 { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); font-weight: var(--type-heading-md-weight); }
.st-state p { margin: 0; color: var(--text-secondary); }
.st-state .progress { width: 100%; max-width: calc(var(--space-80) * 3); margin-top: var(--space-8); }
.st-state-note { min-height: var(--type-body-sm-lh); }

/* ── A failure: the error mark on Cueme's top-right corner (it lives in Cueme's SVG, so it moves with Cueme). ── */
.cueme-bot__err { display: none; transform-box: fill-box; transform-origin: center; }
.cueme-bot__err circle { fill: var(--error-5); stroke: var(--text-primary); stroke-width: 1; }
.cueme-bot__err rect, .cueme-bot__err .dot { fill: var(--text-primary); stroke: none; }
.st-app[data-fail] .cueme-bot__err { display: inline; animation: st-mark-in var(--st-spring-ms) var(--st-spring) both; }
/* X eyes: every other face frame steps aside */
.st-app[data-fail] .cueme-bot__face > g { opacity: 0 !important; animation: none !important; }
.st-app[data-fail] .cueme-bot__face > g.f-x { opacity: 1 !important; }
.cueme-bot__face > g.f-x > * { stroke-linejoin: round; }
@keyframes st-mark-in { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .st-app[data-fail] .cueme-bot__err { animation: none; } }

/* ── Edge glow: blue light round the screen for a few seconds when Cueme lands on the lesson (after oryzo.ai).
   stage.js draws the feathered, rounded mask on a canvas. ── */
@property --glow-angle { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.st-glow {
  --glow-band: var(--space-8); --glow-feather: var(--space-32); --glow-radius: var(--space-40);
  position: fixed; inset: 0; pointer-events: none; z-index: var(--z-overlay); opacity: 0; --glow-angle: 0deg;
  background: conic-gradient(from var(--glow-angle) at 50% 50%, var(--info-4), var(--info-7), var(--info-9), var(--info-5), var(--info-3), var(--info-8), var(--info-4));
  -webkit-mask-image: var(--glow-mask); -webkit-mask-size: 100% 100%;
          mask-image: var(--glow-mask);         mask-size: 100% 100%;
}
.st-glow.is-gold { background: conic-gradient(from var(--glow-angle) at 50% 50%, var(--brand-4), var(--brand-7), var(--brand-9), var(--brand-5), var(--brand-3), var(--brand-8), var(--brand-4)); }
.st-glow.is-on { animation: st-glow-life 3600ms var(--ease-in-out) both, st-glow-spin 3600ms linear both; }
@keyframes st-glow-life { 0% { opacity: 0; } 20% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes st-glow-spin { from { --glow-angle: 0deg; } to { --glow-angle: 300deg; } }

/* Their last reply: a quiet bubble above Cueme's answer to it. */
.st-you {
  display: inline-flex; align-items: baseline; gap: var(--space-8); margin: 0; max-width: calc(var(--space-80) * 7);
  padding: var(--space-8) var(--space-16); border-radius: var(--radius-lg); background: var(--neutral-3); /* a step darker than the page (neutral-2) */
  font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); color: var(--text-primary); text-align: left;
  animation: st-rise var(--st-spring-ms) var(--st-spring) both;
}
.st-you { transition: opacity 120ms linear; }
/* ?one_column (Aayushmaan, 2026-10-23): the answer it came from, in the same shape as the answer buttons */
.st-app[data-one-col] .st-you { border-radius: var(--radius-md); }
/* The flying copy of a tapped answer (stage.js flyToYou). */
.st-ghost { z-index: var(--z-overlay); pointer-events: none; box-sizing: border-box; overflow: hidden; white-space: nowrap; }

/* ── Composer ─────────────────────────────────────────────────────── */
/* The input: its own part, under the heading and its answers. */
.st-composer { width: 100%; max-width: calc(var(--space-80) * 7); margin-top: var(--space-24); /* 48 above in all, with the gap: the input is its own part */ transition: opacity 260ms var(--bot-ease), transform 260ms var(--bot-ease); }
.st-composer.is-in { animation: st-fade 420ms var(--bot-ease-out) both; }
/* On the single screen the input sits at the bottom of the page, out of the content's way; the page leaves room for it.
   (On the split screens it's at the bottom of the left panel.) */
.st-app:not([data-layout="split"]) .st-composer {
  position: absolute; left: 50%; bottom: var(--space-24); translate: -50% 0; margin: 0;
  width: min(calc(100% - var(--space-32)), calc(var(--space-80) * 7));
}
.st-app:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-64) + var(--space-48)); }

.st-input-row { display: flex; align-items: flex-start; gap: var(--space-8); margin: 0; }

.st-field { flex: 1; min-width: 0; }

/* ── Narrow screens ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* no 30:70 below 901px: on every screen the input sits at the bottom of the page, the content scrolls above it */
  .st-app .st-composer {
    position: absolute; left: 50%; bottom: var(--space-24); translate: -50% 0; margin: 0;
    width: min(calc(100% - var(--space-32)), calc(var(--space-80) * 7));
  }
  .st-app .st-main { padding-bottom: calc(var(--space-64) + var(--space-48)); }
  .st-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-offers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Phone: the top bar keeps its own row (Back left, the speaker right) so it never sits on Cueme */
  .st-top { padding: var(--space-12) var(--space-16); background: var(--neutral-2); } /* the page colour */
  .st-main { padding: calc(var(--space-64) + var(--space-4)) var(--space-16) var(--space-16); }
  .st-app .st-main { padding-bottom: calc(var(--space-80) + var(--space-40)); }
  .st-question { font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); }
  .st-center, .st-chat { gap: var(--space-16); }
  .st-reply-row .btn { max-width: 100%; white-space: normal; }
  /* the book's facts under each of two books: smaller type, so the counts fit side by side */
  .pk-pair .st-book-name { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
  .pk-pair .st-use { font-size: var(--type-label-sm-size); }
  /* the chapter nudge stays inside the card's width */
  .st-tiles, .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-plans { flex-direction: column; align-items: stretch; }
  .st-plan { width: auto; }
  .st-lead { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); }
  .st-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-book-art { --book-scale: 1.2; }
  .st-book-row { gap: var(--space-20); }
  .st-lessons-wrap { padding: var(--space-20) var(--space-16); }
  .st-lesson { gap: var(--space-16); }
  .st-app[data-size="lg"] .cueme-bot { --bot-size: 112px; }
  .st-app[data-size="md"] .cueme-bot { --bot-size: 80px; }
  .st-app[data-size="sm"] .cueme-bot { --bot-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-say, .st-answers, .st-show, .st-app .cueme-bot, .st-offer-card, .st-chapter { transition: none; }
  .st-you { animation: none; }
  .st-show > *, .st-chapter, .st-book-art.is-new, .st-answers .btn, .st-offer-card, .st-offers-other { animation: none; }
  .st-question.is-in, .st-lead.is-in, .st-answers .st-continue, .st-composer.is-in { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
  .st-glow.is-on { animation: st-glow-life 2400ms var(--ease-in-out) both; }
}


/* ── v4's screens, the Stage's way ─────────────────────────────────── */
/* Answers: a group label between rows ("or the school's own curriculum"), and the picked pill */
.st-answers-note { margin: 0; color: var(--text-tertiary); }
.st-answers .btn.is-on { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }

/* Test Prep: the tests, grouped, as tiles */
.st-tests { width: 100%; display: flex; flex-direction: column; gap: var(--space-24); text-align: left; }
.st-tests section { display: flex; flex-direction: column; gap: var(--space-8); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-80) * 2), 1fr)); gap: var(--space-12); }
.st-tile, .st-plan, .st-acard {
  display: flex; flex-direction: column; gap: var(--space-4); text-align: left; cursor: pointer; font: inherit; color: var(--text-primary);
  background: var(--neutral-0); border: 1px solid var(--border-tertiary-soft); border-radius: var(--radius-lg); padding: var(--space-16);
  animation: st-rise var(--st-spring-ms) var(--st-spring) both;
  transition: border-color 200ms var(--bot-ease), translate 200ms var(--bot-ease);
}
@media (hover: hover) { .st-tile:hover, .st-plan:hover, .st-acard:hover { border-color: var(--border-secondary); translate: 0 calc(var(--space-2) * -1); } }
.st-tile .name, .st-acard .name { font-family: var(--font-heading); font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); }
.st-tile .sub, .st-acard .sub { color: var(--text-secondary); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); }
.st-tile .badge { align-self: flex-start; margin-top: var(--space-4); }
.st-tile.is-dim { opacity: 0.55; }

/* Enrichment's weekly time: three cards, one picked, then Continue */
.st-plans { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-12); }
.st-plan { width: calc(var(--space-80) * 2.2); gap: var(--space-8); }
.st-plan .mins { font-family: var(--font-heading); font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); }
.st-plan .row { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: var(--type-body-sm-size); }
.st-plan .row b { color: var(--text-primary); }
.st-plan.is-pick { border-color: var(--success-6); background: var(--success-1); }
.st-cta { display: flex; justify-content: center; margin-top: var(--space-20); }
.st-cta.is-left { justify-content: flex-start; }

/* The book proposal: two books stand side by side */
.st-books { width: 100%; display: flex; gap: var(--space-24); }
.st-books > .st-picker-host { flex: 1 1 0; min-width: 0; }

/* Content screens' heads (the Test Prep plan, the Enrichment shelf) */
.st-plan-head { display: flex; align-items: center; gap: var(--space-20); width: 100%; text-align: left; margin-bottom: var(--space-20); }
.st-plan-title { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.st-plan-head h2 { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); font-weight: var(--type-heading-md-weight); }
.st-plan-count { margin: 0; font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); color: var(--text-secondary); }
/* the test's facts: one strip, label over value, a hairline between them */
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-80) * 1.5), 1fr)); width: 100%; margin: 0 0 var(--space-24); padding: var(--space-16) 0; box-sizing: border-box; border-radius: var(--radius-md); background: var(--neutral-0); border: 1px solid var(--border-tertiary-soft); text-align: left; }
.st-fact { display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-20); min-width: 0; }
.st-fact + .st-fact { border-left: 1px solid var(--border-tertiary-soft); }
.st-fact dt { font-size: var(--type-label-sm-size); line-height: var(--type-label-sm-lh); font-weight: var(--type-label-sm-weight); color: var(--text-tertiary); }
.st-fact dd { margin: 0; font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); color: var(--text-primary); }
.st-weekly { margin: var(--space-4) 0 0; color: var(--text-secondary); }

/* Lessons: back link, a link to Cueme's pick, group labels (Test Prep), the dimmed list under a started card */
.st-back { align-self: flex-start; margin-bottom: var(--space-16); gap: var(--space-8); }
.st-back-icon { flex: none; }
.st-pick-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); width: 100%; margin-bottom: var(--space-16);
  padding: var(--space-12) var(--space-16); border-radius: var(--radius-lg); border: 1px solid var(--success-4); background: var(--success-1);
  font: inherit; color: var(--text-primary); text-align: left; cursor: pointer;
}
.st-group { list-style: none; color: var(--text-tertiary); padding: var(--space-12) 0 var(--space-4); }
.st-lessons-wrap.is-dim, .st-activity.is-dim { opacity: 0.55; pointer-events: none; }

/* Enrichment: tabs by kind, a card per activity, one activity with Play */
.st-shelf { width: 100%; text-align: left; }
.st-tabs { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-bottom: var(--space-16); }
.st-tabs .btn.is-on { background: var(--neutral-13); color: var(--text-inverse-primary); border-color: var(--neutral-13); }
.st-n { color: inherit; opacity: 0.6; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-80) * 2.4), 1fr)); gap: var(--space-12); }
.st-acard { padding: 0; overflow: hidden; }
.st-acard .th { display: block; aspect-ratio: 2 / 1; background: var(--purple-accent-1) center / cover no-repeat; position: relative; }
.st-acard .th .badge { position: absolute; left: var(--space-8); top: var(--space-8); text-transform: capitalize; }
.st-acard .name, .st-acard .sub { padding: 0 var(--space-16); }
.st-acard .name { padding-top: var(--space-12); }
.st-acard .sub { padding-bottom: var(--space-16); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-empty { color: var(--text-secondary); }
.st-activity { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-32); text-align: left; align-items: start; }
.st-activity .th { aspect-ratio: 2 / 1; /* the thumbnails are 780 by 390: the whole picture, nothing cropped */ width: 100%; border-radius: var(--radius-lg); background: var(--purple-accent-1) center / cover no-repeat; }
.st-activity .body { display: flex; flex-direction: column; gap: var(--space-8); }
.st-activity h2 { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); font-weight: var(--type-heading-md-weight); }
.st-activity p { margin: 0; }
.st-out { color: var(--text-secondary); }
.st-out b { color: var(--text-primary); }
@media (max-width: 900px) { .st-activity { grid-template-columns: 1fr; } .st-books { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .st-tile, .st-plan, .st-acard { animation: none; transition: none; } }

/* Two books to choose between: the facts sit under each book */
.pk-pair .pk-facts-pair { width: calc(var(--space-80) * 3.5); }

/* The book's level isn't on its cover (the levels under the stack say it, in words they can tap) */
.pk-book .level { display: none; }

/* Back sits top left; on the split screens the panel starts below it */
@media (min-width: 901px) { .st-app[data-layout="split"] .st-chat { padding-top: calc(var(--space-48) + var(--space-40)); } }

/* Cueme's pick on the chapter grid: a small Cueme with a speech bubble, bobbing just above the chapter */
.st-chapters.has-pick { padding-top: var(--space-48); }
.st-nudge {
  position: absolute; left: 50%; bottom: calc(100% - var(--space-12)); translate: -50% 0; z-index: var(--z-raised);
  display: flex; align-items: center; gap: var(--space-4); white-space: nowrap; pointer-events: none;
  animation: st-nudge-bob 1.6s var(--bot-ease) infinite;
}
.st-nudge-bot { --bot-size: var(--space-40); flex: none; }
.st-nudge-say {
  padding: var(--space-4) var(--space-12); border-radius: var(--radius-full);
  background: var(--neutral-13); color: var(--text-inverse-primary);
  font-size: var(--type-label-sm-size); line-height: var(--type-label-sm-lh); font-weight: var(--type-label-sm-weight);
}
@keyframes st-nudge-bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% calc(var(--space-4) * -1); } }
@media (prefers-reduced-motion: reduce) { .st-nudge { animation: none; } }

/* Voice: the mic is the input's trailing icon (CueDesign input, .cm-field-icon-toggle; Aayushmaan 2026-10-14). The
   speaker toggle is a small icon in the top bar (the sound waves show when on, a cross when off). */
/* The input's trailing icon is only 18px: an invisible circle 8 out on every side makes it a 34px tap target inside the
   field. While it listens the icon turns to the brand-filled mic (Figma App Growth 96:4111); the blue light along the
   bottom also says it's listening. */
.st-mic { position: absolute; border-radius: var(--radius-full); }
.st-mic::before { content: ''; position: absolute; inset: calc(var(--space-8) * -1); z-index: -1; border-radius: var(--radius-full); background: transparent; transition: background-color 200ms var(--bot-ease); }
.st-mic .st-mic-on, .st-mic.listening .st-mic-off { display: none; }
.st-mic.listening .st-mic-on { display: block; } /* the brand-filled mic while it listens (Figma 96:4111) */
.st-speaker .mute { display: none; }
.st-speaker[aria-pressed="false"] .waves { display: none; }
.st-speaker[aria-pressed="false"] .mute { display: inline; }
.st-voice-hint { margin: var(--space-8) 0 0; min-height: var(--type-body-sm-lh); color: var(--text-tertiary); text-align: center; }
.st-voice-hint:empty { visibility: hidden; }

/* The book opening into its chapters (stage.js startBookOpen): the inside page under a cover that swings open from the
   spine, flown from the book on screen to the right panel. */
.st-bookopen {
  position: fixed; z-index: var(--z-overlay); pointer-events: none; perspective: 1800px; view-transition-name: st-bookopen;
  border-radius: var(--radius-sm); --book-a: var(--brand-5); --book-b: var(--brand-7);
}
.st-bookopen[data-band="k2"] { --book-a: var(--purple-accent-5); --book-b: var(--purple-accent-7); }
.st-bookopen[data-band="g6"] { --book-a: var(--info-5); --book-b: var(--info-7); }
.st-bookopen[data-band="g9"] { --book-a: var(--success-5); --book-b: var(--success-7); }
.st-bookopen .page { position: absolute; inset: 0; border-radius: inherit; }
.st-bookopen .cover {
  position: absolute; inset: 0; border-radius: inherit; background: var(--book-a);
  transform-origin: left center; backface-visibility: hidden; transform-style: preserve-3d;
  border: 1px solid var(--border-tertiary-soft);
}
.st-bookopen .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: var(--book-b); border-radius: inherit; }
.st-bookopen .title {
  position: absolute; left: 14%; top: 10%; right: 8%;
  font-family: var(--type-label-md-font); font-size: var(--type-label-md-size); line-height: var(--type-label-md-lh); font-weight: var(--type-label-md-weight); color: var(--text-primary);
}

/* Inside the book: on the School Math content screens the right panel keeps the book's spine down its left edge */
@media (min-width: 901px) {
  .st-app[data-band="k2"] { --spine: var(--purple-accent-7); }
  .st-app[data-band="g3"] { --spine: var(--brand-7); }
  .st-app[data-band="g6"] { --spine: var(--info-7); }
  .st-app[data-band="g9"] { --spine: var(--success-7); }
}

/* Two books: each one's "Use" button sits right under it, with its facts */
.pk-facts-pair .st-use { pointer-events: auto; margin-top: var(--space-4); }

/* Phone, last so it wins over the screens' own grids above: two tiles or cards a row, the weekly cards stacked */
@media (max-width: 640px) {
  .st-tiles, .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .st-acard .name, .st-tile .name { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); }
  .st-plans { flex-direction: column; align-items: stretch; }
  .st-plan { width: auto; }
}

/* Enrichment's weekly time (v4-005): a short guide to the three kinds over the cards */
.st-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); margin-bottom: var(--space-20); }
.st-kind { display: flex; flex-direction: column; gap: var(--space-2); max-width: calc(var(--space-80) * 2.6); padding: var(--space-12) var(--space-16); border-radius: var(--radius-lg); background: var(--neutral-0); border: 1px solid var(--border-tertiary-soft); text-align: left; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-secondary); }
.st-kind b { color: var(--text-primary); }

/* The Enrichment shelf (v4-005): a row per kind, the one they enjoy first; Cueme's pick lit with its nudge */
.st-kind-row { margin-bottom: var(--space-24); padding: var(--space-16); border-radius: var(--radius-lg); }
.st-kind-row.is-hl { background: var(--info-1); }
.st-kind-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-12); margin-bottom: var(--space-12); }
.st-kind-head h3 { margin: 0; display: flex; align-items: center; gap: var(--space-8); font-family: var(--font-heading); font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); }
.st-kind-head p { margin: var(--space-2) 0 0; color: var(--text-secondary); }
.st-acard { position: relative; overflow: visible; }
.st-acard .th { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.st-acard.is-pick { border-color: var(--success-6); background: var(--success-1); }
.st-cards:has(.is-pick) { padding-top: calc(var(--space-64) + var(--space-8)); } /* room for the nudge (72px tall) above the pick, clear of the row's subtitle */

/* ── Home fits without a scroll: the question runs as wide as the cards, and on a short screen (a laptop, ~660px tall)
   Cueme, the heading and the top margin shrink so Cueme, the question, the three cards and the input fit together. ── */
.st-app[data-scene="home"] .st-say { max-width: calc(var(--space-80) * 13); }
@media (min-width: 901px) and (max-height: 820px) {
  .st-app:not([data-layout="split"]) .st-main { padding-top: var(--space-24); padding-bottom: calc(var(--space-80) + var(--space-8)); }
  .st-app:not([data-layout="split"]) .st-composer { bottom: var(--space-16); }
  .st-app:not([data-layout="split"]) .st-center, .st-app:not([data-layout="split"]) .st-chat { gap: var(--space-16); }
  .st-app[data-size="md"] .cueme-bot { --bot-size: 72px; }
  .st-app:not([data-layout="split"]) .st-question { font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); }
  .st-offer-card { padding: var(--space-16); gap: var(--space-4); }
  .st-offer-icon { width: var(--space-40); height: var(--space-40); }
  .st-offer-icon svg, .st-offer-icon img { width: var(--space-24); height: var(--space-24); }
  .st-offer-card p { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
  .st-app[data-scene="home"] .st-show { padding-bottom: var(--space-4); }
  .st-offers-wrap { gap: var(--space-8); }
}
.st-app[data-scene="home"] .st-center { max-width: calc(var(--space-80) * 13); }

/* The book screen's question runs as wide as the page allows, so a long one takes fewer lines and leaves the books room;
   two books' facts are a step smaller than one book's. */
.st-app[data-scene="sm_book"] .st-say { max-width: calc(var(--space-80) * 11); }
.pk-pair .st-book-name { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); }
.pk-pair .st-book-facts { gap: var(--space-4); }
/* On a phone there isn't room to fit a long question and the books on one screen: the book screen scrolls instead
   (above the input, which stays pinned), and the books keep a fixed box. */
@media (max-width: 900px) {
  .st-app[data-scene="sm_book"] .st-main { overflow-y: auto; }
  .st-app[data-scene="sm_book"] .st-center { height: auto; min-height: 100%; align-self: flex-start; } /* grows past the screen, so it scrolls instead of being cut at the top */
  .st-app[data-scene="sm_book"] .st-show { flex: none; }
  .st-app[data-scene="sm_book"] .pk { height: calc(var(--space-80) * 4.5); }
}

/* ── Test Prep's tests as books: a shelf per kind of test, each kind its own colour. A book is light until it's
   hovered; then it takes its full colour, a dark outline and lifts (the same dark stroke as a hovered chapter). ── */
.st-shelf-title { margin: 0; font-family: var(--font-heading); font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight); color: var(--text-secondary); }
.st-testbooks { display: flex; flex-wrap: wrap; gap: var(--space-20) var(--space-24); }
.st-testbook {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; animation: st-rise var(--st-spring-ms) var(--st-spring) both;
}
.st-testbook .st-book-art { --book-scale: 1; filter: none; transition: translate 200ms var(--bot-ease); }
.st-testbook.is-dim { opacity: 0.55; }
.st-testbook:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); border-radius: var(--radius-sm); }
.st-book[data-tone] .cover path:last-child { color: var(--border-primary-soft); transition: color 200ms var(--bot-ease); }
.st-book[data-tone="brand"]   { --book-a: var(--brand-3); --book-b: var(--brand-5); --book-a-on: var(--brand-5); --book-b-on: var(--brand-7); }
.st-book[data-tone="success"] { --book-a: var(--success-3); --book-b: var(--success-5); --book-a-on: var(--success-5); --book-b-on: var(--success-7); }
.st-book[data-tone="purple"]  { --book-a: var(--purple-accent-3); --book-b: var(--purple-accent-5); --book-a-on: var(--purple-accent-5); --book-b-on: var(--purple-accent-7); }
.st-book[data-tone="error"]   { --book-a: var(--error-3); --book-b: var(--error-5); --book-a-on: var(--error-5); --book-b-on: var(--error-7); }
.st-book[data-tone="info"]    { --book-a: var(--info-3); --book-b: var(--info-5); --book-a-on: var(--info-5); --book-b-on: var(--info-7); }
.st-book[data-tone="warning"] { --book-a: var(--warning-3); --book-b: var(--warning-5); --book-a-on: var(--warning-5); --book-b-on: var(--warning-7); }
.st-book[data-tone] .cover path:first-child, .st-book[data-tone] .spine { transition: fill 200ms var(--bot-ease), background-color 200ms var(--bot-ease); }

/* the plan's own book (the test they picked) sits beside its name, in full colour */
.st-book-art.is-small { --book-scale: 0.6; filter: none; }
.st-book-art.is-small .st-book { --book-a: var(--book-a-on); --book-b: var(--book-b-on); }
@media (prefers-reduced-motion: reduce) { .st-testbook { animation: none; } .st-testbook .st-book-art { transition: none; } }
@media (max-width: 640px) {
  .st-testbooks { gap: var(--space-16); }
  .st-testbook .st-book-art { --book-scale: 0.85; }
  .st-plan-head { gap: var(--space-12); }
}
span.st-book-art, span.st-book, .st-book span.title { display: block; } /* the book drawn inside a button is spans */
/* short shelves sit side by side, so the tests take fewer rows */
/* The right panel scrolls under the top-right control (the speaker): it sits on a chip of the page colour, so
   scrolled chapters never show through it. No control showing, no chip. */
.st-top-right:not(:has(> :not([hidden]))) { display: none; }
.st-app[data-layout="split"] .st-top-right { background: var(--neutral-2); border-radius: var(--radius-full); padding: var(--space-4); margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) calc(var(--space-4) * -1) auto; }
.st-app[data-layout="split"][data-scene="sm_lessons"] .st-top-right,
.st-app[data-layout="split"][data-scene="tp_chapter"] .st-top-right,
.st-app[data-layout="split"][data-scene="start"] .st-top-right { background: var(--brand-1); }
/* On a smaller laptop 30% is too narrow for the input (its label was cut): the panel keeps at least 340px and
   tighter side padding. */
@media (min-width: 901px) and (max-width: 1199px) {
  .st-app[data-layout="split"] .st-chat { flex-basis: max(30%, calc(var(--space-80) * 4.25)); padding-inline: var(--space-24); }
}
/* the shelves sit on the page's centre line, under the question (each shelf's title stays left over its books) */
/* one kind of test: its shelf title, books and captions all sit on the centre line, under the question */
/* Under the book stack, the facts read like the test books' captions (small, grey): the book stays the hero and the
   counts don't compete with the question. One or two books, any screen. */
.st-app .pk-facts .st-book-name { font-family: var(--font-body); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); font-weight: var(--type-body-sm-weight); color: var(--text-secondary); }

/* ── Enrichment's weekly plan (design ref 2026-10-06): the three kinds in a row with hairlines between, each an icon,
   its name and what it is, centred; then the plans, minutes on top and a row per kind (icon, name, count). A plan
   picks up the purple tint and a dark outline on hover, the way a chosen one looks in the reference. ── */
.st-kinds { flex-wrap: nowrap; gap: 0; width: 100%; margin-bottom: var(--space-32); }
.st-kind { flex: 1 1 0; max-width: none; align-items: center; gap: var(--space-4); padding: 0 var(--space-20); border: 0; border-radius: 0; background: none; text-align: center; font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
.st-kind + .st-kind { border-left: 1px solid var(--border-tertiary-soft); }
.st-kind-icon { display: inline-flex; margin-bottom: var(--space-8); color: var(--text-primary); --cm-icon-fill: var(--purple-accent-5); }
.st-kind-icon svg { width: var(--space-40); height: var(--space-40); }
.st-kind b { font-family: var(--type-label-lg-font); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); font-weight: var(--type-label-lg-weight); }
.st-plans { gap: var(--space-16); width: 100%; flex-wrap: nowrap; }
.st-plan { flex: 1 1 0; width: auto; gap: var(--space-12); padding: var(--space-20) var(--space-24); }
.st-plan .mins { align-self: center; margin-bottom: var(--space-4); font-size: var(--type-heading-md-size); line-height: var(--type-heading-md-lh); color: var(--text-primary); }
.st-plan .row { align-items: center; font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); color: var(--text-primary); }
.st-plan .row .what { display: inline-flex; align-items: center; gap: var(--space-8); }
.st-plan .row svg { width: var(--space-20); height: var(--space-20); flex: none; }
.st-plan .row b { font-family: var(--type-label-md-font); font-weight: var(--type-label-md-weight); } /* the row is body-md */
@media (hover: hover) { .st-plan:hover { background: var(--purple-accent-1); border-color: var(--border-selected); } }
.st-plan.is-pick { background: var(--purple-accent-1); border-color: var(--border-selected); }
/* a phone keeps the three kinds side by side, smaller, so the plans (the choice) stay in view */
@media (max-width: 640px) {
  .st-kinds { margin-bottom: var(--space-20); }
  .st-kind { padding: 0 var(--space-8); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); }
  .st-kind-icon { margin-bottom: var(--space-4); }
  .st-kind-icon svg { width: var(--space-32); height: var(--space-32); }
  .st-kind b { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
  .st-plans { flex-direction: column; gap: var(--space-8); }
  .st-plan { gap: var(--space-8); padding: var(--space-16) var(--space-20); }
  .st-plan .mins { font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); margin-bottom: 0; }
}

/* ── The Enrichment shelf, matched to app.cuemath.com/enrichment (2026-10-06): sections 40 apart, header 12 above its
   cards. Header: the kind's icon (28, purple fill) and name (heading-sm; heading-xs when narrow); the app's "0/3 done"
   and its bar are left out (Aayushmaan, 2026-10-06). Cards: three to a row, neutral-1 on the
   neutral-2 page, 16 padding, radius-md; picture 2:1, radius-sm, purple-accent-3 behind it; title body-lg medium on
   one line, description body-md secondary on two. Hover: purple-accent-1 and a soft dark border. Arrows: 40px circles
   on the row's edge, half outside. ── */
.st-app[data-layout="split"][data-scene="en_shelf"] .st-show { background: var(--neutral-2); }
.st-app[data-layout="split"][data-scene="en_shelf"] .st-top-right { background: var(--neutral-2); }
.st-shelf { display: flex; flex-direction: column; gap: var(--space-40); }
.st-kind-row { display: flex; flex-direction: column; gap: var(--space-12); margin: 0; padding: 0; border-radius: 0; background: none; }
.st-kind-row.is-hl { background: none; }
.st-kind-head { align-items: center; gap: var(--space-8); margin: 0; }
.st-kind-head h3 { gap: var(--space-8); min-width: 0; font-family: var(--font-heading); font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); font-weight: var(--type-heading-sm-weight); color: var(--text-primary); }
.st-kind-head .st-kind-icon { margin: 0; flex: none; color: var(--text-primary); --cm-icon-fill: var(--purple-accent-5); }
.st-kind-head .st-kind-icon svg { width: calc(var(--space-24) + var(--space-4)); height: calc(var(--space-24) + var(--space-4)); }

.st-carousel { position: relative; contain: inline-size; } /* its cards never widen the page (they slide inside it) */
.st-carousel .st-cards {
  display: flex; gap: var(--space-12); padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.st-carousel .st-cards::-webkit-scrollbar { display: none; }
.st-carousel .st-cards:has(.is-pick) { padding-top: calc(var(--space-64) + var(--space-8)); } /* room for the nudge above Cueme's pick */
.st-carousel .st-acard { flex: 0 0 calc((100% - 2 * var(--space-12)) / 3); min-width: calc(var(--space-80) * 2.5); scroll-snap-align: start; }
.st-cards.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-80) * 2.5), 1fr)); gap: var(--space-12); }
.st-acard {
  display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-16); border-radius: var(--radius-md);
  background: var(--neutral-1); border: 1px solid transparent; text-align: left; overflow: visible;
  transition: background-color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default);
}
.st-acard .th { display: block; width: 100%; aspect-ratio: 2 / 1; margin: 0; border-radius: var(--radius-sm); background: var(--purple-accent-3) center / cover no-repeat; }
.st-acard .name, .st-acard .sub { padding: 0; }
.st-acard .name { display: block; margin-bottom: calc(var(--space-12) * -1 + var(--space-2)); font-family: var(--type-label-lg-font); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); font-weight: var(--type-label-lg-weight); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-acard .sub { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); color: var(--text-secondary); min-height: calc(var(--type-body-md-lh) * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .st-acard:hover { background: var(--purple-accent-1); border-color: var(--border-primary-soft); translate: none; } }
.st-acard.is-pick { background: var(--purple-accent-1); border-color: var(--border-primary-soft); } /* Cueme's pick wears the hover look */
.st-seeall { align-items: center; justify-content: center; flex-direction: row; gap: var(--space-8); font-family: var(--type-label-lg-font); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); font-weight: var(--type-label-lg-weight); color: var(--text-primary); }
.st-car-btn {
  position: absolute; top: 50%; translate: 50% -50%; right: 0; z-index: var(--z-raised); display: flex; align-items: center; justify-content: center;
  width: var(--space-40); height: var(--space-40); padding: 0; border-radius: var(--radius-full);
  background: var(--neutral-0); border: 1px solid var(--border-selected); color: var(--text-primary); cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-default);
}
.st-car-btn:hover { background: var(--neutral-1); }
.st-car-btn img { width: calc(var(--space-16) + var(--space-2)); height: calc(var(--space-16) + var(--space-2)); }
.st-car-btn.is-prev { right: auto; left: 0; translate: -50% -50%; }
.st-car-btn.is-prev img { transform: scaleX(-1); }
.st-car-btn[hidden] { display: none; }
.st-car-btn:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
/* narrow (as the app below its xl breakpoint): heading-xs, no bar */
@media (max-width: 640px) {
  .st-kind-head h3 { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); }
  .st-carousel .st-acard { flex-basis: 80%; min-width: 0; }
  .st-car-btn { display: none; }
}
/* Readability (Aayushmaan, 2026-10-06): shelf titles heading-sm (20px); the School Math book's facts body-md (14px).
   (The grade line under each test book was removed on 2026-10-07: the screen only lists tests for their grade.) */
.st-shelf-title { font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); }
.st-app .pk-facts .st-book-name { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
/* School Math's two books are choices like the test books: hovered (or their Use button), the book lifts and takes a
   dark outline; tapping it is "Use". */
.pk-book.is-choice { cursor: pointer; }
.pk-book.is-choice:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }

/* The nudge's bubble stays on one line everywhere (Aayushmaan, 2026-10-06); fitNudge() keeps it inside the screen. */
.st-nudge-say { white-space: nowrap; }

/* The loader's bar: the CueDesign indeterminate sweep animates transform, which drops the bar's own translateY(-50%),
   so the bar ran below the rail. Here the sweep keeps it centred on the line. (The bundle's progress-indet keyframes
   need the same fix.) */
/* Smooth, back and forth (Aayushmaan, 2026-10-08: the sweep off the end and jump back was abrupt): the bar glides from the
   left end of the rail to the right end and back, easing at each end, never leaving the rail. */
.st-state .progress-indet .progress-bar { animation: st-indet 1.4s var(--ease-in-out) infinite alternate; }
@keyframes st-indet { 0% { transform: translate(0, -50%); } 100% { transform: translate(150%, -50%); } }
/* the nudge sits above Cueme's pick in the gap between rows: with a pick, the rows leave it room (48px), so it never
   covers the title of the card above */
.st-chapters.has-pick { row-gap: calc(var(--space-40) + var(--space-8)); }

/* ── Book hover (design ref select-test-interactive, 2026-10-06), for the test books and School Math's two books.
   Every book has a page block under its cover (the "leaf": cover + title), the spine fixed on top. Hover: the book
   grows 5% and the cover swings open 8° from the spine, showing the pages, with a soft shadow, a light sheen and a
   darker outline. Tapped: it closes, takes its full colour (the spine a step darker), a dark outline, and lifts. ── */
/* the page block is the book's full size (as the cover and the page edges), under them all, so an open cover shows
   whole pages, never a strip cut short at the top and bottom */
.st-book .pages, .pk-book .pages {
  position: absolute; left: 0; top: 0; z-index: -1; width: 108px; height: 128px; box-sizing: border-box;
  border: 1px solid var(--border-secondary-soft); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(90deg, var(--neutral-0) 0 86%, var(--border-tertiary-soft) 86% 87.5%, var(--neutral-0) 87.5% 90%, var(--border-secondary-soft) 90% 91%, var(--neutral-1) 91% 100%);
}
.st-book .leaf, .pk-book .leaf {
  position: absolute; left: 0; top: 0; width: 103px; height: 128px; transform-origin: 0 50%;
  transition: transform 350ms cubic-bezier(0.3, 0.9, 0.4, 1), filter 350ms var(--ease-default);
}
.st-book .leaf > svg.cover, .pk-book .leaf > svg.cover { position: absolute; left: 0; top: 0; width: 103px; height: 128px; }
.st-book .leaf::after, .pk-book .leaf::after { /* the sheen, only while open */
  content: ""; position: absolute; inset: 1px 1px 1px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; opacity: 0; pointer-events: none;
  background: linear-gradient(105deg, color-mix(in srgb, var(--neutral-0) 25%, transparent) 0%, transparent 35%, var(--border-tertiary-soft) 100%);
  transition: opacity 350ms var(--ease-default);
}
.st-book .spine, .pk-book .spine { z-index: 1; }
.st-book .cover path:last-child, .pk-book .cover path:last-child { transition: color 180ms var(--ease-default), stroke-opacity 180ms var(--ease-default); }
.st-testbook .st-book-art { transition: scale 250ms cubic-bezier(0.3, 0.9, 0.4, 1), translate 250ms cubic-bezier(0.3, 0.9, 0.4, 1); }
/* a School Math book is placed by its own transform, so it grows through --hs inside that transform (book-picker.js),
   around its own centre; the CSS scale property would scale its position too and push it right and down */
@property --hs { syntax: '<number>'; inherits: false; initial-value: 1; }
.pk-book.is-choice { transition: --hs 250ms cubic-bezier(0.3, 0.9, 0.4, 1), translate 250ms cubic-bezier(0.3, 0.9, 0.4, 1); }
.st-testbook .st-book-art { transform-origin: center; }

/* open on hover */
@media (hover: hover) {
  .st-testbook:hover:not(.is-picked) .st-book-art { scale: 1.05; }
  .st-testbook:hover:not(.is-picked) .leaf { transform: perspective(500px) rotateY(-8deg) scaleX(0.853); filter: drop-shadow(var(--space-8) var(--space-4) var(--space-8) var(--border-tertiary-soft)); }
  .st-testbook:hover:not(.is-picked) .leaf::after { opacity: 1; }
  .st-testbook:hover:not(.is-picked) .cover path:last-child { color: var(--border-primary-soft); stroke-opacity: 1; }
}
.pk-book.is-choice.is-hot:not(.is-picked) { --hs: 1.05; }
.pk-book.is-choice.is-hot:not(.is-picked) .leaf { transform: perspective(500px) rotateY(-8deg) scaleX(0.853); filter: drop-shadow(var(--space-8) var(--space-4) var(--space-8) var(--border-tertiary-soft)); }
.pk-book.is-choice.is-hot:not(.is-picked) .leaf::after { opacity: 1; }
.pk-book.is-choice.is-hot:not(.is-picked) .cover path:last-child { color: var(--border-primary-soft); stroke-opacity: 1; }

/* closed and chosen on tap */
.st-testbook.is-picked .st-book-art { scale: 1.05; translate: 0 calc(var(--space-4) * -1.5); }
.st-testbook.is-picked .st-book { --book-a: var(--book-a-on); --book-b: var(--book-b-on); }
.st-testbook.is-picked .cover path:last-child, .pk-book.is-picked .cover path:last-child { color: var(--border-selected); stroke-opacity: 1; }
.pk-book.is-picked { --hs: 1.05; translate: 0 calc(var(--space-4) * -1.5); }
@media (prefers-reduced-motion: reduce) {
  .st-book .leaf, .pk-book .leaf, .st-testbook .st-book-art, .pk-book.is-choice { transition: none; }
  .pk-book.is-hot, .pk-book.is-picked { --hs: 1; }
  .st-testbook:hover .leaf, .pk-book.is-hot .leaf { transform: none !important; }
}

/* Test shelves, left-aligned (design ref, 2026-10-07): one shelf per row, every shelf and its books starting at the
   same left edge. The block is as wide as its widest shelf (at most the page) and centred under the question. */
.st-tests { width: fit-content; max-width: 100%; margin: 0 auto; flex-direction: column; align-items: stretch; gap: var(--space-24); }
.st-tests section { align-items: flex-start; text-align: left; }
.st-testbooks { justify-content: flex-start; }

/* Backgrounds (Aayushmaan, 2026-10-07): the page is neutral-2; on the 30:70 split the conversation panel is neutral-3
   and the screen neutral-2, except the lesson screens (lessons, a Test Prep chapter's sheets, the loader), whose
   screen keeps its peach (brand-1); their conversation panel is neutral-3 like the rest. */
@media (min-width: 901px) {
  .st-app[data-layout="split"] .st-chat { background: var(--neutral-3); }
  .st-app[data-layout="split"] .st-show { background: var(--neutral-2); }
  .st-app[data-layout="split"][data-scene="sm_lessons"] .st-show,
  .st-app[data-layout="split"][data-scene="tp_chapter"] .st-show,
  .st-app[data-layout="split"][data-scene="start"] .st-show { background: var(--brand-1); }
}

/* ── Phone pass (Aayushmaan, 2026-10-08) ──────────────────────────── */
/* Grades: just the number (K for Kindergarten), equal round buttons in two even rows, K–6 over 7–12. */
.st-reply-row.is-grades { --g: var(--space-48); max-width: calc(var(--g) * 7 + var(--space-8) * 6); gap: var(--space-8); }
.st-answers .st-grade { width: var(--g); height: var(--g); min-width: 0; padding: 0; justify-content: center; font-variant-numeric: tabular-nums; }
/* The screen's own "All chapters" / "All activities" also fills the top Back's place (stage.js paintBack); on the split
   screens it stays in the screen, so the top copy is hidden there. */
@media (min-width: 901px) { .st-back-top.is-mirror { display: none; } }
/* A line marks a scrolled screen's top edge, edge to edge, while there's more above it (stage.js markOverflow). */
.st-show { border-top: 1px solid transparent; }
.st-app[data-over~="top"] .st-show { border-image: linear-gradient(var(--border-tertiary-soft), var(--border-tertiary-soft)) 1 / 1px 0 0 / 0 100vw; }
@media (min-width: 901px) { .st-app[data-layout="split"][data-over~="top"] .st-show { border-image: none; } } /* the right panel scrolls under nothing */

@media (max-width: 900px) {
  .st-show .st-back { display: none; } /* it's up in Back's place */
  /* The input: a bar along the bottom, edge to edge, the same 16 on every side; its top line shows while the screen
     has more below it. The voice hint only takes room when it says something. */
  .st-app .st-composer, .st-app:not([data-layout="split"]) .st-composer {
    left: 0; right: 0; bottom: 0; translate: none; width: auto; max-width: none; box-sizing: border-box;
    padding: var(--space-16); background: var(--neutral-2);
    border-top: 1px solid transparent; transition: border-color 200ms var(--bot-ease), opacity 260ms var(--bot-ease);
  }
  .st-app .st-composer > * { max-width: calc(var(--space-80) * 7); margin-inline: auto; }
  .st-app[data-over~="bottom"] .st-composer { border-top-color: var(--border-tertiary-soft); }
  .st-voice-hint { margin-top: var(--space-8); }
  .st-voice-hint:empty { display: none; }
  .st-app .st-main, .st-app:not([data-layout="split"]) .st-main { padding-bottom: var(--bar-h, calc(var(--space-48) + var(--space-32))); } /* the bar's own height (stage.js): the screen scrolls right up to its line */
  .st-app .st-composer, .st-app:not([data-layout="split"]) .st-composer { z-index: var(--z-sticky); } /* the bar is always over the screen, never under it */
}
@media (max-width: 640px) {
  /* the heading heading-sm bold, the subheading heading-xs */
  .st-question { font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); font-weight: var(--type-heading-sm-weight-bold); }
  .st-lead { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight); }
  /* with no Back in the top bar, Cueme moves up: only the speaker sits there, off to the right */
  .st-reply-row.is-grades { --g: calc(var(--space-40) + var(--space-4)); }
  .st-offer-card h2 { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight-bold); }
}

/* Two books on a phone: each book's facts on two lines (13 chapters / 49 lessons), no dot */
@media (max-width: 640px) {
  .pk-pair .st-book-name .st-fact-part { display: block; }
  .pk-pair .st-book-name .st-dot { display: none; }
}

/* Their reply on the split's conversation panel (neutral-3): a step darker again */
@media (min-width: 901px) { .st-app[data-layout="split"] .st-you { background: var(--neutral-4); } }
/* The answer pills: all one width (the widest one's), so the rows line up like the grades instead of wrapping ragged */
.st-reply-row.is-even .btn { min-width: var(--pill-w); max-width: 100%; justify-content: center; }

/* Enrichment, locked for now: the card shows but can't be tapped; its Coming soon tag stays at full strength */
.st-offer-card { position: relative; }
.st-offer-card.is-soon > :not(.st-soon) { opacity: 0.45; }
button.st-offer-card.is-soon:disabled { opacity: 1; }
.st-soon { position: absolute; top: var(--space-20); right: var(--space-20); }

/* Listening: the welcome's turning blue light, only along the bottom edge, for as long as the mic is on */
.st-voice-glow {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--space-48); pointer-events: none; z-index: var(--z-overlay);
  opacity: 0; transition: opacity 400ms var(--bot-ease); --glow-angle: 0deg;
  /* a soft wash, not a cone: wide blue bands drifting sideways, blurred, fading up to nothing */
  height: var(--space-64); background: linear-gradient(90deg, var(--info-4), var(--info-6), var(--info-3), var(--info-5), var(--info-7), var(--info-4), var(--info-6), var(--info-4));
  background-size: 300% 100%;
  /* fades up to nothing, so the bar and its controls show through */
  -webkit-mask-image: linear-gradient(to top, black, transparent);
          mask-image: linear-gradient(to top, black, transparent);
}
.st-app.is-listening .st-voice-glow { opacity: 1; animation: st-voice-drift 6s linear infinite alternate; }
@keyframes st-voice-drift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .st-app.is-listening .st-voice-glow { animation: none; } }

@media (max-width: 640px) {
  /* grades: always two rows (K–6, 7–12), each button a seventh of the row */
  .st-reply-row.is-grades { --g: calc((100% - var(--space-8) * 6) / 7); width: 100%; max-width: calc(var(--space-48) * 7 + var(--space-8) * 6); }
  .st-answers .st-grade { width: var(--g); height: auto; aspect-ratio: 1; }
}
.st-reply-row.is-measuring .btn { width: auto; white-space: nowrap; max-width: none; }

/* Lessons on a phone: the peach fills the whole scrolling area, edge to edge, not a card inside it */
@media (max-width: 640px) {
  .st-app[data-scene="sm_lessons"] .st-show, .st-app[data-scene="tp_chapter"] .st-show {
    margin-inline: calc(var(--space-16) * -1); width: calc(100% + var(--space-32)); background: var(--brand-1);
  }
  .st-app[data-scene="sm_lessons"] .st-lessons-wrap, .st-app[data-scene="tp_chapter"] .st-lessons-wrap { background: none; border-radius: 0; }
}
/* ...and on a tablet (641–900, still one column; the page's side padding there is 40, not 16) */
@media (min-width: 641px) and (max-width: 900px) {
  .st-app[data-scene="sm_lessons"] .st-show, .st-app[data-scene="tp_chapter"] .st-show {
    margin-inline: calc(var(--space-40) * -1); width: calc(100% + var(--space-80)); background: var(--brand-1);
  }
  .st-app[data-scene="sm_lessons"] .st-lessons-wrap, .st-app[data-scene="tp_chapter"] .st-lessons-wrap { background: none; border-radius: 0; }
}

/* The ~10 s opening (stage.js runOpening). Cueme is the loader: the conversation's own heading, answers and input step
   aside, Cueme works in the middle, and the screen under it reads top-down: what's happening now (the heading, crossfading
   step by step), what's opening, the bar, and a fact to read set apart at the foot. */
.st-app[data-opening] .st-say, .st-app[data-opening] .st-you, .st-app[data-opening] .st-answers, .st-app[data-opening] .st-composer { display: none; }
.st-app[data-opening] .st-center { justify-content: center; }
.st-app[data-opening] .st-show { flex: none; overflow: visible; }
.st-app[data-opening] .cueme-bot { --bot-size: 144px; }
.st-state.is-opening { gap: var(--space-16); margin: 0 auto; padding: 0; background: none; border: 0; border-radius: 0; max-width: calc(var(--space-80) * 6); }
.st-state.is-opening .st-step { margin: 0; font-family: var(--font-display); font-size: var(--type-heading-lg-size); line-height: var(--type-heading-lg-lh); font-weight: var(--type-heading-lg-weight); color: var(--text-primary); text-wrap: balance; min-height: var(--type-heading-lg-lh); transition: opacity 300ms var(--bot-ease); }
.st-step.is-out { opacity: 0; }
.st-state .st-fill .progress-bar { width: 0; animation: st-fill-a 10s cubic-bezier(0.25, 0.6, 0.35, 1) forwards, st-fill-b 20s linear 10s forwards; }
@keyframes st-fill-a { to { width: 90%; } }
@keyframes st-fill-b { from { width: 90%; } to { width: 96%; } }
.st-state.is-ready .st-fill .progress-bar { animation: none; width: 100%; transition: width 400ms var(--ease-out); }
.st-state .st-wait-fact { max-width: calc(var(--space-80) * 4); margin-top: var(--space-32); padding: var(--space-12) var(--space-16); border-radius: var(--radius-md); background: var(--neutral-3); color: var(--text-secondary); }
.st-wait-fact b { font-family: var(--type-label-sm-font); font-weight: var(--type-label-sm-weight); color: var(--text-primary); }
.st-wait-fact span.is-in { animation: st-fade 500ms var(--bot-ease-out) both; }
.st-state.is-opening .st-state-note:empty { display: none; }
@media (max-width: 640px) {
  .st-app[data-opening] .cueme-bot { --bot-size: 112px; }
  .st-state.is-opening .st-step { font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); font-weight: var(--type-heading-sm-weight-bold); min-height: var(--type-heading-sm-lh); }
}
@media (prefers-reduced-motion: reduce) {
  .st-state .st-fill .progress-bar { animation: none; width: 50%; }
  .st-step, .st-wait-fact span.is-in { transition: none; animation: none; }
}

/* Mock tests, Premium only (Sachin, 2026-10-09): a locked row shows but can't be tapped; its tag stays at full strength */
.st-lesson.is-locked { cursor: default; }
.st-lesson.is-locked > :not(.st-premium-wrap) { opacity: 0.5; }
.st-premium { display: inline-flex; align-items: center; gap: var(--space-4); flex-shrink: 0; white-space: nowrap; }
.st-premium .st-lock { flex-shrink: 0; }
.st-chapter .st-premium-wrap { align-self: center; }

/* The Premium tag's tooltip: it opens over the tag, right-aligned to it, so a tag at a row's right edge never pushes it
   off the screen; on a chapter card it stays centred */
.st-premium-wrap { flex-shrink: 0; cursor: help; border-radius: var(--radius-full); }
.st-premium-wrap:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.st-premium-wrap .tooltip { width: max-content; text-align: left; }
.st-lesson .st-premium-wrap .tooltip { left: auto; right: 0; transform: none; }
.st-lesson .st-premium-wrap .tooltip::after { left: auto; right: var(--space-24); transform: translate(50%, -50%) rotate(45deg); }
/* Lessons, phone and tablet: the peach runs all the way down to the input bar, even when the lessons are short */
@media (max-width: 900px) {
  .st-app[data-scene="sm_lessons"] .st-center, .st-app[data-scene="tp_chapter"] .st-center { height: 100%; }
  .st-app[data-scene="sm_lessons"] .st-show, .st-app[data-scene="tp_chapter"] .st-show { flex: 1 1 auto; }
}

/* ── Phone pass 3 (Aayushmaan, 2026-10-14) ───────────────────────────
   The top bar: a chevron Back and the three-part progress; the input bar edge to edge with 16 / 16 / 32; the home
   cards two to a row; and the whole page scrolls, Cueme and the heading included (the book stack and the opening keep
   their own fixed layout). Desktop keeps its Back button and has no progress bar. */
.st-back-chev, .st-progress { display: none; }
@media (max-width: 640px) {
  .st-top { gap: var(--space-12); padding: var(--space-8) var(--space-16); min-height: calc(var(--space-40) + var(--space-16)); box-sizing: border-box; background: var(--neutral-2); }
  .st-back-top.btn { width: var(--space-40); height: var(--space-40); min-width: 0; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .st-back-top .st-back-icon, .st-back-top .st-back-label { display: none; }
  .st-back-top .st-back-chev { display: block; width: var(--space-24); height: var(--space-24); }
  .st-progress:not([hidden]) { display: flex; flex: 1; gap: var(--space-4); }
  .st-progress span { flex: 1; height: var(--space-8); border-radius: var(--radius-full); background: var(--neutral-4); overflow: hidden; }
  .st-progress i { display: block; height: 100%; width: 0; border-radius: var(--radius-full); background: var(--brand-5); transition: width 500ms var(--bot-ease-out); }
  /* room for the bar when it shows something; the welcome (nothing in it) keeps the page close to the top */
  .st-app .st-main, .st-app:not([data-layout="split"]) .st-main { padding-top: calc(var(--space-40) + var(--space-24)); }
  .st-app:has(#back[hidden]) .st-top { background: none; }

  /* the input bar: edge to edge, 16 top and sides, 32 under it (plus the phone's home bar) */
  .st-app .st-composer, .st-app:not([data-layout="split"]) .st-composer { padding: var(--space-16) var(--space-16) calc(var(--space-32) + env(safe-area-inset-bottom, 0px)); }

  /* home: the cards two to a row */
  .st-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .st-offer-card { padding: var(--space-16); gap: var(--space-4); }
  .st-offer-card p { font-family: var(--type-body-md-font); font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); font-weight: var(--type-body-md-weight); }
  .st-offer-icon { width: var(--space-40); height: var(--space-40); }
  .st-offer-icon svg, .st-offer-icon img { width: var(--space-24); height: var(--space-24); }
  .st-soon { position: static; align-self: flex-start; margin-bottom: var(--space-4); }

  /* the page scrolls, not the screen area under the heading */
  .st-app:not([data-scene="sm_book"]):not([data-opening]) .st-main { overflow-y: auto; overscroll-behavior: contain; }
  .st-app:not([data-scene="sm_book"]):not([data-opening]) .st-center { height: auto; min-height: 100%; align-self: flex-start; justify-content: flex-start; } /* grows with what it holds, so the page scrolls */
  .st-app[data-centre]:not([data-scene="sm_book"]):not([data-opening]) .st-center { justify-content: safe center; }
  .st-app:not([data-scene="sm_book"]):not([data-opening]) .st-show { overflow: visible; flex: 1 0 auto; border-top: 0; border-image: none; }
}

/* ?debug&kb: a stand-in phone keyboard (testing only) */
.st-kb-mock { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--space-80) * 4 + var(--space-16)); box-sizing: border-box; padding: var(--space-8) var(--space-4) var(--space-32); display: flex; flex-direction: column; justify-content: space-around; background: var(--neutral-5); z-index: var(--z-overlay); }
.st-kb-mock div { display: flex; justify-content: center; gap: var(--space-4); }
.st-kb-mock span { flex: 0 1 var(--space-32); display: grid; place-items: center; height: var(--space-40); border-radius: var(--radius-sm); background: var(--neutral-0); font-family: var(--type-body-lg-font); font-size: var(--type-body-lg-size); color: var(--text-primary); }
.st-kb-mock span.w { flex-basis: 50%; font-size: var(--type-body-sm-size); color: var(--text-secondary); }
@media (max-width: 640px) {
  /* with the keyboard up the home bar is hidden under it: the input bar's bottom padding drops to 16 */
  .st-app[data-kb] .st-composer, .st-app[data-kb]:not([data-layout="split"]) .st-composer { padding-bottom: var(--space-16); }
}
@media (max-width: 640px) {
  /* the top bar (Aayushmaan, 2026-10-14): Back in a 44 slot on the left, the progress between, 44 kept free on the right
     (the speaker sits there when it's on); no hairline under it */
  .st-top { padding: var(--space-8) 0; gap: 0; }
  .st-back-top.btn { width: calc(var(--space-40) + var(--space-4)); height: calc(var(--space-40) + var(--space-4)); }
  .st-progress:not([hidden]) { margin-right: calc(var(--space-40) + var(--space-4)); }
  .st-top-right { position: absolute; right: 0; top: var(--space-8); width: calc(var(--space-40) + var(--space-4)); justify-content: center; }

  /* home: cards like the reference: the offering's icon large and centred, its name under it, no description */
  .st-offer-card { align-items: center; justify-content: center; text-align: center; gap: var(--space-12); padding: var(--space-24) var(--space-16); min-height: calc(var(--space-80) * 2); border-color: transparent; }
  .st-offer-card p { display: none; }
  .st-offer-icon, .st-offer-icon[data-v] { width: auto; height: auto; margin: 0; background: none; }
  .st-offer-icon svg, .st-offer-icon img { width: var(--space-48); height: var(--space-48); }
  .st-offer-card h2 { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight-bold); }
  .st-soon { position: absolute; top: var(--space-8); left: 50%; translate: -50% 0; margin: 0; white-space: nowrap; }
}
.st-offer-short { display: none; }
@media (max-width: 640px) {
  .st-offer-card p.st-offer-short { display: block; max-width: calc(var(--space-80) * 2); font-family: var(--type-body-sm-font); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); font-weight: var(--type-body-sm-weight); color: var(--text-secondary); text-wrap: balance; text-align: center; }
  .st-offer-card h2 { margin-top: var(--space-4); }
  .st-offer-card.is-soon { padding-top: calc(var(--space-24) + var(--space-16)); } /* room for the Coming soon tag above the icon */
}

/* Phone (Aayushmaan, 2026-10-14): Cueme on the left, its words to its right, left-aligned, heading and subheading 4 apart;
   their reply chip sits over the words. The answers and screen run full width under them. The welcome and the opening
   keep Cueme centred above. */
@media (max-width: 640px) {
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-chat {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-16); row-gap: var(--space-8);
    align-items: center; text-align: left;
  }
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-chat > * { grid-column: 1 / -1; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) #cueme { grid-column: 1; grid-row: 1 / span 2; align-self: center; --bot-size: 64px; } /* centred on the words beside it */
  .st-app:not([data-scene="welcome"]):not([data-opening]) #you { grid-column: 2; grid-row: 1; justify-self: start; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) #say { grid-column: 2; grid-row: 2; gap: var(--space-4); max-width: none; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) #you[hidden] + #say { grid-row: 1 / span 2; align-self: center; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-question,
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-lead { text-align: left; text-wrap: pretty; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) #answers { margin-top: var(--space-8); } /* 16 from the words, as one block with them */
}

/* Phone spacing, opened up to the reference (Aayushmaan, 2026-10-14; the reference measured at 1x): 24 side margins,
   32 between the top bar and Cueme, 24 between Cueme and its words, 32 from the words to the answers, cards 12 apart,
   taller and roomier. The input bar keeps its 16 / 16 / 32. */
@media (max-width: 640px) {
  .st-main, .st-app .st-main { padding-left: var(--space-24); padding-right: var(--space-24); }
  .st-app .st-main, .st-app:not([data-layout="split"]) .st-main { padding-top: calc(var(--space-40) + var(--space-24) + var(--space-32)); }
  /* no Back: the bar's room is still kept, so Cueme and the heading sit at the same height on every screen (Aayushmaan,
     2026-10-14); only the welcome and the opening, centred on their own, start near the top */
  .st-app:is([data-scene="welcome"], [data-opening]):has(#back[hidden]) .st-main { padding-top: var(--space-40); }
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-chat { column-gap: var(--space-24); row-gap: var(--space-8); }
  .st-app:not([data-scene="welcome"]):not([data-opening]) #answers { margin-top: var(--space-24); }
  .st-center, .st-chat { gap: var(--space-16); }
  .st-app:not([data-opening]):not([data-scene="sm_book"]) .st-show:not(:empty) { margin-top: var(--space-16); } /* the screen 32 under the words, like the answers */
  .st-offers { gap: var(--space-12); }
  .st-offer-card { padding: var(--space-32) var(--space-16); min-height: calc(var(--space-80) * 2 + var(--space-40)); gap: var(--space-12); border-radius: var(--radius-lg); }
  .st-offer-icon svg, .st-offer-icon img { width: calc(var(--space-48) + var(--space-8)); height: calc(var(--space-48) + var(--space-8)); }
  .st-lessons-wrap { padding: var(--space-32) var(--space-24); } /* the lesson rows on the same 24 margin */
  /* the full-bleed peach follows the wider margin */
  .st-app[data-scene="sm_lessons"] .st-show, .st-app[data-scene="tp_chapter"] .st-show { margin-inline: calc(var(--space-24) * -1); width: calc(100% + var(--space-48)); }
}

/* Phone: the welcome's Continue is the bottom bar itself: full width, edge to edge, 16 over it and at the sides, 32 under
   (Aayushmaan, 2026-10-14) */
@media (max-width: 640px) {
  .st-answers:has(> .st-continue) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); margin: 0; box-sizing: border-box;
    padding: var(--space-16) var(--space-16) calc(var(--space-32) + env(safe-area-inset-bottom, 0px)); background: var(--neutral-2);
  }
  .st-answers > .st-continue { width: 100%; }
}

/* Phone cards (Aayushmaan, 2026-10-14): the name and its short line touch (0 apart), the icon 16 above the name; the
   Coming soon tag keeps its own width (left: 50% had squeezed it to half the card, so the words ran out of the pill). */
@media (max-width: 640px) {
  .st-offer-card, .st-app .st-offer-card { gap: 0; }
  .st-offer-card h2 { margin-top: var(--space-16); }
  .st-offer-card > .badge-success { margin-top: var(--space-12); }
  .st-soon { left: 0; right: 0; width: max-content; margin-inline: auto; translate: none; }
}

/* Phone (Aayushmaan, 2026-10-14): a card left alone in the last row spans the whole row (no empty slot beside it), as
   tall as its content; the offering icons at 40, not 56. */
@media (max-width: 640px) {
  .st-offer-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
  .st-offer-card:last-child:nth-child(odd) p.st-offer-short { max-width: none; } /* its line on one row */
  .st-offer-icon svg, .st-offer-icon img { width: var(--space-32); height: var(--space-32); }
}

/* Phone (Aayushmaan, 2026-10-14): the three cards stacked, each the full width of the page, everything in them left
   aligned (icon, name, its short line); Coming soon in the top right corner. */
@media (max-width: 640px) {
  .st-offers { grid-template-columns: 1fr; }
  .st-offer-card, .st-offer-card:last-child:nth-child(odd) { grid-column: auto; align-items: flex-start; justify-content: flex-start; text-align: left; min-height: 0; padding: var(--space-24); }
  .st-offer-card.is-soon { padding-top: var(--space-24); }
  .st-offer-card p.st-offer-short { max-width: none; text-align: left; }
  .st-soon { top: var(--space-24); right: var(--space-24); left: auto; margin: 0; }
}

/* Phone (Aayushmaan, 2026-10-14): inside each card, two columns: the icon on the left, centred on the name and its
   short line, which sit to its right. */
@media (max-width: 640px) {
  .st-app .st-offer-card, .st-app .st-offer-card:last-child:nth-child(odd) { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-16); row-gap: 0; align-items: center; justify-items: start; align-content: center; }
  .st-offer-card > .st-offer-icon { grid-column: 1; grid-row: 1 / span 2; }
  .st-offer-card > h2, .st-offer-card > p, .st-offer-card > .badge-success { grid-column: 2; }
  .st-offer-card h2 { margin-top: 0; align-self: end; }
  .st-offer-card p.st-offer-short { align-self: start; }
  .st-soon { top: var(--space-16); right: var(--space-16); }
}

/* Phone (Aayushmaan, 2026-10-14): on a question with only pills (no screen under it), the pills sit in the middle of the
   room between the question and the input bar (at the bottom before); Cueme and the question stay at the top. */
@media (max-width: 640px) {
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-center:has(> .st-show:empty) > .st-chat { flex: 1 0 auto; grid-template-rows: auto auto 1fr; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-center:has(> .st-show:empty) #answers { align-self: center; margin: calc(var(--space-24) + var(--space-8)) 0 var(--space-24); } /* 8 more on top evens out the input bar's own padding below */
}

/* Phone (Aayushmaan, 2026-10-14): no separator lines at all (the screen's top edge and the input bar's top edge); the
   progress is one bar, not three. */
@media (max-width: 640px) {
  .st-app[data-over~="top"] .st-show { border-image: none; }
  .st-app[data-over~="bottom"] .st-composer { border-top-color: transparent; }
}
/* Which curriculum the books are for, and a Change link (stage.js changeCurriculum) */
.st-cur-note { margin: var(--space-8) 0 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); font-weight: var(--type-body-sm-weight); color: var(--text-secondary); text-align: center; text-wrap: balance; }
.st-cur-note .cm-link { padding: 0; border: 0; background: none; color: var(--text-brand); cursor: pointer; }

/* Phone (Aayushmaan, 2026-10-14): the answers look like the home cards: full-width white rows, label centred, no
   border, 12 apart. The chosen one gets a brand border as it leaves. Grades keep their number grid, the quiet
   "Just exploring" stays text, and desktop keeps its pills. */
@media (max-width: 640px) {
  .st-app .st-reply-row:not(.is-grades) { flex-direction: column; align-items: stretch; width: 100%; max-width: none; gap: var(--space-12); }
  .st-app .st-reply-row:not(.is-grades) .btn-pill {
    width: 100%; min-width: 0; max-width: none; height: auto; min-height: calc(var(--space-48) + var(--space-8));
    justify-content: center; text-align: center; white-space: normal; /* label centred (Aayushmaan, 2026-10-14) */
    padding: var(--space-16) var(--space-24); border-radius: var(--radius-lg);
    background: var(--neutral-0); border: 1px solid transparent; color: var(--text-primary);
    font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); font-weight: var(--type-label-lg-weight);
  }
  .st-app .st-reply-row:not(.is-grades) .btn-pill:not(:disabled):hover { border-color: var(--border-primary-soft); background: var(--neutral-0); }
  .st-app .st-reply-row:not(.is-grades) .btn-pill.is-on { border-color: var(--brand-5); background: var(--neutral-0); color: var(--text-primary); }
}

/* Send is grey until there's something typed to send (Aayushmaan, 2026-10-14); it lights up in brand with the first
   letter. While Cueme is busy it still holds what's typed (stage.js send). */
.st-input-row:has(#text:placeholder-shown) #send { opacity: 0.4; pointer-events: none; } /* Figma App Growth 96:4111: the brand button at 40% */


/* The input as in Figma (App Growth 96:4111, 2026-10-14): the CueDesign input as it is, at md (40px), its label resting
   inside and floating into the notch on focus; the 16px line mic at the end; Send a 40px square brand icon button with
   the library "next" arrow turned up. */
.st-send-icon { rotate: -90deg; }
.st-input-row { align-items: center; }

/* Phone home (Aayushmaan, 2026-10-14): the cards stay right under the question (centred in the room looked odd on a
   tall phone), and grow with the screen's height instead: their padding and the gap between them go from 24 / 12 on a
   small phone up to 40 / 16 on a tall one, so less of the page is left empty. */
@media (max-width: 640px) {
  .st-app[data-scene="home"] .st-offers { gap: clamp(var(--space-12), 1.6dvh, var(--space-16)); }
  .st-app[data-scene="home"] .st-offer-card { padding-block: clamp(var(--space-24), 4.2dvh, var(--space-40)); }
}

/* Phone (Aayushmaan, 2026-10-14): Cueme stays put at the top of the words, and the words sit on its body, not its
   antenna: a 56px box starting 8 below Cueme's top, centred on the body, holds one or two lines in the middle of it;
   anything longer runs on downward while Cueme stays where it is. */
@media (max-width: 640px) {
  .st-app:not([data-scene="welcome"]):not([data-opening]) #cueme { align-self: start; }
  .st-app:not([data-scene="welcome"]):not([data-opening]) #say,
  .st-app:not([data-scene="welcome"]):not([data-opening]) #you[hidden] + #say {
    align-self: start; justify-content: center; margin-top: var(--space-8); min-height: calc(var(--space-48) + var(--space-8));
  }
}

/* Phone (Aayushmaan, 2026-10-14): the home cards and the answer rows follow CueDesign's interactive card (card.md):
   the 1px --border-secondary stroke always there, 8px corners (the rounding is the "tap me" cue), on hover the
   --border-primary stroke and --shadow-sm, a 0.98 press, and the chosen answer the selected look (brand border + ring). */
@media (max-width: 640px) {
  .st-app .st-offer-card,
  .st-app .st-reply-row:not(.is-grades) .btn-pill { border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
  .st-app button.st-offer-card:not(:disabled):hover,
  .st-app .st-reply-row:not(.is-grades) .btn-pill:not(:disabled):hover { border-color: var(--border-primary); box-shadow: var(--shadow-sm); transform: none; }
  .st-app button.st-offer-card:not(:disabled):active,
  .st-app .st-reply-row:not(.is-grades) .btn-pill:not(:disabled):active { scale: 0.98; }
  .st-app .st-reply-row:not(.is-grades) .btn-pill.is-on { border-color: var(--text-brand); box-shadow: 0 0 0 1px var(--text-brand); }
}

/* Phone: a locked offering (Coming soon) is not a tappable card (Aayushmaan, 2026-10-14: Enrichment read as clickable).
   No white surface (it sits on the page colour), the lightest stroke, no hover, shadow or press, its words faded;
   the Coming soon tag stays at full strength, so the reason is the one thing that reads. */
@media (max-width: 640px) {
  .st-app .st-offer-card.is-soon { background: transparent; border-color: var(--border-tertiary-soft); cursor: default; }
  .st-app .st-offer-card.is-soon:hover { border-color: var(--border-tertiary-soft); box-shadow: none; }
  .st-app .st-offer-card.is-soon .st-soon { background: var(--neutral-4); } /* one step darker than the page, so it stays a tag */
}

/* Phone (Aayushmaan, 2026-10-14) */
@media (max-width: 640px) {
  /* Cueme's recommended answer (US Curriculum) stays the brand button among the white rows */
  .st-app .st-reply-row:not(.is-grades) .btn-pill.btn-primary { background: var(--brand-5); border-color: var(--border-interactive); }
  .st-app .st-reply-row:not(.is-grades) .btn-pill.btn-primary:not(:disabled):hover { background: var(--brand-6); border-color: var(--border-interactive); }
  /* 24 from the top bar's box to Cueme, the same as Cueme's 24 from the left edge (the bar: 8 + 44 + 8) */
  .st-app .st-main, .st-app:not([data-layout="split"]) .st-main { padding-top: calc(var(--space-8) + var(--space-40) + var(--space-4) + var(--space-8) + var(--space-24)); }
  /* the chapter cards: CueDesign's interactive card, as the home cards and answer rows */
  .st-app .st-chapter { border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
  .st-app .st-chapter:hover { border-color: var(--border-primary); box-shadow: var(--shadow-sm); transform: none; }
  .st-app .st-chapter:active { scale: 0.98; }
  .st-app .st-chapter.is-pick { border-color: var(--text-brand); box-shadow: 0 0 0 1px var(--text-brand); transform: none; }
  /* the lessons: the whole page is peach, behind Cueme and the heading too, the top bar and the input bar with it */
  .st-app[data-scene="sm_lessons"], .st-app[data-scene="tp_chapter"],
  .st-app[data-scene="sm_lessons"] .st-top, .st-app[data-scene="tp_chapter"] .st-top,
  .st-app[data-scene="sm_lessons"] .st-main, .st-app[data-scene="tp_chapter"] .st-main,
  .st-app[data-scene="sm_lessons"] .st-composer, .st-app[data-scene="tp_chapter"] .st-composer { background: var(--brand-1); }
}

/* Phone chapter grid (Aayushmaan, 2026-10-14: "too much space below the heading"): 24 from the heading to the first
   cards (the page's 16 gap + 4 + the grid's own 4). The room above the grid for Cueme's "Start here" bubble is kept only
   when the pick is in the first row (two to a row here); further down, the bubble sits in the gap between rows. */
@media (max-width: 640px) {
  .st-app:not([data-opening]) .st-show:not(:empty):has(> .st-chapters-wrap) { margin-top: var(--space-4); }
  .st-chapters.has-pick { padding-top: 0; }
  .st-chapters.has-pick:has(> .st-chapter.is-pick:nth-child(-n+2)) { padding-top: var(--space-48); }
}

/* Their typed or spoken message, bottom right over the input bar (stage.js showSent; phone only) */
.st-sent {
  position: fixed; right: var(--space-16); bottom: calc(var(--bar-h, calc(var(--space-48) + var(--space-32))) + var(--space-12));
  z-index: var(--z-sticky); max-width: 75%; margin: 0; box-sizing: border-box;
  padding: var(--space-8) var(--space-16); border-radius: var(--radius-lg); background: var(--neutral-3);
  font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); font-weight: var(--type-body-md-weight); color: var(--text-primary);
  text-align: left; overflow-wrap: anywhere;
  animation: st-rise var(--st-spring-ms) var(--st-spring) both; transition: opacity 260ms var(--bot-ease), translate 260ms var(--bot-ease);
}
.st-sent.is-leaving { opacity: 0; translate: 0 calc(var(--space-8) * -1); }
@media (prefers-reduced-motion: reduce) { .st-sent { animation: none; transition: none; } }
@media (min-width: 641px) { .st-sent { display: none; } }

/* Phone grades (Aayushmaan, 2026-10-14): the same look as every other choice in the flow (CueDesign's interactive card):
   white, the 1px --border-secondary stroke, 8px corners, the hover stroke and shadow, a 0.98 press; the chosen grade
   gets the selected look (brand border + ring). Still the compact two rows, K–6 and 7–12. */
@media (max-width: 640px) {
  .st-app .st-answers .st-grade { border-radius: var(--radius-md); background: var(--neutral-0); border: 1px solid var(--border-secondary); color: var(--text-primary); }
  .st-app .st-answers .st-grade:not(:disabled):hover { background: var(--neutral-0); border-color: var(--border-primary); box-shadow: var(--shadow-sm); }
  .st-app .st-answers .st-grade:not(:disabled):active { scale: 0.98; }
  .st-app .st-answers .st-grade.is-on { background: var(--neutral-0); color: var(--text-primary); border-color: var(--text-brand); box-shadow: 0 0 0 1px var(--text-brand); }
}

/* Touch screens have no hover (Sachin, 2026-10-14): on a phone or tablet the hover look (darker stroke + shadow) would
   stick to whatever was just tapped, so where there's no hover the cards, rows, chapters and grades keep their resting
   stroke; the press (0.98) is the feedback. Layout never depends on touch, only on width: a touchscreen laptop gets the
   laptop layout. */
@media (max-width: 640px) and (hover: none) {
  .st-app button.st-offer-card:not(:disabled):hover,
  .st-app .st-reply-row:not(.is-grades) .btn-pill:not(.btn-primary):not(.is-on):not(:disabled):hover,
  .st-app .st-chapter:not(.is-pick):hover,
  .st-app .st-answers .st-grade:not(.is-on):not(:disabled):hover { border-color: var(--border-secondary); box-shadow: none; }
}

/* Short phones (under 600px tall: 320×496 and 480×587 in production, 2026-10-15): the same layout, tighter, so the
   choices fit above the input bar. 16 (not 24) from the top bar to Cueme; answer rows 48 tall, 8 apart; home cards
   16 top and bottom, 8 apart; 16 between the words and the choices. */
@media (max-width: 640px) and (max-height: 600px) {
  .st-app .st-main, .st-app:not([data-layout="split"]) .st-main { padding-top: calc(var(--space-8) + var(--space-40) + var(--space-4) + var(--space-8) + var(--space-16)); }
  .st-app .st-reply-row:not(.is-grades) { gap: var(--space-8); }
  .st-app .st-reply-row:not(.is-grades) .btn-pill { min-height: var(--space-48); padding: var(--space-12) var(--space-16); }
  .st-app[data-scene="home"] .st-offers { gap: var(--space-8); }
  .st-app[data-scene="home"] .st-offer-card { padding-block: var(--space-16); }
  .st-app:not([data-scene="welcome"]):not([data-opening]) .st-center:has(> .st-show:empty) #answers { margin: var(--space-16) 0; }
  .st-app[data-scene="home"] .st-show:not(:empty) { margin-top: 0; }
}

/* Phone: when the page has more below the input bar (stage.js markOverflow sets data-over="bottom"), a hairline on the
   bar's top edge says the page goes on under it (was a fade of the page colour above the bar (2026-10-15: the 320×496 phone's last
   choice sat under the bar with nothing to show it was there). */
@media (max-width: 640px) {
  /* (2026-10-26: no fade, "the upper stroke of the input could be a hairline only") */
  .st-app .st-composer::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
    background: var(--border-tertiary-soft); opacity: 0; transition: opacity 200ms var(--bot-ease);
  }
  .st-app[data-over~="bottom"] .st-composer::before { opacity: 1; }
}

/* Narrow phones (360 and under): the Coming soon tag can't sit top right without covering the name ("Enrichment" at
   320), so it goes under the name and its line, in the text column. */
@media (max-width: 360px) {
  .st-app .st-offer-card.is-soon .st-soon { position: static; grid-column: 2; grid-row: 3; justify-self: start; margin-top: var(--space-8); }
  .st-app .st-offer-card.is-soon > .st-offer-icon { grid-row: 1 / span 3; }
}

/* ?one_column: the top bar keeps the page colour, as on a phone, so the page scrolls under it rather than through it */
.st-app[data-one-col]:not([data-layout="split"]) .st-top { background: var(--neutral-2); }
/* ?one_column: one column width on every screen (the home's), so Cueme and the heading never shift sideways between
   screens (Aayushmaan, 2026-10-21: it moved between the home and the questions). */
.st-app[data-one-col]:not([data-layout="split"]) .st-center, .st-app[data-one-col][data-scene="home"]:not([data-layout="split"]) .st-center { max-width: calc(var(--space-80) * 13); } /* the split runs edge to edge */

/* Phone: the speaker in the top bar sits level with Back: its slot is Back's height, the button centred in it. */
@media (max-width: 640px) {
  .st-top-right { height: calc(var(--space-40) + var(--space-4)); align-items: center; }
}
/* Phone: on the full-bleed lesson and test chapter screens, Cueme's pick keeps the page's 24 side margins like
   everything else, rather than running edge to edge with the peach. */
@media (max-width: 640px) {
  .st-app:is([data-scene="sm_lessons"], [data-scene="tp_chapter"]) .st-pick-link { width: auto; align-self: stretch; margin-inline: var(--space-24); }
}

/* ?one_column (Aayushmaan, 2026-10-21): the phone's home cards and answer buttons at every width. Generated: every
   phone (max-width: 640px) rule for .st-offer*, .st-soon and .st-reply-row, in order, scoped to [data-one-col]. Then
   desktop caps the cards and answers at the input bar's width, centred under Cueme. */
.st-app[data-one-col] .st-reply-row .btn { max-width: 100%; white-space: normal; }
.st-app[data-one-col] .st-offer-card h2 { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight-bold); }
.st-app[data-one-col] .st-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.st-app[data-one-col] .st-offer-card { padding: var(--space-16); gap: var(--space-4); }
.st-app[data-one-col] .st-offer-card p { font-family: var(--type-body-md-font); font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); font-weight: var(--type-body-md-weight); }
.st-app[data-one-col] .st-offer-icon { width: var(--space-40); height: var(--space-40); }
.st-app[data-one-col] .st-offer-icon svg, .st-app[data-one-col] .st-offer-icon img { width: var(--space-24); height: var(--space-24); }
.st-app[data-one-col] .st-soon { position: static; align-self: flex-start; margin-bottom: var(--space-4); }
.st-app[data-one-col] .st-offer-card { align-items: center; justify-content: center; text-align: center; gap: var(--space-12); padding: var(--space-24) var(--space-16); min-height: calc(var(--space-80) * 2); border-color: transparent; }
.st-app[data-one-col] .st-offer-card p { display: none; }
.st-app[data-one-col] .st-offer-icon, .st-app[data-one-col] .st-offer-icon[data-v] { width: auto; height: auto; margin: 0; background: none; }
.st-app[data-one-col] .st-offer-icon svg, .st-app[data-one-col] .st-offer-icon img { width: var(--space-48); height: var(--space-48); }
.st-app[data-one-col] .st-offer-card h2 { font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight-bold); }
.st-app[data-one-col] .st-soon { position: absolute; top: var(--space-8); left: 50%; translate: -50% 0; margin: 0; white-space: nowrap; }
.st-app[data-one-col] .st-offer-card p.st-offer-short { display: block; max-width: calc(var(--space-80) * 2); font-family: var(--type-body-sm-font); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); font-weight: var(--type-body-sm-weight); color: var(--text-secondary); text-wrap: balance; text-align: center; }
.st-app[data-one-col] .st-offer-card h2 { margin-top: var(--space-4); }
.st-app[data-one-col] .st-offer-card.is-soon { padding-top: calc(var(--space-24) + var(--space-16)); }
.st-app[data-one-col] .st-offers { gap: var(--space-12); }
.st-app[data-one-col] .st-offer-card { padding: var(--space-32) var(--space-16); min-height: calc(var(--space-80) * 2 + var(--space-40)); gap: var(--space-12); border-radius: var(--radius-lg); }
.st-app[data-one-col] .st-offer-icon svg, .st-app[data-one-col] .st-offer-icon img { width: calc(var(--space-48) + var(--space-8)); height: calc(var(--space-48) + var(--space-8)); }
.st-app[data-one-col] .st-offer-card, .st-app[data-one-col] .st-offer-card { gap: 0; }
.st-app[data-one-col] .st-offer-card h2 { margin-top: var(--space-16); }
.st-app[data-one-col] .st-offer-card > .badge-success { margin-top: var(--space-12); }
.st-app[data-one-col] .st-soon { left: 0; right: 0; width: max-content; margin-inline: auto; translate: none; }
.st-app[data-one-col] .st-offer-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
.st-app[data-one-col] .st-offer-card:last-child:nth-child(odd) p.st-offer-short { max-width: none; }
.st-app[data-one-col] .st-offer-icon svg, .st-app[data-one-col] .st-offer-icon img { width: var(--space-32); height: var(--space-32); }
.st-app[data-one-col] .st-offers { grid-template-columns: 1fr; }
.st-app[data-one-col] .st-offer-card, .st-app[data-one-col] .st-offer-card:last-child:nth-child(odd) { grid-column: auto; align-items: flex-start; justify-content: flex-start; text-align: left; min-height: 0; padding: var(--space-24); }
.st-app[data-one-col] .st-offer-card.is-soon { padding-top: var(--space-24); }
.st-app[data-one-col] .st-offer-card p.st-offer-short { max-width: none; text-align: left; }
.st-app[data-one-col] .st-soon { top: var(--space-24); right: var(--space-24); left: auto; margin: 0; }
.st-app[data-one-col] .st-offer-card, .st-app[data-one-col] .st-offer-card:last-child:nth-child(odd) { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-16); row-gap: 0; align-items: center; justify-items: start; align-content: center; }
.st-app[data-one-col] .st-offer-card > .st-offer-icon { grid-column: 1; grid-row: 1 / span 2; }
.st-app[data-one-col] .st-offer-card > h2, .st-app[data-one-col] .st-offer-card > p, .st-app[data-one-col] .st-offer-card > .badge-success { grid-column: 2; }
.st-app[data-one-col] .st-offer-card h2 { margin-top: 0; align-self: end; }
.st-app[data-one-col] .st-offer-card p.st-offer-short { align-self: start; }
.st-app[data-one-col] .st-soon { top: var(--space-16); right: var(--space-16); }
.st-app[data-one-col] .st-reply-row:not(.is-grades) { flex-direction: column; align-items: stretch; width: 100%; max-width: none; gap: var(--space-12); }
.st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill { width: 100%; min-width: 0; max-width: none; height: auto; min-height: calc(var(--space-48) + var(--space-8)); justify-content: center; text-align: center; white-space: normal; padding: var(--space-16) var(--space-24); border-radius: var(--radius-lg); background: var(--neutral-0); border: 1px solid transparent; color: var(--text-primary); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); font-weight: var(--type-label-lg-weight); }
.st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill:not(:disabled):hover { border-color: var(--border-primary-soft); background: var(--neutral-0); }
.st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill.is-on { border-color: var(--brand-5); background: var(--neutral-0); color: var(--text-primary); }
.st-app[data-one-col][data-scene="home"] .st-offers { gap: clamp(var(--space-12), 1.6dvh, var(--space-16)); }
.st-app[data-one-col][data-scene="home"] .st-offer-card { padding-block: clamp(var(--space-24), 4.2dvh, var(--space-40)); }
.st-app[data-one-col] .st-offer-card, .st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill { border: 1px solid var(--border-secondary); border-radius: var(--radius-md); }
.st-app[data-one-col] button.st-offer-card:not(:disabled):hover, .st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill:not(:disabled):hover { border-color: var(--border-primary); box-shadow: var(--shadow-sm); transform: none; }
.st-app[data-one-col] button.st-offer-card:not(:disabled):active, .st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill:not(:disabled):active { scale: 0.98; }
.st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill.is-on { border-color: var(--text-brand); box-shadow: 0 0 0 1px var(--text-brand); }
.st-app[data-one-col] .st-offer-card.is-soon { background: transparent; border-color: var(--border-tertiary-soft); cursor: default; }
.st-app[data-one-col] .st-offer-card.is-soon:hover { border-color: var(--border-tertiary-soft); box-shadow: none; }
.st-app[data-one-col] .st-offer-card.is-soon .st-soon { background: var(--neutral-4); }
.st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill.btn-primary { background: var(--brand-5); border-color: var(--border-interactive); }
.st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill.btn-primary:not(:disabled):hover { background: var(--brand-6); border-color: var(--border-interactive); }
.st-app[data-one-col] .st-offers, .st-app[data-one-col] .st-reply-row:not(.is-grades) { width: 100%; max-width: calc(var(--space-80) * 7); margin-inline: auto; }
.st-app[data-one-col] #answers { align-items: center; }


/* ?one_column: Back is an icon only, the back arrow, at every width (Rohit, 2026-10-30: "the regular back button
   instead of the chevron"; Aayushmaan, 2026-11-02: the phone too). */
.st-app[data-one-col] .st-back-top.btn { width: calc(var(--space-40) + var(--space-4)); height: calc(var(--space-40) + var(--space-4)); min-width: 0; padding: 0; justify-content: center; border-color: transparent; background: none; }
.st-app[data-one-col] .st-back-top .st-back-chev, .st-app[data-one-col] .st-back-top .st-back-label { display: none; }
.st-app[data-one-col] .st-back-top .st-back-icon { display: block; width: var(--space-24); height: var(--space-24); }

/* ?one_column, desktop (Aayushmaan, 2026-10-21): the phone's cards and buttons, laid out for a wide screen. The home's
   three cards side by side; answers as wide as their words, side by side, so Cueme's eyes visibly follow the cursor
   across them; the school's own curricula in two columns under the main one. */
@media (min-width: 641px) {
  /* the three stacked, one under the other, one width (Aayushmaan, 2026-10-23) */
  /* …and compact, like the answer buttons: as wide as the longest line needs, as tall as its two lines (2026-10-23) */
  .st-app[data-one-col] .st-offers, .st-app[data-one-col][data-scene="home"] .st-offers { grid-template-columns: 1fr; grid-auto-rows: 1fr; width: 100%; max-width: calc(var(--space-80) * 6); gap: var(--space-12); }
  .st-app[data-one-col] .st-offer-card, .st-app[data-one-col] .st-offer-card:last-child:nth-child(odd),
  .st-app[data-one-col][data-scene="home"] .st-offer-card { min-height: 0; padding: var(--space-16) var(--space-20); }
  /* Coming soon right after the Enrichment name, on its line, not at the card's far edge; so the cards are only as wide
     as the longest line needs (all three that one width) (Aayushmaan, 2026-10-23) */
  .st-app[data-one-col] .st-offers, .st-app[data-one-col][data-scene="home"] .st-offers { width: max-content; max-width: 100%; }
  .st-app[data-one-col] .st-offer-card, .st-app[data-one-col] .st-offer-card:last-child:nth-child(odd) { grid-template-columns: auto auto 1fr; }
  .st-app[data-one-col] .st-offer-card > p, .st-app[data-one-col] .st-offer-card p.st-offer-short { grid-column: 2 / -1; }
  /* Coming soon: the design file's small pill (App Growth 267:13484, badge-sm), neutral, at the card's right edge, on the name's line
     (Aayushmaan, 2026-10-23) */
  .st-app[data-one-col] .st-offer-card.is-soon .st-soon { position: static; grid-column: 3; grid-row: 1; align-self: center; justify-self: end; translate: none; margin: 0 0 0 var(--space-16); }
  /* the phone's layout, desktop's type: the name heading-sm bold, its line body-lg (Aayushmaan, 2026-10-21) */
  .st-app[data-one-col] .st-offer-card h2 { font-size: var(--type-heading-sm-size); line-height: var(--type-heading-sm-lh); font-weight: var(--type-heading-sm-weight-bold); }
  .st-app[data-one-col] .st-offer-card p.st-offer-short { font-family: var(--type-body-lg-font); font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); font-weight: var(--type-body-lg-weight); }
  .st-app[data-one-col] .st-reply-row:not(.is-grades) { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; width: auto; max-width: 100%; }
  .st-app[data-one-col] .st-reply-row:not(.is-grades) .btn-pill { width: auto; }
  .st-app[data-one-col] .st-answers-note + .st-reply-row:not(.is-grades) { width: 100%; max-width: calc(var(--space-80) * 7); }
  .st-app[data-one-col] .st-answers-note + .st-reply-row:not(.is-grades) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-app[data-one-col] .st-answers-note + .st-reply-row:not(.is-grades) .btn-pill { width: 100%; }
  .st-app[data-one-col][data-layout="split"] .st-reply-row:not(.is-grades) { justify-content: flex-start; }
  /* five or more answers: two balanced rows, the extra one on top (stage.js puts the break in) */
  .st-app[data-one-col] .st-reply-row.is-two-rows { row-gap: 0; }
  .st-app[data-one-col] .st-reply-row.is-two-rows .st-row-break { display: block; flex-basis: 100%; height: 0; }
  .st-app[data-one-col] .st-reply-row.is-two-rows .st-row-break ~ * { margin-top: var(--space-12); }
}

/* ?one_column (Aayushmaan, 2026-10-21): the grades are the phone's rounded squares (white, a hairline border), a little
   bigger on a wide screen. */
.st-app[data-one-col] .st-reply-row.is-grades { --g: calc(var(--space-48) + var(--space-8)); gap: var(--space-12); max-width: calc(var(--g) * 7 + var(--space-12) * 6); }
.st-app[data-one-col] .st-answers .st-grade { border-radius: var(--radius-md); background: var(--neutral-0); border: 1px solid var(--border-secondary); color: var(--text-primary); font-size: var(--type-label-lg-size); }
.st-app[data-one-col] .st-answers .st-grade:not(:disabled):hover { background: var(--neutral-0); border-color: var(--border-primary); box-shadow: var(--shadow-sm); }
.st-app[data-one-col] .st-answers .st-grade:not(:disabled):active { scale: 0.98; }
.st-app[data-one-col] .st-answers .st-grade.is-on { background: var(--neutral-0); color: var(--text-primary); border-color: var(--text-brand); box-shadow: 0 0 0 1px var(--text-brand); }
@media (max-width: 640px) { .st-app[data-one-col] .st-reply-row.is-grades { --g: calc((100% - var(--space-8) * 6) / 7); gap: var(--space-8); max-width: calc(var(--space-48) * 7 + var(--space-8) * 6); } }

/* ?one_column: Back stays in one place on every screen. The screen's own "All chapters" / "All activities" moves up
   into it, as on a phone, on the split screens too. */
.st-app[data-one-col] .st-back-top.is-mirror { display: inline-flex; }
.st-app[data-one-col] .st-show .st-back { display: none; }

/* ?one_column: "Start here" is Cueme talking: a speech bubble with its tail pointing at Cueme. */
.st-app[data-one-col] .st-nudge { gap: var(--space-8); }
.st-app[data-one-col] .st-nudge-say { position: relative; border-radius: var(--radius-md); padding: var(--space-4) var(--space-12); }
.st-app[data-one-col] .st-nudge-say::before {
  content: ''; position: absolute; top: 50%; right: 100%; translate: 1px -50%;
  width: var(--space-8); height: var(--space-12); background: var(--neutral-13); clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* ?one_column (Aayushmaan, 2026-10-21): the input bar fades out and in where it is, never sliding */
.st-app[data-one-col] .st-composer.is-leaving { transform: none; }
.st-row-break { display: none; } /* only the desktop row layout uses it */

/* ?one_column (Aayushmaan, 2026-10-21): Cueme, the heading and the answers sit in the middle of what's visible: the space
   between the top of the frame and the top of the input bar, not the whole frame. The room kept below is the input's
   own (its live height, stage.js --bar-h, plus its 24 off the bottom on a wide screen) plus the same 64 kept on top. */
@media (min-width: 641px) and (max-width: 900px) {
  .st-app[data-one-col]:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-64) + var(--bar-h, calc(var(--space-48) + var(--space-32)))); }
}
@media (min-width: 901px) {
  .st-app[data-one-col]:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-64) + var(--bar-h, var(--space-48)) + var(--space-24)); }
}
@media (min-width: 901px) and (max-height: 820px) {
  /* a short laptop keeps 24 on top (not 64), and its input sits 16 off the bottom (not 24) */
  .st-app[data-one-col]:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-24) + var(--bar-h, var(--space-48)) + var(--space-16)); }
}

/* Book-opening versions (prototype, ?book_anim): the extra pages of the flip-through, and the spine that stays as the
   panel's spine when the book grows into it */
.st-bookopen .leaf {
  position: absolute; inset: 0; border-radius: inherit; background: var(--neutral-0); border: 1px solid var(--border-tertiary-soft);
  transform-origin: left center; backface-visibility: hidden;
}
.st-bookopen .keep-spine { position: absolute; left: 0; top: 0; bottom: 0; background: var(--book-b); border-radius: inherit; }
/* ?debug&booklab: the version buttons, top centre */
.st-booklab { position: fixed; top: var(--space-12); left: 50%; translate: -50% 0; z-index: var(--z-toast); display: flex; gap: var(--space-8); padding: var(--space-8); background: var(--neutral-0); border: 1px solid var(--border-tertiary); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.st-booklab .is-on { border-color: var(--text-brand); box-shadow: 0 0 0 1px var(--text-brand); }

/* Book opening e (prototype): one motion. .book is the open book at its final size: the right page (the chapters'
   panel) with the cover hinged at the fold (30%); the cover swings over to the left and its inside is Cueme's panel. */
.st-spread { position: fixed; inset: 0; z-index: var(--z-overlay); pointer-events: none; }
.st-spread .backdrop { position: absolute; inset: 0; background: var(--neutral-5); opacity: 0; } /* darker than both panels, so both pages read as pages */
.st-spread .book { position: absolute; inset: 0; transform-origin: 0 0; perspective: 4200px; perspective-origin: var(--x0) 50%; will-change: transform; }
.st-spread .rpage { position: absolute; top: 0; bottom: 0; left: var(--x0); right: 0; box-shadow: var(--shadow-lg); overflow: hidden; }
.st-spread .cover { position: absolute; top: 0; bottom: 0; left: var(--x0); right: 0; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.st-spread .front, .st-spread .back { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
.st-spread .back { transform: rotateY(180deg); }
/* the inside of a book has no coloured spine: the fold is the page's own neutral line, the split's usual separator */
.st-spread .seam { position: absolute; top: 0; bottom: 0; left: calc(var(--x0) - 1px); width: 1px; background: var(--border-tertiary-soft); opacity: 0; }

/* Book opening e: the screen the book opened onto comes in where it belongs: a fade, no rising or sliding
   (Aayushmaan, 2026-10-21: rising looked like sliding; nothing at all looked abrupt) */
.st-app[data-book-opened] .st-show > *, .st-app[data-book-opened] .st-chapter, .st-app[data-book-opened] .st-answers .btn { animation: st-fade var(--duration-slow) var(--ease-out) both; }

/* ?one_column (Aayushmaan, 2026-10-21): the chapter Cueme suggests shines, again and again, so the eye stays on it and
   not on the other chapters. A soft diagonal band (light over the art, a neutral tint over the white) sweeps across
   the card in about 1.3s, then rests about 1.5s. The band moves inside the card's own box, so nothing is clipped. */
.st-app[data-one-col] .st-chapter.is-pick::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(110deg,
    transparent 38%,
    color-mix(in srgb, var(--neutral-0) 55%, transparent) 46%,
    color-mix(in srgb, var(--neutral-4) 60%, transparent) 50%, /* neutral, like the card's stroke (2026-10-23) */
    color-mix(in srgb, var(--neutral-0) 55%, transparent) 54%,
    transparent 62%);
  background-size: 250% 100%; background-repeat: no-repeat; background-position-x: 103%;
  animation: st-shine 2.8s var(--ease-in-out) infinite;
}
@keyframes st-shine { 0% { background-position-x: 103%; } 46% { background-position-x: -3%; } 100% { background-position-x: -3%; } }
@media (prefers-reduced-motion: reduce) { .st-app[data-one-col] .st-chapter.is-pick::after { animation: none; background-image: none; } }

/* ?one_column (Aayushmaan, 2026-10-23): the home cards' names in the answer buttons' type (label-lg), not a heading */
.st-app[data-one-col] .st-offer-card h2 { font-family: var(--type-label-lg-font); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); font-weight: var(--type-label-lg-weight); letter-spacing: var(--type-label-lg-tracking); }

/* ?one_column (Aayushmaan, 2026-10-23): with room for all three (1200 and up), the home cards sit side by side, one
   width each; narrower, they stay stacked as on a phone. */
@media (min-width: 1200px) {
  .st-app[data-one-col] .st-offers, .st-app[data-one-col][data-scene="home"] .st-offers { grid-template-columns: repeat(3, 1fr); width: max-content; max-width: 100%; }
  /* the home's column is a little wider here, so each card keeps its line on one row */
  .st-app[data-one-col][data-scene="home"]:not([data-layout="split"]) .st-center { max-width: calc(var(--space-80) * 15); }
}
/* the line under the name in body-md (14/20), a step under the 16px name, as on the signup page's role cards */
.st-app[data-one-col] .st-offer-card p.st-offer-short { font-family: var(--type-body-md-font); font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); font-weight: var(--type-body-md-weight); }

/* ?one_column (Aayushmaan, 2026-10-23): at every width the page scrolls, as on a phone, not the area under the heading
   (the Test Prep list scrolled in its own box under Cueme). The book screen and the split keep their own. */
.st-app[data-one-col]:not([data-layout="split"]):not([data-scene="sm_book"]):not([data-opening]) .st-main { overflow-y: auto; overscroll-behavior: contain; }
.st-app[data-one-col]:not([data-layout="split"]):not([data-scene="sm_book"]):not([data-opening]) .st-center { height: auto; min-height: 100%; align-self: flex-start; justify-content: safe center; }
.st-app[data-one-col]:not([data-layout="split"]):not([data-scene="sm_book"]):not([data-opening]) .st-show { overflow: visible; flex: none; }

/* ?one_column (Aayushmaan, 2026-10-23): the input sits in a bar of its own, the page's colour with a hairline on top,
   across the whole width; what scrolls goes behind it, never over it. */
.st-app[data-one-col]:not([data-layout="split"]) .st-composer {
  left: 0; right: 0; bottom: 0; translate: none; width: auto; max-width: none; margin: 0; z-index: var(--z-sticky);
  padding: var(--space-16) var(--space-16) var(--space-24);
}
/* The bar behind the input (the page's colour, a hairline on top) only when the page scrolls (stage.js data-over), and
   apart from the input: the input fades between questions, the bar stays, so nothing shows through it meanwhile. */
.st-app[data-one-col]:not([data-layout="split"])::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar-h, calc(var(--space-80) + var(--space-24)));
  z-index: var(--z-sticky); pointer-events: none;
  background: var(--neutral-2); border-top: 1px solid var(--border-tertiary-soft); box-sizing: border-box;
  opacity: 0; transition: opacity var(--duration-fast) var(--ease-default);
}
.st-app[data-one-col][data-over]:not([data-layout="split"]):not([data-opening])::after { opacity: 1; }
.st-app[data-one-col]:not([data-layout="split"]) .st-composer { z-index: calc(var(--z-sticky) + 1); }
/* The back button floats over the page with nothing behind it: no bar across the top to cut Cueme off as it scrolls. */
.st-app[data-one-col]:not([data-layout="split"]) .st-top { background: none; }
.st-app[data-one-col]:not([data-layout="split"]) .st-composer > * { max-width: calc(var(--space-80) * 7); margin-inline: auto; }
/* the room kept under the page is now the bar's whole height (about 104: 16 + the input + its voice line + 24) plus the
   gap kept on top, so the page centres above the bar and its end scrolls clear of it */
.st-app[data-one-col]:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-80) + var(--space-24) + var(--space-24)); }
@media (min-width: 901px) {
  .st-app[data-one-col]:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-80) + var(--space-24) + var(--space-64)); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .st-app[data-one-col]:not([data-layout="split"]) .st-main { padding-bottom: calc(var(--space-80) + var(--space-24) + var(--space-24)); }
}
/* the page scrolls as a whole, so no hairline over the screen's top when scrolled (that line marked the old inner scroll) */
.st-app[data-one-col][data-over~="top"]:not([data-layout="split"]) .st-show { border-image: none; }

/* ?one_column, desktop (Aayushmaan, 2026-10-23): Cueme travels (stage.js placeCueme). The flying Cueme; while it's in
   the air the one in the panel and the one on the chapter wait unseen. The chapter's Cueme needs no "Start here". */
.st-travel { position: fixed; left: 0; top: 0; z-index: calc(var(--z-overlay) + 1); pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.st-app[data-travel] #cueme, .st-app[data-travel] .st-nudge-bot { visibility: hidden; }
/* Only where Cueme travels (desktop): there its line sits in the panel beside the chapters. On a phone the page scrolls
   to the pick and Cueme's line goes off the top, so the chapter's Cueme keeps its "Start here" (Aayushmaan, 2026-10-26:
   "no text or prompt is visible to the user who has not turned on the speaker"). */
@media (min-width: 901px) { .st-app[data-one-col] .st-nudge-say { display: none; } }
/* Chapter 1 lit after 15 s with no tap (v1.2): no words from Cueme, so the bubble says it ("Not sure? Start here") */
@media (min-width: 901px) { .st-app[data-one-col] .st-chapters.is-idle-lit .st-nudge-say { display: block; } }
/* the book in Cueme's place at the top of the left panel, its name and contents beside it; the plan's own head goes */
.st-lbook { display: none; }
.st-app[data-lbook] #cueme { visibility: hidden; }
.st-app[data-lbook] .st-lbook { position: fixed; z-index: var(--z-raised); display: flex; align-items: center; gap: var(--space-16); }
.st-app[data-lbook] .st-lbook.is-fade { animation: st-fade var(--duration-slow) var(--ease-out) both; } /* arriving without Cueme's flight (Back to the chapters); with it, it fades in as Cueme sets off */
.st-lbook-art { position: relative; flex: none; height: 100%; display: flex; align-items: center; }
.st-lbook-text { display: flex; flex-direction: column; min-width: 0; }
.st-lbook-art > .th { display: block; height: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius-sm); background: var(--purple-accent-3) center / cover no-repeat; } /* Enrichment: the picked card's picture */
.st-lbook-text b { font-family: var(--type-heading-xs-font); font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight-bold); color: var(--text-primary); }
.st-lbook-text > span:last-child { font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-secondary); }
.st-app[data-lbook] .st-plan-head { display: none; }
/* while Cueme waits on the opening book, the page under it is laid out but unseen; it fades in as Cueme sets off */
.st-app[data-one-col][data-reveal] .st-show, .st-app[data-one-col][data-reveal] .st-lbook { transition: opacity 520ms var(--ease-out); }
.st-app[data-one-col][data-hold] .st-show, .st-app[data-one-col][data-hold] .st-lbook { opacity: 0; transition: none; }
/* Cueme never cross-fades when the layout changes (Aayushmaan, 2026-10-23: "fade looks cheap"): it moves and resizes as
   one, the new drawing only (the old one goes at once) */
::view-transition-old(st-cueme) { display: none; }
::view-transition-new(st-cueme) { animation: none; }

/* Desktop (Aayushmaan, 2026-10-26: "Cueme bounces a lot after each question"): Cueme and the question stay at one height
   on every question screen, a set distance from the top, instead of the block centring and moving with each question's
   answers (it moved 7–40px every time). Cueme sits about 30% down the window, where the centred block sat on average. Only the answers below change. The welcome, the opening loader, the book screen
   and the two-panel screens keep their own layouts. */
@media (min-width: 641px) {
  .st-app[data-one-col]:not([data-layout="split"]):not([data-scene="welcome"]):not([data-scene="sm_book"]):not([data-opening]) .st-center {
    justify-content: flex-start; padding-top: clamp(var(--space-24), calc(30dvh - var(--space-80)), calc(var(--space-80) * 3)); /* Cueme about 30% down (2026-10-26: 10% left the space all below) */
  }
}

/* Desktop: the curriculum list (US, then every state) is too long for the 30% spot, so that one screen starts higher. */
@media (min-width: 641px) {
  .st-app[data-one-col][data-scene="sm_setup"][data-ask="curriculum"]:not([data-layout="split"]):not([data-scene="welcome"]):not([data-scene="sm_book"]):not([data-opening]) .st-center { padding-top: calc(var(--space-48) + var(--space-8)); } /* as specific as the pin, and after it; clear of the progress bar */
}

/* Desktop question screens: once the page is scrolled (stage.js data-over="top"), the top bar takes the page colour and
   a hairline, as the input's bar does at the bottom, so Cueme and the heading go under Back and the progress bar, not
   over them (Rohit, 2026-11-01). At rest it stays clear, so nothing cuts Cueme off. */
@media (min-width: 641px) {
  .st-app[data-one-col]:not([data-layout="split"]) .st-top { border-bottom: 1px solid transparent; transition: background-color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default); }
  .st-app[data-one-col][data-over~="top"]:not([data-layout="split"]):not([data-opening]) .st-top { background: var(--neutral-2); border-bottom-color: var(--border-tertiary-soft); }
}

/* The progress bar on desktop too (Aayushmaan, 2026-10-26), as on a phone: one brand bar, only when there's a Back.
   Question screens: centred over the content column (560 at most), level with Back. The two-panel screens: across the
   top of the left panel, after Back, so it stays with Cueme and the words. */
@media (min-width: 641px) {
  .st-app[data-one-col] .st-progress:not([hidden]) {
    display: flex; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
    width: min(calc(var(--space-80) * 7), calc(100% - var(--space-80) * 3)); pointer-events: none;
  }
  .st-app[data-one-col] .st-progress span { flex: 1; height: var(--space-8); border-radius: var(--radius-full); background: var(--neutral-4); overflow: hidden; }
  .st-app[data-one-col] .st-progress i { display: block; height: 100%; width: 0; border-radius: var(--radius-full); background: var(--brand-5); transition: width 500ms var(--bot-ease-out); }
  .st-app[data-one-col][data-layout="split"] .st-progress:not([hidden]) {
    left: calc(var(--space-32) + var(--space-48)); translate: 0 -50%; width: calc(30% - var(--space-32) - var(--space-48) - var(--space-32) - var(--space-40) - var(--space-8)); /* after Back; the speaker after it, in the panel */
  }
}

/* The progress bar comes in gently when it first appears (Aayushmaan, 2026-10-26: "appears abruptly"): it fades in and
   grows from its left end over --duration-slow; the fill already eases between steps. */
@keyframes st-bar-in { from { opacity: 0; transform: scaleX(0.92); } to { opacity: 1; transform: none; } }
.st-progress:not([hidden]) { transform-origin: left center; animation: st-bar-in var(--duration-slow) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .st-progress:not([hidden]) { animation: none; } }

/* The speaker in the top-right corner, at the regular button size, on desktop and phone (Rohit, 2026-10-30: "increase
   the size of the mute button and put it on the right corner as it was earlier"). */
.st-app[data-one-col] .st-speaker.btn { width: var(--space-40); height: var(--space-40); }
.st-app[data-one-col] .st-speaker svg { width: var(--space-24); height: var(--space-24); }
/* The two-panel screens: the speaker stays in the left panel, right after the progress bar, with no chip behind it
   (Aayushmaan, 2026-11-02). */
@media (min-width: 641px) {
  .st-app[data-one-col][data-layout="split"]:has(#progress:not([hidden])) .st-top-right {
    position: absolute; top: 50%; translate: 0 -50%; left: calc(30% - var(--space-32) - var(--space-40)); margin: 0; padding: 0; background: none;
  }
}

/* Enrichment with the same choice look as the rest of the flow (Aayushmaan, 2026-10-26): the weekly plans (30 / 60 /
   90 min) and the activity cards are CueDesign interactive cards: the 1px --border-secondary stroke, 8px corners, a
   white face; on hover the --border-primary stroke and --shadow-sm (where there is hover), a 0.98 press. Cueme's pick
   gets the selected look (brand border + ring), as the suggested chapter does, not a purple wash. */
.st-app[data-one-col] .st-plan, .st-app[data-one-col] .st-acard {
  border: 1px solid var(--border-secondary); border-radius: var(--radius-md); background: var(--neutral-0); translate: none;
}
@media (hover: hover) {
  .st-app[data-one-col] .st-plan:hover, .st-app[data-one-col] .st-acard:hover { border-color: var(--border-primary); box-shadow: var(--shadow-sm); background: var(--neutral-0); translate: none; }
}
.st-app[data-one-col] .st-plan:active, .st-app[data-one-col] .st-acard:active { scale: 0.98; }
.st-app[data-one-col] .st-plan.is-pick, .st-app[data-one-col] .st-acard.is-pick { background: var(--neutral-0); border-color: var(--text-brand); box-shadow: inset 0 0 0 1px var(--text-brand); }
/* the ring sits inside the border, not outside it: outside, a card resting on a part pixel drew it thick on one side and thin on the other (Aayushmaan, 2026-10-27: "strokes are messy") */

/* No turning blue edge glow on the welcome in the phone layout (Aayushmaan, 2026-10-26); desktop keeps it. */
@media (max-width: 640px) { .st-glow { display: none; } }

/* Phone home: the three cards one height, the tallest's (Aayushmaan, 2026-10-26: on a 375px phone "Their school book,
   chapter by chapter" wraps, and School Math stood taller than the others). */
@media (max-width: 640px) { .st-app .st-offers { grid-auto-rows: 1fr; } }

/* Phone home: the line under the card name in body-sm (12/16), as in prod (Aayushmaan, 2026-10-26: at 14px "Their school
   book, chapter by chapter" took two lines on a 375px phone). Desktop keeps body-md. */
@media (max-width: 640px) {
  .st-app[data-one-col] .st-offer-card p.st-offer-short { font-family: var(--type-body-sm-font); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); font-weight: var(--type-body-sm-weight); }
}

/* Phone: Cueme's line by its chapter (stage.js pickSay), when the page has scrolled the line at the top away. A speech
   bubble across the row above the chapter, as "Start here" is drawn, its tail pointing down at the chapter's Cueme. */
.st-pick-say {
  grid-column: 1 / -1; position: relative; margin: 0 0 var(--space-24); text-align: left; padding: var(--space-12) var(--space-16); border-radius: var(--radius-md);
  background: var(--neutral-13); color: var(--text-inverse-primary);
  font-family: var(--type-body-md-font); font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); font-weight: var(--type-body-md-weight);
  animation: st-fade var(--duration-slow) var(--ease-out) both;
}
.st-pick-say::after {
  content: ''; position: absolute; top: 100%; left: var(--tail-x, 50%); translate: -50% -1px;
  width: var(--space-16); height: var(--space-8); background: var(--neutral-13); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.st-chapters.has-say .st-nudge-say { display: none; }

/* Phone: the chapter screens are "split" in name only (one column), so the desktop speaker chip (padding and a -4
   margin, for the right panel scrolling under it) doesn't apply: it pushed the speaker 4px up off Back's line and 4px
   past the screen's edge (Aayushmaan, 2026-10-26). The speaker sits as on every other phone screen. */
@media (max-width: 640px) {
  .st-app[data-layout="split"] .st-top-right { margin: 0; padding: 0; background: none; }
}

/* A line about the input (the topic step's "Or type the topic below"), on the input itself rather than under the
   answers (Aayushmaan, 2026-10-26). */
.st-bar-note { margin: 0 0 var(--space-8); padding: 0 var(--space-4); color: var(--text-tertiary); text-align: left; }

/* Phone Enrichment (Aayushmaan, 2026-10-27: "vertical scroll can be too lengthy"): smaller cards, about one and a half
   to a row so the next one shows there's more to swipe, tighter insides, the description in body-sm, and less room
   between the three rows, so Puzzles, Explorations and Games sit in about one screen. */
@media (max-width: 640px) {
  .st-app .st-shelf { gap: var(--space-24); }
  .st-app .st-kind-row { gap: var(--space-8); }
  .st-app .st-carousel .st-acard { flex-basis: calc((100% - var(--space-12)) / 1.6); padding: var(--space-12); gap: var(--space-8); }
  .st-app .st-acard .name { margin-bottom: calc(var(--space-8) * -1 + var(--space-2)); font-family: var(--type-label-md-font); font-size: var(--type-label-md-size); line-height: var(--type-label-md-lh); font-weight: var(--type-label-md-weight); }
  .st-app .st-acard .sub { font-family: var(--type-body-sm-font); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); font-weight: var(--type-body-sm-weight); min-height: calc(var(--type-body-sm-lh) * 2); }
}
/* One kind, all of it (their answer was one interest, or "See all"): on a phone a row to swipe too, not a column of
   full-width cards (it ran to three and a half screens). */
@media (max-width: 640px) {
  .st-app .st-cards.is-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; contain: inline-size; }
  .st-app .st-cards.is-grid::-webkit-scrollbar { display: none; }
  .st-app .st-cards.is-grid:has(.is-pick) { padding-top: calc(var(--space-64) + var(--space-8)); }
  .st-app .st-cards.is-grid > .st-acard { flex: 0 0 calc((100% - var(--space-12)) / 1.6); min-width: 0; scroll-snap-align: start; padding: var(--space-12); gap: var(--space-8); }
}
/* Phone: the rows run to the screen's edges (Aayushmaan, 2026-10-27: the next card was "cut" at the page margin). The
   first card still starts on the margin (28: the page's 24 + the screen's 4), and snaps back to it. */
@media (max-width: 640px) {
  .st-app .st-carousel .st-cards, .st-app .st-cards.is-grid {
    margin-inline: calc((var(--space-24) + var(--space-4)) * -1); padding-inline: calc(var(--space-24) + var(--space-4));
    scroll-padding-inline: calc(var(--space-24) + var(--space-4));
  }
}
/* Wider screens too (Aayushmaan, 2026-10-27: "the activities are getting cut on scroll, make the container edge to
   edge"): each row runs to the right panel's edges (its 40 padding). Not on a tablet width, where the screen area
   scrolls itself and a wider row would scroll it sideways. */
@media (min-width: 901px) {
  .st-app .st-carousel .st-cards { margin-inline: calc(var(--space-40) * -1); padding-inline: var(--space-40); scroll-padding-inline: var(--space-40); }
}

/* ?one_column (Aayushmaan, 2026-10-27): Cueme sits on its picked activity's top-right corner, half over the edge, like a
   sticker, instead of above the card in a gap of its own (the row's gap grew when it appeared). Every row keeps the same
   headroom for it, given back with a negative margin, so nothing moves when Cueme appears. */
.st-app[data-one-col] .st-carousel .st-cards, .st-app[data-one-col] .st-carousel .st-cards:has(.is-pick) { padding-top: var(--space-32); margin-top: calc(var(--space-32) * -1); }
/* The cards end on a part pixel (264.33 tall) and the row scrolls sideways, so it clips: the bottom stroke went missing
   on some rows (Aayushmaan, 2026-10-28). A little room under the cards, given back below the row. */
.st-app[data-one-col] .st-carousel .st-cards { padding-bottom: var(--space-2); margin-bottom: calc(var(--space-2) * -1); }
.st-app[data-one-col] .st-acard .st-nudge { left: auto; right: var(--space-12); bottom: calc(100% - var(--space-24)); translate: none; animation: st-nudge-bob-y 1.6s var(--bot-ease) infinite; }
.st-app[data-one-col] .st-acard .st-nudge-bot { --bot-size: var(--space-48); }
@keyframes st-nudge-bob-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--space-4) * -1); } }
@media (prefers-reduced-motion: reduce) { .st-app[data-one-col] .st-acard .st-nudge { animation: none; } }

/* An activity flipping open (stage.js flipCard): the card and its back, turned in 3D. */
.st-flip { position: fixed; inset: 0; z-index: var(--z-overlay); pointer-events: none; perspective: calc(var(--space-80) * 30); }
.st-flip .box { position: absolute; transform-style: preserve-3d; border-radius: var(--radius-md); }
.st-flip .shade { position: absolute; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); opacity: 0; transform-origin: center; }
.st-flip .front, .st-flip .back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: inherit; overflow: hidden; }
.st-flip .back { transform: rotateY(180deg); border: 1px solid var(--border-tertiary-soft); }
/* The home cards' icons are drawn on a 16–18px grid and shown at 32, so their 1-unit outline grew to ~1.85px; the role
   cards' icons (a 32 grid at 32) have a 1px outline. Same weight for both (Aayushmaan, 2026-10-27): the outline keeps its
   own width on screen whatever size the icon is drawn at, so 1 is 1px; the cap's 0.3 tassel line stays a fine line. */
.st-offer-icon svg * { vector-effect: non-scaling-stroke; }
.st-offer-icon svg [stroke-width="0.3"] { stroke-width: 0.5; }
/* the full list of one kind ("See all") too: no room held above the pick, Cueme sits on its corner like the rows' */
.st-app[data-one-col] .st-cards.is-grid:has(.is-pick) { padding-top: 0; }

/* ?one_column (Aayushmaan, 2026-10-27): an activity's page, stacked and centred on Enrichment's own tint: the picture,
   the name, what you do, one grey line of facts (its kind and size), Play. No kicker, no pills. */
.st-facts-line { display: none; }
.st-app[data-one-col] .st-activity { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); max-width: calc(var(--space-80) * 7); margin-inline: auto; text-align: center; }
.st-app[data-one-col] .st-activity .body { align-items: center; gap: var(--space-8); }
.st-app[data-one-col] .st-activity .body > .st-kicker, .st-app[data-one-col] .st-activity .badge-group { display: none; }
.st-app[data-one-col] .st-activity .st-facts-line { display: block; color: var(--text-secondary); }
.st-app[data-one-col] .st-activity .st-cta { justify-content: center; margin-top: var(--space-16); }
/* (2026-10-27, second pass) heading, its line and facts, then the picture, then Play: centred both ways, on the lesson
   screens' peach (brand-1), so every "about to start" page looks alike */
.st-app[data-one-col] .st-activity .body { display: contents; }
.st-app[data-one-col] .st-activity .st-back { order: 0; }
.st-app[data-one-col] .st-activity h2 { order: 1; }
.st-app[data-one-col] .st-activity .body > p.type-body-md:not(.st-facts-line) { order: 2; margin-top: calc(var(--space-16) * -1); } /* sits close under the name */
.st-app[data-one-col] .st-activity .st-facts-line { order: 3; margin-top: calc(var(--space-16) * -1); }
.st-app[data-one-col] .st-activity .th { order: 4; }
.st-app[data-one-col] .st-activity .st-cta { order: 5; margin-top: 0; }
@media (min-width: 901px) {
  .st-app[data-one-col][data-layout="split"][data-scene="en_activity"] .st-show { background: var(--neutral-0); justify-content: safe center; } /* white, the card's own face: the peach thumbnails ran into a peach page (2026-10-27) */
}

/* ───────────── the landing (?landing, Aayushmaan 2026-10-28) ─────────────
   The signup page's first screen (signup-cueme-flow .split), drawn by Cueme over its own page: copy on the left, the
   showreel on the right; stacked under a gold masthead on a phone or an upright tablet. Rules copied from that page and
   scoped here, on this bundle's token names. Get started fades it away, onto Cueme's first question. */
.st-landing { position: fixed; inset: 0; z-index: var(--z-modal); overflow-y: auto; background: var(--neutral-1); transition: opacity 320ms var(--ease-out), visibility 0s linear 0s; }
.st-landing[hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms; }
.st-landing .split { background: var(--neutral-0); height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.st-landing .form-col { --col-measure: 100%; --lede-gap: var(--space-40); background: var(--neutral-1); padding: var(--space-48) calc(var(--space-48) + var(--space-8)) var(--space-24); display: flex; flex-direction: column; gap: var(--space-32); justify-content: safe center; align-items: safe center; }
.st-landing .form-col > * { width: 100%; max-width: var(--col-measure); }
.st-landing .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 13.33px; }
.st-landing .brand > svg { display: block; height: 13.33px; width: auto; color: var(--text-primary); }
.st-landing .trustpilot { display: inline-flex; align-items: center; gap: var(--space-4); color: var(--text-primary); }
.st-landing .trustpilot .tp-rating strong { font-weight: var(--type-body-emphasis); }
.st-landing .trustpilot .tp-logo { display: block; flex: 0 0 auto; width: 78px; height: 20px; transform: translateY(-2px); }
.st-landing .trustpilot .tp-reviews { display: inline-flex; align-items: center; gap: 5px; margin-left: var(--space-2); color: var(--text-primary); }
.st-landing .trustpilot .tp-dot { flex: 0 0 auto; width: 2px; height: 2px; border-radius: var(--radius-full); background: var(--neutral-13); }
.st-landing .form-block { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; max-width: 26rem; }
.st-landing .form-lede { margin-bottom: var(--lede-gap); }
.st-landing .form-lede h1 { color: var(--text-primary); margin: 0 0 var(--space-12); text-wrap: balance; }
.st-landing .form-lede p { color: var(--text-primary); margin: 0; }
.st-landing .actions { display: flex; flex-direction: column; gap: var(--space-16); }
.st-landing .actions .btn { min-height: 56px; font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); }
.st-landing .signin { color: var(--text-secondary); margin: var(--space-20) 0 0; }
.st-landing .terms { color: var(--text-tertiary); margin: 0; text-align: center; text-wrap: balance; }
.st-landing .cm-link { color: var(--text-secondary); }
.st-landing .terms .cm-link { color: inherit; }
.st-landing .cm-link:not(.cm-link-sm):not(.cm-link-md):not(.cm-link-lg) { text-decoration: underline 1.5px; text-underline-offset: 2px; }
.st-landing .cm-link:not(.cm-link-sm):not(.cm-link-md):not(.cm-link-lg)::after { content: none; }
.st-landing .shot-col { background: var(--brand-5); overflow: hidden; display: flex; }
.st-landing .shot { position: relative; margin: 0; width: 100%; height: 100%; }
.st-landing .shot video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; background: var(--brand-5); }
@media (min-width: 768px) {
  .st-landing .split { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .st-landing .form-col { --col-measure: 452px; }
  .st-landing .form-block { max-width: 452px; }
}
@media (min-width: 768px) and (orientation: landscape) {
  .st-landing .split { grid-template-columns: minmax(0, min(40%, 604px)) minmax(0, 1fr); }
  .st-landing .shot video { object-fit: contain; object-position: center; }
}
@media (min-width: 1100px) { .st-landing .form-col { --cta-gap: var(--space-24); } }
@media (min-width: 768px) and (max-width: 1099px) {
  .st-landing .form-col { --lede-gap: var(--space-24); padding: var(--space-32); gap: var(--space-20); }
  .st-landing .form-lede h1 { font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-lh); }
  .st-landing .form-lede p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); }
  .st-landing .actions .btn { min-height: 48px; }
}
@media (min-width: 768px) and (max-width: 1099px) and (orientation: landscape) { .st-landing .form-col { padding-left: var(--space-32); padding-right: var(--space-32); } }
@media (min-width: 768px) and (max-width: 1099px) and (orientation: landscape) and (max-height: 660px) {
  .st-landing .form-col { --lede-gap: var(--space-12); padding-top: var(--space-20); padding-bottom: var(--space-20); gap: var(--space-8); }
  .st-landing .form-lede p { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
  .st-landing .signin { margin-top: var(--space-8); }
}
@media (min-width: 768px) and (min-height: 781px) and (max-height: 860px) {
  .st-landing .form-col { --lede-gap: var(--space-24); padding: var(--space-40) var(--space-48); gap: var(--space-20); }
  .st-landing .actions { gap: var(--space-12); }
  .st-landing .signin { margin-top: var(--space-16); }
}
@media (min-width: 768px) and (max-height: 780px) {
  .st-landing .form-col { --lede-gap: var(--space-16); padding: var(--space-24) var(--space-48); gap: var(--space-12); min-height: 0; overflow-y: auto; }
  .st-landing .actions { gap: var(--space-8); }
  .st-landing .actions .btn { min-height: 48px; }
  .st-landing .form-lede h1 { font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-lh); margin-bottom: var(--space-8); }
  .st-landing .form-lede p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); }
  .st-landing .signin { margin-top: var(--space-12); }
}
/* Stacked: a phone, or a tablet held upright. The masthead moves out of the column to the top (stage.js), on gold. */
@media (min-width: 768px) and (orientation: portrait) {
  .st-landing .split { min-height: 100svh; height: auto; overflow: visible; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(300px, 1fr) auto; }
  .st-landing .split > .brand { order: -2; background: var(--brand-5); padding: var(--space-32) calc((100% - 452px) / 2) var(--space-20); gap: var(--space-8); }
  .st-landing .shot-col { display: block; order: -1; height: auto; margin-top: -2px; }
  .st-landing .shot video { object-position: center top; }
  .st-landing .form-col { padding: var(--space-40) calc((100% - 452px) / 2) var(--space-48); }
  .st-landing .form-block { max-width: 452px; }
}
@media (max-width: 767px) {
  /* The reel takes the screen's free space and the copy, button and terms sit together at the foot (Aayushmaan,
     2026-10-29): the phone cut (4:5) fills the reel from the top, no taller than its own shape, never under the band's
     202px on a short phone. */
  .st-landing .split { height: auto; min-height: 100svh; overflow: visible; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(202px, 1fr) auto; }
  .st-landing .form-block { flex: 0 0 auto; }
  .st-landing .terms { padding-bottom: env(safe-area-inset-bottom, 0px); } /* clear of the iPhone's home bar */
  .st-landing .split > .brand { order: -2; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: var(--space-16); min-height: 78px; background: var(--brand-5); padding: 22px var(--space-24) var(--space-16); }
  .st-landing .split > .brand > svg { flex: 0 0 auto; margin-top: 5px; }
  .st-landing .trustpilot { flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: var(--space-2); column-gap: var(--space-4); text-align: right; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); }
  .st-landing .trustpilot .tp-rating { font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); }
  .st-landing .trustpilot .tp-reviews { flex-basis: 100%; justify-content: flex-end; margin-left: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); }
  .st-landing .trustpilot .tp-dot { display: none; }
  .st-landing .shot-col { order: -1; height: auto; min-height: 0; max-height: 125vw; margin-top: -2px; }
  .st-landing .shot { position: relative; overflow: hidden; }
  .st-landing .shot video { position: absolute; inset: 0; object-fit: cover; object-position: center top; }
  .st-landing .form-col { --lede-gap: var(--space-32); padding: var(--space-24) var(--space-24) var(--space-24); }
  .st-landing .form-block { max-width: none; }
  .st-landing .form-lede h1 { font-size: var(--type-heading-xl-size); line-height: var(--type-heading-xl-lh); margin-bottom: var(--space-8); }
  .st-landing .form-lede p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); }
  .st-landing .actions { gap: var(--space-24); }
  .st-landing .actions .btn { min-height: 0; height: 40px; --btn-pad: var(--space-20); font-size: var(--type-label-md-size); line-height: var(--type-label-md-lh); }
  .st-landing .signin { margin-top: var(--space-24); }
}
@media (max-width: 767px) and (max-height: 759px) {
  .st-landing .form-col { padding-top: var(--space-24); padding-bottom: var(--space-16); gap: var(--space-24); }
  .st-landing .form-lede h1 { font-size: var(--type-heading-lg-size); line-height: var(--type-heading-lg-lh); }
  .st-landing .signin { margin-top: var(--space-12); }
}
/* Parent or adult / Student (v1.4, Sachin 2026-11-26): the app's sign-up popup's first step, in place of Get started.
   Figma App-Growth "Role card" (600:45, used in 600:53): white, 1px border-interactive, radius sm, 16px padding and gaps,
   12px apart; the Fill user / graduate icon at 32px; title Heading/xs-bold (16/24), description Body/md (14/20) in
   text-secondary; the Line / next arrow (24px) shows on hover (desktop) and always on touch. */
.st-landing .actions.who { gap: var(--space-12); }
.st-landing .who-card { display: flex; align-items: center; gap: var(--space-16); width: 100%; margin: 0; padding: var(--space-16);
  background: var(--neutral-0); color: var(--text-primary); border: 1px solid var(--text-primary); border-radius: var(--radius-sm);
  font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-landing .who-card:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.st-landing .who-icon { flex: 0 0 auto; display: block; width: 32px; height: 32px; }
.st-landing .who-text { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; }
.st-landing .who-title { font-family: var(--font-heading); font-weight: 700; font-size: var(--type-heading-xs-size); line-height: 24px; }
.st-landing .who-sub { font-family: var(--font-body); font-weight: 400; font-size: var(--type-body-md-size); line-height: 20px; color: var(--text-secondary); }
.st-landing .who-arrow { flex: 0 0 auto; display: block; width: 24px; height: 24px; opacity: 0; transition: opacity 160ms var(--ease-out); }
@media (hover: hover) { .st-landing .who-card:hover .who-arrow, .st-landing .who-card:focus-visible .who-arrow { opacity: 1; } }
@media (hover: none) { .st-landing .who-arrow { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-landing, .st-landing[hidden] { transition: none; } .st-landing .who-arrow { transition: none; } }

/* The landing, matched to the live app.cuemath.com/signup (measured 2026-10-29; Aayushmaan: "the text size and
   positioning, logo positioning" differed). Three layouts by width only, as live: side by side from 1080px, stacked
   with a centred column from 768px, a phone below. Live has three sign-up buttons where this has one Get started;
   the heading, subtitle and button sit where live's do, and "Already have an account?" follows the button. These come
   last, so they win over the copied prototype rules above (including their short-screen ones: live scrolls). */
.st-landing .split { height: auto; min-height: 100svh; overflow: visible; }
.st-landing .brand { gap: var(--space-12); }
.st-landing .brand > svg { height: 14px; margin-top: 0; }
.st-landing .form-lede h1 { text-wrap: wrap; }
.st-landing .actions { gap: var(--space-16); }
.st-landing .actions .btn { min-height: var(--space-48); font-size: var(--type-label-lg-size); line-height: var(--type-label-lg-lh); }
/* the reel fills its space and never sizes it: its own shape made the column taller than the window (1920) and the
   stacked band taller than live's */
.st-landing .shot { position: relative; }
.st-landing .shot video { position: absolute; inset: 0; }
/* the space live's two other sign-up buttons take (2 × 48 + 2 × 16), kept under "Already have an account?", so the
   heading, button, reel and terms sit where live's do */
.st-landing .form-block { padding-bottom: calc(var(--space-48) * 2 + var(--space-32)); }
.st-landing .signin { margin-top: var(--space-20); }
.st-landing .form-block { flex: 0 0 auto; }
.st-landing .cm-link:not(.cm-link-sm):not(.cm-link-md):not(.cm-link-lg) { text-decoration: none; } /* live: no underline at rest */
@media (hover: hover) { .st-landing .cm-link:not(.cm-link-sm):not(.cm-link-md):not(.cm-link-lg):hover { text-decoration: underline 1.5px; text-underline-offset: 2px; } }
@media (min-width: 1080px) {
  .st-landing .split { grid-template-columns: 576px minmax(0, 1fr); grid-template-rows: none; }
  .st-landing .form-col { --col-measure: 452px; --lede-gap: var(--space-40); padding: var(--space-48) var(--space-24); gap: 0; justify-content: flex-start; align-items: center; min-height: 0; overflow: visible; }
  .st-landing .form-col > .brand { margin-bottom: var(--space-32); }
  /* centred in the space left, as live's block; the padding is live's two other sign-up buttons and their gaps
     (2 × 48 + 2 × 16), so the heading lands where live's does */
  .st-landing .form-block { flex: 1 1 auto; justify-content: center; max-width: 452px; }
  .st-landing .form-lede h1 { font-size: var(--type-display-md-size); line-height: var(--type-display-md-lh); letter-spacing: var(--type-display-md-tracking); margin-bottom: var(--space-12); }
  .st-landing .form-lede p { font-size: var(--type-body-xl-size); line-height: var(--type-body-xl-lh); }
  .st-landing .terms { text-align: start; }
  .st-landing .shot video { object-fit: cover; object-position: center; }
}
@media (max-width: 1079px) {
  .st-landing .split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(300px, 1fr) auto; }
  .st-landing .split > .brand { order: -2; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: var(--space-16); min-height: var(--space-80); background: var(--brand-5); padding: var(--space-24) var(--space-64) 0 calc(var(--space-64) + var(--space-12)); }
  .st-landing .split > .brand > svg { flex: 0 0 auto; margin-top: var(--space-4); }
  .st-landing .trustpilot { flex-wrap: wrap; justify-content: flex-end; row-gap: var(--space-2); column-gap: var(--space-4); text-align: right; }
  .st-landing .trustpilot .tp-reviews { flex-basis: 100%; justify-content: flex-end; margin-left: 0; font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); }
  .st-landing .trustpilot .tp-dot { display: none; }
  .st-landing .shot-col { display: block; order: -1; height: auto; min-height: 0; max-height: none; margin-top: -2px; }
  .st-landing .shot video { object-fit: cover; object-position: center top; }
  .st-landing .form-col { --col-measure: 536px; --lede-gap: var(--space-24); padding: var(--space-40) var(--space-24) var(--space-48); gap: 0; justify-content: flex-start; align-items: center; min-height: 0; overflow: visible; }
  /* live's text area is at least 577px tall on a tablet (40 + 453 + 20 + 16 + 48), the block centred in it */
  .st-landing .form-col { min-height: 577px; }
  .st-landing .form-block { max-width: 536px; flex: 1 1 auto; justify-content: center; }
  .st-landing .form-lede h1 br { display: none; } /* one line here; the break is for the phone and wide layouts */
  .st-landing .form-lede h1 { font-size: var(--type-display-sm-size); line-height: var(--type-display-sm-lh); letter-spacing: var(--type-display-sm-tracking); margin-bottom: var(--space-8); white-space: nowrap; } /* one line, as live */
  .st-landing .form-lede p { font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); }
  .st-landing .actions, .st-landing .signin { width: 100%; max-width: 452px; margin-inline: auto; }
  .st-landing .signin { text-align: center; }
  .st-landing .terms { max-width: 452px; margin-top: var(--space-20); text-align: center; }
}
@media (max-width: 767px) {
  .st-landing .split { grid-template-rows: auto minmax(202px, 1fr) auto; }
  .st-landing .split > .brand { padding: var(--space-20) var(--space-24) 0; }
  .st-landing .form-col { --col-measure: 452px; --lede-gap: var(--space-32); padding: var(--space-40) var(--space-24); }
  .st-landing .form-col { min-height: 0; }
  .st-landing .form-block { max-width: 452px; flex: 0 0 auto; justify-content: flex-start; }
  .st-landing .form-lede h1 br { display: inline; }
  .st-landing .form-lede h1 { font-size: var(--type-heading-xl-size); line-height: var(--type-heading-xl-lh); letter-spacing: var(--type-heading-xl-tracking); white-space: normal; }
  .st-landing .signin { text-align: start; }
  .st-landing .terms { margin-top: var(--space-32); text-align: start; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* v1.4 (Sachin 2026-11-26): the two Parent / Student cards stand 120px taller than Get started did (2 × 78 + 12 − 48),
   and the landing otherwise stays as it was: same type, same places, same showreel, no new scroll. Every layout has
   room under Sign in (side by side and tablets: the centred column's spare height; phones: the block's 128px bottom
   padding), so Sign in's negative margin keeps the block's height as with the button: the heading stays put and the
   cards and Sign in take that room. */
.st-landing { --who-extra: 120px; }
.st-landing .signin { margin-bottom: calc(-1 * var(--who-extra)); }

/* ───────────── the home screen, search first (v1.4, Sachin 2026-11-26) ─────────────
   What they want to learn comes first: the question, then the composer's own box moved right under it (homeAsk in
   stage.js), wider and taller than the bar, with Send outside as everywhere. The options sit lower and quieter: "Or pick
   one", then five small cards (School Math, Test Preparation, Puzzles, Games, Explorations). The bar below is empty
   while home is up, so it's hidden. Ids keep these over the older home-card layouts. */
.st-app[data-home-ask] #composer { display: none; }
/* …and nothing is kept for it: no bar backdrop, no space under the options (the page fits as it did, or scrolls less). */
.st-app[data-home-ask]::after { display: none; }
.st-app[data-home-ask] .st-main, .st-app[data-home-ask]:not([data-layout="split"]) .st-main,
.st-app[data-one-col][data-home-ask]:not([data-layout="split"]) .st-main { padding-bottom: var(--space-32); }
#show .st-home-ask { width: 100%; max-width: calc(var(--space-80) * 8); margin: 0 auto; }
#show .st-home-ask .st-input-row { width: 100%; }
#show .st-home-ask .cm-field input { min-height: 56px; font-size: var(--type-body-lg-size); }
#show .st-home-ask .btn { width: 56px; height: 56px; min-height: 56px; flex: 0 0 auto; }
#show .st-home-options { margin-top: var(--space-48); gap: var(--space-12); }
#show .st-home-or { margin: 0; font-size: var(--type-body-md-size); line-height: var(--type-body-md-lh); color: var(--text-tertiary); text-align: center; }
#show .st-offers--five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-12); width: 100%; max-width: calc(var(--space-80) * 13); grid-auto-rows: auto; }
#show .st-offers--five .st-offer-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: start;
  gap: var(--space-4); min-height: 0; padding: var(--space-16); border-radius: var(--radius-md); grid-column: auto; }
#show .st-offers--five .st-offer-card > * { grid-area: auto; align-self: auto; justify-self: auto; }
#show .st-offers--five .st-offer-icon { margin-bottom: var(--space-4); }
#show .st-offers--five .st-offer-icon svg, #show .st-offers--five .st-offer-icon img { width: 24px; height: 24px; }
#show .st-offers--five .st-offer-card h2 { margin: 0; font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh); font-weight: var(--type-heading-xs-weight-bold); }
#show .st-offers--five .st-offer-card p { display: block; max-width: none; margin: 0; font-family: var(--font-body); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-secondary); }
#show .st-offers--five .st-offer-card p.st-offer-short { display: none; }
#show .st-offers--five .st-offer-card.is-soon { padding-top: var(--space-16); }
#show .st-offers--five .st-soon { position: absolute; top: var(--space-12); right: var(--space-12); }
/* three to a row on tablets, the last two centred under them */
@media (min-width: 768px) and (max-width: 1099px) {
  #show .st-offers--five { display: flex; flex-wrap: wrap; justify-content: center; }
  #show .st-offers--five .st-offer-card { flex: 0 0 calc((100% - 2 * var(--space-12)) / 3); }
}
@media (max-width: 767px) {
  #show .st-home-options { margin-top: var(--space-32); }
  #show .st-home-ask .cm-field input { min-height: 48px; }
  #show .st-home-ask .btn { width: 48px; height: 48px; min-height: 48px; }
  #show .st-offers--five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  #show .st-offers--five .st-offer-card { padding: var(--space-12); }
  #show .st-offers--five .st-offer-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ───────────── home suggestions, Google-shortcut style (Aayushmaan, 2026-11-27, local test) ─────────────
   The five home options read as suggestions under the box, not a choice to make: no card, no description, no "Or pick
   one". Each is a round tinted container holding only its icon, with its name under it in heading-xs. A soft tile shows
   on hover, like Google's shortcuts. Tapping still opens the same place. */
.st-app #show .st-home-options { margin-top: var(--space-32); }
.st-app #show .st-home-or { display: none; }
.st-app #show .st-offers--five { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); max-width: none; }
.st-app #show .st-offers--five .st-offer-card {
  position: relative; flex: 0 0 auto; width: auto; min-width: calc(var(--space-80) + var(--space-24)); min-height: 0; white-space: nowrap;
  align-items: center; text-align: center; gap: var(--space-8);
  padding: var(--space-12) var(--space-8); border: 0; border-radius: var(--radius-lg); background: transparent; box-shadow: none;
}
.st-app #show .st-offers--five .st-offer-card:not(:disabled):hover { background: var(--neutral-3); border: 0; transform: none; }
.st-app #show .st-offers--five .st-offer-card:last-child:nth-child(odd) { grid-column: auto; }
.st-app #show .st-offers--five .st-offer-icon { width: calc(var(--space-48) + var(--space-8)); height: calc(var(--space-48) + var(--space-8)); margin: 0; border-radius: var(--radius-full); }
.st-app #show .st-offers--five .st-offer-icon svg, .st-app #show .st-offers--five .st-offer-icon img { width: 28px; height: 28px; }
.st-app #show .st-offers--five .st-offer-icon[data-v="school_math"] { background: var(--brand-1); }
.st-app #show .st-offers--five .st-offer-icon[data-v="test_prep"] { background: var(--info-1); }
.st-app #show .st-offers--five .st-offer-icon[data-v="enrichment"] { background: var(--purple-accent-1); }
.st-app #show .st-offers--five [data-kind="game"] .st-offer-icon { background: var(--warning-1); }
.st-app #show .st-offers--five [data-kind="exploration"] .st-offer-icon { background: var(--success-1); }
.st-app #show .st-offers--five .st-offer-card h2 {
  font-family: var(--type-heading-xs-font); font-size: var(--type-heading-xs-size); line-height: var(--type-heading-xs-lh);
  font-weight: var(--type-heading-xs-weight); letter-spacing: var(--type-heading-xs-tracking); color: var(--text-primary);
}
.st-app #show .st-offers--five .st-offer-card p { display: none; }
.st-app #show .st-offers--five .st-soon { position: absolute; top: 0; right: 0; }
@media (max-width: 767px) {
  .st-app #show .st-offers--five, .st-app[data-one-col] #show .st-offers--five { display: flex; gap: var(--space-4); row-gap: var(--space-8); }
  .st-app #show .st-offers--five .st-offer-card { flex: 0 0 calc((100% - 2 * var(--space-4)) / 3); min-width: 0; white-space: normal; padding: var(--space-8) var(--space-4); }
  .st-app #show .st-offers--five .st-offer-icon { width: var(--space-48); height: var(--space-48); }
  .st-app #show .st-offers--five .st-offer-icon svg, .st-app #show .st-offers--five .st-offer-icon img { width: 24px; height: 24px; }
}

/* Home suggestions read as suggestions (Aayushmaan, 2026-11-27): grey and quiet until hovered, a muted line above
   naming them. A tap opens the section, as before. The box stays loudest. */
.st-app #show .st-home-or { display: block; margin: 0 0 var(--space-4); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-tertiary); }
.st-app #show .st-offers--five .st-offer-card h2 { color: var(--text-secondary); transition: color var(--duration-fast) var(--ease-default); }
.st-app #show .st-offers--five .st-offer-icon { transition: background-color var(--duration-fast) var(--ease-default); }
.st-app #show .st-offers--five .st-offer-icon svg, .st-app #show .st-offers--five .st-offer-icon img { transition: filter var(--duration-fast) var(--ease-default); }
.st-app #show .st-offers--five .st-offer-card:not(:hover):not(:focus-visible) .st-offer-icon { background: transparent; }
.st-app #show .st-offers--five .st-offer-card:not(:hover):not(:focus-visible) .st-offer-icon svg,
.st-app #show .st-offers--five .st-offer-card:not(:hover):not(:focus-visible) .st-offer-icon img { filter: grayscale(1); }
.st-app #show .st-offers--five .st-offer-card:is(:hover, :focus-visible) h2 { color: var(--text-primary); }
.st-app #show .st-offers--five .st-offer-card:not(:disabled):hover { background: transparent; }

/* The input box, minimal (Aayushmaan, 2026-11-27, after a chat-app reference): one rounded box holding the words, the
   mic and Send. The CueDesign field's outline and floating label are gone: the label's words are the placeholder now
   (paintPlaceholder in stage.js) and the label stays for screen readers. Send sits inside and only shows once there's
   something to send. No attach button: Cueme takes no files. Everywhere the box is (home and the bar below). */
.st-app #form.st-input-row {
  align-items: center; gap: var(--space-8);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-16);
  background: var(--neutral-0); border: 1px solid var(--border-secondary); border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--ease-default);
}
.st-app #form.st-input-row:hover { border-color: var(--border-primary-soft); }
.st-app #form.st-input-row:focus-within { border-color: var(--border-primary); }
.st-app #form .cm-field-notch { display: none; }
.st-app #form .cm-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-app #form #text {
  min-height: var(--space-40); padding: 0 var(--space-32) 0 0; border: 0; background: transparent; box-shadow: none; outline: none;
  font-family: var(--type-body-lg-font); font-size: var(--type-body-lg-size); line-height: var(--type-body-lg-lh); color: var(--text-primary);
}
.st-app #form #text::placeholder { color: var(--text-tertiary); opacity: 1; }
.st-app #form #send, #show .st-home-ask #form #send {
  width: var(--space-40); height: var(--space-40); min-height: var(--space-40); padding: 0; border-radius: var(--radius-full); opacity: 1; pointer-events: auto;
}
.st-app #form #send {
  overflow: hidden; scale: 1;
  transition: width var(--duration-normal) var(--ease-out), margin var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out), scale var(--duration-normal) var(--ease-out);
}
/* Send eases in with the first letter (Aayushmaan, 2026-11-27: it popped in): it grows from nothing, fades and scales
   up, and the mic slides over with it. It leaves the same way, a little faster, when the box is emptied. */
.st-app #form:has(#text:placeholder-shown) #send {
  width: 0; min-width: 0; margin-left: calc(var(--space-8) * -1); opacity: 0; scale: 0.6; pointer-events: none; border-width: 0;
  transition-duration: var(--duration-fast);
}
@media (prefers-reduced-motion: reduce) { .st-app #form #send { transition: opacity var(--duration-fast) linear; scale: 1; } }
/* home: the same box, a little taller, as the page's main thing */
.st-app #show .st-home-ask #form.st-input-row { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.st-app #show .st-home-ask #form #text { min-height: var(--space-40); font-size: var(--type-body-lg-size); }
/* The mic at a size people notice (Aayushmaan, 2026-11-27: 16px was getting ignored): a 24px line icon in secondary
   ink, primary on hover; its round hover tint stays 40px, like Send. The words leave room for it. */
.st-app #form #mic { --icon-size: var(--space-24); width: var(--space-24); height: var(--space-24); color: var(--text-secondary); }
.st-app #form #mic svg { width: var(--space-24); height: var(--space-24); }
.st-app #form #mic:hover { color: var(--text-primary); }
.st-app #form #text { padding-right: var(--space-40); }
/* The caret in the text's own ink (Aayushmaan, 2026-11-27): CueDesign's brand-5 caret read as a hairline on white. */
.st-app #form #text { caret-color: var(--text-primary); }
/* Send as a rounded square, like CueDesign's icon buttons, its corner the box's less the 4px between them, so the two
   curves run parallel (Aayushmaan, 2026-11-27). */
.st-app #form #send, #show .st-home-ask #form #send { border-radius: calc(var(--radius-lg) - var(--space-4)); }

/* Spacing in the box, made even (Aayushmaan, 2026-11-27): 8px round Send on every side (16px on the left, where the
   words start), so Send's corner is the box's 16 less 8 = 8 (radius-md). The mic gets a 40px tap area of its own, its
   24px icon centred in it, 8px before Send; with Send gone it sits 8px from the edge, like Send. Same on home and bar. */
.st-app #form.st-input-row, .st-app #show .st-home-ask #form.st-input-row {
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-16); gap: var(--space-8);
}
.st-app #form #send, #show .st-home-ask #form #send { border-radius: var(--radius-md); }
.st-app #form .cm-field-wrap { position: relative; }
.st-app #form #mic {
  position: absolute; right: 0; top: 50%; translate: 0 -50%; transform: none;
  width: var(--space-40); height: var(--space-40); display: grid; place-items: center; margin: 0;
}
.st-app #form #mic::before { inset: 0; }
.st-app #form #text { padding-right: calc(var(--space-40) + var(--space-8)); }

/* The box grows with long answers (Aayushmaan, 2026-11-27): the words are a textarea, one line to start, up to five
   (stage.js sets the height), then it scrolls inside. Mic and Send stay on the bottom line, as in chat apps. */
.st-app #form.st-input-row { align-items: flex-end; }
.st-app #form .cm-field, .st-app #form .cm-field-wrap { height: auto; min-height: 0; }
.st-app #form #text {
  display: block; width: 100%; box-sizing: border-box; resize: none; overflow-y: hidden; margin: 0;
  min-height: var(--space-40); padding-top: var(--space-8); padding-bottom: var(--space-8);
}
.st-app #form #mic { top: auto; bottom: 0; translate: none; }

/* The five suggestions spaced evenly (Aayushmaan, 2026-11-27): five equal columns as wide as the box above, each
   suggestion centred in its column, so the gaps between them match. Phones keep three to a row. */
@media (min-width: 768px) {
  .st-app #show .st-offers--five {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    width: 100%; max-width: calc(var(--space-80) * 8); margin-inline: auto;
  }
  .st-app #show .st-offers--five .st-offer-card { width: 100%; min-width: 0; justify-self: stretch; }
}

/* Parent / Student cards: hover as CueDesign's interactive card (Aayushmaan, 2026-11-27): a small shadow on hover, a
   98% press, both on the motion tokens; the next arrow slides in 4px as it fades instead of popping in place. The
   card had no hover of its own before, only the arrow's raw 160ms fade. */
.st-landing .who-card {
  transition: box-shadow var(--duration-instant) var(--ease-default), border-color var(--duration-instant) var(--ease-default),
    scale var(--duration-instant) var(--ease-default);
}
@media (hover: hover) {
  .st-landing .who-card:hover { box-shadow: var(--shadow-sm); }
  .st-landing .who-arrow { translate: calc(var(--space-4) * -1) 0; transition: opacity var(--duration-fast) var(--ease-out), translate var(--duration-fast) var(--ease-out); }
  .st-landing .who-card:hover .who-arrow, .st-landing .who-card:focus-visible .who-arrow { translate: 0 0; }
}
.st-landing .who-card:active { scale: 0.98; }
@media (prefers-reduced-motion: reduce) { .st-landing .who-card { transition: none; } .st-landing .who-card:active { scale: 1; } .st-landing .who-arrow { translate: none; } }

/* Home suggestions say what they are (Sachin via Aayushmaan, 2026-11-27: without the subtext, how would parents know?).
   Desktop: the five columns, the name, then its short line in muted body-sm, two lines at most. Phones: a quiet list,
   one suggestion a row (icon, name, Sachin's full line under it), a hairline between rows, no cards. */
.st-app #show .st-offers--five .st-offer-card { white-space: normal; justify-content: flex-start; }
.st-app #show .st-offers--five .st-offer-card h2 { white-space: nowrap; }
.st-app #show .st-offers--five .st-offer-card p.st-offer-short {
  text-align: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; margin: 0;
  font-family: var(--type-body-sm-font); font-size: var(--type-body-sm-size); line-height: var(--type-body-sm-lh); color: var(--text-tertiary);
}
.st-app #show .st-offers--five .st-offer-card p.st-offer-sub { display: none; }
@media (min-width: 768px) {
  .st-app #show .st-offers--five .st-offer-card { gap: var(--space-4); padding: var(--space-12) var(--space-8); }
  .st-app #show .st-offers--five .st-offer-icon { margin-bottom: var(--space-4); }
}
@media (max-width: 767px) {
  /* Phones (Aayushmaan, 2026-11-27): one row you swipe sideways, like chat apps' starters. Each suggestion keeps the
     desktop look (icon, name, its short line); about two and a half show, so the cut-off one says there's more. The
     row runs to the screen's edges and snaps a suggestion at a time; no scrollbar. */
  .st-app #show .st-offers--five, .st-app[data-one-col] #show .st-offers--five {
    display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: var(--space-8);
    --row-gutter: calc(var(--space-24) + var(--space-4)); /* the page's side margin here: .st-main 24 + #show 4 */
    align-self: stretch; width: auto; max-width: none; min-width: 0; box-sizing: border-box;
    margin-inline: calc(var(--row-gutter) * -1); padding-inline: var(--row-gutter); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--row-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .st-app #show .st-offers--five::-webkit-scrollbar { display: none; }
  .st-app #show .st-offers--five .st-offer-card {
    flex: 0 0 calc(var(--space-80) * 1.6); width: auto; min-width: 0; scroll-snap-align: start;
    padding: var(--space-12) var(--space-8); gap: var(--space-4);
  }
  .st-app #show .st-offers--five .st-offer-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* Phone home, stacked like Google's mobile page (Aayushmaan, 2026-11-27): Cueme centred on top, the question centred
   under it, the box, then the suggestions held in one soft panel whose row swipes inside it. It starts in the top part
   of the screen instead of the middle, 24px between blocks. Home only: later questions keep Cueme beside the words. */
@media (max-width: 767px) {
  #app.st-app[data-scene="home"] .st-center { justify-content: flex-start; padding-top: var(--space-48); }
  #app.st-app[data-scene="home"]:not([data-opening]) #chat { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-16); justify-items: center; }
  #app.st-app[data-scene="home"]:not([data-opening]) #cueme { grid-column: 1; grid-row: 1; align-self: center; justify-self: center; }
  #app.st-app[data-scene="home"]:not([data-opening]) #say,
  #app.st-app[data-scene="home"]:not([data-opening]) #you[hidden] + #say { grid-column: 1; grid-row: 2; align-self: start; text-align: center; align-items: center;
    min-height: 0; margin-top: 0; } /* the block hugs the question: its 56px minimum left ~14px of air above and below */
  #app.st-app[data-scene="home"]:not([data-opening]) #you { grid-column: 1; justify-self: center; }
  #app.st-app[data-scene="home"] #show { margin-top: var(--space-4); } /* + the page's own 20px = 24 */
  #app.st-app[data-scene="home"] #show .st-home-options {
    margin-top: var(--space-24); width: 100%; align-items: stretch; gap: 0;
    padding: var(--space-12) 0 var(--space-16); background: var(--neutral-3); border-radius: var(--radius-lg); overflow: hidden;
  }
  #app.st-app[data-scene="home"] #show .st-home-or { padding-inline: var(--space-16); margin: 0 0 var(--space-8); text-align: center; }
  #app.st-app[data-scene="home"] #show .st-offers--five {
    --row-gutter: var(--space-8); margin-inline: 0; padding-inline: var(--space-8); scroll-padding-inline: var(--space-8); gap: 0;
  }
  #app.st-app[data-scene="home"]:not([data-opening]) #say .st-question, #app.st-app[data-scene="home"]:not([data-opening]) #say .st-lead { text-align: center; }
  /* each tile a little wider than a third of the panel, so the third is cut by its edge: there's more to swipe */
  #app.st-app[data-scene="home"] #show .st-offers--five .st-offer-card { flex-basis: calc(var(--space-80) + var(--space-40)); padding: var(--space-4); }
  #app.st-app[data-scene="home"] #show .st-offers--five .st-offer-card p.st-offer-short { -webkit-line-clamp: 3; }
  #app.st-app[data-scene="home"] #show .st-offers--five .st-offer-icon,
  #app.st-app[data-scene="home"] #show .st-offers--five .st-offer-card:not(:hover):not(:focus-visible) .st-offer-icon {
    width: var(--space-48); height: var(--space-48); background: var(--neutral-0); border-radius: var(--radius-full);
  }
}

/* Corners on CueDesign's scale (Aayushmaan, 2026-11-27): 16px (radius-lg) is the modal / sheet corner, too soft for
   these. The box and the phone suggestions panel take radius-md (8px, the interactive corner); Send inside the box
   takes the button corner, radius-sm (4px). */
.st-app #form.st-input-row, .st-app #show .st-home-ask #form.st-input-row { border-radius: var(--radius-md); }
.st-app #form #send, #show .st-home-ask #form #send { border-radius: var(--radius-sm); }
@media (max-width: 767px) { #app.st-app[data-scene="home"] #show .st-home-options { border-radius: var(--radius-md); } }

/* Listening, shown in the box itself (Aayushmaan, 2026-11-27, after Google's): the edge turns Cueme's blue, "Listening…"
   is the placeholder (voice.js), nine bars in the same blue follow their voice just before the mic, and the mic becomes
   a Stop square (a neutral 40px button, CueDesign's 4px corner). Their words still fill the box as they're heard. */
.st-app.is-listening #form.st-input-row, .st-app.is-listening #form.st-input-row:hover { border-color: var(--info-6); }
.st-app #form .st-wave {
  position: absolute; right: calc(var(--space-40) + var(--space-4)); bottom: 0; height: var(--space-40);
  display: none; align-items: center; gap: 3px; pointer-events: none;
}
.st-app.is-listening #form .st-wave { display: flex; }
.st-app #form .st-wave i {
  display: block; width: 3px; border-radius: var(--radius-full); background: var(--info-6);
  height: calc(var(--space-4) + var(--h, 0) * var(--space-20)); transition: height var(--duration-instant) linear;
}
.st-app.is-listening #form #text { padding-right: calc(var(--space-40) + var(--space-8) + var(--space-48) + var(--space-8)); }
.st-app #form #mic .st-mic-stop { display: none; }
.st-app #form #mic.listening .st-mic-stop { display: block; width: var(--space-16); height: var(--space-16); }
.st-app #form #mic.listening .st-mic-on, .st-app #form #mic.listening .st-mic-off { display: none; }
.st-app #form #mic.listening { background: var(--neutral-3); border-radius: var(--radius-sm); color: var(--text-primary); }
.st-app #form #mic.listening::before { display: none; }
.st-app.is-listening .st-voice-hint:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .st-app #form .st-wave i { transition: none; } }
