/* Brand tokens (16 Nov 2026): the one place the brand's colours are written. Every rule below, the session's (--cs-*) and the
   rest of the app's, refers to these names, so a brand change is a change here. */
:root {
  --brand-purple: #5b2bc9; --brand-purple-hover: #4920a9; --brand-purple-soft: #f1ecfb; --brand-plum: #2b1244;
  --brand-yellow: #ffd44a; --brand-yellow-soft: #fff2b8; --brand-body: #494153; --brand-muted: #68616f;
  --brand-line: #dfd8e8; --brand-control-line: #83758f;
}
/* Palette, "la carta": ink on paper. A soft paper white, ink-black type and controls, the purple for the Spanish you
   should say and for links, orange for energy (the mic while it listens, streaks, what came from your last paragraph),
   green for progress and right forms, red only for mistakes. Fraunces (a serif with a little wonk) sets the question,
   titles and your words; Inter sets the interface. */
:root {
  color-scheme: light;
  --bg: #fafaf9;            /* paper: a low-chroma stone white */
  --surface: #ffffff;
  --surface-2: #f2f2f0;     /* soft fill: tracks, hover, secondary button */
  --line: #e6e5e2;          /* card edges, rules */
  --rule: #efeeec;          /* row rules */
  --control: #d6d4d0;       /* control borders */
  --field: #8d8a85;         /* the edge of a box you type in: 3:1 against paper, so it can be found */
  --ink: #16151a;
  --ink-2: #4a4852;
  --ink-3: #6b6873;         /* secondary text, AA on paper and white */
  --ink-4: #a5a2ab;         /* faint marks, never text that must be read */
  --accent: #5b46a8;        /* purple: the Spanish to say, links, the selected thing */
  --accent-ink: #ffffff;
  --accent-dark: #4b3a8d;
  --accent-soft: #eeeaf8;
  --accent-line: #c8bfe6;
  --data: #2e7d32;          /* green: progress, data, the right form */
  --data-dark: #2e7d32;
  --data-2: #a9d5af;
  --data-3: #e6f4e8;
  --data-soft: #f2f8f2;
  --series: var(--data);
  --energy: #e8590c;        /* orange: the listening mic, streaks, combos, "from your last paragraph" */
  --energy-ink: #c2410c;
  --energy-soft: #fdeee4;
  --on-energy: #ffffff;     /* text and icons on orange and green fills: white here, ink in the dark theme */
  --mark: var(--energy);    /* thin marks in the energy colour: focus rings, the tab underline, the live voice line */
  --on-data: #ffffff;
  --good: #2e7d32; --good-bg: #e6f4e8; --good-ink: #2e7d32;
  --warn: #c2410c; --warn-bg: #fdeee4;
  --critical: #c63a32; --critical-bg: #f8e5e3; --critical-ink: #a3302a;   /* red, mistakes only */
  --serious: var(--critical); --serious-bg: var(--critical-bg);
  --neutral-bg: #f0efed; --neutral-ink: #4a4852;
  --radius-card: 12px; --radius-control: 6px;
  /* Tu mapa: paper grey for what's not measured, a sage tint for what's assumed below your level, then greens that
     deepen with what you know, and amber for what's slipping */
  --map-unseen: #ecebe7; --map-assumed: #dfe8d6; --map-introduced: #e2f0bf; --map-learning: #b5dc78;
  --map-solid: #64b54a; --map-mastered: #2a7f37; --map-slip: #f0aa3c;
  --gap: 12px; --pad: 24px;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --display: var(--serif);  /* headings and big figures: the same serif here, its own face in Papel */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141317; --surface: #1c1b20; --surface-2: #24232a; --line: #2c2a32; --rule: #232228; --control: #3a3842; --field: #6e6b76;
    --ink: #f1efe9; --ink-2: #c3c0c9; --ink-3: #8f8c97; --ink-4: #5f5c66;
    --accent: #b2a6ff; --accent-ink: #141317; --accent-dark: #c9c0ff; --accent-soft: #2a2547; --accent-line: #4a4280;
    --data: #6cc47c; --data-dark: #8fd49b; --data-2: #2f5e39; --data-3: #1c2e22; --data-soft: #18241d;
    --energy: #ff8f45; --energy-ink: #ffa463; --energy-soft: #3a2716; --on-energy: #141317; --on-data: #141317;
    --good: #6cc47c; --good-bg: #1c2e22; --good-ink: #8fd49b;
    --warn: #ffa463; --warn-bg: #3a2716;
    --critical: #ff7a72; --critical-bg: #3a1f1f; --critical-ink: #ff958e;
    --neutral-bg: #24232a; --neutral-ink: #c3c0c9;
    --map-unseen: #2a2930; --map-assumed: #27322a; --map-introduced: #34421f; --map-learning: #4f7a2c;
    --map-solid: #5fae46; --map-mastered: #8fd49b; --map-slip: #d98f2b;
  }
  :root:not([data-theme="light"]) .cell.st-mastered .cell-name { fill: #141317; }
}
/* Papel (docs/BRAND_PLAN.md, step 1): the look behind a switch on the account (play.py look(), look.js). Paper everywhere,
   colour only in objects: verde agua for what you act on or have done, a soft yellow for "now", deep indigo for links
   and the Spanish to say, red only for mistakes. Rufina sets headings and big figures, Faustina your Spanish, Archivo the
   interface: three faces by Latin American designers, served from /fonts (licence in public/fonts/LICENSE.txt).
   Light only for now: look.js also holds the light theme, so the dark values above never apply. */
/* Rufina's figures are old-style (its 1 reads as a capital I, so "A1" looks like "AI"): digits set in Rufina come from Faustina */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/archivo.woff2) format("woff2"); }
:root[data-look="papel"] {
  color-scheme: light;
  /* revised 11 Nov: the white, grey and purple of the original look, kept with Papel's type, cards and stamps */
  --bg: #fafaf9; --surface: #ffffff; --surface-2: #f2f2f0; --line: #e6e5e2; --rule: #efeeec; --control: #d6d4d0; --field: #8d8a85;
  --ink: #16151a; --ink-2: #4a4852; --ink-3: #6b6873; --ink-4: #a5a2ab;
  --accent: #5b46a8; --accent-ink: #ffffff; --accent-dark: #4b3a8d; --accent-soft: #eeeaf8; --accent-line: #c8bfe6;
  --data: #2e7d32; --data-dark: #2e7d32; --data-2: #e4ddf7; --data-3: #e6f4e8; --data-soft: #f2f8f2;
  --energy: #e8590c; --energy-ink: #c2410c; --energy-soft: #fdeee4; --on-energy: #ffffff; --on-data: #ffffff;
  --mark: #5b46a8;
  --good: #2e7d32; --good-bg: #e6f4e8; --good-ink: #2e7d32;
  --warn: #c2410c; --warn-bg: #fdeee4;
  --critical: #c63a32; --critical-bg: #f8e5e3; --critical-ink: #a3302a;
  --neutral-bg: #f0efed; --neutral-ink: #4a4852;
  --map-unseen: #ecebe7; --map-assumed: #dfe8d6; --map-introduced: #e2f0bf; --map-learning: #b5dc78;
  --map-solid: #64b54a; --map-mastered: #2a7f37; --map-slip: #f0aa3c;
  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --serif: "DM Sans", "Archivo", system-ui, sans-serif;
  --display: "DM Sans", "Archivo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 14px/1.5 var(--font); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
button, select, textarea, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1132px; margin: 0 auto; padding: 0 16px 64px; }   /* 1100px canvas + 16px margins */
/* On a phone's Home Screen the page runs edge to edge: keep clear of the rounded corners and the home bar. */
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

header { display: flex; align-items: center; gap: 22px; padding: 22px 0 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.brand b { color: var(--mark); font-weight: 500; }
.tabs { display: flex; gap: 22px; margin-left: auto; }
.tab { border: 0; background: transparent; height: 30px; padding: 0; cursor: pointer; color: var(--ink-3); font-weight: 400; font-size: 14px; }
.tab:hover { color: var(--ink); }
.tab { position: relative; }
/* small controls keep their look but take a thumb-sized (44px) tap: an invisible box centred on each */
.goal-edit, .type-link, .avatar, .linkish, .see-all-btn, .plan-mode button, .plan-block.add button, .seg, .entry, .idea-next, .deck-step, .lp-answer, .why > summary { position: relative; }
.tab::before, .goal-edit::after, .type-link::after, .avatar::after, .linkish::after, .see-all-btn::after, .plan-mode button::after, .plan-block.add button::after, .seg::after, .entry::after, .idea-next::after,
.deck-step::after, .lp-answer::after, .why > summary::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--mark); }
/* the daily goal: minutes talked today against the goal, a thin bar that fills, and a pencil to change the goal */
.goal { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.goal-label { white-space: nowrap; }
.goal-bar { width: 140px; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--energy); border-radius: 4px; transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform .6s cubic-bezier(.25, 1, .5, 1); }
.goal.met .goal-bar span { background: var(--data); }
.goal-num { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.goal-num input { width: 4.2em; font: inherit; padding: 1px 4px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); }
.goal-edit { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.goal-edit .ico { width: 14px; height: 14px; }
.goal-edit:hover { color: var(--ink); background: var(--surface-2); }

.title-row { margin: 20px 0 16px; }
.title-row h1 { font-family: var(--serif); font-size: 32px; font-weight: 450; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
.title-row .finding { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.title-row .finding b { color: var(--ink); font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--pad); margin-bottom: var(--gap); }
.card h2 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.card .sub-h { font-size: 13px; color: var(--ink-3); margin: -8px 0 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* compose */
.practice-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: stretch; }
.practice-grid .compose { display: flex; flex-direction: column; }   /* the writing area grows to the row's height */
.practice-grid .compose textarea { flex: 1; }
.practice-grid > .card { margin-bottom: 0; }
.practice-grid + .card { margin-top: var(--gap); }
@media (max-width: 900px) { .practice-grid { grid-template-columns: 1fr; } }
.compose textarea { width: 100%; min-height: 128px; resize: vertical; border: 1px solid var(--field); border-radius: var(--radius-control); padding: 12px 14px; background: var(--surface); line-height: 1.6; font-size: 16px; display: block; }
.compose textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.compose-foot { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); margin-top: 12px; flex-wrap: wrap; }
.compose-foot .spacer { flex: 1; }
.submit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s, transform .1s; }
.submit-btn:hover { opacity: .88; }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: .45; cursor: default; }
.submit-btn .kbd { font-size: 12px; font-weight: 500; opacity: .75; }
@media (max-width: 640px) { .compose .submit-btn { width: 100%; height: 44px; } .compose-foot .hint { display: none; } }
@media (pointer: coarse) { .compose-foot .hint { display: none; } }   /* Return is a new line on a touch screen */
.today { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--rule); margin: 16px 0 20px; padding-top: 12px; }
.today .label { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.entry { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.entry:hover { border-color: var(--control); color: var(--ink); }
.entry[aria-current="true"] { border-color: var(--ink); color: var(--ink); }
.entry .dot-s { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.entry .dot-s.running { background: var(--accent); animation: blink 1s ease-in-out infinite; }
.entry .dot-s.done { background: var(--good); }
.entry .dot-s.error { background: var(--critical); }
@keyframes blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .entry .dot-s.running, .spinner { animation: none; } }
.reason { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-ink); margin-bottom: 8px; }
.reason.latest { background: var(--accent); color: var(--accent-ink); }
.usage { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.usage .res { font-weight: 500; white-space: nowrap; }
.usage .res.used_correctly { color: var(--good); }
.usage .res.made_error { color: var(--critical); }
.usage .res.not_used, .usage .res.avoided, .usage .res.pending { color: var(--ink-3); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.row .spacer { flex: 1; }
select { border: 1px solid var(--field); border-radius: var(--radius-control); height: 36px; padding: 0 10px; background: var(--surface); }
.btn { border: 0; background: var(--surface-2); height: 36px; padding: 0 14px; border-radius: var(--radius-control); cursor: pointer; font-weight: 500; }
.btn:hover { background: var(--line); }
.btn.primary { background: var(--ink); color: var(--bg); }   /* main actions in ink, like the mic */
.btn.primary:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: default; }

/* topics */
.topic-grid { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(7, minmax(42px, 58px)) 72px; gap: 4px 6px; align-items: center; }
.topic-grid .tname { font-size: 14px; }
.topic-grid .thead { font-size: 12px; color: var(--ink-3); grid-column: 2 / span 7; display: flex; justify-content: space-between; }
.topic-grid .tcount { font-size: 13px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.tcell { height: 28px; border-radius: 4px; border: 0; font-size: 12px; font-weight: 500; cursor: pointer; background: var(--neutral-bg); color: var(--ink-3); padding: 0; font-variant-numeric: tabular-nums; }
.tcell:hover:not(:disabled) { outline: 1px solid var(--ink-3); }
.tcell.none { background: transparent; border: 1px dashed var(--control); cursor: default; }
.tcell.c1 { background: var(--data-soft); color: var(--data-dark); }
.tcell.c2 { background: color-mix(in srgb, var(--data) 28%, var(--surface)); color: var(--ink); }
.tcell.c3 { background: var(--data-2); color: var(--ink); }
.tcell.c4 { background: var(--data); color: var(--on-data); }
.tcell[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.topic-words { columns: 2 240px; column-gap: 24px; font-size: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.topic-words li { break-inside: avoid; padding: 3px 0; }
.topic-words .en { color: var(--ink-3); margin-left: 6px; }
.topic-words li.used .es, .used-key { color: var(--data); font-weight: 600; }
.topic-words li .es::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 8px 2px 0; background: var(--line); }
.topic-words li.used .es::before { background: var(--data); }
@media (max-width: 560px) {
  .topic-grid { grid-template-columns: minmax(84px, 1fr) repeat(7, minmax(24px, 1fr)); gap: 4px; }
  .topic-grid .tcount { display: none; }
  .tcell { font-size: 0; }
}

/* practice as a conversation: the coach asks, you answer */
.question { font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.question-en { font-size: 15px; color: var(--ink-3); margin: 8px 0 32px; }
.question-en .linkish { margin-left: 10px; color: var(--accent-dark); font-weight: 500; }
.coach-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 15px; margin-top: 2px; }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { border: 0; padding: 2px 0; min-height: 150px; background: transparent; font-size: 16px; }
.compose.composer textarea:focus { outline: none; }
.composer .submit-btn { border-radius: 999px; padding: 0 20px; }
/* Practice, "la carta": the question set like a magazine, an ink-black mic with an ink line that draws your voice, your
   words as a manuscript, and today's tips as a café menu. One screen, no scrolling; long text scrolls in its own box. */
body.on-practice .wrap { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
body.on-practice header { flex: none; }
.practice { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head" "stage" "tiles"; gap: 14px; padding-top: 22px; }
.practice .home { grid-area: head; text-align: center; }
.practice .question { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0 auto; max-width: 20ch; text-wrap: balance; font-variation-settings: "SOFT" 50, "WONK" 1; }
.practice .question em { font-style: italic; color: var(--accent); }
.question-more { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink-2); margin: 6px 0 0; }
.practice .question-en { margin: 10px 0 0; font-size: 15px; color: var(--ink-3); }
.practice .question-en .linkish { margin-left: 12px; color: var(--ink-2); font-weight: 400; font-size: 15px; text-decoration-color: var(--line); text-underline-offset: 4px; }
.practice .question-en .linkish:hover { text-decoration-color: var(--mark); }

.stage { grid-area: stage; min-height: 0; width: 100%; max-width: 680px; justify-self: center; display: flex; flex-direction: column; justify-content: safe center; gap: 10px; }
.stage.has-text { justify-content: flex-start; }
.practice .composer { background: none; border: 0; padding: 0; border-radius: 0; }
.dictate { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.mic-btn { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.25, 1, .5, 1), background .3s; }
.mic-btn:hover { transform: rotate(-6deg) scale(1.05); }
.mic-btn:disabled { opacity: .45; cursor: progress; transform: none; }   /* the last take is being written down */
.mic-btn:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
.mic-btn .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.mic-btn .stop { display: none; fill: currentColor; stroke: none; }
.mic-btn[aria-pressed="true"] { background: var(--energy); color: var(--on-energy); }
.mic-btn[aria-pressed="true"] .mic { display: none; }
.mic-btn[aria-pressed="true"] .stop { display: block; }
.ink { display: block; width: min(340px, 100%); height: 40px; }
.ink path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.listening .ink path { stroke: var(--mark); }
.dict-line { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dict-label { margin: 0; }
.dict-label em, .type-link { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.type-link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.type-link:hover { text-decoration-color: var(--mark); }

/* your words: captions while you talk (the newest in purple italic), an editable manuscript once you stop */
.captions { flex: 1 1 auto; min-height: 56px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  font-family: var(--serif); font-size: 21px; font-weight: 350; line-height: 1.45; color: var(--ink);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }   /* taste-skill-ignore: older caption lines fade out */
.captions p { margin: 0; }
.captions .fresh { color: var(--accent); font-style: italic; }
.captions .listening-note { font-family: var(--serif); font-style: italic; color: var(--ink-3); }
.practice .composer textarea { flex: 1 1 auto; min-height: 56px; height: auto; resize: none; margin: 0; padding: 14px 18px; font-family: var(--serif); font-size: 19px; font-weight: 350; line-height: 1.5;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.practice .composer textarea:focus { outline: none; border-color: var(--ink-3); }
.practice .composer textarea.hidden { display: none; }
.practice .compose-foot { margin: 0; flex: none; }
.composer.listening .compose-foot { display: none; }   /* the send row appears when you stop; the status line counts words meanwhile */
.practice .submit-btn { border-radius: 999px; padding: 0 20px; background: var(--ink); color: var(--bg); }

/* today's menu: up to 8 tips, the Spanish in the serif, a dotted leader, the grammar in small grey */
.try { grid-area: tiles; min-width: 0; border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 36px; align-items: start; }
.try-head h2 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 22px; line-height: 1.1; margin: 4px 0 0; white-space: nowrap; }
.try-caption { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); max-width: 15em; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 44px; }
.dish { position: relative; display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 6px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dish .c-es { font-family: var(--serif); font-size: 18px; font-weight: 450; line-height: 1.3; color: var(--ink); min-width: 0; text-wrap: balance; transition: color .15s; }
.dish .dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.dish .c-note { flex: none; max-width: 45%; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish .c-note i { font-family: var(--serif); font-size: 13.5px; color: var(--accent); }
.dish.latest .c-es::after { content: "•"; color: var(--mark); margin-left: 4px; }
.dish:hover .c-es, .dish[aria-expanded="true"] .c-es { color: var(--accent); }
.dish[aria-expanded="true"] .c-es { font-style: italic; }

/* the tip card: an index card, slightly tilted, that only ever shows; kept open it scrolls if it has to */
.peek { position: fixed; z-index: 31; pointer-events: none; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 15px; rotate: -1.2deg; box-shadow: 0 14px 30px rgb(30 25 15 / .10); }   /* taste-skill-ignore: a floating preview */
.pv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pv-es { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.pv-note { font-size: 12.5px; color: var(--ink-3); }
.pv-rule { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.pv-swap { margin: 8px 0 0; font-size: 13.5px; }
.pv-swap s { color: var(--critical); text-decoration-thickness: 1px; }
.pv-swap b { color: var(--data); font-weight: 600; }
.pv-ex { margin: 8px 0 0; font-family: var(--serif); font-size: 15px; display: flex; flex-direction: column; }
.pv-ex .en { font-family: var(--font); font-size: 12.5px; font-style: italic; color: var(--ink-3); }
.pv-more { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.peek.pinned { pointer-events: auto; overflow-y: auto; overscroll-behavior: contain; }
.pv-ex + .pv-ex { margin-top: 6px; }
.back-link { margin: 24px 0 4px; color: var(--accent); font-weight: 500; text-decoration: none; padding: 4px 0; }

@media (max-height: 760px) { .mic-btn { width: 72px; height: 72px; } .practice .question { font-size: clamp(30px, 4vw, 48px); } }
/* la carta folded: one line on a short or narrow window; "Show" opens the tips as a sheet just above it */
.try-toggle { display: none; }
@media (max-height: 820px), (max-width: 760px) {
  body.on-practice .wrap { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .try { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 12px; }
  .try-head { display: flex; align-items: baseline; gap: 12px; width: 100%; }
  .try-head h2 { font-size: 19px; margin: 0; }
  .try-caption { display: none; }
  .try-toggle { display: inline-block; margin-left: auto; min-height: 36px; padding: 0 16px; border: 1px solid var(--control); border-radius: 999px;
    background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
  .try-toggle:hover { border-color: var(--ink-3); }
  .try .dishes { display: none; }
  .try.open .dishes { display: grid; position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 30; max-height: calc(100dvh - 160px); overflow-y: auto;
    padding: 10px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgb(30 25 15 / .12); }   /* taste-skill-ignore: a sheet over the page */
}
@media (max-width: 760px) {
  .try { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .try-caption { display: none; }
  .dishes { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .dish { flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 0; }
  .dish .dots { display: none; }
  .dish .c-es { font-size: 16px; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dish .c-note { max-width: 100%; font-size: 11.5px; }
}
@media (max-width: 640px) {
  .practice { gap: 10px; padding-top: 12px; }
  .practice .question { font-size: 28px; } .question-more { font-size: 19px; margin-top: 4px; }
  /* the menu: two rows that swipe sideways, so the mic keeps its room */
  .dishes { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 46%; gap: 2px 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .practice .question-en { font-size: 14px; }
  .mic-btn { width: 72px; height: 72px; }
  .ink { height: 30px; }
  /* once your words appear the mic, line and status share one row so the words get the room */
  .stage.has-text .dictate { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; }
  .stage.has-text .mic-btn { width: 48px; height: 48px; grid-row: 1 / 3; }
  .stage.has-text .mic-btn .ico { width: 22px; height: 22px; }
  .stage.has-text .ink { width: 100%; height: 26px; }
  .stage.has-text .dict-line { justify-content: flex-start; font-size: 13px; }
  .captions { font-size: 18px; }
  .practice .composer textarea { min-height: 48px; padding: 10px 14px; font-size: 17px; }
  .practice .compose .submit-btn { width: auto; height: 40px; }
  header { gap: 6px 12px; padding-top: 14px; }
  .goal { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .goal-label { display: none; } .goal-bar { flex: 1 1 auto; width: auto; min-width: 24px; max-width: 72px; }
  .tabs { width: 100%; justify-content: space-between; gap: 4px; }   /* six tabs on one line */
}
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Tu profe: the teacher's spoken reply, first on a reviewed conversation */
.profe-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profe-title h2 { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 26px; line-height: 1.1; margin: 0; }
.profe-sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.profe-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.profe-tools .linkish { font-size: 13px; text-decoration-color: var(--line); text-underline-offset: 4px; }
.profe-tools .linkish[aria-pressed="true"] { color: var(--accent); text-decoration-color: var(--accent); }
.play-btn { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.25, 1, .5, 1), background .3s; }
.play-btn:hover:not(:disabled) { transform: rotate(-6deg) scale(1.05); }
.play-btn:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
.play-btn:disabled { opacity: .4; cursor: default; }
.play-btn .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.play-btn .pause, .play-btn[aria-pressed="true"] .play { display: none; }
.play-btn[aria-pressed="true"] { background: var(--energy); color: var(--on-energy); }
.play-btn[aria-pressed="true"] .pause { display: block; }
.play-btn.waiting { background: var(--surface-2); color: var(--ink-3); cursor: default; animation: profe-wait 1.6s ease-in-out infinite; }
@keyframes profe-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .play-btn.waiting { animation: none; } }
.profe-body { margin-top: 16px; }
.profe-para + .profe-para { margin-top: 14px; }
.profe .say { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink); margin: 0; }
.profe .s { cursor: pointer; border-radius: 3px; transition: background .2s; }
.profe .s:hover { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.profe .s.now { background: var(--accent-soft); color: var(--accent-dark); }
.profe-fix { margin-top: 14px; }
.profe .q { color: var(--accent); }
.profe .q-said { color: var(--critical); font-style: normal; text-decoration: line-through; text-decoration-thickness: 1px; }
.profe .q-better { color: var(--data); font-style: normal; font-weight: 600; }
.profe .say.close { margin-top: 14px; font-style: italic; }
.profe .en { display: none; margin: 2px 0 0; font-size: 13.5px; font-style: italic; color: var(--ink-3); }
.profe.show-en .en { display: block; }
.profe-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); }
.profe-foot .linkish { font-size: 12.5px; padding: 0; }
@media (max-width: 640px) { .profe-tools { margin-left: 72px; } .profe .say { font-size: 17px; } }
/* drill */
.drill-panel { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; padding: 28px 32px; }   /* one card, centred */
#drill .title-row { max-width: 760px; margin-left: auto; margin-right: auto; }
.drill-panel > .drill-start { margin-top: auto; align-self: flex-start; }   /* the one action sits at the card's foot */
.drill-panel > .drill-chips { margin-bottom: 20px; }
.drill-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-3); }
.drill-bar { height: 4px; background: var(--neutral-bg); border-radius: 2px; overflow: hidden; margin: 8px 0 18px; }
.drill-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform .2s ease-out; }
.drill-task { font-size: 14px; color: var(--ink-2); margin: 0; }
.drill-kind { font-weight: 600; color: var(--ink-3); margin-right: 8px; }
.drill-kind::after { content: "·"; margin-left: 8px; font-weight: 400; }
.drill-prompt { font-family: var(--serif); font-size: 23px; line-height: 1.5; margin: 14px 0 4px; color: var(--ink); }
.drill-prompt.small { font-size: 19px; color: var(--ink-2); }
.drill-prompt .wrong { color: var(--critical-ink); font-weight: 500; }
.drill-prompt .missing { color: var(--critical); font-weight: 700; padding: 0 2px; }

.drill-kind.alone { margin-right: 0; }
.drill-kind.alone::after { content: none; }
.drill-en { color: var(--ink-3); font-size: 14.5px; font-style: italic; }
.drill-meaning { margin-top: 14px; font-size: 14px; }
.drill-meaning p { margin: 2px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.drill-input { width: 100%; font-size: 18px; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); margin-top: 16px; }
.drill-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.drill-input:disabled { opacity: .75; }
.drill-hint { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.drill-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.drill-actions .spacer { flex: 1; }
.drill-actions .btn .ico { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.linkish { border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 4px; }
.verdict { margin-top: 18px; padding: 12px 16px; border-radius: 10px; border-left: 3px solid; }
.verdict.ok { background: var(--good-bg); border-color: var(--good); } .verdict.no { background: var(--critical-bg); border-color: var(--critical); }
.verdict .v-title { font-weight: 600; } .verdict.ok .v-title { color: var(--good-ink); } .verdict.no .v-title { color: var(--critical-ink); }
.verdict .v-answer { font-family: var(--serif); font-size: 19px; margin-top: 4px; }
.verdict .v-answer .fixed { font-weight: 700; }
.verdict .v-rule { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.verdict .v-said { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.drill-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.drill-start { margin-top: 16px; }
.drill-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }


/* progress game row */
.meter { height: 8px; background: var(--data-3); border-radius: 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--data); border-radius: 4px; }

/* drill as a game */
.round-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.round-head h2 { margin: 0 0 2px; }
.round-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.round-icon .ico { width: 24px; height: 24px; }
.round-icon.gold { background: var(--data-3); color: var(--data-dark); }
.round-head .best { text-align: right; }
.round-head .best b { display: block; font-size: 28px; font-weight: 600; color: var(--accent-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.round-head .best span { font-size: 12px; color: var(--ink-3); }
.beat { margin: 14px 0 12px; font-size: 14px; color: var(--ink-2); }
.beat.record { color: var(--data-dark); font-weight: 600; }
.drill-start { gap: 8px; }
.drill-start-row { margin-top: 16px; }
/* lessons (lessons.py) */
#drillSwitch { margin: 0 0 14px max(0px, calc((100% - 760px) / 2)); }   /* lines up with the centred card below */
.lessons-panel h2 { margin: 0 0 6px; }
.lesson-list { list-style: none; margin: 14px 0 6px; padding: 0; }
.lesson-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lesson-row:hover .lr-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.lr-title { font-family: var(--serif); font-size: 17px; }
.lr-meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.lr-done { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--good-ink); }
.lesson-name { margin: 0; font-size: 13px; color: var(--ink-3); }
.lesson-step { margin: 2px 0 12px; }
.lesson-body { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; }
.lesson-body p { margin: 0; }
.lesson-idea { font-size: 18px; }
.lesson-nav { margin-top: 22px; }
.lesson-tag { display: inline-block; margin-right: 8px; font-family: var(--sans, inherit); font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.lesson-said, .lesson-fixed p:first-child { font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.lesson-said .wrong, .lesson-yours .wrong { color: var(--critical-ink); font-weight: 500; }
.lesson-form h3, .lesson-yours h3 { margin: 4px 0 6px; font-size: 15px; }
.lesson-uses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lu-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lx { display: flex; flex-direction: column; gap: 2px; padding: 2px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lx-es { font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.lx-en { font-size: 14px; color: var(--ink-3); }
.lx[aria-expanded="false"] .lx-en { display: none; }
.lx[aria-expanded="false"] .lx-es { text-decoration: underline dotted var(--line); text-underline-offset: 4px; }
.lesson-en-toggle { align-self: flex-start; padding: 0; }
.lesson-pair { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.lesson-q { font-weight: 600; }
.lesson-item { padding: 12px 0; border-top: 1px solid var(--line); }
.lesson-cloze { font-family: var(--serif); font-size: 18px; }
.lesson-cloze .blank { display: inline-block; min-width: 3.5em; border-bottom: 2px solid var(--ink); margin: 0 3px; }
.lesson-input { flex: 1 1 160px; margin-top: 0; height: 40px; font-size: 16px; }
.lesson-result p { margin: 6px 0 0; }
.lesson-result .ok { color: var(--good-ink); font-weight: 600; }
.lesson-result .no { color: var(--critical-ink); font-weight: 600; }
.lesson-choices { display: flex; flex-direction: column; gap: 8px; }
.lesson-choice { text-align: left; }
.lesson-choice.right { border-color: var(--good); }
.lesson-choice.picked-wrong { border-color: var(--critical); }
.lesson-meaning { margin: -2px 0 4px; }
.lesson-yours ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.lesson-yours li { font-family: var(--serif); font-size: 16px; }
.lesson-better { display: block; color: var(--ink-2); }
.lesson-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.lesson-more .lesson-uses { margin-top: 10px; }
.lesson-flag { display: flex; flex-direction: column; flex: 1 1 100%; }
.lesson-flag textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.paragraph-drill .drill-start { margin-top: 0; }
.drill-top .combo { display: inline-flex; align-items: center; gap: 4px; color: var(--energy-ink); font-weight: 600; background: var(--energy-soft); border-radius: 999px; padding: 2px 10px; margin-left: auto; margin-right: 8px; }
.drill-top .combo.hot { background: var(--energy-ink); color: var(--on-energy); }   /* the deeper orange: small white text needs 4.5:1 */
.drill-top .combo .ico { width: 14px; height: 14px; }
.v-combo { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 13px; color: var(--energy-ink); }
.v-combo .ico { width: 14px; height: 14px; }


/* feedback */
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.status-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--bg); margin-top: 12px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { background: var(--critical-bg); color: var(--critical-ink); border-radius: var(--radius-card); padding: 12px 14px; margin-top: 12px; }
.snapshot { font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 13px; background: var(--good-bg); color: var(--good-ink); padding: 3px 10px; border-radius: 999px; }
.corrected { font-size: 16px; line-height: 1.85; white-space: pre-wrap; margin: 0; }
.toggle-row { display: flex; gap: 2px; margin-bottom: 12px; background: var(--surface-2); padding: 3px; border-radius: 8px; width: max-content; }
.seg { border: 0; background: transparent; border-radius: var(--radius-control); height: 28px; padding: 0 10px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.patterns { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); }
.pattern { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; background: var(--surface); }
.pattern .num { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.pattern h3 { margin: 4px 0 10px; }
.pair { font-size: 14px; margin: 4px 0; }
.pair .lbl, .corr .lbl { display: inline-block; min-width: 72px; font-size: 12px; color: var(--ink-3); }
.pair.was .txt, .corr .was .txt { color: var(--critical); text-decoration: line-through; }
.pair.now .txt, .corr .now .txt { color: var(--good); font-weight: 500; }
.rule { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 8px; }
.status-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.corr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.corr:last-child { border-bottom: 0; }
/* what kind of correction: a small tag, red only for an actual mistake */
.corr .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .01em; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px;
  background: var(--neutral-bg); color: var(--neutral-ink); }
.corr .tag.is-error { background: var(--critical-bg); color: var(--critical-ink); }
.corr .tag.is-glitch { background: none; border: 1px dashed var(--line); color: var(--ink-3); }
.corr .was { margin: 4px 0 2px; }
.corr .now { margin: 0; }
.corr .note { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

.drill { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.drill:last-of-type { border-bottom: 0; }
.drill .n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.drill .cue { color: var(--ink-2); font-size: 14px; }
.drill .spec { font-size: 13px; color: var(--ink-3); }
.drill .spec b { color: var(--ink-2); font-weight: 500; }
.drill .prompt { font-size: 16px; margin: 4px 0; }
.drill input { border: 1px solid var(--field); border-radius: var(--radius-control); height: 36px; padding: 0 10px; background: var(--surface); width: min(100%, 320px); }
.drill input.ok { border-color: var(--good); background: var(--good-bg); }
.drill input.bad { border-color: var(--critical); background: var(--critical-bg); }
.drill .answer { font-size: 14px; margin-top: 6px; }
.drill .answer b { color: var(--good); }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 6px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.memo { background: var(--bg); border-radius: var(--radius-card); padding: 14px; }
.memo b { display: block; margin-bottom: 4px; font-weight: 600; }
.memo p { margin: 4px 0; font-size: 14px; }
.memo .ex { color: var(--ink-2); }
.mission { background: var(--bg); }
.mission .big { font-size: 16px; font-weight: 500; }
details.raw summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
details.raw p { white-space: pre-wrap; color: var(--ink-2); }

/* next-paragraph tips */
.targets-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.targets-head h2 { margin: 0; }
.targets-head .linkish { margin-left: auto; font-size: 13px; }
.target-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.target-grid.fixes { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .target-grid.fixes { grid-template-columns: 1fr; } }
.target { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px 16px; background: var(--surface); }
.target-grid:not(.fixes) .target + .target { margin-top: 0; }
.target .t-title { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.target .use { font-size: 16px; font-weight: 600; margin: 2px 0; color: var(--good); }
.target.new .use { color: var(--data-dark); }
#newCard { background: var(--data-soft); border-color: var(--data-3); }
#newCard h2 { color: var(--data-dark); }
#newCard .target { border-color: var(--data-3); }
.target .avoid { font-size: 14px; color: var(--critical); text-decoration: line-through; }
.target .tip { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.target .ex { margin-top: 8px; font-size: 14px; }
.target .ex .en { color: var(--ink-3); font-size: 13px; }
.target .more { margin-top: 6px; }
.target.leech { border-color: var(--critical); }
.target .starter { font-size: 12px; color: var(--ink-3); font-style: italic; margin-top: 4px; }
.idea { margin: 0 0 14px; background: var(--accent-soft); border-radius: var(--radius-card); padding: 12px 14px; }
.idea .small.muted { color: var(--accent-dark); font-weight: 500; }
.idea .big { font-size: 18px; font-weight: 600; line-height: 1.35; }
.idea .en { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.idea-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.idea-next { height: 30px; padding: 0 10px; font-size: 13px; white-space: nowrap; background: var(--surface); color: var(--accent-dark); }

/* progress */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--series); }
.chart .bar.past { fill: var(--data-2); }
.chart .dot.ink { fill: var(--mark); }
.chart .hit { fill: transparent; cursor: default; }
.chart .bar.hover { opacity: .8; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; }
.chart .line.ink { stroke: var(--mark); }   /* the second series (errors) in orange */
.chart .dot { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); padding: 6px 10px; border-radius: var(--radius-control); font-size: 13px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; }
.tooltip b { font-size: 14px; display: block; font-weight: 600; }
.translate-pop { position: fixed; z-index: 50; max-width: min(360px, calc(100vw - 16px)); background: var(--ink); color: var(--surface); border-radius: var(--radius-card); padding: 8px 12px 9px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); line-height: 1.35; }   /* taste-skill-ignore: a floating popover */
.translate-pop[hidden] { display: none; }
.translate-pop .tp-src { font-size: 12px; opacity: .7; margin-bottom: 2px; }
.translate-pop .tp-out { font-size: 15px; font-weight: 600; }
.translate-pop .tp-note { font-size: 12px; opacity: .8; margin-top: 2px; }
.translate-pop .tp-wait { font-size: 13px; opacity: .75; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 400; padding: 8px 8px; border-bottom: 1px solid var(--line); }
td { padding: 11px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--neutral-ink); white-space: nowrap; flex: none; }
.pill.mastered { background: var(--data); color: var(--on-data); }
.pill.solid { background: var(--data-3); color: var(--data-dark); }
.pill.learning { background: var(--data-soft); color: var(--data-dark); border: 1px solid var(--data-3); }
.pill.needs_work, .pill.fossilizing, .pill.resurfaced { background: var(--critical-bg); color: var(--critical-ink); }
.pill.recurring { background: var(--warn-bg); color: var(--warn); }
.pill.improving, .pill.stable { background: var(--good-bg); color: var(--good-ink); }
.pill.introduced { background: var(--accent-soft); color: var(--accent-dark); }
.pill.slips { background: var(--warn-bg); color: var(--warn); }
.view-all { margin-top: 12px; }

/* level map: one summary row per band; the band's concepts open on demand */
.lm-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lm-head h2 { margin: 0; }
.lm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-left: auto; }
.lm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lm-key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid transparent; }
.lm-detail { margin: 0 0 16px; border-radius: var(--radius-card); padding: 14px 16px; background: var(--bg); }
.lm-detail h3 { margin: 0 0 4px; }
.lm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.lm-facts b { display: block; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lm-facts .muted { font-size: 12px; }
.badge { font-size: 13px; color: var(--good); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.two-col > .card { margin-bottom: 0; }
.two-col + * { margin-top: var(--gap); }
.wide-left { grid-template-columns: 2fr 1fr; }
.two-col.top { align-items: start; }
/* Progress: three figures in the serif, the trends, where you are, and the top of each list; the rest waits behind "See all". */
.figures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px 32px; margin: 0 0 22px; }   /* three figures, or four with watching */
.fig b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fig b i { color: var(--ink-3); }
.fig span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.fig.hot b { color: var(--energy-ink); }
.track { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.track li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-right: 8px; }
.track .stop { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); margin-bottom: 8px; position: relative; }
.track .past .stop { background: var(--ink-3); border-color: var(--ink-3); }
.track .here .stop { background: var(--energy); border-color: var(--energy); outline: 4px solid var(--energy-soft); }
.track b { font-family: var(--serif); font-weight: 450; font-size: 22px; line-height: 1.1; }
.track .here b { font-style: italic; color: var(--accent); }
.track li > span:last-child { font-size: 13px; color: var(--ink-3); }
/* subheadings inside a card: the serif italic of the section titles, a size down, in full ink */
.next-up h3, #topicTop h3 { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 17px; color: var(--ink); margin: 0 0 6px; }
#topicTop h3 + ul + h3 { margin-top: 18px; }
.next-up ul, .top-list, .topic-bars { list-style: none; margin: 0; padding: 0; }
.can-do { margin-top: 22px; }
.can-do > p { margin: 0 0 10px; }
.can-do details p { margin: 12px 0 4px; }
.next-row { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 8px 0; border: 0; border-top: 1px solid var(--rule); background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.next-row .nm, .top-list .nm { font-family: var(--serif); font-size: 17px; }
.next-row:hover .nm { color: var(--accent); }
.need { margin-left: auto; flex: none; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.top-list li { padding: 8px 0; border-top: 1px solid var(--rule); }
.top-list li:first-child { border-top: 0; padding-top: 0; }
.top-list .row { display: flex; align-items: baseline; gap: 12px; }
.top-list .fix { margin: 3px 0 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* a long slip shows its start */
.top-list .fix s { color: var(--critical); text-decoration-thickness: 1px; }
.top-list .fix b { color: var(--data); font-weight: 600; }
.topic-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 84px; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.topic-bars .need { text-align: right; }
.see-all { margin-top: 12px; }
.see-all summary { display: inline-block; cursor: pointer; list-style: none; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; padding: 4px 0; }
.see-all summary::-webkit-details-marker { display: none; }
.see-all summary:hover { text-decoration-color: var(--mark); }
.see-all[open] summary { margin-bottom: 10px; }
.see-all .lm-legend { margin: 0 0 6px; }
.topic-scroll { overflow-x: auto; }
#families td:last-child { white-space: nowrap; }
@media (max-width: 760px) {
  .figures { grid-auto-flow: row; grid-template-columns: 1fr; gap: 10px; }
  .fig b { font-size: 24px; }
  .track b { font-size: 18px; }
  .track li > span:last-child { font-size: 12px; }
  .next-row, .top-list .row { flex-direction: column; align-items: flex-start; gap: 0; }
  .need { margin-left: 0; }
  .topic-bars li { grid-template-columns: minmax(0, 1fr) 56px 64px; gap: 8px; }
}
@media (max-width: 760px) { .two-col, .wide-left { grid-template-columns: 1fr; } .tabs { margin-left: 0; } }
@media (max-width: 640px) {
  .wrap { padding: 0 max(16px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); } .card { padding: 16px; } .title-row h1 { font-size: 22px; }
}
.hidden { display: none !important; }
.empty { color: var(--ink-3); font-size: 14px; padding: 8px 0; }

/* sign-in: one card on the paper, the brand large, one ink button, the email link underneath */
body.signed-out .wrap { display: none; }
.signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.signin-card { width: min(420px, 100%); text-align: center; }
.signin-brand { font-family: var(--serif); font-style: italic; font-size: 44px; letter-spacing: -.02em; line-height: 1.1; }
.signin-brand b { color: var(--mark); font-weight: 500; }
.signin-line { font-family: var(--serif); font-size: 21px; color: var(--ink-2); margin: 10px 0 36px; }
.signin-line em { color: var(--accent); }
.signin-btn { width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .2s; }
.signin-btn:hover { transform: translateY(-1px); }
.signin-btn:focus-visible, .signin-send:focus-visible, .signin-email input:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.signin-email { margin-top: 28px; text-align: left; }
.signin-email label { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.signin-row { display: flex; gap: 8px; }
.signin-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.signin-send { flex: none; height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.signin-msg { min-height: 22px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.signin-msg.good { color: var(--data); }
.signin-msg.bad { color: var(--critical); }
.signin-note { margin: 28px 0 0; font-size: 12.5px; color: var(--ink-3); }
/* your account: a round initial in the header; signing out is inside its menu, two deliberate taps away */
.account { position: relative; flex: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.avatar:hover, .avatar[aria-expanded="true"] { border-color: var(--ink); }
.avatar:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 250px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgb(30 25 15 / .12); }   /* taste-skill-ignore: a menu */
.account-menu.hidden { display: none; }
.account-email { margin: 6px 10px 8px; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu button, .account-menu a { display: block; text-decoration: none; box-sizing: border-box; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.account-menu button:hover, .account-menu button:focus-visible, .account-menu a:hover, .account-menu a:focus-visible { background: var(--surface-2); outline: none; }
.account-menu #signOutAll { color: var(--ink-3); font-size: 13px; }
.account-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* first-time questions: the same card as sign-in, with five level choices and a few chips */
.welcome-card { width: min(520px, 100%); text-align: left; }
.welcome-card .signin-brand, .welcome-card .signin-line { text-align: center; }
.welcome-card fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.welcome-card legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.welcome-card legend span, .welcome-field span { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.levels { display: grid; gap: 8px; }
.levels label { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.levels input { grid-row: 1 / 3; accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.levels b { font-family: var(--serif); font-weight: 450; font-size: 18px; }
.levels span { font-size: 13px; color: var(--ink-3); }
.levels label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.goals { display: flex; flex-wrap: wrap; gap: 8px; }
.goals legend { width: 100%; }
.goals label { position: relative; }
.goals input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.goals label span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.goals label input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.goals input:focus-visible + span, .levels input:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.welcome-field { display: block; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.welcome-field input, .welcome-field textarea { display: block; width: 100%; margin-top: 8px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.welcome-cancel { display: block; margin: 12px auto 0; }
.welcome-cancel.hidden { display: none; }
.where-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.see-all-btn { background: none; border: 0; padding: 4px 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; cursor: pointer; }
.see-all-btn:hover { text-decoration-color: var(--mark); }

/* the dictation timer: just the numbers, counting up to the ten-minute limit; orange in the last minute */
.dict-timer { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dict-timer.hidden { display: none; }
.dict-timer.near { color: var(--energy-ink); }

/* Spanish quoted inside AI-written English («corregir»): set as Spanish, not as punctuation */
.es-q { font-style: italic; color: var(--accent); }

/* tips you had on screen: Practice's menu, with how each went */
@media (max-width: 640px) {
  .shown-list { grid-template-columns: 1fr; }
  .shown-row { flex-wrap: wrap; row-gap: 0; }
  .shown-row .dots { display: none; }
  .shown-row .shown-how { max-width: 100%; flex-basis: 100%; padding-left: 27px; white-space: normal; }
}

/* A conversation's review in the type of Tu profe: section titles and every Spanish line in the serif; English
   explanations, rules and small labels stay in the sans-serif, which reads better small. */
#feedback > .card > h2, #feedback > .win-back > .wb-head > h2 { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 24px; letter-spacing: -.01em; line-height: 1.15; }
#feedback .pattern h3 { font-family: var(--serif); font-weight: 450; font-size: 19px; line-height: 1.25; }
#feedback .pair .txt, #feedback .corr .txt { font-family: var(--serif); font-size: 16.5px; }
#feedback .pair.now .txt, #feedback .corr .now .txt { font-weight: 500; }
#feedback .memo b, #feedback .memo .ex, #feedback .plain li, #feedback .mission .big { font-family: var(--serif); }
#feedback .memo b { font-weight: 500; font-size: 17px; }
#feedback .memo .ex { font-size: 15.5px; }
#feedback .plain li { font-size: 17px; line-height: 1.45; }
#feedback .mission .big { font-size: 20px; font-weight: 400; }

/* compared with before: small multiples, one number each, this paragraph in orange, better in green */
@media (max-width: 640px) {   /* the account button sits at the end of the brand row; the tabs take the next line */
  .account { order: 2; margin-left: auto; }
  header .tabs { order: 3; }
}

/* Tu mapa: one honeycomb, a region per level */
.mapa { position: relative; padding: 14px 0 4px; }
.mapa svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.region-label { font-family: var(--serif); font-weight: 500; font-size: 20px; dominant-baseline: middle; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; opacity: .92; }
.region-label.big { font-size: 64px; opacity: .22; stroke: none; }
.region-count { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 600; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; font-variant-numeric: tabular-nums; }
.region-edge { fill: none; stroke: var(--surface); stroke-width: 8; stroke-linecap: round; pointer-events: none; }
.bigmap .region-edge { stroke: var(--bg); stroke-width: 18; }
.cell { cursor: pointer; outline: none; }
.cell polygon { fill: var(--map-unseen); stroke: transparent; stroke-width: 2.5; transition: fill .3s, stroke .15s; }
.cell:hover polygon { stroke: var(--ink-3); }
.cell:focus-visible polygon, .cell.on polygon { stroke: var(--ink); }
.cell-name { font-size: 10.5px; font-weight: 500; fill: var(--ink); pointer-events: none; }
.cell.st-solid .cell-name { fill: #141317; }   /* the mid green is too light for white */
.cell.st-mastered .cell-name { fill: #ffffff; }
.mapa-sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.mapa-sum p { margin: 0; }
.mapa-sum b { color: var(--ink); font-weight: 600; }
.bigmap { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.bigmap[hidden] { display: none; }
.bigmap-open { overflow: hidden; }
.bigmap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bigmap-head h2 { margin: 0; font-family: var(--serif); font-weight: 450; font-size: 24px; }
.bigmap-head .lm-legend { margin: 0; }
.bigmap-head .lm-key { width: 13px; height: 14px; border: 0; border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.bigmap-close { margin-left: auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.bigmap-scroll { flex: 1; overflow: auto; padding: 24px; }
.bigmap-scroll svg { display: block; margin: 0 auto; overflow: visible; }
.bigmap-detail { max-height: 36vh; overflow: auto; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.bigmap-detail .lm-detail { margin: 0 auto; max-width: 760px; }
.cell.st-assumed polygon { fill: var(--map-assumed); } .lm-key.st-assumed { background: var(--map-assumed); }
.cell.st-introduced polygon { fill: var(--map-introduced); } .lm-key.st-introduced { background: var(--map-introduced); }
.cell.st-learning polygon { fill: var(--map-learning); } .lm-key.st-learning { background: var(--map-learning); }
.cell.st-solid polygon { fill: var(--map-solid); } .lm-key.st-solid { background: var(--map-solid); }
.cell.st-mastered polygon { fill: var(--map-mastered); } .lm-key.st-mastered { background: var(--map-mastered); }
.cell.st-slips polygon, .cell.st-needs_work polygon { fill: var(--map-slip); } .lm-key.st-needs_work { background: var(--map-slip); }
.lm-key.st-unseen { background: var(--map-unseen); }
.mapa-block .lm-legend .lm-key { width: 13px; height: 14px; border: 0; border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mapa-sum { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.mapa-sum b { color: var(--ink); font-weight: 600; }
.plates polygon { fill: var(--line); }
.mapa-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.mapa-title { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 17px; margin: 0 0 8px; }
.mapa-block .lm-legend { margin: 0 0 6px; }
.next-up li.open .lm-detail { margin: 4px 0 14px; }

/* fill-in-the-blank drills: the blank in your sentence, and its clue (a verb shown openly, a grammar point blurred until hovered) */
.drill-prompt .blank { display: inline-block; min-width: 4.5em; border-bottom: 2px solid var(--ink); margin: 0 2px; padding: 0 4px; text-align: center; }
.drill-prompt .blank.filled { font-style: italic; }
.drill-prompt .blank.ok { color: var(--good-ink); border-bottom-color: var(--good); }
.drill-prompt .blank.no { color: var(--critical-ink); border-bottom-color: var(--critical); text-decoration: line-through; }
.drill-clue { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }
.drill-clue b { font-weight: 600; color: var(--ink); }
.drill-clue .veil { filter: blur(5px); cursor: pointer; transition: filter .2s; user-select: none; border-radius: 4px; }
.drill-clue .veil.open { filter: none; user-select: auto; cursor: auto; }
.drill-clue .veil:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

/* "Rapid Review" under a conversation: a worksheet of fill-in-the-blank sentences, one Submit, then the score */

/* the figures at the top of a reviewed paragraph */
.pstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.retell-body { margin-top: 12px; }
.retell-text { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); margin-bottom: 8px; }
.retell-results { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.corr .tag.is-right { background: none; border: 1px solid var(--data); color: var(--data); }
.pstat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pstat-label { font-size: 13px; color: var(--ink-3); }
.pstat b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.pstat-sub { font-size: 13px; color: var(--ink-3); }
.pstat-arrow { font-weight: 600; } .pstat-arrow.good { color: var(--data); } .pstat-arrow.worse { color: var(--ink-3); }
.pstat-bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; max-width: 220px; }
.pstat-bar span { display: block; height: 100%; background: var(--data); border-radius: 3px; }
@media (max-width: 640px) { .pstats { grid-template-columns: 1fr 1fr; } .pstat b { font-size: 28px; } }

/* Win back (docs/PLAY_PLAN.md, step 1): what went well first, then the fixes, red until won back, then green */
.wins .pstats { margin-bottom: 4px; }
.wins-line { margin: 14px 0 0; font-size: 15px; }
.wins-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.wins-words { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.wins-words b { font-weight: 500; color: var(--data-dark); background: var(--data-soft); border-radius: var(--radius-control); padding: 2px 8px; }
.wins-list { margin: 14px 0 0; padding-left: 20px; font-size: 15px; }
.wins-list li + li { margin-top: 4px; }
.wb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wb-head h2 { margin: 0; }
.wb-count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wb-bar { max-width: none; margin-top: 10px; }
.wb-note { margin: 10px 0 0; font-size: 14px; }
.wb-list { margin: 14px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.wb-list li + li { margin-top: 8px; }
.wb-fix .wrong { color: var(--critical-ink); font-weight: 500; }
.wb-fix .wb-fixed { color: var(--data-dark); font-weight: 600; }
.wb-fix .wb-wait { color: var(--ink-3); border-bottom: 1px dotted var(--ink-4); }
.wb-fix.won::marker { color: var(--data); }
.win-back .row { margin-top: 16px; }
.win-back.is-cleared { border-color: var(--data); }
.win-back.is-cleared h2 { color: var(--data-dark); }
.wb-after { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px;
  border-radius: var(--radius-control); background: var(--surface-2); }
.wb-after p { margin: 0; font-weight: 500; }
.wb-after.cleared { background: var(--data-soft); color: var(--data-dark); }
.conv-cleared { display: inline-flex; align-items: center; gap: 3px; color: var(--data-dark); }
.conv-cleared .ico { width: 13px; height: 13px; }
.section-sub { margin: -4px 0 0; font-size: 14px; color: var(--ink-3); }

/* Tu profe: "Don't like this response?" */
.profe-flag { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-3); cursor: pointer; }
.profe-flag .ico { width: 17px; height: 17px; }
.profe-flag:hover, .profe-flag[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-3); }
.profe-flag.sent { color: var(--data); }
.profe-note { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--bg); }
.profe-note[hidden] { display: none; }
.profe-note-title { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.profe-note textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--ink); resize: vertical; }
.profe-note-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.profe-note-status { font-size: 13px; color: var(--critical-ink); }
.profe-note-done { margin: 0; font-size: 14px; color: var(--good-ink); }
.country-field select { display: block; width: 100%; height: 46px; margin-top: 6px; padding: 0 12px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--control); border-radius: 8px; }

/* a focus verb's card: the tense's table, your person marked */
.pv-table { margin: 8px 0 0; border-collapse: collapse; font-size: 14px; width: 100%; }
.pv-table th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 2px 12px 2px 0; white-space: nowrap; font-size: 12.5px; }
.pv-table td { font-family: var(--serif); font-size: 16px; color: var(--ink); padding: 2px 0; }
.pv-table tr.me td { color: var(--accent); font-style: italic; }
.pv-table tr.me th { color: var(--accent); }
.pv-times { color: var(--ink-3); font-size: 12px; }

/* the plan: two weeks on one tense at a time */
.plan-now { display: grid; gap: 4px; }
.plan-eyebrow { margin: 0; font-size: 13px; color: var(--ink-3); }
.plan-now .plan-title { margin: 0; font-family: var(--serif); font-weight: 450; font-size: 36px; letter-spacing: -.01em; }
.plan-use { margin: 0; font-size: 15px; color: var(--ink-2); }
.plan-days { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.plan-bar { width: min(320px, 60%); height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.plan-bar span { display: block; height: 100%; background: var(--accent); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.plan-head h2 { margin: 0; }
.plan-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.plan-mode { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.plan-mode-label { margin-right: 6px; }
.plan-mode button { min-height: 32px; padding: 0 12px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.plan-mode button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.plan-blocks { list-style: none; margin: 16px 0 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px; overflow-x: auto; }
.plan-block { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 128px; }
.plan-block.past { opacity: .55; }
.plan-block.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-block.auto { border-style: dashed; background: none; }
.plan-block[draggable="true"] { cursor: grab; }
.plan-block.dragging { opacity: .4; }
.plan-block.over { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
.plan-dates { font-size: 12px; color: var(--ink-3); }
.plan-label { font-family: var(--serif); font-weight: 450; font-size: 18px; }
.plan-select { width: 100%; height: 34px; font-size: 14px; }
.plan-level, .plan-state { font-size: 12px; color: var(--ink-3); }
.plan-block.now .plan-state { color: var(--accent); font-weight: 600; }
.plan-move { display: flex; gap: 4px; margin-top: auto; }
.plan-move button { min-width: 30px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-2); cursor: pointer; font: inherit; }
.plan-move button:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px), (pointer: coarse) { .plan-move { gap: 8px; } .plan-move button { min-width: 44px; height: 44px; } .plan-block select { height: 44px; } }
.plan-block.add { align-items: center; justify-content: center; border-style: dashed; background: none; }
.plan-block.add button { background: none; border: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
@media (max-width: 640px) { .plan-blocks { grid-auto-flow: row; grid-auto-columns: auto; } .plan-block { min-height: 0; } }
.pv-progress { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* your paragraphs, said naturally: a play button on each reviewed conversation, "Play all", and a bar at the foot of
   the page while one plays (what it is, play/pause, next, speed, save) */
.conv-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.play-all { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; }
.play-all .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.topic-cell { display: flex; align-items: center; gap: 10px; }
.row-play { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--control); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.row-play::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.row-play .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.row-play .pause, .row-play[aria-pressed="true"] .play { display: none; }
.row-play[aria-pressed="true"] { background: var(--energy); border-color: var(--energy); color: var(--on-energy); }
.row-play[aria-pressed="true"] .pause { display: block; }
.row-play:hover { border-color: var(--ink); }
.row-play:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

.natural-head { display: flex; align-items: center; gap: 16px; }
.natural-head > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.natural-head h2 { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 26px; line-height: 1.1; margin: 0; }
.natural-head .profe-tools { margin-left: 0; }   /* Tu profe's tools drop under its title on a phone; Save stays beside this one */
.natural-head .profe-tools .linkish { font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) {   /* the tools take their own row under the title, so the title and subtitle keep the width */
  .natural-head { flex-wrap: wrap; row-gap: 8px; }
  .natural-head > div:nth-child(2) { flex-basis: 0; }   /* the title stays beside the play button */
  .natural-head .profe-tools { flex-basis: 100%; padding-left: 72px; }
}
.natural-text { font-family: var(--serif); font-size: 19px; line-height: 1.6; margin: 8px 0 0; }
.natural-sub { margin: 28px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.natural-head .follow[aria-pressed="false"] { color: var(--ink-3); text-decoration: line-through; }
/* the mini-lesson: three points, each your sentence, the fix, why, the rule and your turn */
.lesson { margin: 14px 0 0; }
.lesson-open { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }
.lesson-point { margin: 10px 0 0; padding: 14px 16px 12px; border-left: 3px solid var(--line); border-radius: 0; transition: border-color .25s, background-color .25s; }
.lesson-point.now { border-left-color: var(--accent); background: var(--accent-soft); }
.lesson-point p { margin: 0; }
.lp-label { display: inline-block; min-width: 4.6em; margin-right: 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.lp-said, .lp-better { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.lp-said s { color: var(--ink-3); text-decoration-color: var(--critical); text-decoration-thickness: 1px; }
.lp-better { margin-top: 2px !important; }
.lp-better mark { background: none; color: var(--data); font-weight: 600; }
.lp-explain { margin-top: 10px !important; font-size: 15px; line-height: 1.55; color: var(--ink); }
.lp-rule { margin-top: 8px !important; font-size: 15px; line-height: 1.5; }
.lp-rule b { font-weight: 600; }
.lp-phrase { display: inline-block; margin-top: 4px; font-family: var(--serif); font-style: italic; color: var(--accent); }
.lp-turns { margin: 10px 0 0; padding: 0 0 0 20px; font-size: 14.5px; }
.lp-turns li { margin: 4px 0; }
.lp-cue { color: var(--ink-2); margin-right: 8px; }
.lp-answer { padding: 0 2px; border: 0; background: none; font: inherit; font-family: var(--serif); font-size: 16px; color: var(--ink); cursor: pointer;
  filter: blur(4px); transition: filter .2s; }
.lp-answer.open { filter: none; }
@media (hover: hover) { .lp-answer:hover { filter: none; } }
.lesson-own { margin: 14px 0 0; font-size: 15px; }
/* the paragraph as it's read: a soft underline moving with the voice; the words a point fixed stay marked */
.pw { border-bottom: 2px solid transparent; transition: border-color .12s; }
.pw.fixed { color: var(--data); }
.pw.speaking { border-bottom-color: var(--accent-line); }
.pw.fixed.speaking { border-bottom-color: var(--data); }
@media (prefers-reduced-motion: reduce) { .lesson-point, .pw, .lp-answer { transition: none; } }

.player { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(680px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 14px 30px rgb(30 25 15 / .16); }   /* taste-skill-ignore: a floating player */
.player .play-btn.small { width: 44px; height: 44px; }
.player .play-btn.small .ico { width: 18px; height: 18px; }
.player-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.player-title { font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.player-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub.bad { color: var(--critical-ink); white-space: normal; }
.player-btn { flex: none; min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--ink-2);
  font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-items: center; }
.player-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.player-btn:disabled { opacity: .35; cursor: default; }
.player-btn .ico { width: 18px; height: 18px; }
body:has(.player:not(.hidden)) .wrap { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }   /* the bar never covers the end of the page */
@media (max-width: 640px) {
  .player { bottom: max(8px, env(safe-area-inset-bottom)); gap: 4px; padding: 8px; width: calc(100% - 16px); }
  .player-btn { padding: 0 4px; }
  .natural-head h2 { font-size: 22px; }
  .natural-text { font-size: 17px; }
}

/* The verb card under the mic (verbdeck.py): one small index card, the same on every screen. The verb you haven't said
   yet, what it means in the two-week tense, and its forms as one blurred line that opens into the table. */
.try.deck { display: block; border-top: 0; padding-top: 0; }
.try.deck .try-head { display: none; }
.try.deck .dishes, .try.deck:not(.open) .dishes { display: block; position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; }
.deck-card { width: min(340px, 100%); margin: 0 auto; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; text-align: center; }
.deck-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deck-step { flex: none; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--ink-3);
  font: 400 24px/1 var(--font); cursor: pointer; display: inline-grid; place-items: center; padding: 0 0 3px; }
.deck-step:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.deck-step:disabled { opacity: .25; cursor: default; }
.deck-verb { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; font-family: var(--serif); font-weight: 450; font-size: 38px; height: 40px; line-height: 40px; letter-spacing: -.02em;
  color: var(--ink); font-variation-settings: "SOFT" 50, "WONK" 1; animation: deck-in .22s cubic-bezier(.25, 1, .5, 1); }
.deck-check { display: none; margin-left: 8px; font: 600 .42em/1 var(--font); color: var(--data); vertical-align: .55em; }
.deck-verb.said .deck-check { display: inline; }
.deck-en { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line, always */
.deck-nouns { margin: 8px 0 0; height: 24px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--serif); font-size: 16px; color: var(--ink-3); }
.deck-noun { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.deck-noun.new { color: var(--accent); }   /* a noun you haven't said yet */
.deck-noun.said { color: var(--data); }
.deck-noun[aria-pressed="true"] { font-style: italic; }   /* showing its English */
.deck-noun:hover { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.deck-forms { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); cursor: pointer; outline-offset: 4px; border-radius: 2px; }
.deck-table { margin: 0 auto; border-collapse: collapse; font-size: 14px; filter: blur(5px); transition: filter .2s ease-out; user-select: none; }
.deck-table th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 12.5px; padding: 2px 16px 2px 0; }
.deck-table td { text-align: left; font-family: var(--serif); font-size: 16px; color: var(--ink); padding: 2px 0; }
.deck-table.paired td { padding-right: 18px; }
.deck-table thead th { font-size: 12.5px; color: var(--ink-3); padding: 0 18px 4px 0; }
.deck-table td.partner { color: var(--ink-2); }
.deck-forms.open .deck-table { filter: none; user-select: auto; }
@media (hover: hover) { .deck-forms:hover .deck-table { filter: none; user-select: auto; } }
@keyframes deck-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .deck-verb { animation: none; } .deck-table { transition: none; } }
.practice:has(.try.deck) { grid-template-rows: auto minmax(132px, 1fr) auto; }
@media (max-width: 640px) { .deck-verb { font-size: 34px; height: 36px; line-height: 36px; } .deck-card { padding: 12px 14px 10px; } }

/* Conversations: a quiet list down the left, like a table of contents (it stays in view as the review scrolls), and
   the open one on the right at a comfortable reading width. On a wide screen the list moves out into the margin, so it
   takes nothing from the review. */
.conv { --side: 220px; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 20px;
  width: min(1440px, 100vw - 48px); margin-left: calc((100% - min(1440px, 100vw - 48px)) / 2); }
.conv.side-hidden { --side: 32px; }
.conv.side-hidden .conv-side-head h1, .conv.side-hidden .play-all, .conv.side-hidden .conv-items { display: none; }
.conv-hide { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; position: relative; }
.conv-hide::after { content: ""; position: absolute; inset: -6px; }
.conv-hide:hover { color: var(--ink); border-color: var(--ink-3); }
.conv-side { position: sticky; top: 16px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; min-height: 0; }
.conv-side-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.conv-side-head h1 { flex: 1 1 auto; }
.conv-side-head h1 { font-family: var(--serif); font-size: 22px; font-weight: 450; letter-spacing: -.01em; margin: 0; }
.conv-side .play-all { flex: none; padding: 0; font-size: 13px; color: var(--ink-2); text-decoration-color: var(--line); text-underline-offset: 4px; }
.conv-pick { display: none; }
.conv-items { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.conv-item { position: relative; display: flex; align-items: center; gap: 4px; border-left: 2px solid transparent; }
.conv-item.current { border-left-color: var(--accent); }
.conv-open { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; text-align: left; background: none; border: 0;
  padding: 6px 4px 6px 12px; font: inherit; color: inherit; cursor: pointer; }
.conv-topic { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-open:hover .conv-topic { color: var(--ink); }
.conv-item.current .conv-topic { color: var(--accent); font-weight: 500; }
.conv-meta { flex: none; font-size: 12px; color: var(--ink-3); }
.conv-day { margin: 12px 0 2px 14px; font-size: 11.5px; color: var(--ink-3); }
.conv-day:first-child { margin-top: 0; }
.conv-item .row-play { width: 24px; height: 24px; visibility: hidden; }
.conv-item .row-play .ico { width: 10px; height: 10px; }
.conv-item.current .row-play, .conv-item:hover .row-play, .conv-item .row-play[aria-pressed="true"], .conv-item .row-play:focus-visible { visibility: visible; }
/* the review: a comfortable line length, centred on the page rather than in the space beside the list (it moves left by
   half the list's width where there is room) */
.conv-main { min-width: 0; width: 100%; max-width: 900px; justify-self: start;
  margin-left: max(0px, calc((100% - 900px) / 2 - (var(--side) + 40px) / 2)); transition: margin-left .25s ease; }
.conv-main > .card:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .conv, .conv.side-hidden { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 12px; width: auto; margin-left: 0; }
  .conv-hide { display: none; }
  .conv.side-hidden .conv-side-head h1, .conv.side-hidden .play-all { display: revert; }
  .conv-main { margin-left: 0; }
  .conv-side { position: static; max-height: none; }
  .conv-pick { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--control);
    border-radius: 10px; background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
  .conv-pick::after { content: "▾"; color: var(--ink-3); }
  .conv-side.open .conv-pick::after { content: "▴"; }
  .conv-items { display: none; margin: 8px 0 0; padding: 4px 4px 4px 0; max-height: 60dvh; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .conv-side.open .conv-items { display: block; }
  .conv-open { padding: 10px 4px 10px 12px; }
  .conv-topic { font-size: 15px; }
  .conv-item .row-play { visibility: visible; width: 30px; height: 30px; }
}
#feedback > .conv-head > .conv-title { font-family: var(--serif); font-style: normal; font-weight: 450; font-size: 28px; line-height: 1.15; margin: 0 0 6px; }
@media (max-width: 640px) { #feedback > .conv-head > .conv-title { font-size: 23px; } }

/* a reviewed paragraph's patterns: number and title, the better sentence with only the changed words marked (your words
   for them crossed out above), the rule of thumb as the takeaway, the longer why folded away */
.pattern { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.pattern-head { display: flex; align-items: baseline; gap: 10px; }
.pattern-head .num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 600; transform: translateY(-2px); }
#feedback .pattern-head h3 { margin: 0; font-size: 18px; }
.change { display: flex; flex-direction: column; gap: 2px; }
.change-was { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.change-was .lbl { font-size: 12px; margin-right: 6px; }
.change-was s { color: var(--critical-ink); text-decoration-color: var(--critical); }
.change-now { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); }
.change-now mark { background: var(--good-bg); color: var(--good-ink); border-radius: 4px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pattern .rule { margin: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.why { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.why summary { cursor: pointer; color: var(--ink-3); width: fit-content; list-style: none; }
.why summary::before { content: "▸ "; }
.why[open] summary::before { content: "▾ "; }
.why p { margin: 6px 0 0; line-height: 1.45; }
.why .status-note { margin-top: 6px; }

/* frames to reuse: the frame with its slots as blanks, when to use it, a short list of examples */
#feedback .memo { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.memo .frame { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.memo .slot { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 4px; border: 1px dashed var(--accent-line); background: var(--surface);
  color: var(--accent); font-style: italic; font-weight: 400; line-height: 1.35; }
.memo .frame-use { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.frame-ex { list-style: none; margin: 2px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.frame-ex li { font-family: var(--serif); font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }

/* multiple choice for new blanks: options in one row that wraps, the right one turns green and a wrong pick red */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border: 1px solid var(--control); border-radius: 10px;
  background: var(--surface); font-family: var(--serif); font-size: 17px; color: var(--ink); cursor: pointer; }
.choice:hover:not(:disabled) { border-color: var(--accent); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.choice-key { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--surface-2); color: var(--ink-3);
  font-family: var(--font); font-size: 11.5px; }
.choice:disabled { cursor: default; opacity: .55; }
.choice.right { opacity: 1; border-color: var(--good); background: var(--good-bg); color: var(--good-ink); }
.choice.wrong { opacity: 1; border-color: var(--critical); background: var(--critical-bg); color: var(--critical-ink); text-decoration: line-through; }
.choices.long { flex-direction: column; align-items: stretch; }
.choices.long .choice { min-height: 48px; padding-block: 8px; text-align: left; }
@media (max-width: 640px) { .choice { flex: 1 1 calc(50% - 8px); justify-content: flex-start; } }

@media (max-width: 640px) { .drill-panel { padding: 18px; } .drill-prompt { font-size: 20px; } }

/* the page under a reviewed paragraph: its lesson leads; the patterns card only without one; the rest behind "See all" */
.has-lesson .patterns-card { display: none; }
.see-all > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.see-all > summary::-webkit-details-marker { display: none; }
.see-all > summary h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 20px; }
.see-all > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--ink-3); }
.see-all[open] > summary::after { content: "–"; }
.see-all-sub { margin: 20px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* read out to screen readers only (the next verb on the card) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* on a touch screen: no keyboard badges, and every paragraph's play button is there to tap */
@media (pointer: coarse) { .choice-key, .submit-btn .kbd { display: none; } }
@media (hover: none) { .conv-item .row-play { visibility: visible; } }

/* the import test page (import.html): one column, the player at 16:9 */
.import-main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.import-main .row { display: flex; gap: 8px; margin: 16px 0; }
.import-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-card); background: var(--surface-2); }
.import-status { min-height: 1.5em; margin: 12px 0; }
.import-lines { margin: 0; padding-left: 0; list-style: none; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.import-sub { margin: 32px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.import-list { margin: 0; padding-left: 18px; line-height: 1.6; }

/* Watch: picks from your channels, then one video with its transcript beside it (below it on a phone) */
.watch-channels-btn { margin-left: 12px; align-self: center; }
.watch-saved-btn { margin-left: auto; align-self: center; }
.watch-saved { margin: 0 0 16px; }
.watch-saved-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.watch-saved-head p { margin: 0; }
.watch-saved-head select { font: inherit; font-size: 13px; min-height: 32px; padding: 0 6px; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.watch-saved-list { margin: 10px 0 0; padding: 0; list-style: none; }
.watch-saved-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.ws-word { font-family: var(--serif); font-size: 17px; }
.ws-en { color: var(--ink-2); font-size: 14px; }
.ws-ex { grid-column: 1; color: var(--ink-3); font-size: 13.5px; font-family: var(--serif); }
.ws-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--ink-3); text-align: right; }
.watch-channels { margin: 0 0 16px; }
.watch-switch { margin: 0 0 14px; }
.watch-switch .seg { height: 36px; padding: 0 14px; font-size: 14px; }
.listen-deck { margin: 0 0 12px; width: 100%; box-sizing: border-box; }
.listen-deck .known-meter { max-width: none; }
.listen-deck p { margin: 8px 0 0; }
.listen-deck .listen-show { margin: 0 0 8px; }
.listen-deck audio { display: block; width: 100%; }
.listen-facts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.listen-facts:empty { display: none; }
#watchVideo.podcast .watch-side { height: min(72vh, 680px); }
.listen-timing .listen-controls { margin-top: 6px; }
@media (max-width: 900px) {
  .listen-deck .listen-show, #watchVideo.podcast #watchSayLabel { display: none; }
  .listen-deck { padding: 10px 12px; }
}
.watch-transcript.approx .wl-time::before { content: "≈"; }
#listenAlign[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink, #fff); }
.listen-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.listen-speed { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.listen-speed select { font: inherit; font-size: 13px; min-height: 32px; padding: 0 6px; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
#listenAddNote:empty, #listenStatus:empty { display: none; }
.listen-list { display: flex; flex-direction: column; }
.listen-row { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); }
.listen-open { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.listen-open:hover .wc-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.listen-bar { display: block; height: 4px; margin-top: 3px; max-width: 240px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.listen-bar i { display: block; height: 100%; background: var(--accent); }
.listen-hide { flex: none; width: 36px; height: 44px; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.listen-hide:hover { color: var(--ink); }
.watch-channels .row { display: flex; gap: 8px; }
.watch-channel-list { margin: 10px 0 0; padding: 0; list-style: none; }
.watch-channel-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule); }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 16px; }
.watch-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.watch-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.watch-card:hover .wc-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.wc-title { font-family: var(--serif); font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-meta { font-size: 12.5px; color: var(--ink-3); }
.wc-in { color: var(--data); }
.watch-cell { position: relative; min-width: 0; }
.watch-cell .watch-card { width: 100%; }
.wc-bar { display: block; height: 4px; margin-top: -6px; border-radius: 0 0 4px 4px; background: var(--surface-2); overflow: hidden; }
.wc-bar i { display: block; height: 100%; background: var(--accent); }
.known-meter { display: flex; flex-direction: column; gap: 4px; max-width: 320px; }
.km-track { display: block; height: 6px; border-radius: 3px; background: var(--data-3); overflow: hidden; }
.km-track i { display: block; height: 100%; border-radius: 3px; background: var(--data); }
.km-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 12.5px; color: var(--ink-3); }
.km-text b { font-weight: 600; color: var(--ink-2); }
.wc-hide { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; }
.watch-cell:hover .wc-hide, .wc-hide:focus-visible { opacity: 1; }
@media (hover: none) { .wc-hide { opacity: 1; } }
.watch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 32px 0 12px; }
.watch-head .watch-sub { margin: 0; }
.watch-head select, .watch-add select, .watch-per select, .watch-channel-list select { font: inherit; font-size: 13px; min-height: 32px; padding: 0 6px; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.watch-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.watch-add { flex-wrap: wrap; }
.watch-add .drill-input { flex: 1 1 220px; min-width: 0; }
.watch-minutes { width: 5em; font: inherit; font-size: 13px; min-height: 32px; padding: 0 6px; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }
.watch-channel-list .wch-name { flex: 1 1 auto; min-width: 0; }
.watch-channel-list .wch-count { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.watch-channel-list li { flex-wrap: wrap; }
.watch-per { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.watch-sub { margin: 32px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.watch-top { display: flex; align-items: baseline; gap: 16px; margin: 0 0 12px; }
.watch-top .linkish { white-space: nowrap; }
.watch-title { margin: 0; font-family: var(--serif); font-weight: 450; font-size: 22px; line-height: 1.2; min-width: 0; }
.watch-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 16px; align-items: start; }
.watch-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.watch-side { display: flex; flex-direction: column; min-height: 0; height: 360px; }
.watch-hint { flex: none; margin: 0 0 6px; font-size: 12px; color: var(--ink-3); }
.watch-transcript { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 8px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.wl { display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px; column-gap: 8px; align-items: baseline; margin: 0; padding: 4px 8px; border-radius: 8px; color: var(--ink-2); cursor: pointer; transition: background-color .2s; }
.wl:hover:not(.now) { background: var(--surface-2); }
.wl.now { background: var(--accent-soft); color: var(--ink); }
.wl-time { position: relative; justify-self: start; padding: 0; border: 0; background: none; font: 500 11.5px/1 var(--font); color: var(--ink-3); cursor: pointer; }
.wl-time::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.wl-time:hover { color: var(--accent); }
.wl-text { justify-self: start; cursor: text; }   /* so the space beside a short line counts as beside it, and plays from there */
.wl-go { align-self: stretch; padding: 0; border: 0; background: none; font: 12px/1 var(--font); color: transparent; cursor: pointer; }
.wl:hover .wl-go, .wl-go:focus-visible { color: var(--ink-3); }
.wl-go:hover { color: var(--accent); }
@media (hover: none) { .wl-go { color: var(--ink-3); } }
.ww { border-bottom: 2px solid transparent; border-radius: 2px; }
@media (hover: hover) { .ww:hover { background: var(--accent-soft); } }
.ww.now { border-bottom-color: var(--accent); }
.ww.said, .watch-legend .said { color: color-mix(in srgb, var(--data) 75%, var(--ink)); }
.ww.saved, .watch-legend .saved { text-decoration: underline dotted var(--accent) 1.5px; text-underline-offset: 3px; }
.watch-legend { flex: none; margin: 0 0 6px; font-size: 12px; color: var(--ink-3); }
.watch-status { margin: 12px 0 0; min-height: 1.4em; }
.watch-now { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 600 14px/1 var(--font); cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .18); }
@media (prefers-reduced-motion: reduce) { .wl { transition: none; } }
@media (max-width: 900px) {
  .watch-stage { grid-template-columns: 1fr; }
  /* a video open on a phone: the menu, the video and Summarise now hold still at the top; only the transcript
     scrolls, in the space left below them */
  body.watching { overflow: hidden; }
  body.watching .wrap { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding-bottom: 0; }
  body.watching .wrap > header, body.watching .watch-top, body.watching .watch-main { flex: none; }
  body.watching #watch, body.watching #watchVideo, body.watching .watch-stage { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  body.watching .watch-stage { gap: 4px; }
  body.watching .watch-side { flex: 1 1 auto; min-height: 0; height: auto !important; }
  body.watching .watch-transcript { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .watch-hint { font-size: 11.5px; }
}
@media (max-width: 640px) { .watch-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; } .wc-title { font-size: 14.5px; } .watch-title { font-size: 18px; } }

/* Watch: summarising as you go, and sending */
.watch-say { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.watch-mic { width: 56px; height: 56px; }
.watch-mic .ico { width: 24px; height: 24px; }
.watch-mic .stop, .watch-mic[aria-pressed="true"] .mic { display: none; }
.watch-mic[aria-pressed="true"] .stop { display: block; }
.watch-mic[aria-pressed="true"] { background: var(--energy); color: var(--on-energy); }
.watch-say-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.watch-say-text b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.watch-say-text span { font-size: 13px; color: var(--ink-3); }
.watch-done { margin-left: auto; white-space: nowrap; }
.watch-take { margin: 12px 0 0; }
.watch-take textarea, .watch-sum textarea { width: 100%; resize: vertical; border: 1px solid var(--field); border-radius: var(--radius-control); padding: 10px 12px;
  background: var(--surface); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.watch-take .row { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.watch-take-range { margin: 0 0 6px; font-size: 14px; color: var(--ink-3); }
.watch-waiting { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-card); background: var(--accent-soft); }
.watch-sum { margin: 0 0 14px; }
.watch-sum-head { display: flex; align-items: baseline; justify-content: space-between; }
.watch-send-row { display: flex; margin: 8px 0 0; }
@media (max-width: 640px) { .watch-say { margin-top: 10px; gap: 10px; } .watch-mic { width: 48px; height: 48px; } .watch-say-text b { font-size: 16px; } .watch-say-text span { font-size: 12.5px; } .watch-send-row .submit-btn { width: 100%; height: 44px; } }
.watch-sum-video { margin: 24px 0 10px; font-family: var(--serif); font-weight: 450; font-size: 18px; line-height: 1.3; }

/* Watch: what you understood, under the lesson of a watch Conversation */
#feedback .watch-check > h2 { margin: 0; }
.wc-sum { padding: 16px 0 0; margin-top: 16px; border-top: 1px solid var(--rule); }
.wc-said { margin: 0 0 8px; font-family: var(--serif); font-size: 16.5px; line-height: 1.5; }
.wc-understood { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.wc-understood.u-most { color: var(--data); }
.wc-understood.u-much { color: var(--ink-2); }
.wc-understood.u-little { color: var(--energy-ink); }
.wc-list { margin: 6px 0 0; }
.wc-list ul { margin: 2px 0 0; padding-left: 18px; font-family: var(--serif); font-size: 15.5px; line-height: 1.45; }
.wc-list s { color: var(--critical-ink); }
.wc-words { margin: 2px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-3); line-height: 1.9; }
.wc-words b { font-family: var(--serif); font-weight: 500; font-size: 15.5px; color: var(--accent); }

/* Learn this: in a word's translation, and beside the words a comprehension check offers */
.tp-learn { display: inline-block; margin-top: 8px; font-size: 13px; }
.translate-pop .tp-learn { color: inherit; }
.tp-learned { display: block; margin-top: 8px; font-size: 12.5px; opacity: .85; }
.wc-words .tp-learn { margin: 0 0 0 4px; font-size: 14px; }
.wc-words .tp-learned { display: inline; margin: 0 0 0 4px; color: var(--data); }

/* the study plan on the level and goals page, under the form */
.welcome-plan { width: min(760px, 100%); margin: 28px auto 0; text-align: left; }
.welcome-plan.hidden { display: none; }
.welcome-plan-title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 28px; }
.welcome-plan .card { margin-bottom: 16px; }
.signin.welcome { grid-template-columns: minmax(0, 1fr); justify-items: center; }   /* the plan's sideways list scrolls inside the page */
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-mouse { display: none; } }

/* Practice: Hablar or Describir. In Describe the picture takes the question's place and the verb card steps aside. */
.mode-switch { display: inline-flex; gap: 4px; margin: 0 auto 14px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.mode-switch button { position: relative; min-height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 500 13.5px/1 var(--font); color: var(--ink-3); cursor: pointer; }
.mode-switch button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 100%; height: 44px; transform: translate(-50%, -50%); }
.mode-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.practice.describing { display: block; }
.practice.describing .home { text-align: center; }
.practice.describing .question, .practice.describing .question-more, .practice.describing .question-en,
.practice.describing #compose, .practice.describing #targets, .practice.describing .peek { display: none; }
.describe { max-width: 760px; margin: 0 auto; }
.describe.hidden { display: none; }
.describe-step { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.describe-prompt { margin: 4px auto 12px; max-width: 26ch; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; text-wrap: balance; }
.describe-fig { margin: 0; }
.describe-fig img { display: block; width: 100%; max-height: 56vh; object-fit: contain; border-radius: var(--radius-card); background: var(--surface-2); }
.describe-credit { margin-top: 4px; font-size: 11.5px; text-align: right; }
.describe-credit a { color: var(--ink-3); }
.describe-hints { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.describe-hint-words b { font-family: var(--serif); font-weight: 500; color: var(--accent); }
.describe-send h1 { margin-top: 0; }
@media (max-width: 640px) { .describe-fig img { max-height: 42vh; } .describe-prompt { font-size: 22px; } }
.describe-sum { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.describe-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 640px) { .describe-sum { grid-template-columns: 1fr; } .describe-thumb { max-width: 220px; } }

/* Describe: your own photos */
.describe-mine { margin: 14px 0 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.photos { margin: 14px 0 0; }
.photos.hidden { display: none; }
.photos h2 { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 22px; }
.photo-notice p { font-size: 13px; line-height: 1.5; }
.photo-add { margin: 12px 0 0; }
.photo-new { margin: 12px 0 0; }
.photo-rows { list-style: none; margin: 0 0 12px; padding: 0; }
.photo-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 0; }
.photo-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }
.photo-row input { width: 100%; padding: 8px 10px; font: inherit; border: 1px solid var(--field); border-radius: var(--radius-control); background: var(--surface); }
.photo-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0 0 12px; }
.photo-consent.hidden { display: none; }
.photo-consent input { margin-top: 3px; flex: none; }
.photo-new .row { display: flex; gap: 16px; align-items: center; }
.photo-list { list-style: none; margin: 14px 0 0; padding: 0; }
.photo-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.photo-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.photo-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Describe: flipping through pictures, removing one, and a verb's table */
.describe-panel { position: relative; }
/* Barajas (decks.py): three stacks of cards, each an ink-outlined card on a little stack of its own */
.deck-stacks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; margin: 8px auto 0; padding: 0 8px 8px 0; }
.deck-stack { --card: var(--surface); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 150px;
  padding: 10px 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 4px 4px 0 -2px var(--card), 4px 4px 0 0 var(--ink), 8px 8px 0 -2px var(--card), 8px 8px 0 0 var(--ink); transition: transform .15s ease; }
.deck-stack:hover { transform: translateY(-2px); }
.deck-stack:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.deck-stack.verb { --card: var(--accent-soft); }
.deck-stack.noun { --card: var(--good-bg); }
.deck-stack.wild { --card: var(--energy-soft); transform: rotate(1.5deg); }
.deck-stack.wild:hover { transform: rotate(1.5deg) translateY(-2px); }
.ds-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ds-es { font-family: var(--serif); font-size: clamp(17px, 2.4vw, 22px); line-height: 1.2; overflow-wrap: anywhere; }
.ds-en { min-height: 1.2em; font-size: 12.5px; color: var(--ink-2); }
.deck-stack.is-new .ds-label::after { content: " · nueva"; color: var(--accent); }
.deck-stack.flip { animation: deck-flip .32s ease; }
@keyframes deck-flip { 0% { transform: rotateY(80deg); } 100% { transform: rotateY(0); } }
.decks-tip { margin: 14px 0 0; text-align: center; }
.decks .watch-say #decksNext { margin-left: auto; }
.decks #decksHintText b { font-family: var(--serif); font-size: 18px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .deck-stack, .deck-stack.flip { animation: none; transition: none; } }
.dr-cards { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-card { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 6px 10px; border-left: 4px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.dr-card.verb { border-left-color: var(--accent); } .dr-card.noun { border-left-color: var(--good); } .dr-card.wild { border-left-color: var(--energy); }
.dr-mark { font-weight: 700; text-align: center; }
.dr-es { font-family: var(--serif); font-size: 16px; }
.dr-status { font-size: 12.5px; color: var(--ink-3); }
.dr-card.right .dr-mark, .dr-card.right .dr-status { color: var(--good-ink); }
.dr-card.slip .dr-mark, .dr-card.slip .dr-status { color: var(--critical-ink); }
.dr-fix { grid-column: 2 / -1; font-size: 14px; }
.dr-fix .wrong { color: var(--critical-ink); }
@media (max-width: 480px) { .deck-stacks { gap: 10px; } .deck-stack { min-height: 128px; padding: 8px 8px 10px; } .ds-en { font-size: 11.5px; } }
.describe-frame { position: relative; }
.describe-flip { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgb(20 19 23 / .55); color: #fff; font: 400 28px/1 var(--font); padding-bottom: 4px; cursor: pointer; }
.describe-flip.prev { left: 8px; } .describe-flip.next { right: 8px; }
.describe-flip:disabled { opacity: 0; pointer-events: none; }
.describe-credit { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.describe-credit .linkish { font-size: 12px; color: var(--ink-3); }
#describeCount { color: var(--ink-3); }
.describe-hint-words { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; margin-top: 4px; }
.describe-word { position: relative; padding: 0; border: 0; background: none; font-family: var(--serif); font-size: 26px; line-height: 1.2;
  font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: underline dotted; text-decoration-color: var(--accent-line);
  text-underline-offset: 5px; }   /* the word in Spanish only: its English on hover or tap */
.describe-word::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
@media (max-width: 640px) { .describe-word { font-size: 22px; } }
.describe-table { position: absolute; z-index: 30; min-width: 200px; padding: 10px 14px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 24px rgb(0 0 0 / .12); }
.describe-table.hidden { display: none; }
.describe-table b { display: block; margin: 8px 0 4px; font-size: 13px; }
.describe-en { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.describe-table .open-table { filter: none; margin: 0; }
.describe-draft { margin: 0 0 12px; }
.describe-draft textarea { width: 100%; resize: vertical; border: 1px solid var(--field); border-radius: var(--radius-control); padding: 10px 12px;
  background: var(--surface); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.describe-draft-head { display: flex; gap: 10px; align-items: center; margin: 0 0 6px; }
.describe-draft-head img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }

/* Your photos: the grid, to select and delete */
body.managing .wrap { display: none; }
.manager { max-width: 1132px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left)) 64px; }
.manager.hidden { display: none; }
.manager-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 0; background: var(--bg); }
.manager-bar h1 { margin: 0; font-family: var(--serif); font-weight: 450; font-size: 26px; }
.manager-bar h1 span { color: var(--ink-3); font-size: 18px; }
.manager-actions { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.btn.danger { background: var(--critical); color: #fff; border-color: var(--critical); }
.btn.danger:disabled { opacity: .4; cursor: default; }
.manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.manager-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.manager-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-2); outline: 3px solid transparent; outline-offset: -3px; }
.manager-item[aria-pressed="true"] img { outline-color: var(--critical); opacity: .75; }
.manager-tick { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(20 19 23 / .45); color: transparent; font: 700 15px/1 var(--font); border: 2px solid #fff; }
.manager-item[aria-pressed="true"] .manager-tick { background: var(--critical); color: #fff; }
.manager-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .manager-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .manager-name { display: none; } }

/* The review page in order (docs/REVIEW_PAGE_PLAN.md): a Describe round's pictures in a row under its title; Rapid
   Review as wide as the cards around it; your text once, photo by photo, each photo's check folded to one line. */
.conv-thumbs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; }
.conv-thumbs img { flex: 0 0 auto; width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
#feedback > .drill-panel { max-width: none; margin-left: 0; margin-right: 0; }
.natural-key { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.key-fixed { color: var(--data); font-weight: 600; }
.lp-hint { margin-left: 8px; font-size: 13px; color: var(--ink-3); }
.dparts { margin-top: 8px; }
.dpart { padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--rule); }
.dpart:first-child { border-top: 0; margin-top: 4px; padding-top: 0; }
.dpart-head { display: flex; gap: 12px; align-items: center; }
.dpart-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--surface-2); }
.dpart-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.25; }
.dpart-prompt { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.dpart-text { margin-top: 10px; }
.dcheck { margin-top: 10px; }
.dcheck > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; width: fit-content; cursor: pointer; list-style: none;
  font-size: 14px; color: var(--ink-2); }
.dcheck > summary::-webkit-details-marker { display: none; }
.dcheck > summary::before { content: "▸"; color: var(--ink-3); }
.dcheck[open] > summary::before { content: "▾"; }
.dcheck-wait { margin: 10px 0 0; }
.dmis p { margin: 4px 0 8px; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.dmis b { font-weight: 600; }
.dword-said { font-size: 13.5px; font-style: italic; color: var(--ink-3); }
.dword-more { font-size: 14px; }


/* Papel type: Rufina has no italic and two weights, and its cut letters blur when small, so it sets only headings and
   big figures (20px and up), upright and bold. Everything else in the serif is Faustina, which has real italics. */
:root[data-look="papel"] :is(.brand, .signin-brand, .title-row h1, .practice .question, .front-line, .try-head h2, .profe-title h2,
  #feedback > .card > h2, #feedback > .win-back > .wb-head > h2, #feedback > .conv-head > .conv-title, .bigmap-head h2,
  .pstat b, .fig b, .track b, .plan-now .plan-title, .natural-head h2, .deck-verb, .conv-side-head h1, .see-all > summary h2,
  .watch-title, .welcome-plan-title, .photos h2, .manager-bar h1, .describe-word, .region-label) {
  font-family: var(--display); font-style: normal; font-weight: var(--display-weight, 700); letter-spacing: var(--display-track, -.01em);
  font-size-adjust: var(--display-adjust, none); color: var(--display-ink, inherit); }
:root[data-look="papel"] :is(.practice .question, .brand, .signin-brand) :is(em, i) { font-style: normal; }
:root[data-look="papel"] .region-count { font-family: var(--font); }
:root[data-look="papel"] :focus-visible { outline-color: var(--mark); }
:root[data-look="papel"] ::selection { background: var(--data-2); color: var(--ink); }

/* Papel, step 2: the shared parts. The header names the sections in Spanish (app.js lookText) as pills, with the week as
   a row of stamps where the goal bar was; the main action is a verde agua pill with a dark outline, other buttons a
   quiet outline, text links deep indigo. On a phone the sections move to a bar at the bottom, in reach of a thumb. */
.week, .week-label { display: none; }
:root[data-look="papel"] header { gap: 18px 28px; padding: 22px 0 16px; border-bottom-color: transparent; }
:root[data-look="papel"] .brand { font-size: 30px; line-height: 44px; }
:root[data-look="papel"] .brand b { color: var(--accent); font-weight: 700; }
:root[data-look="papel"] .tabs { gap: 4px; }
:root[data-look="papel"] .tab { height: 44px; padding: 0 14px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink); }
:root[data-look="papel"] .tab:hover { background: var(--surface-2); }
:root[data-look="papel"] .tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
:root[data-look="papel"] .tab[aria-selected="true"]::after { content: none; }
/* 11 Nov: the week of stamps is gone again; the header shows today's minutes against the daily goal, which keeps the
   eye on today. The stamps' code stays, hidden, in case the week returns somewhere else */
:root[data-look="papel"] .goal { gap: 10px; font-size: 14px; }
.stamp { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: none; }
.stamp.on { background: var(--data-2); }
.stamp.now { background: var(--energy-soft); border-color: var(--energy); border-style: dashed; }
.stamp.later { border-color: var(--ink-4); }
.stamp svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

:root[data-look="papel"] :is(.btn.primary, .submit-btn, .signin-btn) { background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 999px; font-weight: 600; box-shadow: 0 8px 14px -10px rgb(75 58 141 / .6); }
:root[data-look="papel"] :is(.btn.primary, .submit-btn) { min-height: 44px; padding: 0 22px; }
:root[data-look="papel"] :is(.btn.primary, .submit-btn, .signin-btn):hover { opacity: 1; background: var(--accent-dark); }
:root[data-look="papel"] :is(.btn.primary, .submit-btn):disabled { opacity: .5; box-shadow: none; }
:root[data-look="papel"] .btn { min-height: 40px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); }
:root[data-look="papel"] .btn:hover { background: var(--surface-2); }
:root[data-look="papel"] .btn.danger { background: var(--critical); border-color: var(--critical); color: #fff; }
:root[data-look="papel"] .linkish { color: var(--accent); font-weight: 500; }
:root[data-look="papel"] .mode-switch { background: none; padding: 0; gap: 6px; }
:root[data-look="papel"] .mode-switch button { min-height: 36px; border: 1.5px solid transparent; color: var(--ink-2); font-size: 14.5px; }
:root[data-look="papel"] .mode-switch button[aria-pressed="true"] { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: none; }
:root[data-look="papel"] .avatar { border: 1.5px solid var(--ink); width: 40px; height: 40px; }

@media (max-width: 640px) {
  :root[data-look="papel"] .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; width: auto; margin: 0; gap: 2px; justify-content: stretch;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--surface); border-top: 1.5px solid var(--ink); }
  :root[data-look="papel"] .tab { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
  :root[data-look="papel"] .wrap { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  :root[data-look="papel"] .brand { font-size: 26px; }
  :root[data-look="papel"] header { padding-top: 12px; }
  :root[data-look="papel"] .goal { order: 3; flex: 1 1 100%; }
  :root[data-look="papel"] .account { margin-left: auto; }
  :root[data-look="papel"] .stamp { width: 18px; height: 18px; } :root[data-look="papel"] .stamp svg { width: 13px; height: 13px; }
  :root[data-look="papel"] .player { bottom: calc(76px + env(safe-area-inset-bottom)); }
  :root[data-look="papel"] .watch-now { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Papel, step 3: Practice. A greeting that knows where you left off, the key word of the question on a stroke of verde
   agua highlighter, and the mic as the one green object on the page. The verb card, the pictures to describe and the
   three decks are cards: a lighter face, a dark outline and a soft shadow under them. */
.greet { display: none; }
:root[data-look="papel"] .greet { display: block; margin: 0 0 10px; min-height: 26px; font-family: var(--serif); font-size: 19px; line-height: 26px; color: var(--ink-2); }
:root[data-look="papel"] .greet .linkish { font: inherit; font-weight: 600; padding: 0; }
:root[data-look="papel"] .practice .question em { color: inherit; padding: 0 .06em; margin: 0 -.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M6 17C34 8 56 22 84 15s50-8 78 0 52 7 76 0 36-5 56 1' fill='none' stroke='%23e4ddf7' stroke-width='20' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 72% / 104% 62%; }
:root[data-look="papel"] .practice .question-en .linkish { color: var(--accent); font-weight: 600; }
:root[data-look="papel"] .mic-btn { background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: 0 12px 20px -12px rgb(75 58 141 / .65); }
:root[data-look="papel"] .mic-btn[aria-pressed="true"] { background: var(--energy); color: var(--on-energy); }
:root[data-look="papel"] .ink path { stroke-width: 2.6; }
:root[data-look="papel"] .type-link { color: var(--accent); }
:root[data-look="papel"] .deck-card { border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 16px 24px -18px rgb(22 21 26 / .5); }
:root[data-look="papel"] .deck-forms { border-top: 1.5px solid var(--ink); }
:root[data-look="papel"] .deck-noun.new { color: var(--accent); }
:root[data-look="papel"] .deck-stack.verb { --card: #E3E7F3; }
:root[data-look="papel"] .deck-stack.noun { --card: var(--data-3); }
:root[data-look="papel"] .deck-stack.wild { --card: var(--energy-soft); }
:root[data-look="papel"] .deck-stack :is(.ds-es) { font-family: var(--display); font-weight: 700; }
:root[data-look="papel"] .describe-prompt { font-family: var(--display); font-weight: 700; font-style: normal; }
@media (min-width: 641px) and (min-height: 861px) { :root[data-look="papel"] .dictate > .mic-btn { width: 96px; height: 96px; } :root[data-look="papel"] .dictate > .mic-btn .ico { width: 34px; height: 34px; } }
:root[data-look="papel"] .describe-frame img { border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 16px 24px -18px rgb(22 21 26 / .5); }

/* Papel, step 4: the review, winning fixes back, the drill card and the cleared screen. The review opens on one sentence
   of what went well; each fix is a card that takes a GANADA stamp when won; a right answer gets a drawn tick and
   "¡Eso!"; and clearing a paragraph opens the one fully green screen, with a postmark. Mistakes are red, never struck
   through. */
.wins-said { display: none; }
:root[data-look="papel"] .wins { background: none; border: 0; padding: 4px 0 8px; }
:root[data-look="papel"] .wins-said { display: block; margin: 0; max-width: 56ch; font-family: var(--serif); font-size: 21px; line-height: 1.45; }
:root[data-look="papel"] .wins-words { margin: 14px 0 0; }
:root[data-look="papel"] .wins-words b { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); background: var(--data-2); border: 1.5px solid var(--ink); border-radius: 6px; padding: 3px 10px; }
:root[data-look="papel"] .win-back { background: none; border: 0; padding: 12px 0 8px; }
:root[data-look="papel"] .win-back.is-cleared h2 { color: var(--ink); }
:root[data-look="papel"] #feedback > .win-back > .wb-head > h2 { font-size: 34px; }
:root[data-look="papel"] .wb-bar { display: none; }
:root[data-look="papel"] .wb-count { font-size: 15px; font-weight: 600; color: var(--ink); }
:root[data-look="papel"] .wb-note { font-size: 15px; max-width: 60ch; }
:root[data-look="papel"] .wb-list { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
:root[data-look="papel"] .wb-list li + li { margin-top: 0; }
:root[data-look="papel"] .wb-fix { position: relative; padding: 16px 20px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 12px;
  font-family: var(--serif); font-size: 21px; line-height: 1.35; box-shadow: 0 12px 20px -16px rgb(22 21 26 / .5); }
:root[data-look="papel"] .wb-fix.won { padding-right: 76px; background: var(--data-3); border-color: var(--data); box-shadow: none; }
/* 11 Nov: the won-back stamp is a crown instead of the words; screen readers still hear "Won back" */
:root[data-look="papel"] .wb-fix.won::after { content: "\1F451" / "Won back"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-6deg);
  font: 400 36px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
:root[data-look="papel"] .wb-fix.waiting { background: none; border-style: dashed; border-color: var(--ink-4); box-shadow: none; }
:root[data-look="papel"] .wb-after { background: var(--energy-soft); border: 1.5px solid var(--ink); border-radius: 12px; }
:root[data-look="papel"] .wb-after.cleared { background: var(--data-3); color: var(--ink); }
:root[data-look="papel"] .win-back.drill-panel { max-width: none; margin: 0; }

:root[data-look="papel"] .drill-panel { border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 0 26px 36px -28px rgb(22 21 26 / .6); }
:root[data-look="papel"] .win-back:has(.drill-prompt), :root[data-look="papel"] .win-back:has(.round-head) { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 24px 28px; box-shadow: 0 26px 36px -28px rgb(22 21 26 / .6); }
:root[data-look="papel"] .drill-prompt { font-size: 28px; line-height: 1.3; }
:root[data-look="papel"] .choice { border: 1.5px solid var(--control); border-radius: 12px; min-height: 52px; font-family: var(--serif); font-size: 19px; }
:root[data-look="papel"] .choice:hover:not(:disabled) { border-color: var(--ink); }
:root[data-look="papel"] .choice.right { background: var(--good-bg); border: 2px solid var(--good); color: var(--ink); font-weight: 600; padding-right: 44px;
}
:root[data-look="papel"] .choice.right { position: relative; }
:root[data-look="papel"] .choice.right::after { content: ""; position: absolute; right: 12px; top: 50%; width: 24px; height: 20px; margin-top: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M3 12c3 2 5 4 6.5 7C13 12 17 7 23 3' fill='none' stroke='%232e7d32' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
:root[data-look="papel"] :is(.choice.wrong, .drill-prompt .blank.no, .pair.was .txt, .corr .was .txt, .target .avoid, .profe .q-said, .change-was s) { text-decoration: none; }
:root[data-look="papel"] .change-was s { font-weight: 500; }
:root[data-look="papel"] .verdict { margin-top: 22px; padding: 18px 0 0; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; background: none; }
:root[data-look="papel"] .verdict .v-title { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; }
:root[data-look="papel"] .verdict.ok .v-title { color: var(--ink); }
:root[data-look="papel"] .drill-note > summary { cursor: pointer; }

.limpio { position: fixed; inset: 0; z-index: 70; overflow: auto; background: var(--data-2); color: var(--ink); display: grid; place-items: center;
  padding: 32px max(24px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); animation: limpio-in .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes limpio-in { from { clip-path: circle(0 at 50% 60%); } to { clip-path: circle(150% at 50% 60%); } }
.limpio-in { width: min(1100px, 100%); display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.limpio-words { flex: 1 1 380px; min-width: 0; }
.limpio h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 96px); line-height: 1; letter-spacing: -.02em; }
.limpio-said { margin: 18px 0 0; max-width: 30ch; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; }
.limpio-next { margin: 12px 0 0; max-width: 46ch; font-size: 16px; color: var(--ink-2); }
.limpio .row { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.limpio .btn.primary { min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); border: 0; font-size: 18px; box-shadow: none; }
.limpio .btn.primary:hover { background: var(--ink-2); }
.limpio .linkish { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.limpio-card-wrap { flex: 1 1 380px; min-width: 0; position: relative; padding: 28px 24px 12px 0; }
.limpio-card { padding: 28px 28px 30px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; transform: rotate(-2deg);
  box-shadow: 0 30px 40px -26px rgb(22 21 26 / .7); }
.limpio-card h2 { margin: 0; max-width: 16ch; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.limpio-card ol { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.limpio-card b { color: var(--data); }
.postmark { position: absolute; right: -4px; top: -6px; width: min(260px, 62%); transform: rotate(11deg); overflow: visible; }
.postmark :is(circle, path) { fill: none; stroke: var(--mark); stroke-width: 3; stroke-linecap: round; }
.postmark .pm-inner { stroke-width: 1.8; }
.postmark text { fill: var(--mark); }
.postmark .pm-around { font: 700 17px/1 var(--font); letter-spacing: 5.4px; }
.postmark .pm-date { font: 700 32px/1 var(--serif); }
.postmark .pm-count { font: italic 400 17px/1 var(--serif); }
@media (prefers-reduced-motion: reduce) { .limpio { animation: none; } }
@media (max-width: 640px) { :root[data-look="papel"] .wb-fix { font-size: 18px; } :root[data-look="papel"] .wb-fix.won { padding-right: 58px; }
  :root[data-look="papel"] .wb-fix.won::after { right: 12px; font-size: 30px; } .limpio-card-wrap { padding-right: 8px; } }
:root[data-look="papel"] .limpio .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: none; }
:root[data-look="papel"] .limpio .btn.primary:hover { background: var(--accent-dark); }
@media (max-width: 640px) { .postmark { width: 46%; top: -40px; right: 0; } .limpio-card-wrap { padding-top: 44px; } }

/* Papel, step 5: the rest of the pages. Each page's title is in Spanish and large; Progress ("Tu camino") is open paper
   with rules between its parts and a level line of stamps; the small switches are outlined pills; video cards get the
   dark outline; and the review's heading sits on the paper, not in a box. */
:root[data-look="papel"] .title-row { margin: 28px 0 22px; }
:root[data-look="papel"] .title-row h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -.02em; }
:root[data-look="papel"] .title-row .finding { margin-top: 10px; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 60ch; }
:root[data-look="papel"] .conv-side-head h1 { font-size: 26px; }
:root[data-look="papel"] .toggle-row { background: none; padding: 0; gap: 6px; }
:root[data-look="papel"] .seg { height: 36px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
:root[data-look="papel"] .seg[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); }

:root[data-look="papel"] #progress .card { background: none; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; padding: 22px 0 10px; margin-bottom: 14px; }
:root[data-look="papel"] #progress .card h2 { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; }
:root[data-look="papel"] .fig b { font-size: 36px; }
:root[data-look="papel"] .fig.hot b { color: var(--ink); }
:root[data-look="papel"] .track::before { top: 13px; left: 14px; height: 2px; background: var(--ink); }
:root[data-look="papel"] .track .stop { width: 28px; height: 28px; border: 2px solid var(--ink); background: var(--surface); margin-bottom: 10px; }
:root[data-look="papel"] .track .past .stop { background: var(--data-2); border-color: var(--ink); }
:root[data-look="papel"] .track .here .stop { background: var(--energy); border-color: var(--ink); outline: 0; }
:root[data-look="papel"] .track b { font-size: 26px; }
:root[data-look="papel"] .track .here b { font-style: normal; color: var(--ink); }
:root[data-look="papel"] .chart .line { stroke-width: 2.6; }

:root[data-look="papel"] .watch-grid img { border: 1.5px solid var(--ink); border-radius: 12px; }
:root[data-look="papel"] .wc-title { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.2; }
:root[data-look="papel"] .wc-bar { height: 8px; margin-top: 6px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); }
:root[data-look="papel"] .wc-bar i, :root[data-look="papel"] .km-track i { background: var(--data-2); }
:root[data-look="papel"] .wc-words b { color: var(--accent); }

:root[data-look="papel"] #feedback > .conv-head { background: none; border: 0; padding: 14px 0 4px; }
:root[data-look="papel"] #feedback > .conv-head > .conv-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.015em; }
:root[data-look="papel"] #feedback > .card:not(.wins, .win-back, .conv-head) { border: 1.5px solid var(--line); }
:root[data-look="papel"] .lesson-row { border-top: 1.5px solid var(--line); padding: 14px 0; }
:root[data-look="papel"] .lr-title { font-size: 19px; font-weight: 600; }
:root[data-look="papel"] .signin-brand b { color: var(--accent); font-weight: 700; }
:root[data-look="papel"] .credits :is(h1, h2) { font-weight: 700; }
:root[data-look="papel"] :is(.fig b, .track b) i { font-style: normal; }

/* Papel, step 7: motion. Three authored moments, each tied to something you did: the tick draws itself on a right answer,
   the GANADA stamp is pressed onto a fix you just won, and a review unfolds good news first. The cleared screen already
   opens from a circle; its postmark lands a beat later. Nothing moves for anyone who asks for reduced motion. */
.papel-only { display: none; }
:root[data-look="papel"] .papel-only { display: block; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-look="papel"] .choice.right::after { animation: tick-draw .32s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes tick-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  :root[data-look="papel"] .wb-fix.won.fresh::after { animation: stamp-press .38s cubic-bezier(.16, 1, .3, 1) .15s both; }
  @keyframes stamp-press { from { opacity: 0; transform: translateY(-50%) rotate(-14deg) scale(1.7); filter: blur(2px); }
    to { opacity: 1; transform: translateY(-50%) rotate(-6deg) scale(1); filter: blur(0); } }
  :root[data-look="papel"] #feedback > .wins > .wins-said { animation: unfold .5s cubic-bezier(.16, 1, .3, 1) both; }
  :root[data-look="papel"] #feedback > .wins > .wins-words b { animation: unfold .4s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.18s + var(--i, 0) * 45ms); }
  :root[data-look="papel"] #feedback > .win-back { animation: unfold .5s cubic-bezier(.16, 1, .3, 1) .45s both; }
  @keyframes unfold { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .limpio .postmark { animation: postmark-land .42s cubic-bezier(.16, 1, .3, 1) .45s both; }
  @keyframes postmark-land { from { opacity: 0; transform: rotate(24deg) scale(1.6); filter: blur(3px); } to { opacity: 1; transform: rotate(11deg) scale(1); filter: blur(0); } }
  .limpio-card { animation: card-drop .5s cubic-bezier(.16, 1, .3, 1) .2s both; }
  @keyframes card-drop { from { opacity: 0; transform: translateY(24px) rotate(-6deg); } to { opacity: 1; transform: rotate(-2deg); } }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  @keyframes stamp-press { from { opacity: 0; transform: translateY(-50%) rotate(-14deg) scale(1.7); filter: blur(2px); } to { opacity: 1; transform: translateY(-50%) rotate(-6deg) scale(1); filter: blur(0); } }
}

/* Papel fixes after the step 8 audit. On a laptop-height screen the greeting and larger type pushed the line under the mic
   ("Tócalo y cuéntame", and "Te escucho…" while recording) beneath the verb card: the middle of Practice now never
   shrinks below its content, and short screens get a smaller mic, question and line. */
:root[data-look="papel"] .practice { grid-template-rows: auto minmax(min-content, 1fr) auto; }
@media (min-width: 641px) and (max-height: 860px) {
  :root[data-look="papel"] .practice { padding-top: 8px; gap: 8px; }
  :root[data-look="papel"] .practice .question { font-size: clamp(30px, 3.5vw, 44px); }
  :root[data-look="papel"] .dictate > .mic-btn { width: 72px; height: 72px; }
  :root[data-look="papel"] .ink { height: 28px; }
  :root[data-look="papel"] .greet { margin-bottom: 4px; }
  :root[data-look="papel"] header { padding: 14px 0 10px; }
}
/* While you win fixes back, the rest of the review (its corrections would give the answers away) waits out of sight. */
#feedback.drilling > :not(.conv-head, .win-back) { display: none; }
/* Papel: the drill's start and end cards without the stock icon tiles, trophy and pills; correction labels as plain
   words, not pink pills; a round's summary is one line, with its table behind "How this counts". */
:root[data-look="papel"] :is(.round-icon, .drill-start > .ico, .combo > .ico, .v-combo > .ico) { display: none; }
:root[data-look="papel"] .round-head { grid-template-columns: 1fr auto; }
:root[data-look="papel"] .round-head h2, :root[data-look="papel"] .round-done { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0 0 4px; }
:root[data-look="papel"] .round-head .best b { font-family: var(--display); color: var(--ink); }
:root[data-look="papel"] .drill-top .combo { background: var(--energy); color: var(--ink); border: 1.5px solid var(--ink); }
:root[data-look="papel"] .drill-top .combo.hot { background: var(--energy); color: var(--ink); }
:root[data-look="papel"] .beat.record { font-family: var(--serif); font-size: 18px; color: var(--ink); }
:root[data-look="papel"] .corr .tag { background: none; border: 0; border-radius: 0; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
:root[data-look="papel"] .corr .tag.is-error { color: var(--critical-ink); }
:root[data-look="papel"] :is(.change-was .lbl, .corr .lbl) { color: var(--ink-3); font-weight: 600; }
:root[data-look="papel"] .drill-note table { margin: 10px 0; }

/* 11 Nov: the next speaking mission closes the review as the one solid purple card, so it reads as the next step,
   not one more card to read; its button turns white to stay the main action on purple */
:root[data-look="papel"] #feedback .card.mission { background: var(--accent); border: 0; color: var(--accent-ink); padding: 26px 30px;
  box-shadow: 0 22px 32px -22px rgb(75 58 141 / .75); }
:root[data-look="papel"] #feedback .card.mission h2 { color: #fff; opacity: .82; font-family: var(--font); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
:root[data-look="papel"] #feedback .card.mission .big { color: #fff; font-size: 24px; line-height: 1.35; }
:root[data-look="papel"] #feedback .card.mission .row { margin-top: 18px; }
:root[data-look="papel"] #feedback .card.mission .btn.primary { background: #fff; color: var(--accent-dark); box-shadow: none; }
:root[data-look="papel"] #feedback .card.mission .btn.primary:hover { background: var(--accent-soft); }
@media (max-width: 640px) { :root[data-look="papel"] #feedback .card.mission { padding: 22px 20px; }
  :root[data-look="papel"] #feedback .card.mission .big { font-size: 20px; } }
/* 11 Nov: phone tab bar: each tab takes the width its name needs, so "Conversations" no longer runs into "Drill" */
@media (max-width: 360px) { :root[data-look="papel"] .tab { padding: 0 3px; font-size: 12px; } }
/* 11 Nov: on a touch screen every text box and menu is at least 16px, because iPhone zooms the page in when you tap a
   smaller one (docs/IPHONE_TEST_PLAN.md, step 2). The two boxes set larger keep their size. */
@media (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), textarea, select { font-size: 16px !important; }
  .practice .composer textarea { font-size: 17px !important; }
  .drill-input { font-size: 18px !important; }
}

/* The front page (docs/LAUNCH_PLAN.md, step O1; docs/audits/ui-taste-audit-2026-11-13.md): the brand where the app has
   it, the headline large, then the way in beside a real review, so the product itself is the picture. A phone stacks
   them: the headline, the way in, the review. Drawn on the first frame; a device signed in last time hides it until the
   server answers (look.js). The review follows the app's own rules: one quiet border, a tone step for the part to
   hear, your words in red (never struck through), the fixes in green, the crown on a fix won back. */
:root[data-member] #signin { display: none; }
.signin.front-page { display: flex; flex-direction: column; place-items: stretch; max-width: 1132px; margin: 0 auto;
  padding: 22px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.front-top .signin-brand { font-size: 30px; line-height: 44px; }
.front-hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; padding: 28px 0 36px; }
.front-line { margin: 0; font-size: clamp(24px, 7.2vw, 76px); line-height: 1.04; letter-spacing: -.02em; }
.front-line span { display: block; }   /* one sentence a line, at every width */
.signin-card.front { width: auto; max-width: 460px; text-align: left; }
.front-sub { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.front-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.front-actions .signin-btn { flex: 1 1 140px; }
:root[data-look="papel"] .front-page .signin-btn { box-shadow: none; }
.front-page .signin-btn:active { transform: translateY(1px); }
.signin-btn.quiet, :root[data-look="papel"] .signin-btn.quiet { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.signin-btn.quiet:hover, :root[data-look="papel"] .signin-btn.quiet:hover { background: var(--surface-2); }
.signin-card.front .signin-msg:empty { min-height: 0; margin: 0; }
.signin-card.front .signin-note { margin-top: 18px; font-size: 13.5px; }
.signin-card.front .signin-email { margin-top: 18px; }
.front-lost { display: inline-block; margin-top: 12px; padding: 10px 0; font-size: 14px; text-align: left; }
.front-step { margin: 0 0 10px; font-size: 24px; }
.front-links { display: flex; gap: 18px; margin: 0; font-size: 13px; }
.front-links a { color: var(--ink-3); padding: 10px 0; }

.front-review { margin: 0; padding: 22px 18px; display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.fr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.fr-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.fr-meta { margin: 0; font-size: 14px; color: var(--ink-3); }
.fr-label { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.fr-count { color: var(--ink); }
.fr-said { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink-2); }
mark.fr-bad { background: none; color: var(--critical); font-weight: 600; text-decoration: underline wavy var(--critical) 1.5px; text-underline-offset: 4px; }
.fr-native { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; background: var(--surface-2); border-radius: 14px; }
.fr-text { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink); }
.fr-w { border-bottom: 2px solid transparent; transition: border-color .12s; }
.fr-w.speaking { border-bottom-color: var(--accent); }
.fr-w.fixed { padding: 0 .12em; border-radius: 4px; background: var(--data-3); color: var(--data); font-weight: 600; }
.fr-w.fixed.speaking { border-bottom-color: var(--data); }
.fr-fixes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fr-fix { position: relative; display: grid; gap: 4px; padding: 13px 16px; border: 1.5px dashed var(--ink-4); border-radius: 12px; }
.fr-fix.won { padding-right: 64px; background: var(--data-3); border: 1.5px solid var(--data); }
.fr-fix.won::after { content: "\1F451" / "Won back"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(-6deg);
  font: 400 30px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.fr-fix > span[lang] { font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.fr-fix .was { color: var(--critical-ink); font-weight: 600; }
.fr-fix b:not(.was) { color: var(--data-dark); font-weight: 600; }
.fr-why { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  /* the review arrives part by part as the page opens, then the fixes turn green and the crown lands; the headline and
     the way in are there from the first frame */
  .front-review > * { animation: fr-in .6s both cubic-bezier(.25, 1, .5, 1); }
  .front-review > :nth-child(2) { animation-delay: .1s; }
  .front-review > :nth-child(3) { animation-delay: .2s; }
  .front-review > :nth-child(4) { animation-delay: .3s; }
  .fr-w.fixed { animation: fr-fixed .9s .7s both cubic-bezier(.25, 1, .5, 1); }
  .fr-fix.won::after { animation: fr-crown .5s 1.1s both cubic-bezier(.34, 1.56, .64, 1); }
  @keyframes fr-in { from { opacity: 0; transform: translateY(12px); } }
  @keyframes fr-fixed { from { background-color: transparent; color: var(--ink); } }
  @keyframes fr-crown { from { opacity: 0; transform: translateY(-50%) rotate(-40deg) scale(.3); } }
}
@media (min-width: 960px) {
  .front-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "line line" "copy review";
    column-gap: clamp(40px, 5vw, 72px); row-gap: 44px; align-items: start; padding: 40px 0 48px; }
  .front-line { grid-area: line; }
  .signin-card.front { grid-area: copy; padding-top: 6px; }
  .front-sub { font-size: 19px; }
  .front-actions .signin-btn { flex: 0 1 auto; width: auto; min-width: 150px; padding: 0 28px; }
  .front-review { grid-area: review; padding: 26px 28px; }
  .fr-title { font-size: 24px; }
  .fr-said { font-size: 19px; }
  .fr-text { font-size: 22px; }
}

/* A new account's first visit (docs/LAUNCH_PLAN.md, step O2). The welcome asks two questions; the rest waits until
   after the first review. Practice shows only the question, how to answer it, and the mic. */
.welcome-card.first .goals, .welcome-card.first .welcome-field:not(.country-field) { display: none; }
body.first-run .mode-switch, body.first-run #targets, body.first-run #greet, body.first-run #otherQuestion { display: none !important; }
.first-guide { max-width: 34rem; margin: 18px auto 0; text-align: left; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.first-guide p { margin: 0 0 8px; }
.first-guide b { color: var(--ink); }
.first-example { margin: 4px 0 10px; }
.first-example summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.first-example p { margin: 6px 0 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--serif); font-size: 17px; color: var(--ink); }
.first-guide .first-mic { font-size: 13.5px; color: var(--ink-3); }

/* A new account's first review (step O3): what went well, the fixes to win back, and the paragraph read the way a native
   would say it. Everything else on the review waits until that first round is done. */
body[data-onboard="first-review"] #feedback > :not(.conv-head, .wins, .win-back, .natural, .natural-words) { display: none; }
.setup-card, :root[data-look="papel"] #feedback > .card.setup-card { border: 1.5px solid var(--accent); }
.setup-card h2 { font-size: 20px; line-height: 1.3; }
.setup-list { margin: 14px 0 6px; padding-left: 1.3em; display: grid; gap: 14px; font-size: 15.5px; line-height: 1.5; }
.setup-list .linkish { margin-left: 2px; }
.setup-goals { margin-top: 8px; gap: 8px; }
.setup-goals .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* Step O4: until the first round is done, the other sections stay out of the way; they appear with the setup card. */
body[data-onboard="first-take"] .tabs, body[data-onboard="first-review"] .tabs { display: none !important; }
body[data-onboard="first-take"] .wrap, body[data-onboard="first-review"] .wrap { padding-bottom: 32px; }
.front-for { margin: 10px 0 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.front-notme { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
/* the plan and what's left of it, under the email in the account menu (usage.py) */
.account-plan { margin: -4px 10px 8px; font-size: 12.5px; color: var(--ink-3); }
.account-plan:empty { display: none; }

/* 13 Nov 2026, the handwritten look (the user's mockups): Kalam Bold for the logo, headings, the question and the big
   figures (self-hosted, SIL OFL; it replaced Caveat Brush the same day, "close but not slick enough"); a deeper royal purple; yellow for the little sparks; a light purple stripe behind the question's key word
   and soft hills along the foot of Practice. Body text stays Archivo and the Spanish text Faustina. The headings' size is
   set by x-height (font-size-adjust), so they read as large as before whatever the font. */
@font-face { font-family: "Cuentame Script"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/cuentame-script.woff) format("woff"); }
:root[data-look="papel"] {
  --bg: #fcfbfe; --surface-2: #f3f1f7;
  --accent: var(--brand-purple); --accent-dark: #47209e; --accent-soft: #f1ebfd; --accent-line: #cdbcf3; --mark: var(--brand-purple); --data-2: #e7dcfb;
  --plum: var(--brand-plum); --spark: #f2b705;
  --display: "DM Sans", "Archivo", system-ui, sans-serif;   /* was the handwriting (13 Nov); one family since 16 Nov 2026 */
  --display-weight: 400; --display-track: 0; --display-adjust: ex-height .5; --display-ink: var(--plum);
}
/* the logo: the name in purple, a brush stroke under it and a yellow spark */
:root[data-look="papel"] :is(.brand, .signin-brand) { --display-ink: var(--accent); --display-adjust: none; position: relative; display: inline-block;
  padding-right: 24px; font-size: 40px; line-height: 44px; transform: rotate(-3deg); }
:root[data-look="papel"] :is(.brand, .signin-brand) b { display: none; }
:root[data-look="papel"] :is(.brand, .signin-brand)::before { content: ""; position: absolute; left: 34%; right: 22px; bottom: -3px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 15C55 7 120 4 197 6' fill='none' stroke='%235b2bc9' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
:root[data-look="papel"] :is(.brand, .signin-brand)::after { content: ""; position: absolute; right: 0; top: -6px; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f2b705' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
:root[data-look="papel"] .front-top .signin-brand { font-size: 40px; }
@media (max-width: 640px) { :root[data-look="papel"] .brand { font-size: 34px; } }
/* page titles carry a spark; Win back has one each side */
:root[data-look="papel"] :is(.title-row h1, .conv-side-head h1, #feedback > .win-back > .wb-head > h2)::after { content: ""; display: inline-block; width: .7em; height: .7em;
  margin-left: .15em; vertical-align: .35em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f2b705' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
:root[data-look="papel"] #feedback > .win-back > .wb-head > h2::before { content: ""; display: inline-block; width: .7em; height: .7em;
  margin-right: .15em; vertical-align: .35em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f2b705' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M18 9 13.5 3.5'/%3E%3Cpath d='M14.5 12.5 7 10.5'/%3E%3Cpath d='M15.5 16.5 10 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
/* ---- Practice, 13 Nov 2026 (one block; it replaced four rounds of layered rules) ----
   Speaking on the left on one left edge, the Verb focus panel on the right (desktop, 1100px and up); one centred column
   below that, with the panel waiting until you start. The question's size follows its own column (container units), so
   a short laptop screen no longer shrinks it; its cloud hugs the text and its underline (the logo's brush stroke) sits
   in space the question reserves below itself, so decoration never touches text. */

/* the wordmark in the header */
:root[data-look="papel"] :is(.brand, .signin-brand):has(.wordmark) { padding: 0; transform: none; line-height: 0; }
:root[data-look="papel"] :is(.brand, .signin-brand):has(.wordmark)::before,
:root[data-look="papel"] :is(.brand, .signin-brand):has(.wordmark)::after { content: none; }
.wordmark { display: block; width: auto; height: 50px; }
.front-top .wordmark { height: 60px; }
.welcome-card .signin-brand .wordmark { height: 60px; margin: 0 auto; }
@media (min-width: 900px) { :root[data-look="papel"] header .brand { padding-right: 24px; border-right: 1px solid var(--line); } }
@media (max-width: 640px) { .brand .wordmark { height: 42px; } }

/* the page */
:root[data-look="papel"] body.on-practice { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 110C140 60 250 70 360 100s210 40 330 0 220-90 330-70 140 50 180 60V200H0z' fill='%23f3eefc'/%3E%3Cpath d='M0 150c160-40 300-50 450-20s260 30 400 0 260-40 350-10V200H0z' fill='%23ece5fa'/%3E%3C/svg%3E") no-repeat center bottom / 100% min(15vh, 130px); }
@media (max-width: 640px) { :root[data-look="papel"] body.on-practice { background-size: 100% 12vh; } }
:root[data-look="papel"] .practice .home { container-type: inline-size; padding: 0; }
:root[data-look="papel"] .mode-switch { display: none; }

/* the mode button and its sideways choices */
.mode-menu { position: relative; display: inline-block; z-index: 20; }
.mode-pick { display: inline-flex; align-items: center; gap: 10px; width: 214px; height: 50px; padding: 0 16px 0 18px; border: 1.5px solid var(--accent-line);
  border-radius: 999px; background: var(--surface); font: inherit; font-size: 17px; font-weight: 700; color: var(--plum); cursor: pointer;
  box-shadow: 0 6px 16px -12px rgb(91 43 201 / .35); }
.mode-pick:hover { border-color: var(--accent); }
.mode-pick .ico { width: 22px; height: 22px; color: var(--accent); }
.mode-pick #modeName { flex: 1; text-align: left; }
.mode-pick .chev { width: 18px; height: 18px; stroke-width: 2.6; transition: transform .2s; }
.mode-pick[aria-expanded="true"] .chev { transform: rotate(-90deg); }
:root:not([data-look="papel"]) .mode-menu { display: none; }
.mode-pop { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border: 1.5px solid var(--accent-line); border-radius: 18px; box-shadow: 0 18px 36px -20px rgb(43 18 68 / .4); }
.mode-pop.hidden { display: none; }
.mode-pop button { display: grid; gap: 2px; min-width: 140px; padding: 10px 16px; border: 0; border-radius: 12px; background: none; text-align: left;
  font: inherit; cursor: pointer; }
.mode-pop button:hover { background: var(--surface-2); }
.mode-pop button[aria-checked="true"] { background: var(--accent-soft); }
.mode-pop b { font-size: 15.5px; color: var(--plum); }
.mode-pop span { font-size: 13.5px; color: var(--ink-3); }
.mode-pop button[aria-checked="true"] b { color: var(--accent); }
@media (max-width: 760px) { .mode-pop { left: 0; top: calc(100% + 8px); transform: none; flex-direction: column; } .mode-pop button { min-width: 200px; } }

/* greeting, question, description */
:root[data-look="papel"] .greet { margin: 26px 0 10px; min-height: 0; font-family: var(--font); font-size: 22px; line-height: 28px; font-weight: 600;
  font-size-adjust: none; color: var(--ink-3); }
:root[data-look="papel"] .greet:empty { display: none; }
:root[data-look="papel"] .greet .linkish { font-family: var(--font); font-size: inherit; font-size-adjust: none; }
:root[data-look="papel"] .practice .question { position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin: 18px auto .95em;
  padding: 0; font-size: clamp(40px, 10cqi, 74px); line-height: 1.04; text-wrap: balance; }
:root[data-look="papel"] .practice .question::before { content: ""; position: absolute; z-index: -1; top: -.2em; bottom: -.28em;
  left: calc(var(--ql, 0px) - .32em); width: calc(var(--qw, 100%) + .87em); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f5bf1a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat right var(--qs, 0px) top 0 / .62em .62em, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cpath d='M38 72C26 40 66 22 108 30C140 8 192 14 222 24C262 6 334 14 356 44C394 58 398 108 364 126C340 152 282 146 250 140C210 158 150 154 118 144C78 154 28 142 24 116C4 104 12 82 38 72Z' fill='%23efe8fd'/%3E%3C/svg%3E") no-repeat left bottom / calc(100% - .3em) calc(100% - .2em); }
:root[data-look="papel"] .practice .question::after { content: ""; position: absolute; left: calc(var(--ql, 0px) + .15em); bottom: -.86em; width: 4.4em; aspect-ratio: 6 / 1;
  background: url(/brand/swoosh.svg) no-repeat center / 100% 100%; pointer-events: none; }
:root[data-look="papel"] .practice .question em { background: none; padding: 0; margin: 0; }
:root[data-look="papel"] .practice .question-en { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
:root[data-look="papel"] .practice .question-en .linkish { margin-left: .7em; font-size: 18px; white-space: nowrap; color: var(--accent);
  text-decoration-thickness: 2px; text-decoration-color: var(--accent-line); }

/* Start speaking, or write */
:root[data-look="papel"] .practice:not(.describing) > .stage { justify-content: flex-start; padding-top: 30px; }
:root[data-look="papel"] .dictate { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
:root[data-look="papel"] .dictate > .mic-btn { position: relative; display: inline-flex; justify-content: center; gap: 14px; min-width: 260px; width: auto;
  height: 66px; padding: 0 32px 0 28px; border-radius: 999px; box-shadow: 0 16px 30px -16px rgb(91 43 201 / .7); }
:root[data-look="papel"] .mic-btn:not([aria-pressed="true"]) { background: var(--brand-purple); }
:root[data-look="papel"] .dictate > .mic-btn::before, :root[data-look="papel"] .dictate > .mic-btn::after { content: none; }
:root[data-look="papel"] .dictate > .mic-btn .ico { width: 26px; height: 26px; }
.mic-say { display: none; }
:root[data-look="papel"] .dictate > .mic-btn .mic-say { display: inline; font-size: 20px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.mic-btn .mic-end, .mic-btn[aria-pressed="true"] .mic-go { display: none; }
.mic-btn[aria-pressed="true"] .mic-end { display: inline; }
:root[data-look="papel"] .dictate .ink { order: 3; flex-basis: 100%; }
:root[data-look="papel"] #compose:not(.listening):not(.has-text) .ink { display: none; }
:root[data-look="papel"] .dict-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 17px; }
:root[data-look="papel"] .dict-label { font-size: 14.5px; color: var(--ink-2); max-width: 34ch; }
:root[data-look="papel"] .dict-label:empty { display: none; }
:root[data-look="papel"] .type-link { font-family: var(--font); font-style: normal; font-size: 19px; font-weight: 700; color: var(--accent);
  text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:root[data-look="papel"] #compose.writing .mic-btn, :root[data-look="papel"] #compose.writing #typeLink,
:root[data-look="papel"] #compose.writing .ink { display: none; }
:root[data-look="papel"] #compose.writing .dictate { order: 2; }
@media (max-width: 640px) { :root[data-look="papel"] .dictate > .mic-btn { min-width: 240px; height: 60px; }
  :root[data-look="papel"] .dictate > .mic-btn .mic-say { font-size: 18px; } }

/* desktop: two columns, one left edge */
@media (min-width: 1100px) {
  :root[data-look="papel"] .practice:not(.describing) { grid-template-columns: minmax(0, 1fr) clamp(340px, 36%, 440px);
    grid-template-areas: "head tiles" "stage tiles"; grid-template-rows: auto minmax(0, 1fr); column-gap: 48px; align-content: start; padding-top: 26px; }
  :root[data-look="papel"] .practice:not(.describing) .home { text-align: left; }
  :root[data-look="papel"] .practice:not(.describing) .question { margin-left: .32em; margin-right: 0; }
  :root[data-look="papel"] .practice:not(.describing) > .stage { justify-self: start; max-width: none; }
  :root[data-look="papel"] .practice:not(.describing) :is(.dictate, .dict-line) { justify-content: flex-start; }
  :root[data-look="papel"] .practice:not(.describing) #targets { align-self: start; max-height: calc(100dvh - 130px); overflow-y: auto;
    overscroll-behavior: contain; scrollbar-width: thin; padding: 0 2px 20px; }
  :root[data-look="papel"] .practice:not(.describing) #targets.deck-closed { justify-self: end; }
  :root[data-look="papel"] .practice:not(.describing):has(#targets.deck-closed) { grid-template-columns: minmax(0, 1fr) auto; }
}
/* narrower: one centred column; the panel waits until you start talking or writing, then slides up */
@media (max-width: 1099px) {
  :root[data-look="papel"] .practice:not(.describing) #compose:not(.has-text):not(.listening) ~ #targets { display: none; }
}
@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
  :root[data-look="papel"] .practice:not(.describing) #compose:is(.has-text, .listening) ~ #targets { animation: card-up .5s cubic-bezier(.25, 1, .5, 1) both; }
  @keyframes card-up { from { opacity: 0; transform: translateY(28px); } }
}

/* the Verb focus panel */
:root[data-look="papel"] .deck-card { width: 100%; max-width: 480px; margin: 0; padding: 18px 22px 4px; background: var(--surface); border: 1px solid #e8e0f8;
  border-radius: 24px; box-shadow: 0 22px 44px -32px rgb(91 43 201 / .45); text-align: left; }
@media (max-width: 1099px) { :root[data-look="papel"] .deck-card { margin: 0 auto; } }
.deck-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deck-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 20px; }
.deck-label .ico { width: 16px; height: 16px; }
.deck-steps { display: flex; align-items: center; gap: 0; }
:root[data-look="papel"] .deck-step { width: 36px; height: 36px; font-size: 24px; color: var(--plum); }
.deck-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--plum); cursor: pointer; }
.deck-close:hover { background: var(--surface-2); }
.deck-close .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.deck-name { min-width: 0; }
:root[data-look="papel"] .deck-card .deck-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; }
:root[data-look="papel"] .deck-card .deck-verb { flex: 0 1 auto; height: auto; font-size: 40px; line-height: 1.1; }
.deck-say { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--accent); cursor: pointer; }
.deck-say:hover { background: var(--accent-soft); }
.deck-say .ico { width: 22px; height: 22px; }
:root[data-look="papel"] .deck-card .deck-en { margin: 2px 0 0; font-size: 16px; color: var(--ink-2); white-space: normal; }
.deck-tense-pick { flex: none; appearance: none; -webkit-appearance: none; height: 40px; padding: 0 36px 0 16px; border: 1.5px solid var(--accent-line);
  border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235b2bc9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 15px; font: inherit; font-size: 15px; font-weight: 700;
  color: var(--accent); cursor: pointer; }
.deck-tense-pick:hover { border-color: var(--accent); }
:root[data-look="papel"] .deck-card .deck-forms { position: relative; margin-top: 14px; padding: 2px 0; border: 0; border-radius: 14px; background: #f7f3fe; }
:root[data-look="papel"] .deck-card .deck-table { width: 100%; margin: 0; border-collapse: collapse; }
:root[data-look="papel"] .deck-card .deck-table :is(th, td) { padding: 6px 14px; border-top: 1px solid #ebe3fb; }
:root[data-look="papel"] .deck-card .deck-table tr:first-child :is(th, td) { border-top: 0; }
:root[data-look="papel"] .deck-card .deck-table th { width: 50%; font-size: 15px; font-weight: 400; color: var(--ink-2); }
:root[data-look="papel"] .deck-card .deck-table td { font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--ink); }
:root[data-look="papel"] .deck-card .deck-table td.partner { color: var(--ink-2); font-weight: 500; }
:root[data-look="papel"] .deck-card .deck-table thead th { font-size: 13px; }
/* the practised tense stays blurred until you look; say so, so it reads as a choice and not a glitch */
:root[data-look="papel"] .deck-card .deck-forms[role="button"]:not(.open)::after { content: "Try it first · tap to reveal"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); padding: 7px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 6px 18px -10px rgb(43 18 68 / .4);
  font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; pointer-events: none; }
@media (hover: hover) { :root[data-look="papel"] .deck-card .deck-forms[role="button"]:hover::after { display: none; } }
.deck-wait { color: var(--ink-3); }
:root[data-look="papel"] .deck-card .deck-nouns { margin: 10px 0 0; height: auto; font-family: var(--font); font-size: 14.5px; color: var(--ink-2); }
:root[data-look="papel"] .deck-card .deck-noun { font-family: var(--font); font-size: 14.5px; }
.deck-with { color: var(--ink-3); font-family: var(--font); font-size: 14px; }
div.deck-tip { display: block; margin: 14px 0 0; padding: 14px 0 2px; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
p.deck-tip { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 12px 0 2px; border-top: 1px solid var(--rule);
  font-family: var(--font); font-size: 15px; color: var(--ink-2); }
.deck-tip .ico { width: 20px; height: 20px; flex: none; color: var(--accent); }
.deck-tip b { color: var(--plum); }
.deck-tip-head { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font); font-size: 15.5px; font-weight: 700; color: var(--accent); }
.deck-ex { margin: 6px 0 0 28px; font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.deck-ex-en { margin: 3px 0 0 28px; font-family: var(--font); font-size: 14px; color: var(--ink-2); }
.deck-all { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 0;
  border: 0; border-top: 1px solid var(--rule); background: none; color: var(--accent); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.deck-all span:last-child { font-size: 20px; line-height: 1; }
.deck-full { max-height: 320px; overflow-y: auto; padding: 0 0 12px; overscroll-behavior: contain; }
.deck-full-list section + section { margin-top: 12px; }
.deck-full-list h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
:root[data-look="papel"] .deck-full .deck-table { width: 100%; }
:root[data-look="papel"] .deck-full .deck-table :is(th, td) { padding: 3px 0; border: 0; }
:root[data-look="papel"] .deck-full .deck-table th { width: 50%; font-size: 13.5px; }
:root[data-look="papel"] .deck-full .deck-table td { font-size: 15px; }
.deck-reopen { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; }
.deck-reopen .ico { width: 16px; height: 16px; }

/* ---- Practice, the audit's three fixes (docs/audits/practice-taste-audit-2026-11-13.md) ----
   1. One control system: 44px for every secondary control, 64px for the one primary; one outline (1.5px lavender);
      a shadow only on what floats (the mode popover), plus the soft ones the brief asked for on Start speaking and the
      panel. 2. One link style: 16px, 600, purple, a 2px lavender underline. 3. One spacing scale (8 / 16 / 32) and one
      left edge: the question's text on the column's edge, its cloud spreading left instead. */
:root[data-look="papel"] {
  --ctl: 44px; --ctl-border: 1.5px solid var(--accent-line);
  --s1: 8px; --s2: 16px; --s3: 32px;
}
/* 1. controls */
:root[data-look="papel"] .avatar { width: var(--ctl); height: var(--ctl); border: var(--ctl-border); }
:root[data-look="papel"] .avatar:hover, :root[data-look="papel"] .avatar[aria-expanded="true"] { border-color: var(--accent); }
:root[data-look="papel"] .goal-edit { width: 32px; height: 32px; }
:root[data-look="papel"] .tab { height: var(--ctl); }
.mode-pick { width: 200px; height: var(--ctl); padding: 0 14px 0 16px; border: var(--ctl-border); box-shadow: none; font-size: 16px; font-weight: 600; color: var(--plum); }
.mode-pick .ico { width: 20px; height: 20px; }
.deck-tense-pick { height: var(--ctl); padding: 0 38px 0 16px; border: var(--ctl-border); font-size: 16px; font-weight: 600; color: var(--plum); }
:root[data-look="papel"] .deck-step, .deck-close, .deck-say { width: var(--ctl); height: var(--ctl); color: var(--plum); }
:root[data-look="papel"] .deck-step .ico, .deck-close .ico, .deck-say .ico { width: 20px; height: 20px; stroke-width: 2.2; }
:root[data-look="papel"] .deck-step:disabled { opacity: .35; }
.deck-say { color: var(--plum); }
:root[data-look="papel"] .dictate > .mic-btn { height: 64px; min-width: 260px; box-shadow: 0 10px 22px -14px rgb(91 43 201 / .6); }
:root[data-look="papel"] .deck-card .deck-forms[role="button"]:not(.open)::after { box-shadow: none; border: var(--ctl-border); color: var(--plum); }
.deck-label { color: var(--plum); }
.deck-label .ico { color: var(--accent); }
/* 2. links */
:root[data-look="papel"] :is(.practice .question-en .linkish, .type-link .w, .deck-all > span:first-child, .deck-card .deck-noun) {
  font-family: var(--font); font-style: normal; font-size: 16px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
:root[data-look="papel"] :is(.practice .question-en .linkish, .type-link, .deck-card .deck-noun):hover :is(.w),
:root[data-look="papel"] :is(.practice .question-en .linkish, .deck-card .deck-noun):hover { text-decoration-color: var(--accent); }
:root[data-look="papel"] .type-link { text-decoration: none; font-size: 16px; }
:root[data-look="papel"] .type-link .or { color: var(--ink-3); font-weight: 500; }
:root[data-look="papel"] .deck-all { font-size: 16px; font-weight: 600; }
:root[data-look="papel"] .deck-all > span:last-child { color: var(--accent); }
/* 3. spacing and the left edge */
:root[data-look="papel"] .greet { margin: var(--s3) 0 0; }
:root[data-look="papel"] .practice .question { margin-top: calc(.2em + var(--s2)); margin-bottom: calc(.5em + var(--s2)); }
@media (min-width: 1100px) { :root[data-look="papel"] .practice:not(.describing) .question { margin-left: 0; } }
:root[data-look="papel"] .practice .question::after { width: 2.6em; bottom: -.5em; }
:root[data-look="papel"] .practice:not(.describing) > .stage { padding-top: var(--s3); }
:root[data-look="papel"] .dictate { gap: var(--s2) var(--s3); }
:root[data-look="papel"] .practice .question-en .linkish { margin-left: var(--s2); }
/* the panel on the same scale */
:root[data-look="papel"] .deck-card { padding: var(--s2) 20px 4px; }
.deck-head { margin-top: var(--s1); }
:root[data-look="papel"] .deck-card .deck-forms { margin-top: var(--s2); }
:root[data-look="papel"] .deck-card .deck-nouns { margin-top: var(--s1); }
div.deck-tip, p.deck-tip { margin-top: var(--s2); padding-top: var(--s2); }
.deck-all { margin-top: var(--s2); padding: var(--s1) 0 12px; }

:root[data-look="papel"] .practice:not(.describing) { row-gap: 0; }   /* the spacing scale sets every gap in the left column */

/* After a take (13 Nov 2026): no text box, a short summary and what's next. Typing ("or write") and a restored draft
   still use the editor. */
:root[data-look="papel"] #compose.spoken :is(#transcript, #composeFoot, .mic-btn, #typeLink, .ink, #dictTimer, #captions) { display: none; }
.take { margin-top: var(--s2, 16px); }
.take.hidden { display: none; }
.take-sum { margin: 0 0 var(--s2, 16px); font-size: 17px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.take-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2, 16px) var(--s3, 32px); }
:root[data-look="papel"] .take-send { min-width: 260px; height: 64px; padding: 0 30px; border-radius: 999px; justify-content: center; gap: 12px;
  font-size: 20px; font-weight: 700; background: var(--brand-purple); color: #fff; border: 0;
  box-shadow: 0 10px 22px -14px rgb(91 43 201 / .6); display: inline-flex; align-items: center; }   /* taste-skill-ignore: the primary, as the brief asks */
:root[data-look="papel"] .take-send:disabled { opacity: .55; }
:root[data-look="papel"] .take-send .ico { width: 22px; height: 22px; }
.take-more { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl, 44px); padding: 0 18px; border: var(--ctl-border, 1.5px solid #cdbcf3);
  border-radius: 999px; background: var(--surface); color: var(--plum); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.take-more:hover { border-color: var(--accent); }
.take-more .ico { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 1099px) { .take { text-align: center; } .take-actions { justify-content: center; } }

:root[data-look="papel"] .dict-line #dictLabel { order: 5; }   /* "or write" stays beside the button; a message follows it */

/* ---- Practice motion (13 Nov 2026, /impeccable animate) ----
   Focal: while you talk, a halo round Start speaking swells with your real voice (--level, set each frame by the voice
   line's loop in app.js), so you can see you're being heard. Continuity: a new question writes itself on left to right
   with its underline drawn last; the verb panel slides the next verb in from the side you stepped to; the mode menu opens
   from its button; the summary after a take rises into place. Feedback: every button presses down. Everything starts
   from a visible default; reduced motion drops the travel and keeps the fades and state colours. */
:root[data-look="papel"] { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* the focal moment: your voice */
:root[data-look="papel"] .dictate > .mic-btn { isolation: isolate; }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::before { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: inherit;
  background: rgb(232 89 12 / .16); transform: scale(calc(.94 + var(--level, 0) * .22)); transition: transform 90ms linear; pointer-events: none; }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::after { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: inherit;
  border: 2px solid rgb(232 89 12 / .35); opacity: calc(.25 + var(--level, 0) * 1.2); pointer-events: none; }
:root[data-look="papel"] .dictate > .mic-btn { transition: transform 120ms var(--ease-out), background-color .25s, box-shadow .25s; }

/* feedback: buttons press down */
:root[data-look="papel"] :is(.dictate > .mic-btn, .take-send, .take-more, .mode-pick, .deck-tense-pick, .deck-step, .deck-close, .deck-say, .deck-reopen, .tab, .avatar):active:not(:disabled) {
  transform: scale(.97); }
:root[data-look="papel"] :is(.take-send, .take-more, .mode-pick, .deck-tense-pick, .deck-step, .deck-close, .deck-say, .deck-reopen, .avatar) {
  transition: transform 120ms var(--ease-out), border-color .15s, background-color .15s, color .15s; }
:root[data-look="papel"] :is(.practice .question-en .linkish, .type-link .w, .deck-all > span:first-child, .deck-card .deck-noun) { transition: text-decoration-color .15s, color .15s; }
:root[data-look="papel"] #transcript { caret-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  /* a new question writes itself on: a soft-edged wipe, then its underline is drawn */
  /* a clip that reaches past the heading's box (the cloud and the underline sit outside it), removed when done (app.js) */
  :root[data-look="papel"] .practice .question.writing { animation: q-write .7s var(--ease-out) both; }
  @keyframes q-write { from { clip-path: inset(-1em 100% -1em -1em); } to { clip-path: inset(-1em -1em -1em -1em); } }
  :root[data-look="papel"] .practice .question.writing::after { animation: swoosh-draw .45s .5s var(--ease-out) both; }
  @keyframes swoosh-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

  /* the verb panel: the next verb slides in from the side you stepped to */
  :root[data-look="papel"] .deck-card.step-next :is(.deck-head, .deck-forms, .deck-nouns, .deck-tip) { animation: step-in-next .26s var(--ease-out) both; }
  :root[data-look="papel"] .deck-card.step-prev :is(.deck-head, .deck-forms, .deck-nouns, .deck-tip) { animation: step-in-prev .26s var(--ease-out) both; }
  :root[data-look="papel"] .deck-card :is(.deck-forms) { animation-delay: 30ms; }
  :root[data-look="papel"] .deck-card :is(.deck-nouns, .deck-tip) { animation-delay: 60ms; }
  @keyframes step-in-next { from { opacity: 0; transform: translateX(18px); } }
  @keyframes step-in-prev { from { opacity: 0; transform: translateX(-18px); } }
  :root[data-look="papel"] .deck-card .deck-verb { animation: none; }

  /* the mode menu opens out of its button */
  .mode-pop:not(.hidden) { animation: pop-out .18s var(--ease-out) both; transform-origin: left center; }
  @keyframes pop-out { from { opacity: 0; transform: translateY(-50%) translateX(-8px) scale(.97); } }
  @media (max-width: 760px) { .mode-pop:not(.hidden) { transform-origin: top center; animation-name: pop-down; }
    @keyframes pop-down { from { opacity: 0; transform: translateY(-6px) scale(.98); } } }

  /* after a take: the summary rises into place, its buttons a beat after */
  .take:not(.hidden) .take-sum { animation: rise .32s var(--ease-out) both; }
  .take:not(.hidden) .take-actions > * { animation: rise .32s var(--ease-out) both; }
  .take:not(.hidden) .take-actions > :nth-child(1) { animation-delay: 50ms; }
  .take:not(.hidden) .take-actions > :nth-child(2) { animation-delay: 90ms; }
  .take:not(.hidden) .take-actions > :nth-child(3) { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }

  /* the practised table sharpens instead of snapping */
  :root[data-look="papel"] .deck-card .deck-table { transition: filter .28s var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  /* no travel: the halo holds still and brightens with your voice instead of growing */
  :root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::before { transform: none; opacity: calc(.4 + var(--level, 0)); transition: opacity 90ms linear; }
  :root[data-look="papel"] .take:not(.hidden) :is(.take-sum, .take-actions > *) { animation: fade .2s ease-out both; }
  .mode-pop:not(.hidden) { animation: fade .12s ease-out both; }
  @keyframes fade { from { opacity: 0; } }
  :root[data-look="papel"] :is(.dictate > .mic-btn, .take-send, .take-more, .mode-pick, .deck-tense-pick, .deck-step, .deck-close, .deck-say, .deck-reopen, .tab, .avatar):active:not(:disabled) { transform: none; }
}

/* ---- Practice delight (13 Nov 2026, the critique's six steps: docs in .impeccable/critique) ----
   The end of a take becomes a moment, saying the focus verb is rewarded, recording stays in the brand, the cloud shuffles
   the question, today's first take is underlined in yellow, and a sun rises over the hills as today's minutes add up. */

/* 1. the end of a take: a line in the hand, the words you used, a spark, and Send lifting off like a note */
.take-note { margin: 0 0 2px; font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--plum); }
.take-note:empty { display: none; }
.take-words { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 var(--s2, 16px); font-size: 15px; color: var(--ink-2); }
.take-words.hidden { display: none; }
.take-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--accent-soft);
  color: var(--plum); font-weight: 600; }
.take-chip::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%235b2bc9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.take-sum { margin-bottom: 12px; }
.take { position: relative; }
.take.cheer .take-note::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .1em; vertical-align: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f5bf1a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
@media (prefers-reduced-motion: no-preference) {
  .take.cheer .take-note { animation: note-in .5s var(--ease-out) both; }
  @keyframes note-in { from { opacity: 0; transform: translateY(8px) rotate(-2deg); } }
  .take.cheer .take-note::after { animation: spark-pop .6s .25s var(--ease-out) both; }
  @keyframes spark-pop { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 60% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
  .take.cheer .take-chip { animation: rise .35s var(--ease-out) both; }
  .take.cheer .take-chip:nth-child(3) { animation-delay: 60ms; } .take.cheer .take-chip:nth-child(4) { animation-delay: 110ms; }
  .take.cheer .take-chip:nth-child(n+5) { animation-delay: 160ms; }
  .take-send.sending .ico { animation: send-off .45s var(--ease-out) both; }
  @keyframes send-off { to { transform: translate(14px, -10px) rotate(-18deg); opacity: 0; } }
}

/* 2. the full conjugation is for reading: never blurred */
:root[data-look="papel"] .deck-full .deck-table { filter: none; user-select: auto; }

/* 3. saying the focus verb: the logo's brush draws under it, the tick pops, and the next arrow nudges */
:root[data-look="papel"] .deck-card .deck-verb .deck-word { background: url(/brand/swoosh.svg) no-repeat left bottom / 0 .22em; padding-bottom: .12em; }
:root[data-look="papel"] .deck-card .deck-verb.said .deck-word { background-size: 100% .22em; }
:root[data-look="papel"] .deck-card .deck-check { display: none; width: 22px; height: 22px; margin-left: 6px; vertical-align: .35em; font-size: 0;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%235b2bc9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 15px; border-radius: 999px; }
:root[data-look="papel"] .deck-card .deck-verb.said .deck-check { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-look="papel"] .deck-card .deck-verb .deck-word { transition: background-size .5s var(--ease-out); }
  :root[data-look="papel"] .deck-card .deck-verb.said .deck-check { animation: tick-pop .4s .2s var(--ease-out) both; }
  @keyframes tick-pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
  :root[data-look="papel"] .deck-step.nudge { animation: nudge .5s .6s ease-in-out 3; }
  @keyframes nudge { 50% { transform: translateX(4px); } }
}

/* 4. recording stays in the brand: a deep plum Stop, a lavender halo, yellow sparks that flicker with your voice */
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"] { background: #3b1786; color: #fff; }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::before { background: rgb(139 92 246 / .22); }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::after { inset: -18px -40px; border: 0; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f5bf1a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M18 9 13.5 3.5'/%3E%3Cpath d='M14.5 12.5 7 10.5'/%3E%3Cpath d='M15.5 16.5 10 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center / 26px 26px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f5bf1a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / 26px 26px; opacity: calc(var(--level, 0) * 1.6); }
:root[data-look="papel"] #compose.listening #captions { display: none; }   /* "Listening · N words" sits beside the timer instead */

/* 5. the cloud shuffles the question; today's first take is underlined in yellow; the sun rises with today's minutes */
:root[data-look="papel"] .practice .question { cursor: pointer; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :root[data-look="papel"] .practice .question::before { transition: transform .25s var(--ease-out); transform-origin: left center; }
  :root[data-look="papel"] .practice .question:hover::before { transform: scale(1.015) rotate(-.4deg); }
}
:root[data-look="papel"] body.first-today .practice .question::after { background-image: url(/brand/swoosh-yellow.svg); }
:root[data-look="papel"] body.on-practice { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 110C140 60 250 70 360 100s210 40 330 0 220-90 330-70 140 50 180 60V200H0z' fill='%23f3eefc'/%3E%3Cpath d='M0 150c160-40 300-50 450-20s260 30 400 0 260-40 350-10V200H0z' fill='%23ece5fa'/%3E%3C/svg%3E") no-repeat center bottom / 100% min(15vh, 130px),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='%23fcd772' opacity='.7'/%3E%3C/svg%3E") no-repeat right 18% bottom calc(min(15vh, 130px) * .35 + var(--day, 0) * 9vh) / clamp(70px, 8vw, 120px) clamp(70px, 8vw, 120px), var(--bg); }
/* the sun moves only when today's minutes change (.sun-move); coming back to Practice, the hills and sun rise from the
   bottom (.scene-in) instead of sliding down from where the other pages' background sits */
@media (prefers-reduced-motion: no-preference) {
  :root[data-look="papel"] body.on-practice.sun-move { transition: background-position 1.2s var(--ease-out); }
  :root[data-look="papel"] body.on-practice.scene-in { animation: scene-in .7s var(--ease-out); }
  @keyframes scene-in { from { background-position: center calc(100% + 140px), right 18% calc(100% + 160px), 0 0; } }
}
@media (max-width: 640px) { :root[data-look="papel"] body.on-practice { background-size: 100% 12vh, 64px 64px; } }
.goal.cheer #goalNum { animation: goal-cheer .8s var(--ease-out); }
@keyframes goal-cheer { 40% { color: var(--accent); transform: scale(1.12); } }
.goal #goalNum { display: inline-block; }

/* 6. loose ends */
:root[data-look="papel"] .practice .question-en .linkish:disabled { color: var(--ink-3); text-decoration: none; cursor: not-allowed; }
:root[data-look="papel"] #compose.writing #transcript, :root[data-look="papel"] #transcript { border: 1.5px solid var(--accent-line); border-radius: 16px;
  font-family: var(--font); font-size: 17px; line-height: 1.55; padding: 14px 16px; background: var(--surface); }
:root[data-look="papel"] #transcript:focus { outline: none; border-color: var(--accent); }
:root[data-look="papel"] #transcript::placeholder { font-family: var(--font); font-style: normal; color: var(--ink-3); }
:root[data-look="papel"] #submitBtn { height: 52px; padding: 0 26px; border-radius: 999px; font-size: 17px; }
:root[data-look="papel"] .deck-card .deck-en { min-height: 2lh; }

:root[data-look="papel"] .deck-card .deck-verb { overflow: visible; }   /* the tick sits past the word; long verbs still shrink to fit (fitDeckVerb) */
:root[data-look="papel"] .dictate > .mic-btn:hover:not(:disabled) { transform: rotate(-1.5deg) scale(1.02); }   /* the old round mic turned 6°; a wide pill needs far less */
@media (prefers-reduced-motion: reduce) { :root[data-look="papel"] .dictate > .mic-btn:hover { transform: none; } }
:root[data-look="papel"] .dictate > .mic-btn:active:not(:disabled) { transform: rotate(-1.5deg) scale(.97); }   /* the press still reads while hovering */
@media (min-width: 900px) { :root[data-look="papel"] header .brand { border-right: 0; padding-right: 8px; } }   /* no divider after the wordmark (user, 13 Nov) */
/* the profile photo in the header's round button (avatar.py) */
.avatar.has-photo { padding: 0; overflow: hidden; }
.avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-plan:empty { display: none; }


/* Win back with many fixes (13 Nov 2026): three to start, a row of crowns for all of them (grey until won), "×N" on repeats */
.wb-focus { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--plum); }
:root[data-look="papel"] .win-back .wb-focus + .wb-list { margin-top: 10px; }
.wb-times { display: inline-flex; align-items: center; height: 24px; margin-left: 10px; padding: 0 9px; border-radius: 999px; vertical-align: .15em;
  background: var(--accent-soft); color: var(--accent); font: 700 13px/1 var(--font); }
.wb-crowns { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; width: 100%; margin-top: 14px; padding: 10px 14px; border: 1.5px dashed var(--accent-line);
  border-radius: 14px; background: none; cursor: pointer; font: inherit; text-align: left; }
.wb-crowns:hover { border-color: var(--accent); }
.wb-crown::before { content: "\1F451"; font: 400 18px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.wb-crown:not(.won) { filter: grayscale(1); opacity: .32; }
.wb-crowns-more { margin-left: auto; padding-left: 12px; font-size: 15px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wb-fewer { margin-top: 10px; font-size: 15px; }

/* the new-words headline at the top of a review */
.new-words-badge { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 12px; padding: 6px 18px 8px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--plum); }
.nw-num { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); }
.nw-label { font-family: var(--display); font-size: 24px; line-height: 1; }
.new-words-badge::after { content: ""; align-self: flex-start; width: 20px; height: 20px; margin-left: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f5bf1a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
@media (prefers-reduced-motion: no-preference) {
  .new-words-badge { animation: badge-in .6s var(--ease-out, ease-out) both; }
  @keyframes badge-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
}

/* Describe keeps Free talk's layout on a desktop (13 Nov 2026): the same two columns, the same left edge; the photo sits in
   the panel's card on the right (app.js placeDescribePhoto), the prompt where the question was, and the mic is the same pill */
.describe-side.hidden { display: none; }
@media (min-width: 1100px) {
  :root[data-look="papel"] .practice.describe-mode { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 36%, 440px);
    grid-template-areas: "head tiles" "stage tiles"; grid-template-rows: auto minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-content: start; padding-top: 26px; }
  :root[data-look="papel"] .practice.describe-mode .home { grid-area: head; text-align: left; }
  :root[data-look="papel"] .practice.describe-mode #describe { grid-area: stage; max-width: none; margin: 0; }
  :root[data-look="papel"] .practice.describe-mode .describe-step { text-align: left; }
  :root[data-look="papel"] .practice.describe-mode .describe-prompt { margin: var(--s2, 16px) 0 var(--s2, 16px); max-width: 16ch; text-align: left; color: var(--plum);
    font-family: var(--display); font-weight: var(--display-weight, 400); font-size: clamp(38px, 3.8vw, 62px); line-height: 1.05; }
  :root[data-look="papel"] .practice.describe-mode .describe-hints { text-align: left; }
  :root[data-look="papel"] .practice.describe-mode .describe-side { grid-area: tiles; align-self: start; padding: 14px; background: var(--surface);
    border: 1px solid #e8e0f8; border-radius: 24px; box-shadow: 0 22px 44px -32px rgb(91 43 201 / .45); }
  :root[data-look="papel"] .describe-side .describe-frame img { max-height: min(62vh, 520px); width: 100%; object-fit: cover; border: 0; border-radius: 16px; box-shadow: none; }
  :root[data-look="papel"] .describe-side .describe-credit { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
  /* the mic as Free talk's pill */
  :root[data-look="papel"] .practice.describe-mode .watch-say { margin-top: var(--s3, 32px); gap: var(--s2, 16px) var(--s3, 32px); flex-wrap: wrap; }
  :root[data-look="papel"] .practice.describe-mode #describeMic { width: auto; min-width: 260px; height: 64px; padding: 0 30px 0 26px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; color: #fff; box-shadow: 0 10px 22px -14px rgb(91 43 201 / .6);
    background: var(--brand-purple); }   /* taste-skill-ignore: the primary, as the brief asks */
  :root[data-look="papel"] .practice.describe-mode #describeMic[aria-pressed="true"] { background: #3b1786; }
  :root[data-look="papel"] .practice.describe-mode #describeMic .ico { width: 26px; height: 26px; }
  :root[data-look="papel"] .practice.describe-mode #describeMic::after { content: "Start speaking"; font-size: 20px; font-weight: 700; white-space: nowrap; }
  :root[data-look="papel"] .practice.describe-mode #describeMic[aria-pressed="true"]::after { content: "Stop"; }
  :root[data-look="papel"] .practice.describe-mode .watch-say-text b { display: none; }
  :root[data-look="papel"] .practice.describe-mode .watch-say-text span { font-size: 15px; color: var(--ink-2); max-width: 32ch; }
}


/* What went well, quieter (13 Nov 2026): the badge, then the words it counts, a few short facts, the coach's notes folded */
.nw-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; }
.nw-list-label { margin-right: 4px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nw-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--plum); font: 600 15px/1 var(--font); }
.nw-more { font-size: 14px; color: var(--ink-3); }
.wins-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.wins-facts li { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border: 1.5px solid var(--accent-line); border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); }
.wins-notes { margin-top: 14px; }
.wins-notes > summary { cursor: pointer; width: fit-content; min-height: 32px; font-size: 15px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wins-notes .wins-list { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
:root[data-look="papel"] #feedback > .card.wins { padding-top: 4px; }

/* Win back: every fix runs the full width with its crown on the right, grey until won (13 Nov 2026) */
:root[data-look="papel"] .wb-list { max-width: none; }
:root[data-look="papel"] .wb-fix:not(.won) { padding-right: 76px; }
:root[data-look="papel"] .wb-fix:not(.won)::after { content: "\1F451" / ""; position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-6deg);
  font: 400 32px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: grayscale(1); opacity: .28; }
:root[data-look="papel"] .wb-fix .wb-times { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); margin: 0; }
:root[data-look="papel"] .wb-fix:has(.wb-times) { padding-right: 118px; }

/* One type system everywhere (13 Nov 2026): Practice is the default, so every page uses its two faces only: the
   handwriting (--display) for headings, the question and verbs, and Archivo for everything else. The old serif (Faustina)
   is retired: --serif now points at Archivo, and the italics it carried are set upright. */
:root[data-look="papel"] { --serif: "Archivo", system-ui, -apple-system, sans-serif; }
:root[data-look="papel"] :is(.wins-said, .natural-text, .wb-fix, .ex-text, .fr-said, .fr-text, .drill-prompt, .choice, .dmis p, .dpart-title,
  .profe-sub, .watch-say-text b, .describe-prompt, .pw, .lp-rule, .lesson-own) { font-style: normal; }
/* Progress's old italic serif headings become handwriting headings, as on Practice; its "See all" button is plain text */
:root[data-look="papel"] :is(#progress h3, .mapa-title, #progress details > summary) { font-family: var(--display); font-style: normal;
  font-weight: var(--display-weight, 400); color: var(--plum); }
:root[data-look="papel"] .see-all-btn { font-style: normal; }
:root[data-look="papel"] .tcell { font-style: normal; }

/* One height for every action on Practice (13 Nov 2026): the main actions (Start speaking, Send for review after a take or
   in the editor, Describe's Start speaking) and anything that shares their row (Keep talking) are 60px; Keep talking stays
   outlined, so the filled button is still the one to press; Start over is a text link centred on the same line. */
:root[data-look="papel"] { --act-h: 60px; }
:root[data-look="papel"] :is(.dictate > .mic-btn, .take-send, #submitBtn, .practice.describe-mode #describeMic) { height: var(--act-h); min-width: 240px; font-size: 19px; }
:root[data-look="papel"] :is(.dictate > .mic-btn, .practice.describe-mode #describeMic) .mic-say, :root[data-look="papel"] .practice.describe-mode #describeMic::after { font-size: 19px; }
:root[data-look="papel"] #submitBtn { padding: 0 28px; font-weight: 700; }
:root[data-look="papel"] .take-more { height: var(--act-h); padding: 0 24px; font-size: 17px; border-width: 1.5px; }
:root[data-look="papel"] .take-actions { align-items: center; }
:root[data-look="papel"] .compose-foot { align-items: center; }

/* Recording keeps the same button (13 Nov 2026): the same purple gradient, a shade deeper, "Listening · tap to stop", and
   the soft halo that follows your voice; no switch to a flat dark button */
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"],
:root[data-look="papel"] .practice.describe-mode #describeMic[aria-pressed="true"] {
  background: var(--brand-purple-hover); color: #fff; }   /* taste-skill-ignore: the primary, as the brief asks */
:root[data-look="papel"] .practice.describe-mode #describeMic[aria-pressed="true"]::after { content: "Listening · tap to stop"; }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::before { background: rgb(139 92 246 / .18); }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"] .mic-say { font-size: 18px; }
:root[data-look="papel"] .dictate > .mic-btn { min-width: 290px; }   /* one width for both labels, so nothing beside it moves */
:root[data-look="papel"] #compose.listening :is(#dictLabel, #typeLink) { display: none; }   /* while you talk: the button and the timer */
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::after { content: none; }   /* the halo alone follows your voice */
:root[data-look="papel"] #practice .dictate > #micBtn { min-width: 290px; }   /* one width for both labels (beats the grouped 240px rule) */
/* After a take, Send for review sits exactly where Start speaking was; the summary reads underneath */
:root[data-look="papel"] #take:not(.hidden) { margin-top: -10px; display: flex; flex-direction: column; align-items: flex-start; }
:root[data-look="papel"] #take .take-actions { order: -1; margin: 0 0 14px; }
/* Review proof (14 Nov): old mistakes said right today, then the figures against your own past */
:root[data-look="papel"] .wins .proof-fixed { margin: 0 0 18px; }
:root[data-look="papel"] .wins .proof-head { margin: 0 0 10px; font-family: var(--hand, var(--font)); font-size: 30px; line-height: 1.1; color: var(--plum); }
:root[data-look="papel"] .wins .proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
:root[data-look="papel"] .wins .proof-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px;
  border-radius: 14px; background: #f4effd; font-size: 18px; line-height: 1.4; }
:root[data-look="papel"] .wins .proof-before { color: var(--ink-3); text-decoration-color: rgb(43 18 68 / .45); text-decoration-thickness: 1.5px; }
:root[data-look="papel"] .wins .proof-arrow { color: var(--accent); font-weight: 700; }
:root[data-look="papel"] .wins .proof-now { color: var(--plum); font-weight: 700; background: linear-gradient(transparent 62%, rgb(245 191 26 / .45) 62%); }
:root[data-look="papel"] .wins .proof-figs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; color: var(--ink-2); }
:root[data-look="papel"] .wins .proof-fig b { font-size: 24px; color: var(--plum); margin-right: 2px; }
:root[data-look="papel"] .wins .proof-up { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #efe8fd; color: var(--accent); font-weight: 600; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-look="papel"] .wins .proof-list li { animation: proof-in .45s calc(var(--i) * .12s + .15s) var(--ease-out, ease-out) both; }
  @keyframes proof-in { from { opacity: 0; transform: translateY(6px); } }
}
/* Listen: popular shows for learners, one tap to follow */
.listen-suggest { margin: 8px 0 28px; }
.listen-suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.ls-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 1.5px solid #e4dbfa; border-radius: 16px; background: #fff; }
.ls-level { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent, var(--brand-purple)); }
.ls-name { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--plum, var(--brand-plum)); }
.ls-author { font-size: 14px; color: var(--ink-3, #6b6873); }
.ls-tag { margin-top: 2px; padding: 2px 10px; border-radius: 999px; background: #f4effd; color: var(--plum, var(--brand-plum)); font-size: 13px; font-weight: 600; }
.ls-follow { margin-top: auto; padding-top: 0; align-self: stretch; margin-block-start: 10px; }
/* Listen artwork (14 Nov): the shows you follow first, covers on the suggestions, a thumbnail on each episode */
.listen-following { margin: 8px 0 24px; }
.lf-row { display: flex; gap: 16px; overflow-x: auto; padding: 10px 2px 6px; scrollbar-width: thin; }
.lf-show { flex: 0 0 auto; width: 112px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.lf-cover { width: 104px; height: 104px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 1.5px #e4dbfa; transition: transform .15s, box-shadow .15s; }
.lf-blank { display: grid; place-items: center; background: #efe8fd; color: var(--plum, var(--brand-plum)); font-size: 34px; font-weight: 700; }
.lf-show:hover .lf-cover { transform: translateY(-2px); }
.lf-show[aria-pressed="true"] .lf-cover { box-shadow: 0 0 0 3px var(--accent, var(--brand-purple)); }
.lf-name { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--plum, var(--brand-plum)); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-cover { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; margin-bottom: 8px; background: #f4effd; }
.listen-row { align-items: center; }
.listen-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; margin-right: 12px; background: #f4effd; }
/* 14 Nov (later): the shows you follow are the big cards; the suggestions a small scrolling row under them */
.lf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; overflow: visible; padding: 10px 0 4px; }
.lf-show { width: auto; align-items: stretch; gap: 10px; }
.lf-cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; }
.lf-blank { font-size: 56px; }
.lf-name { font-size: 16px; font-weight: 700; text-align: left; }
.listen-suggest-grid { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; margin-top: 10px; scrollbar-width: thin; }
.ls-card { flex: 0 0 148px; scroll-snap-align: start; padding: 10px; gap: 2px; border-radius: 14px; }
.ls-cover { width: 100%; border-radius: 10px; margin-bottom: 6px; }
.ls-level { font-size: 12px; }
.ls-name { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-author { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ls-tag { font-size: 11.5px; padding: 1px 8px; }
.ls-follow { min-height: 36px; height: 36px; font-size: 14px; margin-block-start: 8px; padding: 0 12px; }
.listen-suggest .watch-sub { font-size: 18px; }
@media (max-width: 600px) { .lf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.ls-card { width: 148px; min-width: 0; }
.listen-suggest-grid { align-items: stretch; }
/* no transcript: a quiet grey flag (a transcript is what the summary and known-words figures need) */
.ls-tag-none { background: #f1eff4; color: var(--ink-3, #6b6873); }
.lf-show .ls-tag, .listen-open .ls-tag { align-self: flex-start; }
/* the panel waits, invisible, until its card is ready, then fades in: no "La carta de hoy… Loading" flash first */
#targets.pending { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { #targets { transition: opacity .35s var(--ease-out, ease-out); } }
/* Watch and Listen while they load: faint shapes where the videos and episodes will be, breathing slowly, no text */
.sk { pointer-events: none; }
.sk i, .sk b { display: block; border-radius: 10px; background: #efeaf8; }
.sk-card i { aspect-ratio: 16 / 9; border-radius: 14px; margin-bottom: 10px; }
.sk-card b { height: 12px; margin: 0 0 8px; width: 88%; }
.sk b.short { width: 52%; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line, #ece9f2); }
.sk-row i { flex: 0 0 56px; height: 56px; }
.sk-row span { flex: 1; }
.sk-row b { height: 12px; margin: 4px 0 10px; width: 70%; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk-breathe 1.6s ease-in-out infinite; }
  .sk:nth-child(2) { animation-delay: .15s; } .sk:nth-child(3) { animation-delay: .3s; } .sk:nth-child(4) { animation-delay: .45s; }
  @keyframes sk-breathe { 50% { opacity: .55; } }
}
/* the conversation page's last line: delete it, asked once in place */
.conv-delete { margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--line, #ece9f2); }
.conv-delete-btn { color: var(--ink-3, #6b6873); font-size: 15px; }
.conv-delete-btn:hover { color: var(--critical); }
.conv-delete-q { margin: 0 0 12px; max-width: 52ch; color: var(--ink-2, #4a4852); }

/* ===================================================================================================================
   Brand consistency (14 Nov 2026, docs/audits/brand-consistency-audit-2026-11-14.md): Practice is the reference, so
   every page takes its system. No black outlines and no orange: lavender edges, plum headings, purple actions,
   yellow for energy. Later than every page rule on purpose, so one block states the whole system.
   =================================================================================================================== */
:root[data-look="papel"] {
  --edge: #e4dbfa;                       /* card and panel outline */
  --edge-soft: #ece7f6;                  /* dividers inside a card */
  --panel-shadow: 0 18px 40px -26px rgb(91 43 201 / .38);
  --primary-grad: var(--brand-purple);
  --energy: #f2b705; --energy-ink: #7a5600; --energy-soft: #fff4cc; --on-energy: var(--plum);   /* yellow, not orange */
}

/* Cards and panels: Practice's panel everywhere */
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) .card,
:root[data-look="papel"] :is(.drill-panel, .deck-card, .wb-fix, .watch-channels) {
  background: var(--surface, #fff); border: 1.5px solid var(--edge); border-radius: 20px; box-shadow: var(--panel-shadow);
}
:root[data-look="papel"] #progress .card { padding: 24px 28px 18px; margin-bottom: 20px; }
:root[data-look="papel"] .wb-after { border: 1.5px solid var(--edge); }
:root[data-look="papel"] :is(.deck-forms, .verdict) { border-top: 1px solid var(--edge-soft); }
:root[data-look="papel"] :is(.describe-frame img, .watch-grid img) { border: 1.5px solid var(--edge); box-shadow: var(--panel-shadow); }
:root[data-look="papel"] .wc-bar { border: 0; background: var(--edge-soft); }
:root[data-look="papel"] .wc-bar i { background: var(--accent); }

/* Headings: page titles script plum with the spark; section headings script plum, sentence case */
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) :is(h2, .watch-sub) {
  font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: 0; text-transform: none; color: var(--plum);
}
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) .card h2 { font-size: 28px; }
:root[data-look="papel"] .conv-side-head h1 { font-size: 34px; }

/* Buttons: secondary = lavender pill; primary = Practice's gradient pill */
:root[data-look="papel"] .btn { min-height: var(--ctl, 44px); border: var(--ctl-border, 1.5px solid var(--accent-line)); color: var(--plum); font-weight: 600; }
:root[data-look="papel"] .btn:hover:not(:disabled) { border-color: var(--accent); background: #faf7ff; }
:root[data-look="papel"] :is(.btn.primary, .submit-btn) { min-height: var(--ctl, 44px); background: var(--primary-grad); color: #fff; border: 0;
  box-shadow: 0 12px 24px -14px rgb(91 43 201 / .7); font-weight: 700; }
:root[data-look="papel"] :is(.btn.primary, .submit-btn):hover:not(:disabled) { background: var(--primary-grad); filter: brightness(1.08); }
:root[data-look="papel"] .btn.danger { background: var(--critical); color: #fff; box-shadow: none; }
:root[data-look="papel"] #drill .drill-panel .btn.primary { min-height: var(--act-h, 60px); padding: 0 32px; font-size: 19px; }   /* the page's one big action */
:root[data-look="papel"] :is(.mode-switch button[aria-pressed="true"], .seg[aria-pressed="true"]) { border-color: var(--accent); color: var(--plum); }
:root[data-look="papel"] .choice:hover:not(:disabled) { border-color: var(--accent); }
:root[data-look="papel"] .drill-top .combo { border: 0; }
:root[data-look="papel"] .signin-btn.quiet { border: var(--ctl-border, 1.5px solid var(--accent-line)); color: var(--plum); }

/* Fields and dropdowns: 44px, lavender outline, purple focus */
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) :is(input[type="text"], input:not([type]), input[type="search"], input[type="url"], .drill-input, textarea) {
  min-height: var(--ctl, 44px); padding: 0 14px; border: var(--ctl-border, 1.5px solid var(--accent-line)); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
}
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) select {
  appearance: none; height: var(--ctl, 44px); padding: 0 38px 0 16px; border: var(--ctl-border, 1.5px solid var(--accent-line)); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b2bc9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--plum); cursor: pointer;
}
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) :is(input, select, textarea, .drill-input):focus-visible {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(91 43 201 / .18);
}

/* Links: Practice's link everywhere */
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) .linkish {
  font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--accent-line); text-underline-offset: 4px;
}
:root[data-look="papel"] :is(#watch, #conversations, #drill, #progress) .linkish:hover { text-decoration-color: var(--accent); }

/* Progress: the level track in brand colours; "you are here" purple with a yellow ring */
:root[data-look="papel"] .track .stop { border: 2px solid var(--accent-line); }
:root[data-look="papel"] .track .past .stop { background: var(--accent-line); border-color: var(--accent-line); }
:root[data-look="papel"] .track .here .stop { background: var(--accent); border-color: var(--accent); outline: 4px solid var(--energy-soft); }
:root[data-look="papel"] .track .here b { color: var(--accent); }

/* One frame: every page's title on the logo's left edge */
:root[data-look="papel"] #conversations .conv { margin-left: 0; }
:root[data-look="papel"] #drill > * { margin-left: 0; margin-right: auto; }

/* ---- Motion on the other pages (14 Nov 2026), Practice's vocabulary: one easing, short, from a visible start ---- */
/* the listening halo in the brand: purple, not the old orange */
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::before { background: rgb(139 92 246 / .2); }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"]::after { border-color: rgb(242 183 5 / .55); }

/* every button presses down, as on Practice */
:root[data-look="papel"] :is(.btn, .ls-follow, .lf-show, .choice, .conv-open, .watch-card, .listen-open) { transition: transform 120ms var(--ease-out), border-color .15s, background-color .15s, color .15s, filter .15s; }
:root[data-look="papel"] :is(.btn, .ls-follow, .choice, .conv-open):active:not(:disabled) { transform: scale(.97); }
:root[data-look="papel"] :is(.lf-show, .watch-card, .listen-open):active { transform: scale(.985); }

/* the level line: purple up to "you are here" */
:root[data-look="papel"] .track::after { content: ""; position: absolute; left: 0; top: 6px; height: 2px; width: var(--here-x, 0px);
  background: var(--accent); border-radius: 2px; transform-origin: left; }
:root[data-look="papel"] .track .stop { z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* arriving: the title's spark pops, the content rises, a beat apart */
  .arrive :is(.title-row h1, .conv-side-head h1)::after { animation: spark-pop .55s .12s var(--ease-out) both; }
  .arrive > :not(.title-row), .arrive .title-row > :not(h1) { animation: rise .42s var(--ease-out) both; }
  .arrive > :nth-child(2) { animation-delay: 40ms; } .arrive > :nth-child(3) { animation-delay: 80ms; }
  .arrive > :nth-child(4) { animation-delay: 120ms; } .arrive > :nth-child(n+5) { animation-delay: 160ms; }

  /* Watch and Listen: the first cards and rows rise one after another; the known-words bars fill */
  .arrive :is(.watch-grid, .listen-list, .lf-row, .listen-suggest-grid) > :nth-child(-n+6) { animation: rise .42s var(--ease-out) both; }
  .arrive :is(.watch-grid, .listen-list, .lf-row, .listen-suggest-grid) > :nth-child(2) { animation-delay: 50ms; }
  .arrive :is(.watch-grid, .listen-list, .lf-row, .listen-suggest-grid) > :nth-child(3) { animation-delay: 100ms; }
  .arrive :is(.watch-grid, .listen-list, .lf-row, .listen-suggest-grid) > :nth-child(4) { animation-delay: 150ms; }
  .arrive :is(.watch-grid, .listen-list, .lf-row, .listen-suggest-grid) > :nth-child(5) { animation-delay: 200ms; }
  .arrive :is(.watch-grid, .listen-list, .lf-row, .listen-suggest-grid) > :nth-child(6) { animation-delay: 250ms; }
  .arrive :is(.km-track i, .listen-bar i, .wc-bar i, .topic-bars i, .pstat-bar > span) { animation: bar-fill .8s .25s var(--ease-out) both; transform-origin: left; }
  @keyframes bar-fill { from { transform: scaleX(0); } }

  /* Progress: the level line draws to where you are, then "you are here" rings once */
  :root[data-look="papel"] .track.drawn::after { animation: bar-fill .9s .15s var(--ease-out) both; }
  :root[data-look="papel"] .track.drawn .here .stop { animation: here-ring .7s .95s var(--ease-out) both; }
  @keyframes here-ring { 0% { outline-width: 0; outline-offset: 0; } 50% { outline-width: 8px; outline-offset: 2px; } 100% { outline-width: 4px; outline-offset: 0; } }

  /* Drill: the right form is underlined with the brand's brush; the combo bumps; each card slides in from the right */
  :root[data-look="papel"] .verdict.ok .v-answer { position: relative; display: inline-block; padding-bottom: .35em; }
  :root[data-look="papel"] .verdict.ok .v-answer::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(100%, 9em); aspect-ratio: 6 / 1;
    max-height: .5em; background: url(/brand/swoosh-yellow.svg) no-repeat left center / 100% 100%; animation: swoosh-draw .5s .1s var(--ease-out) both; }
  :root[data-look="papel"] .drill-top .combo { animation: combo-bump .4s var(--ease-out) both; }
  @keyframes combo-bump { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
  :root[data-look="papel"] .drill-prompt { animation: step-in-next .3s var(--ease-out) both; }

  /* Conversations: a review's sections rise in order, proof first */
  #feedback.enter > * { animation: rise .42s var(--ease-out) both; }
  #feedback.enter > :nth-child(2) { animation-delay: 60ms; } #feedback.enter > :nth-child(3) { animation-delay: 120ms; }
  #feedback.enter > :nth-child(4) { animation-delay: 180ms; } #feedback.enter > :nth-child(n+5) { animation-delay: 220ms; }
}
@media (prefers-reduced-motion: reduce) {
  .arrive > *, #feedback.enter > * { animation: fade .2s ease-out both; }
}

/* Conversations (fix to the brand pass): the review's header, its wins and Win back are open sections, not boxes,
   as designed; only the other review cards are panels. The title fits the 220px list column with its spark. */
:root[data-look="papel"] #conversations #feedback > :is(.conv-head, .wins, .win-back) { background: none; border: 0; border-radius: 0; box-shadow: none; }
:root[data-look="papel"] #conversations #feedback > .conv-head { padding: 0 0 8px; }
:root[data-look="papel"] .conv-side-head h1 { font-size: 30px; white-space: nowrap; }

/* Progress figures as tiles (14 Nov 2026): an icon, the number large, what it counts, a note; a bar for the level */
:root[data-look="papel"] .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 6px 0 26px; }
:root[data-look="papel"] .fig { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 20px 16px; background: #fff;
  border: 1.5px solid var(--edge, #e4dbfa); border-radius: 20px; box-shadow: var(--panel-shadow); }
:root[data-look="papel"] .fig-ico { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 12px; border-radius: 50%;
  background: #f1ebff; color: var(--accent); }
:root[data-look="papel"] .fig-ico .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-look="papel"] .fig.hot .fig-ico { background: #fff4cc; color: #c98d00; }
:root[data-look="papel"] .fig.hot .fig-ico .ico { fill: #f2b705; stroke: #c98d00; }
:root[data-look="papel"] .fig.cold .fig-ico { background: #f1eff4; color: var(--ink-3); }
:root[data-look="papel"] .fig > b { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 400; line-height: 1; color: var(--plum); }
:root[data-look="papel"] .fig .fig-unit { display: block; margin: 6px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--plum); }
:root[data-look="papel"] .fig .fig-note { display: block; margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
:root[data-look="papel"] .fig .fig-note .goal-today { display: inline; margin: 0; font-size: inherit; }
:root[data-look="papel"] .fig .fig-bar { display: block; align-self: stretch; height: 8px; margin: 10px 0 0; border-radius: 999px; background: #efe8fd; overflow: hidden; }
:root[data-look="papel"] .fig .fig-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .arrive .fig .fig-bar i { animation: bar-fill .8s .3s var(--ease-out) both; transform-origin: left; }
  .arrive .fig .fig-ico { animation: spark-pop .5s var(--ease-out) both; }
  .arrive .fig:nth-child(2) .fig-ico { animation-delay: 60ms; } .arrive .fig:nth-child(3) .fig-ico { animation-delay: 120ms; }
  .arrive .fig:nth-child(4) .fig-ico { animation-delay: 180ms; } .arrive .fig:nth-child(5) .fig-ico { animation-delay: 240ms; }
}
@media (max-width: 600px) { :root[data-look="papel"] .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :root[data-look="papel"] .fig { padding: 14px 14px 12px; } :root[data-look="papel"] .fig > b { font-size: 36px; } }
:root[data-look="papel"] .figures { grid-auto-flow: row; grid-auto-columns: auto; }

/* Conversations' list head (fix): the title on its own line, Play all and the hide button on the row under it, so
   nothing spills into the review beside it */
:root[data-look="papel"] .conv-side-head { flex-wrap: wrap; row-gap: 6px; }
:root[data-look="papel"] .conv-side-head h1 { flex: 1 0 100%; }
:root[data-look="papel"] .conv-side-head .play-all { font-size: 15px; }
:root[data-look="papel"] .conv-side-head .conv-hide { margin-left: auto; }
:root[data-look="papel"] .conv.side-hidden .conv-side-head h1 { flex-basis: auto; }

/* Delete conversation reads as the destructive action it is */
:root[data-look="papel"] #conversations .conv-delete-btn { color: var(--critical); text-decoration-color: rgb(198 58 50 / .35); }
:root[data-look="papel"] #conversations .conv-delete-btn:hover { color: #9f2a23; text-decoration-color: currentColor; }

/* ---- Drill: the round as a game (14 Nov 2026) ----
   The deck itself on the left, the record as a row of flames to beat, what's in the deck as chips with dots for the
   count, Start with its key, the resting cards folded into one quiet line. */
:root[data-look="papel"] .round-ready { padding: 28px 32px 24px; }
.rd-main { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; }
.rd-deck { position: relative; width: 132px; height: 168px; margin: 4px 0 0 6px; }
.rd-card { position: absolute; inset: 0; border-radius: 16px; background: #efe8fd; border: 1.5px solid var(--edge, #e4dbfa);
  transform: rotate(calc((var(--i) - 2) * 5deg)) translateX(calc((var(--i) - 2) * 4px)); transform-origin: 50% 90%; }
.rd-top { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 16px; background: #fff; border: 1.5px solid var(--accent-line, #cdbcf3); box-shadow: 0 16px 28px -18px rgb(91 43 201 / .55);
  transform: rotate(4deg); transform-origin: 50% 90%; }
.rd-top b { font-family: var(--display); font-size: 56px; font-weight: 400; line-height: 1; color: var(--plum); }
.rd-top > span { font-size: 15px; font-weight: 600; color: var(--plum); }
.rd-new { position: absolute; top: -12px; right: -14px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px;
  border-radius: 999px; background: #fff4cc; color: #7a5600; font-size: 13px; font-weight: 700; font-style: normal; box-shadow: 0 6px 14px -8px rgb(122 86 0 / .5); }
.rd-new .ico { width: 14px; height: 14px; fill: #f2b705; stroke: none; }
.rd-copy h2 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1.1; color: var(--plum); }
.rd-sub { margin: 6px 0 16px; font-size: 16px; color: var(--ink-3); }
.rd-track { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-flame { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4f1f8; }
.rd-flame .ico { width: 20px; height: 20px; fill: #ddd6e8; stroke: none; }
.rd-flame.won { background: #fff4cc; } .rd-flame.won .ico { fill: #f2b705; }
.rd-flame.rd-target { background: #fff; box-shadow: inset 0 0 0 2px #f2b705; } .rd-flame.rd-target .ico { fill: #fff4cc; stroke: #c98d00; stroke-width: 1.4; }
.rd-flame .rd-crown { position: absolute; top: -13px; left: 50%; width: 16px; height: 16px; transform: translateX(-50%); fill: none; stroke: #c98d00; stroke-width: 2; }
.rd-best { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 22px; }
.rd-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 34px; padding: 0 12px 0 14px; border-radius: 999px;
  background: #f4effd; border: 0; color: var(--plum); font: inherit; font-size: 14px; font-weight: 600; }
.rd-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }
.rd-dots { display: inline-flex; gap: 3px; } .rd-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rd-more { background: none; box-shadow: inset 0 0 0 1.5px var(--accent-line, #cdbcf3); cursor: pointer; }
.rd-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
:root[data-look="papel"] .round-ready .drill-start { gap: 14px; }
.rd-key { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: rgb(255 255 255 / .18);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18); font: 600 12.5px var(--font); color: #fff; }
.rd-rest { font-size: 14px; color: var(--ink-3); }
.rd-rest summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.rd-rest summary::-webkit-details-marker { display: none; }
.rd-moon { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -4px -2px 0 0 #b8aecb; }
.rd-rest p { margin: 8px 0 0; max-width: 56ch; }
@media (max-width: 600px) {
  :root[data-look="papel"] .round-ready { padding: 22px 18px 18px; }
  .rd-main { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
  .rd-deck { width: 108px; height: 136px; } .rd-top b { font-size: 46px; }
  .rd-copy h2 { font-size: 28px; }
  .rd-flame { width: 28px; height: 28px; } .rd-flame .ico { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* arriving: the deck fans out card by card, then the record's flames light in order, the target last */
  .round-ready .rd-card { animation: rd-fan .45s calc(var(--i) * 45ms) var(--ease-out) both; }
  .round-ready .rd-top { animation: rd-fan-top .5s .2s var(--ease-out) both; }
  @keyframes rd-fan { from { opacity: 0; transform: rotate(0) translateY(10px); } }
  @keyframes rd-fan-top { from { opacity: 0; transform: rotate(0) translateY(14px) scale(.96); } }
  .round-ready .rd-flame { animation: rise .35s calc(.3s + var(--i) * 35ms) var(--ease-out) both; }
  .round-ready .rd-flame.rd-target { animation: spark-pop .55s calc(.35s + var(--i) * 35ms) var(--ease-out) both; }
  .round-ready .rd-new { animation: spark-pop .5s .6s var(--ease-out) both; }
  /* Start: the top card flips away to the right, the rest follow it out */
  .rd-launch .rd-top { animation: rd-off .26s var(--ease-out) forwards; }
  .rd-launch .rd-card { animation: rd-off .26s calc(var(--i) * 20ms) var(--ease-out) forwards; }
  @keyframes rd-off { to { opacity: 0; transform: translateX(60px) rotate(16deg); } }
  .rd-launch :is(.rd-copy, .rd-chips, .rd-go) { transition: opacity .2s; opacity: .4; }
}
.rd-deck { margin-left: 18px; }   /* the fan's back cards stay inside the panel */
@media (max-width: 600px) { .rd-deck { margin-left: 14px; } }
.rd-flame { flex: 0 0 auto; aspect-ratio: 1; }   /* never stretched when the row wraps */
@media (max-width: 600px) {
  .rd-track { gap: 4px; flex-wrap: nowrap; }
  .rd-flame { width: 26px; height: 26px; } .rd-flame .ico { width: 15px; height: 15px; }
  .rd-copy h2 { font-size: 26px; text-wrap: balance; }
}

/* ---- Progress in Drill's language (14 Nov 2026): your level as a card with a ring, dots for counts, badges for what
   you can do, the map and charts in the brand's purple and yellow (no green, no orange) ---- */
:root[data-look="papel"] {
  --map-unseen: #f1eff4; --map-assumed: #ebe5f6; --map-introduced: #ddd0fa; --map-learning: #b49af1;
  --map-solid: #7a4fe0; --map-mastered: #f2b705; --map-slip: #f3c4bf;
  --data: var(--accent); --data-dark: #4a1fae; --data-2: #cdbcf3; --data-3: #e4dbfa; --data-soft: #f4effd;
  --series: var(--accent); --mark: #f2b705;
}
:root[data-look="papel"] .cell.st-solid .cell-name { fill: #fff; }
:root[data-look="papel"] .cell.st-mastered .cell-name { fill: var(--plum); }
:root[data-look="papel"] #levelTrack { display: none; }   /* the level card's path says the same */

/* the level card */
.lh { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 28px; align-items: center; margin: 8px 0 26px; }
.lh-card { position: relative; display: grid; place-items: center; align-content: center; width: 156px; height: 156px; margin-left: 4px;
  border-radius: 24px; background: #fff; border: 1.5px solid var(--accent-line, #cdbcf3); box-shadow: 0 16px 30px -18px rgb(91 43 201 / .55); transform: rotate(-3deg); }
.lh-ring { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); transform: rotate(-90deg); }
.lh-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.lh-track { stroke: #efe8fd; } .lh-fill { stroke: var(--accent); }
.lh-card b { position: relative; font-family: var(--display); font-size: 50px; font-weight: 400; line-height: 1; color: var(--plum); }
.lh-card span { position: relative; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lh-kicker { margin: 0 0 14px; font-family: var(--display); font-size: 26px; line-height: 1.15; color: var(--plum); }
.lh-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.lh-pip { display: inline-flex; align-items: center; gap: 8px; padding-right: 28px; position: relative; font-weight: 600; font-size: 15px; color: var(--ink-3); }
.lh-pip:not(:last-child)::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--accent-line, #cdbcf3); }
.lh-pip i { width: 14px; height: 14px; border-radius: 50%; background: #f1eff4; box-shadow: inset 0 0 0 2px #ddd6e8; }
.lh-pip.done i { background: var(--accent-line, #cdbcf3); box-shadow: none; }
.lh-pip.here { color: var(--plum); } .lh-pip.here i { width: 18px; height: 18px; background: var(--accent); box-shadow: 0 0 0 4px #fff4cc; }
.lh-pip.goal { color: #7a5600; } .lh-pip.goal i { background: #fff; box-shadow: inset 0 0 0 2px #f2b705; }

/* dots: a count toward its target */
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #ebe5f6; }
.dots i.on { background: var(--accent); }

/* Next up: lavender rows, the closest one tagged */
:root[data-look="papel"] .next-up ul { display: grid; gap: 8px; }
:root[data-look="papel"] .next-up .next-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 12px 16px; border: 0; border-radius: 14px; background: #f7f3ff; text-align: left; font: inherit; color: var(--plum); font-weight: 600; cursor: pointer; }
:root[data-look="papel"] .next-up .next-row:hover { background: #f1ebff; }
.almost { display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 999px; background: #fff4cc; color: #7a5600; font-size: 12.5px; font-weight: 700; font-style: normal; vertical-align: 1px; }

/* What you can do: badges */
.cd-badges { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cd-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #fff;
  border: 1.5px dashed var(--accent-line, #cdbcf3); }
.cd-badge .nm { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--plum); }
.cd-badge .need { font-size: 13px; color: var(--ink-3); }
.cd-seal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f4f1f8; box-shadow: inset 0 0 0 2px #e4dbfa; }
.cd-badge.won { border-style: solid; border-color: var(--edge, #e4dbfa); background: #faf7ff; }
.cd-badge.won .cd-seal { background: var(--accent); box-shadow: 0 0 0 4px #fff4cc; }
.cd-badge.won .cd-seal .ico { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Words by topic: thick purple bars, the strongest crowned */
:root[data-look="papel"] .topic-bars i, :root[data-look="papel"] .topic-bars .bar { height: 10px; border-radius: 999px; }
:root[data-look="papel"] #topicTop .topic-bars:first-of-type li:first-child > :first-child::after { content: ""; display: inline-block; width: 16px; height: 16px;
  margin-left: 6px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98d00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l4 4 5-7 5 7 4-4-2 11H5z'/%3E%3C/svg%3E") no-repeat center / contain; }

@media (max-width: 600px) {
  .lh { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
  .lh-card { width: 132px; height: 132px; } .lh-card b { font-size: 42px; }
  .lh-kicker { font-size: 22px; }
  .cd-badges { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .arrive .lh-card { animation: rd-fan-top .55s var(--ease-out) both; }
  .arrive .lh-fill { animation: lh-fill 1s .25s var(--ease-out) both; }
  @keyframes lh-fill { from { stroke-dashoffset: var(--c); } }
  .arrive .lh-pip { animation: rise .35s calc(.2s + var(--n, 0) * 40ms) var(--ease-out) both; }
  .arrive .lh-pip.goal i { animation: spark-pop .55s .7s var(--ease-out) both; }
  .arrive .dots i.on { animation: spark-pop .35s calc(.3s + var(--i) * 40ms) var(--ease-out) both; }
  .arrive .cd-badge.won .cd-seal { animation: spark-pop .5s .4s var(--ease-out) both; }
}
@media (max-width: 600px) {
  .lh-pip { padding-right: 18px; font-size: 14px; gap: 6px; } .lh-pip:not(:last-child)::after { width: 8px; right: 5px; }
  :root[data-look="papel"] .next-up .next-row { display: flex !important; flex-direction: row; align-items: center; min-height: 0; padding: 12px 14px; gap: 10px; }
  :root[data-look="papel"] .next-up .next-row .nm { flex: 1 1 auto; min-width: 0; font-size: 15px; }
  :root[data-look="papel"] .next-up .next-row .need { flex: 0 0 auto; }
  .dots { gap: 3px; } .dots i { width: 7px; height: 7px; }
}

/* ---- Conversations in Drill's language (14 Nov 2026): postcards in the list, a scorecard on top, the fixes as a
   deck, the natural paragraph with a highlighter, the mission as the way back to Speak ---- */
/* the list: postcards with each one's fixes as dots */
:root[data-look="papel"] .conv-day { margin: 14px 0 6px; font-family: var(--display); font-size: 18px; color: var(--plum); }
:root[data-look="papel"] .conv-item { margin: 0 0 6px; border-radius: 14px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa); }
:root[data-look="papel"] .conv-item.current { border-color: var(--accent); box-shadow: 0 10px 22px -16px rgb(91 43 201 / .6); }
:root[data-look="papel"] .conv-item .conv-open { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
:root[data-look="papel"] .conv-item .conv-topic { font-weight: 600; color: var(--plum); }
:root[data-look="papel"] .conv-item .conv-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
:root[data-look="papel"] .conv-item .conv-cleared { color: #7a5600; } :root[data-look="papel"] .conv-item .conv-cleared .ico { width: 14px; height: 14px; fill: none; stroke: #c98d00; stroke-width: 2; }
:root[data-look="papel"] .conv-fixes .dots i { width: 7px; height: 7px; }

/* the scorecard: tiles with an accuracy ring */
:root[data-look="papel"] .wins .proof-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 4px 0 22px; }
:root[data-look="papel"] .wins .proof-fig { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: 20px;
  background: #fff; border: 1.5px solid var(--edge, #e4dbfa); box-shadow: var(--panel-shadow); }
:root[data-look="papel"] .wins .proof-fig > b { font-family: var(--display); font-size: 38px; font-weight: 400; line-height: 1; color: var(--plum); margin: 6px 0 0; }
:root[data-look="papel"] .wins .proof-fig .fig-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f1ebff; color: var(--accent); }
:root[data-look="papel"] .wins .proof-fig .fig-ico .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-look="papel"] .wins .sc-new .fig-ico { background: #fff4cc; } :root[data-look="papel"] .wins .sc-new .fig-ico .ico { fill: #f2b705; stroke: none; }
.sc-label { font-size: 14.5px; font-weight: 600; color: var(--plum); }
.sc-ringbox { position: relative; display: grid; place-items: center; width: 76px; height: 76px; }
.sc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.sc-ringbox b { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--plum); }
:root[data-look="papel"] .wins .proof-up { margin: 2px 0 0; }

/* proof pairs as stamps */
:root[data-look="papel"] .wins .proof-list li { background: #fff; border: 1.5px dashed var(--accent-line, #cdbcf3); transform: rotate(-.6deg); }
:root[data-look="papel"] .wins .proof-list li:nth-child(2n) { transform: rotate(.5deg); }
:root[data-look="papel"] .wins .proof-now { background: none; position: relative; padding-bottom: .3em; }
:root[data-look="papel"] .wins .proof-now::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: .4em;
  background: url(/brand/swoosh-yellow.svg) no-repeat left center / 100% 100%; }

/* Win back: the fixes as a little deck with dots */
.wb-deck { display: flex; align-items: center; gap: 18px; margin: 4px 0 12px; }
.wb-stack { position: relative; width: 54px; height: 66px; flex: 0 0 auto; }
.wb-stack i, .wb-stack b { position: absolute; inset: 0; border-radius: 10px; }
.wb-stack i { background: #efe8fd; border: 1.5px solid var(--edge, #e4dbfa); }
.wb-stack i:first-child { transform: rotate(-9deg) translateX(-4px); } .wb-stack i:nth-child(2) { transform: rotate(-3deg); }
.wb-stack b { display: grid; place-items: center; background: #fff; border: 1.5px solid var(--accent-line, #cdbcf3); transform: rotate(5deg);
  font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--plum); box-shadow: 0 10px 18px -12px rgb(91 43 201 / .5); }
.wb-deck-copy { display: flex; flex-direction: column; gap: 8px; }
.wb-deck-n { font-weight: 700; color: var(--plum); }
:root[data-look="papel"] .win-back .wb-count { display: none; }   /* the deck says it */

/* the natural paragraph with a highlighter */
.natural-text mark.hl { position: relative; padding: 0 .12em; border-radius: 3px; color: inherit; cursor: help;
  background: linear-gradient(transparent 52%, rgb(242 183 5 / .45) 52%, rgb(242 183 5 / .45) 92%, transparent 92%); }
.natural-text mark.hl.won { background: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.natural-text .hl-n { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .2em; border-radius: 50%; vertical-align: .15em;
  background: var(--plum); color: #fff; font: 700 .55em/1 var(--font); }
.natural-text mark.hl.won .hl-n { background: var(--accent); }
.natural-text mark.hl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the mission: the way back to Speak */
:root[data-look="papel"] #feedback .card.mission { background: #fff; color: var(--plum); border: 1.5px solid var(--edge, #e4dbfa); box-shadow: var(--panel-shadow); }
:root[data-look="papel"] #feedback .card.mission h2 { color: var(--plum); opacity: 1; font-family: var(--display); font-size: 28px; font-weight: 400; text-transform: none; letter-spacing: 0; }
:root[data-look="papel"] #feedback .card.mission h2::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .15em; vertical-align: .35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23f2b705' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9 10.5 3.5'/%3E%3Cpath d='M9.5 12.5 17 10.5'/%3E%3Cpath d='M8.5 16.5 14 19'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
:root[data-look="papel"] #feedback .card.mission .big { color: var(--plum); font-family: var(--display); font-size: 30px; }
:root[data-look="papel"] #feedback .card.mission .btn.primary { background: var(--primary-grad); color: #fff; box-shadow: 0 12px 24px -14px rgb(91 43 201 / .7); }

@media (prefers-reduced-motion: no-preference) {
  #feedback.enter .sc-ring .lh-fill { animation: lh-fill 1s .2s var(--ease-out) both; }
  #feedback.enter .wb-stack b { animation: rd-fan-top .5s .25s var(--ease-out) both; }
  #feedback.enter .wb-stack i { animation: rd-fan .45s .15s var(--ease-out) both; }
  #feedback.enter .dots i.on, #history .dots i.on { animation: spark-pop .35s calc(.3s + var(--i) * 40ms) var(--ease-out) both; }
  .natural-text mark.hl { animation: hl-draw .5s calc(.3s + var(--i) * 90ms) var(--ease-out) both; background-repeat: no-repeat; }
  @keyframes hl-draw { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
}
@media (max-width: 600px) { :root[data-look="papel"] .wins .proof-figs { grid-template-columns: 1fr 1fr; } }
:root[data-look="papel"] .conv-item { display: flex; align-items: center; gap: 4px; padding-right: 8px; }
:root[data-look="papel"] .conv-item .conv-open { flex: 1 1 auto; min-width: 0; }
:root[data-look="papel"] .conv-item .conv-topic { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-look="papel"] .conv-item > :last-child:not(.conv-open) { flex: 0 0 auto; }
@media (max-width: 600px) {
  :root[data-look="papel"] .wins .proof-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  :root[data-look="papel"] .wins .proof-fig { padding: 12px 10px; border-radius: 16px; }
  :root[data-look="papel"] .wins .proof-fig > b { font-size: 28px; }
  :root[data-look="papel"] .wins .proof-fig .fig-ico { width: 32px; height: 32px; } :root[data-look="papel"] .wins .proof-fig .fig-ico .ico { width: 18px; height: 18px; }
  .sc-ringbox { width: 58px; height: 58px; } .sc-ringbox b { font-size: 17px; }
  .sc-label { font-size: 12.5px; line-height: 1.3; }
}
/* the last 30 seconds of a take: the button turns warm yellow-edged so the wrap-up cue is seen */
:root[data-look="papel"] #compose.wrapping .dictate > .mic-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px #f2b705, 0 16px 30px -16px rgb(91 43 201 / .7); }

/* ---- The Speak loop (docs/SPEAK_LOOP_PLAN.md): the left column becomes the review while you stay on Speak ---- */
#practice.looping :is(.mode-switch, .mode-pick, #modeBtn, .greet, #question, #questionMore, .question-en, .first-guide, #compose) { display: none !important; }
.loop { max-width: 640px; margin: 8px 0 40px; }
.loop-head h2 { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.1; color: var(--plum); text-wrap: balance; }
.loop-sub { margin: 8px 0 16px; font-size: 17px; color: var(--ink-3); }
.loop-step { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.loop-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 15px; color: var(--ink-3); }
.loop-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .loop-dot { animation: loop-breathe 1.4s ease-in-out infinite; } @keyframes loop-breathe { 50% { transform: scale(.6); opacity: .5; } } }
.loop-body { margin: 0 0 18px; }
.loop-said { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa); font-size: 19px; line-height: 1.55; color: var(--ink); }
.loop-proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 14px 0 18px; font-size: 17px; color: var(--ink-2); }
.loop-proof b { font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--plum); }
.loop-proof .sep { color: var(--accent-line, #cdbcf3); }
.loop-proof .proof-up { font-style: normal; color: var(--accent); font-weight: 600; }
.loop-fixed { margin: 0 0 18px; }
.loop-hear { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; margin: 0 0 22px;
  border-radius: 20px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa); box-shadow: var(--panel-shadow); }
.loop-hear h3 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--plum); }
.loop-natural { margin: 0; font-size: 19px; line-height: 1.6; }
.loop-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
:root[data-look="papel"] .loop-go .submit-btn { min-height: var(--act-h, 60px); padding: 0 32px; font-size: 19px; }
.loop-later { font-size: 15px; }
.loop-lesson { padding: 22px 24px; margin: 14px 0 22px; border-radius: 20px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa); box-shadow: var(--panel-shadow); }
.loop-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 24px; line-height: 1.4; }
.loop-pair s { color: var(--ink-3); text-decoration-thickness: 2px; }
.loop-pair .proof-now { position: relative; padding-bottom: .3em; color: var(--plum); }
.loop-pair .proof-now::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: .4em; background: url(/brand/swoosh-yellow.svg) no-repeat left center / 100% 100%; }
.loop-rule { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.loop-sentence { margin: 6px 0 10px; font-family: var(--display); font-size: 32px; line-height: 1.25; color: var(--plum); }
.loop-score { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 12px; padding: 0; }
.loop-score li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa); box-shadow: var(--panel-shadow); }
.loop-score b { font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1; color: var(--plum); }
.loop-score span { font-size: 14.5px; font-weight: 600; color: var(--plum); }
.loop-toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 0; border-radius: 999px; background: var(--plum); color: #fff; font: 600 16px var(--font); box-shadow: 0 18px 40px -18px rgb(43 18 68 / .7); cursor: pointer; }
.loop-toast .ico { width: 18px; height: 18px; fill: #f2b705; stroke: none; }
@media (max-width: 600px) { .loop-head h2 { font-size: 32px; } .loop-pair { font-size: 20px; } .loop-sentence { font-size: 26px; } .loop-hear { padding: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .loop > * { animation: rise .42s var(--ease-out) both; } .loop > :nth-child(2) { animation-delay: 60ms; } .loop > :nth-child(3) { animation-delay: 120ms; } .loop > :nth-child(n+4) { animation-delay: 180ms; }
  .loop-toast { animation: rise .4s var(--ease-out) both; }
}
#practice.looping #targets, #practice.looping #describeSide { display: none !important; }   /* the loop has the whole screen */
:root[data-look="papel"] #practice.looping { grid-template-columns: minmax(0, 1fr) !important; }
#practice.looping:not(.hidden) { display: block !important; }   /* not over another tab: leaving the loop must work (15 Nov 2026) */
#practice.looping .loop { margin: 8px 0 40px; }
.loop-said-it b .ico { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Speak loop, 14 Nov (later): one screen, no scrolling, buttons that never move ----
   The loop fills the space under the header. Its heading stays small, the middle scrolls inside itself if it must,
   and the buttons sit on the bottom edge, so answering a card never shifts them. */
#loop:not(.hidden) { display: flex; flex-direction: column; height: calc(100dvh - var(--loop-top, 120px) - 16px); min-height: 420px; margin: 0; overflow: hidden; }
#loop .loop-head h2 { font-size: 32px; }
#loop .loop-sub { margin: 4px 0 8px; font-size: 15px; }
#loop .loop-progress { margin: 0 0 8px; font-size: 14px; }
#loop .loop-go { flex: 0 0 auto; margin-top: auto; padding-top: 12px; }
#loop > .loop-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; }
#loop > .loop-body > h2 { display: none; }   /* "Warm-up" is said by the subtitle */
#loop > .loop-body > .drill-actions { margin-top: auto; padding-top: 12px; background: var(--bg, #fbfaff); }
#loop > .loop-body > :not(.drill-actions):not(.drill-top):not(.drill-bar) { flex-shrink: 1; }
#loop > .loop-body .drill-prompt { font-size: clamp(24px, 3.4vh, 34px); line-height: 1.3; margin: 6px 0 8px; }
#loop > .loop-body > div:has(> .verdict), #loop > .loop-body .verdict { overflow-y: auto; min-height: 0; }
#loop > .loop-body .verdict { margin-top: 10px; padding-top: 10px; }
#loop .loop-hear { flex: 1 1 auto; min-height: 0; margin: 0; padding: 16px 18px; }
#loop .hear-main { display: flex; flex-direction: column; min-height: 0; height: 100%; }
#loop .hear-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; }
#loop .loop-proof { margin: 6px 0 10px; } #loop .loop-proof b { font-size: 26px; }
#loop .loop-fixed { margin: 0 0 10px; padding: 0; list-style: none; }
#loop .loop-lesson { margin: 10px 0 0; }

/* the error in a card: white on red, so it can't be missed */
.drill-prompt .wrong { padding: .02em .28em; border-radius: 6px; background: var(--critical, #c63a32); color: #fff; font-weight: 600;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* hear a fix */
.hear-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hear-speed { min-width: 52px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--accent-line, #cdbcf3); background: #fff;
  color: var(--plum); font: 700 14px var(--font); cursor: pointer; }
.hear-speed[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.hear-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 10px; }
.hear-label { margin-right: 4px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.hear-chip { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; font: 700 14px var(--font); cursor: pointer; }
.hear-chip:hover { background: var(--accent); }
.hear-chip[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 0 3px #fff4cc; }
.natural-text mark.hl.now { background: rgb(242 183 5 / .75); box-shadow: 0 0 0 2px rgb(242 183 5 / .75); }
@media (max-width: 600px) { #loop .loop-head h2 { font-size: 26px; } #loop .loop-hear { grid-template-columns: 1fr; } }
/* keyboard hints: the main button on a card names its key (Enter or Space both work) */
@media (pointer: fine) {
  .drill-actions .btn.primary::after { content: "Enter"; margin-left: 10px; padding: 2px 7px; border-radius: 6px; background: rgb(255 255 255 / .2);
    box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18); font-size: 12px; font-weight: 600; }
}
#loop .loop-hear { flex: 0 1 auto; }   /* only as tall as its words; the buttons stay at the bottom either way */

/* While you talk, the Stop button fills from left to right with the time spoken, out of four minutes (14 Nov 2026) */
@property --spoken { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
:root[data-look="papel"] .dictate > .mic-btn[aria-pressed="true"] {
  background: linear-gradient(90deg, #7a4fe0 0 var(--spoken), #3b1786 var(--spoken) 100%);
  transition: --spoken 1s linear, transform 120ms var(--ease-out), box-shadow .25s;
}
:root[data-look="papel"] #compose.wrapping .dictate > .mic-btn[aria-pressed="true"] {
  background: linear-gradient(90deg, #a77d00 0 var(--spoken), #3b1786 var(--spoken) 100%);
}
:root[data-look="papel"] .deck-card > .deck-tip:last-child { padding-bottom: 20px; }   /* the tip is last now that "See full conjugation" is gone */
/* The Free talk / Describe / Decks menu is off Speak for now (14 Nov 2026); Describe and Decks still work where they're reached */
:root[data-look="papel"] #practice :is(.mode-pick, #modeBtn, #modePop, .mode-switch) { display: none !important; }

/* the brand's dropdown menu (replaces the system list) and the − 30 + goal stepper (14 Nov 2026) */
.fsel-menu { position: fixed; z-index: 80; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #fff;
  border: 1.5px solid var(--edge, #e4dbfa); box-shadow: 0 18px 40px -18px rgb(43 18 68 / .45); }
.fsel-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--plum); font: 600 15px var(--font); text-align: left; cursor: pointer; white-space: nowrap; }
.fsel-opt::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; }
.fsel-opt[aria-selected="true"] { background: #f4effd; }
.fsel-opt[aria-selected="true"]::before { background: var(--accent); }
.fsel-opt:hover, .fsel-opt:focus-visible { background: #efe8fd; outline: 0; }
.fsel-opt[disabled] { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: no-preference) { .fsel-menu { animation: fsel-in .16s var(--ease-out) both; } @keyframes fsel-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } } }
.goal-step { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--accent-line, #cdbcf3); color: var(--plum); font-size: 14px; }
.goal-step button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #f1ebff;
  color: var(--accent); font: 700 16px/1 var(--font); cursor: pointer; }
.goal-step button:hover { background: var(--accent); color: #fff; }
.goal-step button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.goal-step b { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-step > span { padding-right: 6px; color: var(--ink-3); }

/* Conversations under Progress (14 Nov 2026): a two-way switch at the top of both views, and the latest three on the Overview */
.prog-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa); }
.prog-switch button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--plum); font: 600 15px var(--font); cursor: pointer; }
.prog-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.prog-switch button:not([aria-pressed="true"]):hover { background: #f4effd; }
#conversations > .prog-switch { margin-bottom: 18px; }
.recent-convs { margin: 0 0 26px; }
.rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rc-head h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--plum); }
.rc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }

/* Your words (14 Nov 2026) */
.wordmap { margin: 0 0 22px; }
.wm-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.wm-gap { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.wm-gap b { color: var(--plum); }
.wm-kind { margin: 0; }
.wm-stage { position: relative; }
#wordMapCanvas { display: block; cursor: crosshair; }
.wm-tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; max-width: 240px; padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--edge, #e4dbfa); box-shadow: 0 14px 30px -16px rgb(43 18 68 / .45); font-size: 14px; color: var(--ink-2); pointer-events: auto; }
.wm-tip b { color: var(--plum); font-size: 16px; }
.wm-tip .wm-meta { font-size: 12.5px; color: var(--ink-3); }
.wm-tip .linkish { margin-top: 6px; align-self: flex-start; font-size: 14px; }
.wm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 14px; }
.wm-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); }
.wm-key span { display: inline-flex; align-items: center; gap: 6px; }
.wm-key i { width: 9px; height: 9px; border-radius: 50%; }
.wm-key .k0 { background: #dfd8ec; } .wm-key .k1 { background: #cdbcf3; } .wm-key .k2 { background: #8a5cf0; } .wm-key .k3 { background: #4a1fae; }
.wm-key .kx { background: #cdbcf3; box-shadow: 0 0 0 1.5px #c63a32; } .wm-key .kf { background: #8a5cf0; box-shadow: 0 0 0 1.5px #f2b705; }
.wm-replay { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.wm-replay input { width: 140px; accent-color: var(--accent); }
#wordMapPlay { white-space: nowrap; }
.wm-replay-label { font-weight: 600; color: var(--plum); }
.wm-spans { display: inline-flex; gap: 4px; }
.wm-spans button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--accent-line, #cdbcf3); background: #fff;
  color: var(--plum); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.wm-spans button:hover { border-color: var(--accent); }
.wm-spans button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 600px) { .wm-replay { flex-wrap: wrap; } .wm-replay input { flex: 1 1 120px; } }
.wm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-key .k0 { background: #f1eef6; box-shadow: inset 0 0 0 1px #e4dbfa; } .wm-key .k1 { background: #b9a2f0; } .wm-key .k2 { background: #7a4fe0; } .wm-key .k3 { background: #3b1786; }
.wm-key .k2 { background: #6a3fd4; }
.wm-forecast { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #f7f3ff; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.wm-forecast b { color: var(--plum); }
.wm-fc-label { margin-right: 4px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.wm-forecast select { height: 30px; padding: 0 30px 0 12px; font-size: 14px; }
.wm-ahead-label { margin-left: 8px; }
.wm-fc-label { background: #f2b705; color: var(--plum); }
.wm-ahead button[aria-pressed="true"] { background: #f2b705; border-color: #f2b705; color: var(--plum); }
.wm-ahead button { border-color: #f4d675; }
.wm-fc-why { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
/* recognised words (passive, VOCAB_TIERS_PLAN): a faint dotted underline, quieter than said or saved */
#watchTranscript .ww.rec { text-decoration: underline solid rgb(91 43 201 / .3); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.watch-legend .rec { text-decoration: underline solid rgb(91 43 201 / .3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* the word map's six tiers (VOCAB_TIERS_PLAN) */
.wm-key .k0 { background: #f3f0f8; box-shadow: inset 0 0 0 1px #e4dbfa; } .wm-key .k1 { background: #e3d9f8; } .wm-key .k2 { background: #c7b2f4; }
.wm-key .k3 { background: #9a76ec; } .wm-key .k4 { background: #6a3fd4; } .wm-key .k5 { background: #3b1786; }
.wm-key .k0 { background: #f5f3f9; box-shadow: inset 0 0 0 1px #e4dbfa; } .wm-key .k1 { background: #c4b2f1; } .wm-key .k2 { background: #a68aee; }
.wm-key .k3 { background: #8a5cf0; } .wm-key .k4 { background: #5f33cf; } .wm-key .k5 { background: #34127a; }

/* read-along (15 Nov 2026): the sentence being spoken lights up; a fix shows what you said, and why, on hover or tap */
.loop-natural .ls { border-radius: 4px; transition: background-color .2s; }
.loop-natural .ls.speaking { background: #efe8fd; box-shadow: 0 0 0 3px #efe8fd; }
.fix-card { position: fixed; z-index: 90; max-width: 300px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--edge, #e4dbfa);
  box-shadow: 0 14px 30px -14px rgb(43 18 68 / .45); font-size: 14px; color: var(--ink-2); pointer-events: none; }
.fix-card .fc-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.fix-card s { font-size: 16px; color: var(--critical, #c63a32); text-decoration-thickness: 1.5px; }
.fix-card .fc-why { margin: 6px 0 0; line-height: 1.4; color: var(--plum); }
mark.hl { cursor: help; }
body:has(#practice.looping:not(.hidden)) .player { display: none !important; }   /* the loop has its own play and speed */

/* Conversations, one card (15 Nov 2026): the read-along, then any changes that couldn't be pinned to the text */
#feedback .read-along { margin: 0 0 18px; }
#feedback .read-along .loop-natural { font-size: 19px; line-height: 1.65; }
.other-changes summary { cursor: pointer; list-style: none; } .other-changes summary::-webkit-details-marker { display: none; }
.other-changes summary h2 { display: inline; font-size: 22px; }
.other-changes ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.oc-pair { margin: 0; font-size: 17px; } .oc-pair s { color: var(--ink-3); } .oc-pair b { color: var(--plum); }
.oc-why { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) { .read-along { grid-template-columns: 1fr; } .read-along > .play-btn { justify-self: start; } }

/* Verb focus, one target per card (15 Nov 2026): the task in the label, an empty circle beside the word that fills when
   you say it, a glow while you're recording, and the card sliding away once it's used */
:root[data-look="papel"] .deck-card .deck-row { gap: 10px; }
:root[data-look="papel"] .deck-card .deck-verb { flex: 0 1 auto; white-space: nowrap; }   /* its own width; the tense menu gives way */
:root[data-look="papel"] .deck-card .deck-say { flex: 0 0 auto; }
:root[data-look="papel"] .deck-card .deck-check { display: inline-block; flex: 0 0 auto; width: 26px; height: 26px; margin: 0; border-radius: 50%;
  background: none; box-shadow: inset 0 0 0 2px var(--accent-line, #cdbcf3); vertical-align: middle; }
:root[data-look="papel"] .deck-card .deck-check.said { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px; }
:root[data-look="papel"] .deck-card .deck-verb.said .deck-check { display: none; }
.deck-label .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.noun-card .deck-word { font-size: .9em; }
body:has(#micBtn[aria-pressed="true"]) :root[data-look="papel"] .deck-card, body:has(#micBtn[aria-pressed="true"]) .deck-card {
  box-shadow: 0 0 0 3px #efe8fd, 0 18px 40px -22px rgb(91 43 201 / .55); }
@media (prefers-reduced-motion: no-preference) {
  body:has(#micBtn[aria-pressed="true"]) .deck-check:not(.said) { animation: deck-listen 1.6s ease-in-out infinite; }
  @keyframes deck-listen { 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px #efe8fd; } }
  .deck-check.said { animation: tick-pop .4s var(--ease-out) both; }
  .deck-card.deck-away { animation: deck-away .32s var(--ease-out) forwards; }
  @keyframes deck-away { to { opacity: 0; transform: translateX(-70px) rotate(-5deg); } }
}
/* the word keeps its real size; a long one pushes the tense menu onto its own line instead of shrinking or overlapping */
:root[data-look="papel"] .deck-card .deck-head { flex-wrap: wrap; row-gap: 10px; }
:root[data-look="papel"] .deck-card .deck-name { flex: 0 1 auto; min-width: auto; }
:root[data-look="papel"] .deck-card .deck-verb { min-width: auto; overflow: visible; }
/* forms you've already said right (15 Nov 2026): faded with a small tick, so your eye goes to the ones you still need */
.deck-table tr.done th, .deck-table tr.done td { opacity: .38; }
.deck-table tr.done td:first-of-type::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%235b2bc9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.deck-table tr:not(.done) td:first-of-type { font-weight: 600; }

/* Transcripts (15 Nov 2026): words you've said are clearly highlighted, not just tinted */
:root[data-look="papel"] #watchTranscript .ww.said, :root[data-look="papel"] .watch-legend .said {
  color: var(--plum); background: #ece4fd; border-radius: 4px; box-shadow: 0 0 0 2px #ece4fd; font-weight: 500; }

/* The word popover in the brand: a white card, the word and its English, and two buttons side by side */
:root[data-look="papel"] .translate-pop { background: #fff; color: var(--ink-2); border: 1.5px solid var(--edge, #e4dbfa); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 18px 40px -18px rgb(43 18 68 / .45); }
:root[data-look="papel"] .translate-pop .tp-src { font-size: 13px; opacity: 1; color: var(--ink-3); }
:root[data-look="papel"] .translate-pop .tp-out { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--plum); line-height: 1.2; }
:root[data-look="papel"] .translate-pop .tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
:root[data-look="papel"] .translate-pop .tp-actions button { margin: 0; height: 34px; padding: 0 14px; border-radius: 999px; font: 600 14px var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
:root[data-look="papel"] .translate-pop .tp-recognise { background: #fff; color: var(--plum); border: 1.5px solid var(--accent-line, #cdbcf3); }
:root[data-look="papel"] .translate-pop .tp-recognise:hover { border-color: var(--accent); }
:root[data-look="papel"] .translate-pop .tp-learn { background: var(--primary-grad, var(--accent)); color: #fff; border: 0; box-shadow: 0 8px 16px -10px rgb(91 43 201 / .7); }
:root[data-look="papel"] .translate-pop .tp-learned { display: inline; margin: 0; font-size: 13.5px; color: var(--plum); opacity: 1; }
:root[data-look="papel"] .translate-pop .tp-learned .linkish { font-size: 13.5px; }
.translate-pop .tp-said { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.translate-pop .tp-said .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* A video open on a wide screen: more room for the video and longer transcript rows (15 Nov 2026) */
@media (min-width: 901px) {
  body.watching .wrap { max-width: 1480px; }
  body.watching .watch-stage { grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: 24px; }
}

/* Watch challenge (15 Nov 2026): a line under the player that fills as it plays, with its checkpoints */
.challenge { margin: 14px 0 0; }
.challenge-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.challenge-head b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--plum); }
.challenge-count { font-size: 14px; color: var(--ink-3); }
.challenge-track { position: relative; height: 8px; margin: 0 9px; border-radius: 999px; background: #ece9f2; }
.challenge-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, var(--brand-purple)); transition: width .3s linear; }
.challenge-track .cp { position: absolute; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 2.5px solid #cdbcf3; transition: background-color .2s, border-color .2s, transform .2s; }
.challenge-track .cp.done { background: var(--brand-purple); border-color: var(--brand-purple); }
.challenge-track .cp.done::after { content: ""; position: absolute; inset: 3px; background: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.challenge-track .cp.skipped { background: #f6f4fa; border-color: #d9d4e3; border-style: dashed; }
.challenge-track .cp.here { border-color: #f2b705; background: #fff7d6; transform: translate(-50%, -50%) scale(1.25); }
@media (prefers-reduced-motion: no-preference) { .challenge-track .cp.here { animation: cp-pulse 1.4s ease-in-out infinite; } }
@keyframes cp-pulse { 50% { box-shadow: 0 0 0 7px rgb(242 183 5 / .25); } }
.watch-say.at-checkpoint .watch-say-text b { color: var(--brand-purple); }
.watch-say .watch-skip { margin-left: auto; }
.watch-say .watch-skip:not(.hidden) + .watch-done { margin-left: 12px; }
.challenge-end { margin: 14px 0 0; padding: 18px 20px; }
.challenge-end-title { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; }
.challenge-end p { margin: 6px 0 12px; }
.challenge-end .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Speak (15 Nov 2026): the Verb focus card waits until you start speaking or writing, so the page's one job is clear;
   then it slides in (from the side on a wide screen, from below on a narrow one) */
.practice:not(.describing) #compose:not(.has-text):not(.listening) ~ #targets { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .practice:not(.describing) #compose:is(.has-text, .listening) ~ #targets { animation: carta-in .5s cubic-bezier(.25, 1, .5, 1) both; }
  @keyframes carta-in { from { opacity: 0; transform: translateX(36px); } }
  @media (max-width: 1099px) { @keyframes carta-in { from { opacity: 0; transform: translateY(28px); } } }
}

/* The blurred table's hint: an eye in a round button instead of "Try it first · tap to reveal" (15 Nov 2026).
   The table's own label still says what it does ("Show volver in the preterite") for screen readers. */
:root[data-look="papel"] .deck-card .deck-forms[role="button"]:not(.open)::after, .deck-card .deck-forms[role="button"]:not(.open)::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--accent-line, #cdbcf3); background: var(--surface, #fff) no-repeat center / 24px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b2bc9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  box-shadow: 0 6px 18px -10px rgb(43 18 68 / .4); pointer-events: none; }
.deck-card .deck-forms[role="button"] { position: relative; }

/* the example inside the grey table box: under the table, its Spanish blurred with the table until you look */
.deck-forms .deck-tip { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgb(91 43 201 / .12); text-align: left; }
.deck-forms .deck-tip > * { transition: filter .2s ease-out; }
.deck-forms[role="button"]:not(.open) .deck-tip > * { filter: blur(5px); user-select: none; }   /* the whole example, head and English too */
@media (hover: hover) { .deck-forms[role="button"]:hover .deck-tip > *, .deck-forms[role="button"]:hover .deck-table { filter: none; user-select: auto; } }   /* one box: it all clears at once */
.deck-card .deck-forms .deck-tip { margin: 10px 14px 0; padding: 12px 0 12px; }
.deck-blur { position: relative; }
.deck-forms[role="button"]:not(.open) .deck-blur.eye-on-table::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; box-sizing: border-box;
  border-radius: 50%; border: 1.5px solid var(--accent-line, #cdbcf3); background: var(--surface, #fff) no-repeat center / 24px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b2bc9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  box-shadow: 0 6px 18px -10px rgb(43 18 68 / .4); pointer-events: none; }
@media (hover: hover) { .deck-forms[role="button"]:hover .deck-blur::after { display: none; } }
/* the grey box last on the card: the same space under it as beside it */
.deck-card > .deck-forms:last-child { margin-bottom: 16px; }

/* New idea card (docs/TEACHING_PLAN.md): the deck card's frame, with a title, the idea, examples to hear, a frame to
   try, and the listening checks */
.idea-label { background: #fff4c7; color: #6b4e00; }
.idea-title { margin: 10px 0 6px; font-family: var(--display, var(--serif)); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--plum, var(--brand-plum)); }
.idea-text { margin: 0 0 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.idea-limit { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.idea-examples { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #f7f3fe; }
.idea-ex { display: flex; gap: 10px; align-items: flex-start; }
.idea-ex .deck-say { flex: none; margin-top: 2px; }
.idea-ex .deck-ex { margin: 0; }
.idea-ex .deck-ex b { color: var(--accent); }
.idea-ex .deck-ex-en { margin: 2px 0 0; }
.idea-frame { margin: 8px 0 12px; font-size: 15px; color: var(--ink-2); }
.idea-frame b { font-family: var(--serif); color: var(--plum, var(--brand-plum)); }
.idea-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.idea-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.idea-actions .ico { width: 18px; height: 18px; }
.idea-hint { font-size: 13px; color: var(--ink-3); }
.idea-progress { margin: 4px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.idea-listen { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: #f7f3fe; min-height: 48px; }
.idea-play { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--accent-line, #cdbcf3);
  background: var(--surface, #fff); color: var(--accent); cursor: pointer; }
.idea-play .ico { width: 22px; height: 22px; }
.idea-listen .deck-ex { margin: 0; }
.idea-question-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.idea-question { margin: 0 0 8px; font-weight: 600; font-size: 15.5px; }
.idea-options { display: flex; flex-direction: column; gap: 8px; }
.idea-option { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--accent-line, #cdbcf3); background: var(--surface, #fff);
  font: 500 15px/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.idea-option:hover:not(:disabled) { border-color: var(--accent); }
.idea-option.right { border-color: var(--brand-purple); background: #efe7ff; }
.idea-option.wrong { border-color: var(--critical, #c0392b); background: #fdecea; }
.idea-option:disabled { cursor: default; }
.idea-why { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.idea-next { margin: 12px 0 16px; }
/* the new idea's spoken prompts in the warm-up */
.idea-prompt { max-width: 560px; }
.idea-prompt .idea-progress { display: flex; align-items: center; gap: 4px; color: var(--accent); }
.idea-prompt .idea-progress .ico { width: 16px; height: 16px; }
.idea-cue { margin: 6px 0 14px; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--plum, var(--brand-plum)); }
.idea-say { display: flex; align-items: center; gap: 10px; }
.idea-say .idea-mic { flex: none; width: 52px; height: 52px; }
.idea-say-text { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--accent-line, #cdbcf3);
  font: 400 17px/1 var(--serif); background: var(--surface, #fff); color: var(--ink); }
.idea-say-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.idea-result { padding: 12px 14px; border-radius: 14px; background: #f7f3fe; }
.idea-result.right { background: #efe7ff; }
.idea-you { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-family: var(--serif); font-size: 17px; }
.idea-tag { flex: none; padding: 2px 10px; border-radius: 999px; font: 700 12.5px/1.6 var(--font); background: var(--brand-purple); color: #fff; }
.idea-result.wrong .idea-tag { background: #fff4c7; color: #6b4e00; }
.idea-model { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--serif); font-size: 17px; color: var(--plum, var(--brand-plum)); }
.idea-prompt-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
/* Your path: automatic or your own focus */
.path-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 18px; }
.path-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--accent-line, #cdbcf3);
  background: var(--surface, #fff); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.path-opt b { font-size: 17px; color: var(--plum, var(--brand-plum)); }
.path-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(91 43 201 / .15); background: #faf7ff; }
.path-rec { font-size: 12px; font-weight: 700; color: var(--accent); }
.path-note { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.loop-expected { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #fff4c7; color: #6b4e00; font-size: 14px; font-weight: 600; }
.loop-expected .ico { width: 16px; height: 16px; }
.idea-card > :last-child { margin-bottom: 18px; }

/* A new idea, before you speak (docs/TEACHING_PLAN.md): a quiet invitation under the question; tapping it opens the card
   beside the question with nothing recording */
.idea-invite { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 0; }
.idea-invite.hidden { display: none; }
.idea-invite-go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px 6px 12px; border-radius: 999px;
  border: 1.5px solid #f2d36b; background: #fff8dc; color: #4a3600; font: 500 15px/1.3 var(--font); cursor: pointer; }
.idea-invite-go:hover { border-color: #f2b705; }
.idea-invite-go .ico { width: 18px; height: 18px; color: #b07f00; flex: none; }
.idea-invite-go b { font-weight: 700; }
#practice.learning #targets { display: block !important; }
@media (prefers-reduced-motion: no-preference) { #practice.learning #targets { animation: carta-in .5s cubic-bezier(.25, 1, .5, 1) both; } }
/* Discover is only the lesson (16 Nov 2026): the question, the mic and the other ways in wait for Talk, and the card
   takes the main column. On "I'm ready to talk" it moves into the deck's place and the question arrives. */
#practice.learning :is(.greet, #question, #questionMore, .question-en, #compose, .mode-menu, .first-guide) { display: none !important; }
#practice.learning { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "head" "tiles" !important;
  grid-template-rows: auto auto !important; align-content: start; }
#practice.learning .home { text-align: left; width: 100%; max-width: 720px; justify-self: start; }
#practice.learning #targets { justify-self: start; width: 100%; max-width: 720px; max-height: none !important; overflow: visible !important;
  border-top: 0; padding-top: 0; }
#practice.learning #tiles { display: block; }
#practice.learning .idea-card { max-width: none; width: 100%; padding: 28px 30px; }
#practice.learning .idea-title { font-size: clamp(30px, 3.4vw, 40px); }
#practice.learning .deck-ex { font-size: 19px; }
.idea-checks-link { display: inline-flex; align-items: center; gap: 6px; }
.idea-checks-link .ico { width: 17px; height: 17px; }
@media (max-width: 640px) { #practice.learning .idea-card { padding: 20px 18px; } }
.idea-actions .linkish { font-size: 15px; }

/* One session's steps (docs/TEACHING_PLAN.md): Learn · Speak · Warm-up · Review, shown once a session has begun */
.flow-steps { display: flex; align-items: center; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; row-gap: 8px; }
.flow-steps.hidden { display: none; }
.flow-step { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font: 600 14px/1 var(--font); }
.flow-step + .flow-step::before { content: ""; width: 36px; height: 2px; margin: 0 10px; border-radius: 2px; background: #e4dbfa; }
.flow-step.done + .flow-step::before, .flow-step.now::before { background: #8b5cf6; }
.flow-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d9cff3; background: var(--surface, #fff);
  font-size: 12.5px; color: var(--ink-3); }
.flow-dot .ico { width: 14px; height: 14px; }
.flow-step.done .flow-dot { border-color: var(--brand-purple); background: var(--brand-purple); color: #fff; }
.flow-step.now { color: var(--plum, var(--brand-plum)); }
.flow-step.now .flow-dot { border-color: var(--brand-purple); color: var(--brand-purple); box-shadow: 0 0 0 4px rgb(91 43 201 / .14); }
@media (max-width: 640px) { .flow-step + .flow-step::before { width: 16px; margin: 0 6px; } .flow-label { font-size: 13px; } }
.idea-again { margin: 0 0 10px; }
.idea-again summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.idea-again[open] summary { margin-bottom: 8px; }
.proof-idea b { color: var(--accent); }

/* Today (15 Nov 2026): the page you land on. While no session is under way the question and the mic wait behind Start. */
#practice.home-idle :is(.greet, #question, #questionMore, .question-en, #compose, #targets, .mode-menu, .first-guide) { display: none !important; }
.home-today { display: block; max-width: 820px; padding: 18px 0 8px; }
.home-today.hidden { display: none; }
#practice.home-idle .home { width: 100%; max-width: none; grid-column: 1 / -1; }
.today-head { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; color: var(--plum); }
.today-sub { margin: 10px 0 30px; font-size: 18px; color: var(--ink-3); }
.today-go { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 30px 0 34px; }
.today-start { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; justify-content: center; }
.today-start .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.today-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.today-fig { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1.5px solid #e4dbfa; }
.today-fig .fig-label { font-size: 14px; color: var(--ink-3); }
.today-fig b { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--plum); }
.today-fig b small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.today-fig .fig-bar { display: block; height: 7px; margin-top: 6px; border-radius: 4px; background: #efe9fb; overflow: hidden; }
.today-fig .fig-bar i { display: block; height: 100%; border-radius: inherit; background: var(--spark, #f2b705); }
.today-fig .fig-up { font-size: 14px; font-weight: 600; color: var(--brand-purple); }
.today-fig .fig-steps { display: flex; gap: 4px; margin-top: 8px; }
.today-fig .fig-steps i { flex: 1; height: 7px; border-radius: 4px; background: #efe9fb; }
.today-fig .fig-steps i.done { background: var(--brand-purple); }
.today-fig .fig-steps i.now { background: #b9a3f0; }

/* The session's path: four stops on a line. Big on Today, compact at the top of a session. */
.today-path { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 640px; margin: 0; padding: 0; list-style: none; }
.today-path.hidden { display: none; }
.path-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.path-stop + .path-stop::before { content: ""; position: absolute; top: 28px; right: 50%; width: 100%; height: 3px; border-radius: 2px; background: #e4dbfa; z-index: 0; }
.path-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #f4f0fd; border: 2px solid #b9a3f0; color: var(--brand-purple); }
.path-dot .ico { width: 26px; height: 26px; }
.path-stop.learn .path-dot { background: #fff4c7; border-color: #f2b705; color: #8a6400; }
.path-label { font-weight: 700; font-size: 16px; color: var(--plum); }
.path-note { font-size: 13.5px; color: var(--ink-3); }
.flow-steps.today-path { max-width: 460px; margin: 0 0 18px; }
.flow-steps .path-dot { width: 36px; height: 36px; }
.flow-steps .path-dot .ico { width: 18px; height: 18px; }
.flow-steps .path-stop + .path-stop::before { top: 17px; }
.flow-steps .path-label { font-size: 13.5px; color: var(--ink-3); }
.flow-steps .path-stop.done .path-dot { background: var(--brand-purple); border-color: var(--brand-purple); color: #fff; }
.flow-steps .path-stop.done + .path-stop::before, .flow-steps .path-stop.now::before { background: #8b5cf6; }
.flow-steps .path-stop.now .path-dot { box-shadow: 0 0 0 5px rgb(91 43 201 / .14); background: #fff; border-color: var(--brand-purple); }
.flow-steps .path-stop.now .path-label { color: var(--plum); }
@media (prefers-reduced-motion: no-preference) { .flow-steps .path-stop.now .path-dot { animation: cp-pulse 1.8s ease-in-out infinite; } }
@media (max-width: 640px) { .path-dot { width: 46px; height: 46px; } .path-stop + .path-stop::before { top: 22px; } .path-note { font-size: 12px; } .today-sub { margin-bottom: 22px; } }
@media (max-width: 640px) {
  .home-today { text-align: center; padding-top: 6px; }
  .today-head { font-size: 40px; }
  .today-go { flex-direction: column; gap: 10px; margin: 24px 0 24px; }
  .today-start { width: 100%; }
  .today-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .today-fig { padding: 10px 8px; border-radius: 14px; align-items: center; }
  .today-fig .fig-label { font-size: 12px; line-height: 1.25; }
  .today-fig b { font-size: 22px; }
  .today-fig b small { display: block; font-size: 12px; }
  .today-fig .fig-up { font-size: 12px; }
}


/* ===========================================================================================================
   The session path (16 Nov 2026 handoff): a four-stage path beside one card on a desktop, a four-stop strip above it
   on a phone. Everything is scoped to #practice.cs-path (Speak, free talk; not Describe, Decks or a first take), so
   the other pages keep their look. One type, spacing, radius and button system for every step of a session.
   =========================================================================================================== */
.cs-main { display: contents; }
#practice.cs-path, .cs-rail {
  --cs-surface: #fff; --cs-ink: var(--brand-plum); --cs-body: #4c4655; --cs-muted: var(--brand-muted);
  --cs-purple: var(--brand-purple); --cs-purple-hover: #4a20ac; --cs-purple-soft: var(--brand-purple-soft); --cs-yellow: #f2bd14; --cs-yellow-soft: var(--brand-yellow-soft);
  --cs-line: #ddd7e5; --cs-control-line: #82778f; --cs-focus: #7042d6; --cs-error: #a62f4a;
  --cs-ui: "Archivo", system-ui, -apple-system, sans-serif; --cs-heading: "DM Sans", "Archivo", system-ui, sans-serif; --cs-spanish: "DM Sans", "Archivo", system-ui, sans-serif;
}
/* handwriting is the logo's alone: every heading inside a session that used the display face takes the serif instead */
#practice.cs-path { --display: "DM Sans", "Archivo", system-ui, sans-serif; --display-weight: 400; --display-adjust: none; --display-track: 0; }
/* the page scrolls as one document: no fixed-height screen, no box scrolling inside another */
body.on-practice:has(#practice.cs-path:not(.hidden)) .wrap { height: auto; min-height: 100dvh; max-width: 1280px; }
:root[data-look] #practice.cs-path:not(.hidden) { display: grid !important; flex: none; min-height: 0;
  grid-template-columns: 264px minmax(0, 1fr) !important; grid-template-areas: "rail main" !important; grid-template-rows: auto !important;
  column-gap: 24px; row-gap: 0; align-items: start; align-content: start; padding: 24px 0 48px; }
#practice.cs-path .cs-rail { grid-area: rail; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
#practice.cs-path .cs-main { grid-area: main; position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: 32px; border: 1px solid var(--cs-line); border-radius: 20px; background: var(--cs-surface); box-shadow: 0 6px 20px rgba(43, 18, 68, .06);
  font-family: var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path :focus-visible { outline: 3px solid var(--cs-focus); outline-offset: 3px; }
#practice.cs-path :is(.greet, #flowSteps, .mode-switch) { display: none !important; }

/* buttons: one solid purple action, one outlined secondary, one underlined link. No gradients, no glows. */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 12px;
  font: 600 16px/1.25 var(--cs-ui, "Archivo", sans-serif); text-align: center; cursor: pointer; text-decoration: none; transition: background-color .18s, border-color .18s; }
.cs-btn .ico { width: 20px; height: 20px; flex: none; }
.cs-primary { border: 0; background: var(--brand-purple); background-image: none; color: #fff; box-shadow: none; }
.cs-primary:hover:not(:disabled) { background: #4a20ac; }
.cs-primary:disabled { opacity: .6; cursor: not-allowed; }
.cs-secondary { border: 1px solid #82778f; background: #fff; color: var(--brand-plum); }
.cs-secondary:hover:not(:disabled) { border-color: var(--brand-purple); background: #faf8fd; }
.cs-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--brand-purple);
  font: 600 16px/1.25 var(--cs-ui, "Archivo", sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cs-link:hover { color: #4a20ac; }
.cs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; padding-top: 20px; border-top: 1px solid var(--cs-line, #ddd7e5); }
.cs-eyebrow { margin: 0; font: 600 13px/1.4 var(--cs-ui, "Archivo", sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--cs-muted, var(--brand-muted)); }
@media (prefers-reduced-motion: no-preference) { .cs-primary:active:not(:disabled) { transform: translateY(1px); } }

/* the path: four rows joined by a line; the current one purple-edged, done ones ticked, skipped ones dashed */
.cs-rail.hidden { display: none !important; }
.cs-path { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cs-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px;
  border: 1px solid var(--cs-line); border-radius: 12px; background: var(--cs-surface); transition: background-color .22s, border-color .22s; }
.cs-step + .cs-step::before { content: ""; position: absolute; left: 35px; top: -17px; width: 1px; height: 16px; background: var(--cs-control-line); }
.cs-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--cs-control-line); background: var(--cs-surface);
  font: 600 16px/1 var(--cs-ui); font-variant-numeric: tabular-nums; color: var(--cs-ink); }
.cs-num .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.cs-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-name { font: 700 18px/1.25 var(--cs-ui); color: var(--cs-ink); }
.cs-sub { font-size: 14px; line-height: 1.4; color: var(--cs-muted); }
.cs-badge { align-self: start; padding: 2px 10px; border-radius: 8px; background: var(--cs-yellow-soft); font: 700 13px/1.6 var(--cs-ui); color: var(--cs-ink); }
.cs-step.is-current { border-color: var(--cs-purple-soft); background: var(--cs-purple-soft); box-shadow: inset 3px 0 0 var(--cs-purple); }
.cs-step.is-current .cs-num { border-color: var(--cs-purple); background: var(--cs-purple); color: #fff; }
.cs-step.is-completed .cs-num { border-color: var(--cs-purple); color: var(--cs-purple); }
.cs-step.is-completed + .cs-step::before { background: var(--cs-purple); }
.cs-step:is(.is-skipped, .is-not-needed) .cs-num { border-style: dashed; color: var(--cs-muted); }
.cs-step:is(.is-skipped, .is-not-needed) .cs-name { color: var(--cs-body); }
.cs-step.learn:not(.is-skipped):not(.is-not-needed) .cs-sub { color: var(--cs-body); }   /* the idea's name, worth reading */

/* Progress inside a step (16 Nov 2026, the user's idea): done steps are solid purple with a tick; the current one is a
   ring that fills as you go, smoothly while you record, a chunk at a time through prompts and cards. --p is 0–1, set by
   renderFlow() from what has really been done. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.cs-step.is-current .cs-num { border: 0; color: var(--cs-purple); font-weight: 700;
  background: radial-gradient(closest-side, #fff calc(100% - 5px), transparent calc(100% - 4.5px)),
    conic-gradient(var(--cs-purple) calc(var(--p, 0) * 1turn), #dcd2f2 0);
  transition: --p .6s cubic-bezier(.25, 1, .5, 1); }
.cs-step.is-completed .cs-num { border-color: var(--cs-purple); background: var(--cs-purple); color: #fff; }
.cs-now, .cs-goal-short { display: none; }

/* Speaking today: the recorded minutes against the goal; typed time on its own line */
.cs-goal { padding-top: 20px; border-top: 1px solid var(--cs-line); }
.cs-goal[hidden] { display: none; }
.cs-goal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; }
.cs-goal-head b { font: 700 18px/1.25 var(--cs-ui); color: var(--cs-ink); }
.cs-goal-head span { font-size: 14px; color: var(--cs-muted); font-variant-numeric: tabular-nums; }
.cs-goal-num { margin: 4px 0 10px; font-size: 16px; color: var(--cs-body); font-variant-numeric: tabular-nums; }
.cs-goal-bar { display: block; height: 8px; border-radius: 4px; background: #ece7f3; overflow: hidden; }
.cs-goal-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cs-purple); transition: width .2s linear; }
.cs-goal-typed { margin: 8px 0 0; font-size: 14px; color: var(--cs-muted); }

/* the card's heading: the step's name and a short status (the path already says which number it is) */
.cs-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; padding-bottom: 16px; border-bottom: 1px solid var(--cs-line); }
.cs-stage.hidden { display: none !important; }
.cs-stage-name { margin: 0; font: 700 22px/1.2 var(--cs-ui); color: var(--cs-ink); }
.cs-stage-name:focus:not(:focus-visible), #loop :is(h2, .loop-step):focus:not(:focus-visible) { outline: none; }
.cs-stage-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cs-muted); }
.cs-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cs-error); }
#practice.cs-path .home { width: 100%; max-width: none; text-align: left; }
#practice.cs-path .mode-menu { position: absolute; top: 28px; right: 32px; z-index: 5; margin: 0; }
#practice.cs-path:is(.home-idle, .learning, .looping) .cs-stage ~ .home .mode-menu { display: none !important; }

/* Today: the session to come */
#practice.cs-path .home-today { max-width: none; padding: 0; text-align: left; }
#practice.cs-path .home-today > * + * { margin-top: 16px; }
#practice.cs-path .today-head { margin: 8px 0 0; font: 400 clamp(32px, 3.2vw, 40px)/1.2 var(--cs-heading); color: var(--cs-ink); letter-spacing: 0; }
#practice.cs-path .today-sub { margin: 8px 0 0; font-size: 18px; line-height: 1.5; color: var(--cs-body); }
.today-idea { display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--cs-yellow-soft); font-size: 16px; color: var(--cs-ink); }
.today-idea.hidden { display: none; }
.today-time { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line);
  font-size: 16px; color: var(--cs-body); }
.today-time b { color: var(--cs-ink); }
.today-time .ico { width: 22px; height: 22px; flex: none; color: var(--cs-ink); }
#practice.cs-path .today-go { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
#practice.cs-path .today-start { min-width: 240px; }
.today-note { margin: 0; font-size: 14px; color: var(--cs-muted); }

/* Talk: the question, its frame, the microphone, the verbs */
:root[data-look] #practice.cs-path #question.question { width: auto; margin: 0; padding: 0; max-width: none; font: 500 clamp(32px, 3.4vw, 46px)/1.2 var(--cs-spanish); letter-spacing: 0; color: var(--cs-ink); font-size-adjust: none;
  text-wrap: pretty; overflow-wrap: break-word; font-variation-settings: normal; }
:root[data-look] #practice.cs-path #question.question::before, :root[data-look] #practice.cs-path #question.question::after { content: none; }
:root[data-look] #practice.cs-path #question.question em { font-style: normal; color: inherit; }   /* no cloud or swoosh: one plain card */
#practice.cs-path .question-more { font-size: 22px; }
#practice.cs-path .question-en { margin: 8px 0 0; font-size: 18px; line-height: 1.5; color: var(--cs-body); }
#practice.cs-path .question-en .linkish { margin-left: 12px; font-size: 16px; color: var(--cs-purple); text-decoration-color: currentColor; }
.cs-frame { display: inline-block; margin: 16px 0 0; padding: 8px 14px; border-radius: 12px; background: var(--cs-yellow-soft); font-size: 16px; color: var(--cs-ink); }
.cs-frame b { font-family: var(--cs-spanish); font-size: 18px; font-weight: 500; }
#practice.cs-path #compose { width: 100%; max-width: none; margin: 0; padding: 0; justify-content: flex-start; align-items: stretch; justify-self: stretch; }
#practice.cs-path .dictate { justify-content: flex-start; gap: 12px 24px; }
:root[data-look] #practice.cs-path .dictate > #micBtn { min-width: 0; }   /* an older rule holds it at 290px, wider than a 320px phone's card */
#practice.cs-path .dictate > .mic-btn { box-sizing: border-box; max-width: 100%; min-width: 0; height: auto; min-height: 56px; padding: 12px 28px 12px 22px; border-radius: 12px; box-shadow: none; background: var(--cs-purple); }
#practice.cs-path .dictate > .mic-btn:hover { background: var(--cs-purple-hover); }
#practice.cs-path .dictate > .mic-btn .mic-say { font-size: 17px; font-weight: 600; letter-spacing: 0; }
#practice.cs-path .dictate > .mic-btn .ico { width: 22px; height: 22px; }
#practice.cs-path .dictate > .mic-btn[aria-pressed="true"] { background: var(--cs-ink); }
#practice.cs-path #compose.wrapping .dictate > .mic-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--cs-yellow); }
#practice.cs-path :is(.dict-line, .dictate) { justify-content: flex-start; }
#practice.cs-path .dict-timer { font-variant-numeric: tabular-nums; }
#practice.cs-path .type-link { font-size: 16px; font-weight: 600; color: var(--cs-purple); }
#practice.cs-path .take { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: left; }
#practice.cs-path .take-note { order: 1; margin: 0; font-size: 28px; }
#practice.cs-path .take-sum { order: 2; margin: 0; font-size: 18px; color: var(--cs-body); }
#practice.cs-path .take-words { order: 3; margin: 4px 0 0; }
#practice.cs-path #take .take-actions { order: 4; margin: 16px 0 0; }   /* the actions close the step, as on every other card */
#practice.cs-path .take-actions { justify-content: flex-start; gap: 12px 16px; padding-top: 20px; border-top: 1px solid var(--cs-line); }
#practice.cs-path .take-send { min-width: 0; height: auto; min-height: 52px; padding: 12px 24px; border-radius: 12px; box-shadow: none; background: var(--cs-purple);
  font: 600 16px/1.25 var(--cs-ui); color: #fff; }
#practice.cs-path .take-more { min-height: 52px; height: auto; padding: 12px 20px; border: 1px solid var(--cs-control-line); border-radius: 12px; font: 600 16px/1.25 var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path .take-drop .w { font-size: 16px; }
#practice.cs-path .compose-foot { padding-top: 16px; border-top: 1px solid var(--cs-line); }
#practice.cs-path #transcript { min-height: 180px; border-radius: 12px; border: 1px solid var(--cs-control-line); font-size: 18px; }
:root[data-look] #practice.cs-path:not(.describing) #targets { align-self: stretch; justify-self: stretch; width: 100%; max-width: none; max-height: none;
  overflow: visible; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--cs-line); }
#practice.cs-path:not(.learning) #tiles { display: block; }
#practice.cs-path:not(.learning) .deck-card { max-width: 560px; margin: 0; border: 1px solid var(--cs-line); border-radius: 12px; box-shadow: none; }

/* Learn: the idea, its rule, two examples to hear, a frame, then one way on */
:root[data-look] #practice.cs-path.learning #targets { padding-top: 0; border-top: 0; }
#practice.cs-path.learning .idea-card { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#practice.cs-path.learning .idea-card > * + * { margin-top: 16px; }
#practice.cs-path.learning .idea-card .deck-top { margin: 0; }
#practice.cs-path.learning .idea-title { margin: 0; font: 400 clamp(28px, 3vw, 36px)/1.2 var(--cs-heading); color: var(--cs-ink); }
#practice.cs-path.learning .idea-text { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--cs-yellow-soft); font-size: 18px; line-height: 1.5; color: var(--cs-ink); }
#practice.cs-path.learning .idea-limit { font-size: 16px; color: var(--cs-body); }
#practice.cs-path.learning .idea-examples { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: none; }
#practice.cs-path.learning .idea-ex { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0; padding: 16px;
  border: 1px solid var(--cs-line); border-radius: 12px; background: var(--cs-surface); }
#practice.cs-path.learning .idea-ex .deck-say { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cs-purple); color: var(--cs-purple); background: #fff; }
#practice.cs-path.learning .deck-ex { margin: 0; font: 500 24px/1.4 var(--cs-spanish); color: var(--cs-ink); }
#practice.cs-path.learning .deck-ex b { padding: 0 .12em; border-radius: 4px; background: var(--cs-yellow-soft); font-weight: 600; }
#practice.cs-path.learning .deck-ex-en { margin: 4px 0 0; font-size: 16px; color: var(--cs-body); }
#practice.cs-path.learning .idea-frame { display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--cs-yellow-soft); font-size: 16px; color: var(--cs-ink); }
#practice.cs-path.learning .idea-frame b { font-family: var(--cs-spanish); font-size: 18px; font-weight: 500; }
#practice.cs-path .idea-actions.cs-foot { margin-top: 24px; }
#practice.cs-path .idea-skip { margin-left: auto; }
#practice.cs-path.learning .idea-card > :last-child { margin-bottom: 0; }
#practice.cs-path.learning :is(.idea-option, .idea-next) { min-height: 48px; border-radius: 12px; }

/* Warm up and How it went: the loop, in the same card, at its own height (no inner scrolling) */
#practice.cs-path #loop:not(.hidden) { display: flex; flex-direction: column; height: auto; min-height: 0; max-width: none; margin: 0; overflow: visible; }
#practice.cs-path #loop .loop-head h2 { font: 400 32px/1.2 var(--cs-heading); color: var(--cs-ink); }
#practice.cs-path #loop .loop-sub { margin: 8px 0 16px; font-size: 18px; color: var(--cs-body); }
#practice.cs-path #loop .loop-step { font-size: 14px; letter-spacing: 0; color: var(--cs-muted); }
#practice.cs-path #loop .loop-progress { font-size: 16px; }
#practice.cs-path #loop .loop-progress.ready { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; border-radius: 12px; background: var(--cs-purple-soft); color: var(--cs-ink); }
#practice.cs-path #loop .loop-progress.ready .loop-see { margin-left: auto; min-height: 48px; }
#practice.cs-path #loop .loop-go { margin-top: 24px; padding-top: 20px; }
#practice.cs-path #loop .loop-go .submit-btn { min-height: 52px; height: auto; padding: 12px 24px; border-radius: 12px; box-shadow: none; font-size: 16px; }
#practice.cs-path #loop :is(.loop-hear, .hear-main) { height: auto; flex: none; }
#practice.cs-path #loop .loop-hear { border: 1px solid var(--cs-line); border-radius: 12px; box-shadow: none; }
#practice.cs-path #loop .hear-text { max-height: none; overflow: visible; }
#practice.cs-path #loop > .loop-body { flex: none; }
#practice.cs-path #loop > .loop-body > div:has(> .verdict), #practice.cs-path #loop > .loop-body .verdict { overflow: visible; }
#practice.cs-path #loop > .loop-body > .drill-actions { background: none; }
#practice.cs-path #loop .loop-lesson { border: 1px solid var(--cs-line); border-radius: 12px; box-shadow: none; }
#practice.cs-path #loop .loop-said { border: 1px solid var(--cs-line); border-radius: 12px; font-family: var(--cs-spanish); font-size: 20px; }
#practice.cs-path #loop .idea-say-text { height: 52px; border: 1px solid var(--cs-control-line); }
#practice.cs-path #loop .idea-cue { font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--cs-heading); color: var(--cs-ink); }
#practice.cs-path #loop:has(> .loop-step) .drill-top { display: none; }   /* "Fix i of N · Practice j of M" above says it */
#practice.cs-path #loop .drill-actions .btn { min-height: 48px; height: auto; padding: 10px 20px; border-radius: 12px; box-shadow: none; font: 600 16px/1.25 var(--cs-ui); }
#practice.cs-path #loop .drill-actions .btn.primary { border: 0; background: var(--cs-purple); background-image: none; color: #fff; }
#practice.cs-path #loop .drill-actions .btn.primary:hover:not(:disabled) { background: var(--cs-purple-hover); }
#practice.cs-path #loop .drill-actions .btn:not(.primary) { border: 1px solid var(--cs-control-line); background: #fff; color: var(--cs-ink); }
#practice.cs-path #loop :is(.drill-input, input[type="text"]) { border-radius: 12px; border-color: var(--cs-control-line); }
#practice.cs-path .dictate { display: flex !important; flex-direction: row; flex-wrap: wrap; align-items: center; }
#practice.cs-path .dictate > .mic-btn[aria-pressed="true"] { box-shadow: none; }
:root[data-look] #practice.cs-path .dictate > .mic-btn::before, :root[data-look] #practice.cs-path .dictate > .mic-btn::after { content: none !important; }   /* no halo: the status says it's recording */
/* the end of a session */
.cs-done-mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; background: var(--cs-yellow-soft); color: var(--cs-purple); }
.cs-done-mark .ico { width: 24px; height: 24px; stroke-width: 2.6; }
.cs-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--cs-line); border-radius: 12px;
  font-size: 18px; color: var(--cs-ink); font-variant-numeric: tabular-nums; }
.cs-facts .sep { color: var(--cs-muted); }
.cs-phrase { margin: 0 0 8px; }
.cs-phrase-es { margin: 6px 0 0; font: 500 clamp(26px, 2.8vw, 34px)/1.3 var(--cs-spanish); color: var(--cs-ink); }
.cs-note { margin: 16px 0 0; font-size: 14px; color: var(--cs-muted); }

/* 900–1199px: a narrower path */
@media (min-width: 900px) and (max-width: 1199px) {
  :root[data-look] #practice.cs-path:not(.hidden) { grid-template-columns: 232px minmax(0, 1fr) !important; }
  #practice.cs-path .cs-main { padding: 24px; }
  #practice.cs-path .mode-menu { top: 20px; right: 24px; }
}
/* under 900px: one line above the card (16 Nov 2026, the user's ask): four small rings, the step you're on with its
   status, and today's speaking time. The header's goal row and the card's own heading step aside to save the fold. */
@media (max-width: 899px) {
  body:has(#practice.cs-path:not(.hidden)) header #goal { display: none !important; }
  :root[data-look] #practice.cs-path:not(.hidden) { row-gap: 12px; padding-top: 4px; }
  #practice.cs-path .cs-rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  #practice.cs-path .cs-stage { display: none !important; }
  #practice.cs-path .cs-path { display: flex; flex-direction: row; gap: 10px; }
  #practice.cs-path .cs-step { display: block; padding: 0; }
  #practice.cs-path .cs-step + .cs-step::before { left: -10px; right: auto; top: 12px; width: 10px; height: 2px; }
  #practice.cs-path .cs-num { width: 26px; height: 26px; font-size: 12px; }
  #practice.cs-path .cs-step.is-current .cs-num { background: radial-gradient(closest-side, #fff calc(100% - 4px), transparent calc(100% - 3.5px)),
    conic-gradient(var(--cs-purple) calc(var(--p, 0) * 1turn), #dcd2f2 0); }
  #practice.cs-path .cs-num .ico { width: 14px; height: 14px; }
  #practice.cs-path .cs-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #practice.cs-path .cs-now { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin: 0; }
  #practice.cs-path .cs-now b { flex: none; font: 700 16px/1.2 var(--cs-ui); color: var(--cs-ink); }
  #practice.cs-path .cs-now span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--cs-muted); }
  #practice.cs-path .cs-goal-short { display: block; font-size: 13px; color: var(--cs-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
}
/* (older) under 900px, before the one line: kept for the parts the line doesn't override */
@media (max-width: 899px) {
  :root[data-look] #practice.cs-path:not(.hidden) { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "rail" "main" !important;
    row-gap: 16px; padding-top: 12px; }
  #practice.cs-path :is(.cs-rail, .cs-main) { justify-self: center; width: 100%; max-width: 720px; }
  #practice.cs-path .cs-main { padding: 24px; }
  #practice.cs-path .cs-goal { display: none; }
  .cs-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .cs-step { grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; gap: 6px; padding: 0; border: 0; background: none; text-align: center; }
  .cs-step.is-current { background: none; box-shadow: none; }
  .cs-step + .cs-step::before { left: calc(-50% + 14px); right: calc(50% + 18px); top: 16px; width: auto; height: 2px; }
  .cs-num { width: 32px; height: 32px; font-size: 14px; }
  .cs-num .ico { width: 16px; height: 16px; }
  .cs-sub, .cs-badge { display: none; }
  .cs-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
  .cs-step.is-current .cs-name { font-weight: 700; }
}
@media (max-width: 599px) {
  #practice.cs-path .cs-main { gap: 16px; padding: 20px; font-size: 16px; }
  #practice.cs-path .mode-menu { position: static; order: -1; margin: 0 0 12px; }
  #practice.cs-path .cs-stage-name { font-size: 19px; }
  :root[data-look] #practice.cs-path #question.question { font-size: clamp(28px, 7.8vw, 32px); }
  #practice.cs-path :is(.question-en, .today-sub) { font-size: 16px; }
  #practice.cs-path :is(.today-go, .cs-foot, .take-actions) { flex-direction: column; align-items: stretch; }
  #practice.cs-path :is(.today-go, .cs-foot, .take-actions) > :is(button, a) { width: 100%; min-width: 0; }
  #practice.cs-path .cs-btn, #practice.cs-path .take-send { min-height: 48px; }
  #practice.cs-path .idea-skip { margin-left: 0; justify-content: center; }
  #practice.cs-path .dictate > .mic-btn { width: 100%; }
  #practice.cs-path .dict-line { flex-basis: 100%; }
  #practice.cs-path .cs-facts { flex-direction: column; }
  #practice.cs-path .cs-facts .sep { display: none; }
  #practice.cs-path.learning .idea-ex { grid-template-columns: 44px minmax(0, 1fr); padding: 12px; gap: 12px; }
  #practice.cs-path.learning .deck-ex { font-size: 21px; }
  #practice.cs-path #loop .loop-head h2 { font-size: 28px; }
  #practice.cs-path #loop .loop-progress.ready .loop-see { margin-left: 0; width: 100%; }
}
@media (max-width: 599px) {   /* tighter on a phone, so each step's main button sits nearer the fold */
  #practice.cs-path .cs-main { gap: 12px; padding-top: 16px; }
  #practice.cs-path .home-today > * + * { margin-top: 12px; }
  #practice.cs-path .today-head { font-size: 28px; }
  #practice.cs-path .today-sub { margin-top: 4px; }
  #practice.cs-path .today-time { padding: 10px 0; font-size: 15px; }
  #practice.cs-path .today-go { gap: 8px; margin-top: 16px; }
  #practice.cs-path.learning .idea-card > * + * { margin-top: 12px; }
  #practice.cs-path.learning .idea-title { font-size: 26px; }
  #practice.cs-path.learning .idea-text { padding: 10px 12px; font-size: 16px; }
  #practice.cs-path.learning .idea-examples { gap: 8px; }
  #practice.cs-path.learning .idea-ex { padding: 10px 12px; }
  #practice.cs-path.learning .deck-ex { font-size: 19px; line-height: 1.35; }
  #practice.cs-path.learning .deck-ex-en { margin-top: 2px; font-size: 14px; }
  #practice.cs-path .idea-actions.cs-foot { margin-top: 16px; padding-top: 16px; gap: 8px; }
}
@media (max-width: 340px) { #practice.cs-path .cs-main { padding: 16px; } .cs-name { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  #practice.cs-path *, #practice.cs-path *::before, #practice.cs-path *::after, .cs-rail * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* on Learn and in the review the question's block is empty: it shouldn't take a row (and a gap) at the top of the card */
#practice.cs-path:is(.learning, .looping) .home { display: none; }

/* ===========================================================================================================
   The session as an app screen (16 Nov 2026, the user's ask): the page never scrolls on a screen 600px or taller. The
   card fills the space beside the path, so it's the same size on every step; each step's buttons sit on its bottom
   edge; if a step's content is taller than the card, only its middle scrolls. Talk on a wide screen puts the idea and
   verbs in a column beside the question; on a phone the microphone is pinned at the bottom, the idea and verbs above it.
   Under 600px tall (a phone on its side) the page scrolls as before, so nothing is cut off.
   =========================================================================================================== */
@media (min-height: 600px) {
  body.on-practice:has(#practice.cs-path:not(.hidden)) .wrap { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
  :root[data-look] #practice.cs-path:not(.hidden) { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr) !important; align-items: stretch; padding-bottom: 24px; }
  #practice.cs-path .cs-rail { align-self: start; }
  #practice.cs-path .cs-main { height: 100%; min-height: 0; overflow: hidden; }
  /* the part of each step that may scroll; its buttons stick to the bottom edge */
  #practice.cs-path:is(.home-idle) .home { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
  #practice.cs-path .home-today { flex: 1 0 auto; display: flex; flex-direction: column; }
  #practice.cs-path .home-today > * + * { margin-top: 16px; }
  #practice.cs-path .today-go { margin-top: auto !important; padding-top: 24px; }
  :root[data-look] #practice.cs-path.learning #targets { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex !important; flex-direction: column; }
  #practice.cs-path.learning #tiles { flex: 1 0 auto; display: flex; flex-direction: column; }
  #practice.cs-path.learning .idea-card { flex: 1 0 auto; display: flex; flex-direction: column; }
  #practice.cs-path :is(.idea-actions.cs-foot, #loop .loop-go) { position: sticky; bottom: 0; z-index: 2; margin-top: auto; background: var(--cs-surface); }
  #practice.cs-path .idea-actions.cs-foot { margin-top: auto !important; }
  #practice.cs-path.learning .idea-card > .idea-actions { margin-top: auto; }
  #practice.cs-path #loop:not(.hidden) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  #practice.cs-path #loop .loop-go { margin-top: auto; }
  /* Talk: the question and the microphone, the idea and verbs beside or above them, all inside the card */
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .cs-main { display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "stage" "home" "side" "mic"; gap: 16px; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .cs-stage { grid-area: stage; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .home { grid-area: home; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose { grid-area: mic; padding-top: 12px; border-top: 1px solid var(--cs-line); }
  :root[data-look] #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #targets { grid-area: side; display: block !important; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; padding: 0; border-top: 0; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #take .take-actions { margin-top: 8px; padding-top: 0; border-top: 0; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .deck-card { max-width: none; }
}
/* a wide screen: the idea and verbs get their own column, the question and microphone the other */
@media (min-height: 600px) and (min-width: 1100px) {
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .cs-main { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "stage stage" "home side" "mic side"; column-gap: 32px; row-gap: 20px; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose { align-self: end; padding-top: 0; border-top: 0; }
  :root[data-look] #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #targets { align-self: stretch; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) :is(.idea-limit, .idea-again) { display: none; }   /* Learn had the fine print */
}
/* a phone: the tab bar is fixed at the bottom, so the card stops above it */
@media (min-height: 600px) and (max-width: 899px) {
  body.on-practice:has(#practice.cs-path:not(.hidden)) .wrap { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  :root[data-look] #practice.cs-path:not(.hidden) { grid-template-rows: auto minmax(0, 1fr) !important; padding-bottom: 0; }
  #practice.cs-path:is(.cs-rail, .cs-main) { max-width: 720px; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) :is(.idea-limit, .idea-again) { display: none; }
}
/* the review hides the audio player bar (it has its own play button), so the space kept for the bar isn't needed */
@media (min-height: 600px) {
  /* one bottom margin for every step (the card's own 24px), whatever older rules keep for the player bar */
  body.on-practice:has(#practice.cs-path:not(.hidden)) .wrap, body.on-practice:has(#practice.cs-path.looping:not(.hidden)) .wrap { padding-bottom: env(safe-area-inset-bottom); }
  body.on-practice:has(#practice.cs-path:not(.looping):not(.hidden)):has(.player:not(.hidden)) .wrap { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* Talk: if the take's summary is taller than a small phone's card, the card scrolls, never cutting off Send */
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .cs-main { overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-height: 600px) and (max-width: 899px) {
  body.on-practice:has(#practice.cs-path:not(.hidden)) .wrap, body.on-practice:has(#practice.cs-path.looping:not(.hidden)) .wrap {
    padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ===========================================================================================================
   Round 2: "Everyday stories, illustrated" (16 Nov 2026 handoff, docs in the user's round-2 package). The same session
   structure in one modern sans (DM Sans, self-hosted), plum/purple/yellow with intent, an unboxed path, one stable card
   whose footer row never moves, a blocky illustration on Today only, and in-card pages instead of scrolling.
   =========================================================================================================== */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/fonts/dm-sans.ttf) format("truetype"); }
#practice.cs-path, .cs-rail {
  --cs-ink: var(--brand-plum); --cs-body: var(--brand-body); --cs-muted: var(--brand-muted); --cs-purple: var(--brand-purple); --cs-purple-hover: var(--brand-purple-hover); --cs-purple-soft: var(--brand-purple-soft);
  --cs-yellow: var(--brand-yellow); --cs-yellow-soft: var(--brand-yellow-soft); --cs-yellow-light: #fff8de; --cs-surface: #fff; --cs-surface-muted: #f6f4f9;
  --cs-line: var(--brand-line); --cs-control-line: var(--brand-control-line); --cs-ring-track: #d9cbf1; --cs-record: #ae2851;
  --cs-ui: "DM Sans", "Archivo", system-ui, -apple-system, sans-serif; --cs-heading: var(--cs-ui); --cs-spanish: var(--cs-ui);
  --display: var(--cs-ui); --display-weight: 650; --serif: var(--cs-ui); --font: var(--cs-ui);
  font-family: var(--cs-ui);
}
:root[data-look] body.on-practice:has(#practice.cs-path:not(.hidden)) { background: #f8f6fc; }
#practice.cs-path :is(h1, h2, h3, p, button, input, textarea, select, b, span, li) { font-family: inherit; }
#practice.cs-path :is(.cs-btn, .cs-link, .take-send, .take-more, #micBtn, .type-link, .btn, .cs-pager-btn) { font-family: var(--cs-ui); }
#practice.cs-path :focus-visible { outline: 3px solid var(--cs-purple); outline-offset: 3px; }
.cs-btn { min-height: 48px; padding: 12px 22px; font-weight: 650; font-size: 16px; line-height: 20px; }
.cs-primary { background: var(--cs-purple, var(--brand-purple)); }
.cs-primary:hover:not(:disabled) { background: var(--cs-purple-hover, var(--brand-purple-hover)); }
.cs-secondary { border: 1px solid var(--cs-control-line, var(--brand-control-line)); }
.cs-link { min-height: 44px; font-weight: 500; font-size: 15px; text-decoration-thickness: 1px; }
.cs-talk-links { display: none; }

/* the page around the card: header, a 196px path and the card, no hills */
@media (min-width: 900px) {
  :root[data-look] #practice.cs-path:not(.hidden) { grid-template-columns: 196px minmax(0, 1fr) !important; column-gap: 24px; padding-top: 16px; }
}
#practice.cs-path .cs-main { padding: 32px 32px 0; border-radius: 24px; border: 1px solid var(--cs-line); box-shadow: 0 8px 28px rgba(43, 18, 68, .055); gap: 0; }
#practice.cs-path .cs-main > * + * { margin-top: 0; }

/* the path: unboxed rows, the current one on pale lilac; numbers stay visible; a tick only once a step is done */
.cs-path { gap: 8px; }
.cs-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 0; border-radius: 16px; background: none; }
.cs-step.is-current { background: var(--cs-purple-soft); box-shadow: none; border: 0; }
.cs-step + .cs-step::before { left: 29px; top: -22px; width: 1.5px; height: 32px; background: var(--cs-line); }
.cs-step.is-completed + .cs-step::before { background: var(--cs-purple); }
.cs-num { width: 36px; height: 36px; border: 1.5px solid var(--cs-ring-track); font-size: 14px; font-weight: 650; background: #fff; }
.cs-step.is-completed .cs-num { border-color: var(--cs-purple); background: var(--cs-purple); color: #fff; }
.cs-step.is-current .cs-num { background: radial-gradient(closest-side, #fff calc(100% - 4px), transparent calc(100% - 3.5px)),
  conic-gradient(var(--cs-purple) calc(var(--p, 0) * 1turn), var(--cs-ring-track) 0); color: var(--cs-ink); }
.cs-step:is(.is-skipped, .is-not-needed) .cs-num { border-style: dashed; border-color: var(--cs-control-line); }
.cs-name { font-size: 19px; font-weight: 650; line-height: 1.25; letter-spacing: -.2px; }
.cs-sub { font-size: 14px; line-height: 20px; color: var(--cs-muted); }
.cs-badge { display: none; }
.cs-goal { margin-top: 8px; padding: 20px 8px 0; }
.cs-goal-head b { font-size: 15px; font-weight: 650; }
.cs-goal-num { margin: 6px 0 10px; font-size: 14px; }
.cs-goal-bar { height: 6px; background: var(--cs-ring-track); }

/* the card's own heading line: the step and where it stands, small; no rule under it */
.cs-stage { min-height: 0; padding: 0 0 16px; border-bottom: 0; }
.cs-stage-name { font-size: 15px; font-weight: 650; letter-spacing: 0; }
.cs-stage-status { margin-left: auto; font-size: 14px; color: var(--cs-muted); font-variant-numeric: tabular-nums; }

/* type: one family, a few sizes */
#practice.cs-path .today-head, #practice.cs-path.learning .idea-title, #practice.cs-path #loop .loop-head h2 {
  font-family: var(--cs-ui); font-weight: 650; letter-spacing: -.5px; color: var(--cs-ink); }
:root[data-look] #practice.cs-path #question.question { font-family: var(--cs-ui); font-size: 40px; line-height: 47px; font-weight: 550; letter-spacing: -.5px; text-wrap: balance; }
#practice.cs-path .question-more { font-family: var(--cs-ui); font-style: normal; font-size: 22px; color: var(--cs-body); }
#practice.cs-path .question-en { font-size: 18px; line-height: 27px; color: var(--cs-body); }
.cs-kicker { margin: 0; font: 650 15px/20px var(--cs-ui); color: var(--cs-ink); }
.cs-chip { display: inline-block; align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 8px; background: var(--cs-yellow-soft, var(--brand-yellow-soft));
  font: 500 15px/20px var(--cs-ui, sans-serif); color: var(--cs-ink, var(--brand-plum)); }

/* ---------- the footer row: the same place on every step ---------- */
#practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) {
  position: static; margin: auto 0 0 !important; min-height: 96px; padding: 24px 0; border-top: 1px solid var(--cs-line); background: none;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 12px; }
#practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > :is(.cs-link, .cs-note, .loop-later:first-child) { margin-right: auto; }
#practice.cs-path .idea-actions .idea-skip { order: -1; margin: 0 auto 0 0; }
#practice.cs-path #loop .loop-go .cs-note { margin: 0 auto 0 0; font-size: 15px; color: var(--cs-muted); }
#practice.cs-path #loop .loop-later { order: 2; }
#practice.cs-path #loop .loop-later { min-height: 48px; padding: 12px 22px; border: 1px solid var(--cs-control-line); border-radius: 12px; text-decoration: none; font: 650 16px/20px var(--cs-ui); color: var(--cs-ink); }

/* ---------- Today ---------- */
@media (min-height: 600px) {
  #practice.cs-path .home-today { padding: 0; }
  #practice.cs-path .home-today > * + * { margin-top: 0; }
  #practice.cs-path .today-go { margin-top: auto !important; padding-top: 24px; }
}
.today-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 32px; align-items: center; }
.today-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#practice.cs-path .today-head { margin: 0; font-size: 40px; line-height: 44.8px; }
#practice.cs-path .today-sub { margin: 0; font-size: 18px; line-height: 27px; color: var(--cs-body); }
#practice.cs-path .today-idea { margin-top: 4px; padding: 6px 12px; border-radius: 8px; font: 500 16px/22px var(--cs-ui); }
#practice.cs-path .today-time { margin: 4px 0 0; padding: 0; border: 0; font-size: 15px; color: var(--cs-muted); }
.today-cover { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: cover; object-position: 50% 54%; border-radius: 20px; background: #3a1e55; }
#practice.cs-path .today-note { font-size: 14px; }

/* ---------- Learn: one idea, open example rows, a try-frame bar ---------- */
#practice.cs-path.learning .idea-card .deck-top { display: none; }
:root[data-look] #practice.cs-path.learning #targets { max-width: none !important; width: auto; align-self: stretch; margin: 0; padding: 0; }
#practice.cs-path.learning #tiles, #practice.cs-path.learning .idea-card { align-self: stretch; width: auto; max-width: none; }
#practice.cs-path.learning .idea-card > * + * { margin-top: 16px; }
#practice.cs-path.learning .idea-title { font-size: 36px; line-height: 40.3px; }
#practice.cs-path.learning .idea-text { padding: 0; background: none; font-size: 18px; line-height: 27px; color: var(--cs-body); }
#practice.cs-path.learning .idea-again summary { font-size: 15px; }
#practice.cs-path.learning .idea-examples { gap: 20px; margin-top: 24px; }
#practice.cs-path.learning .idea-ex { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 0; border: 0; background: none; }
#practice.cs-path.learning .idea-ex .deck-say { border: 1.5px solid var(--cs-purple); }
#practice.cs-path.learning .deck-ex { font: 500 23px/32.2px var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path.learning .deck-ex b { padding: 0 .15em; border-radius: 6px; background: var(--cs-yellow-soft); font-weight: 500; }
#practice.cs-path.learning .deck-ex-en { font-size: 18px; line-height: 27px; color: var(--cs-body); }
#practice.cs-path.learning .idea-frame { display: block; margin-top: 24px; padding: 12px 16px; border-radius: 12px; font-size: 18px; }
#practice.cs-path.learning .idea-frame b { font: 650 18px/1.4 var(--cs-ui); }
#practice.cs-path.learning .idea-progress { font-size: 14px; color: var(--cs-muted); }
#practice.cs-path.learning .deck-ex b, #practice.cs-path.learning .idea-option { font-family: var(--cs-ui); }

/* ---------- Talk: question in the body, recording in a lilac panel, the actions in the footer ---------- */
@media (min-height: 600px) {
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) .cs-main { display: flex !important; flex-direction: column; overflow: hidden; }
  :root[data-look] #practice.cs-path:not(.learning):not(.looping):not(.home-idle):not(.helping) #targets { display: none !important; }
  :root[data-look] #practice.cs-path.helping:not(.learning):not(.looping) #targets { display: block !important; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}
#practice.cs-path:not(.learning):not(.looping):not(.home-idle) .cs-talk-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 12px 0 0; }
#practice.cs-path .cs-talk-links #otherQuestion { margin: 0; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--cs-purple); }
#practice.cs-path .cs-help-btn::before { content: "✦"; margin-right: 6px; text-decoration: none; display: inline-block; }
#practice.cs-path .cs-frame { margin: 16px 0 0; padding: 6px 12px; border-radius: 8px; font-size: 16px; }
#practice.cs-path .cs-frame b { font: 650 16px/1.4 var(--cs-ui); }
#practice.helping .home { display: none !important; }
.cs-back { display: none; }
#practice.helping .cs-back { display: inline-flex; margin-bottom: 12px; }
#practice.cs-path.helping .deck-card { max-width: none; border: 0; padding: 0; }
#practice:has(#compose.spoken) .home { display: none !important; }   /* the draft takes the body: "Your take is ready." */

#practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 !important; border-top: 0 !important;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px;
  grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr) 96px;
  grid-template-areas: "panel panel panel" "msg msg msg" "tnote tnote tnote" "tsum tsum tsum" "ttext ttext ttext" "tpager tpager tpager" "twords twords twords" ". . ." "note main alt"; }
#practice.cs-path #compose :is(.dictate, .dict-line, #take:not(.hidden), .take-actions, #composeFoot:not(.hidden)) { display: contents !important; }
#practice.cs-path #compose::before { content: ""; grid-area: note / note / note / alt; grid-column: 1 / -1; align-self: start; border-top: 1px solid var(--cs-line); }
#practice.cs-path #compose :is(#micBtn, #takeSend, #submitBtn) { grid-area: main; align-self: center; }
#practice.cs-path #compose :is(#typeLink, #speakLink, #takeMore) { grid-area: alt; align-self: center; }
#practice.cs-path #compose :is(#recNote, #takeDrop, #wordCount) { grid-area: note; align-self: center; justify-self: start; }
#practice.cs-path #compose #dictLabel { grid-area: msg; margin: 12px 0 0; max-width: none; }
#practice.cs-path #compose #takeNote { grid-area: tnote; }
#practice.cs-path #compose #takeSum { grid-area: tsum; }
#practice.cs-path #compose #takeText { grid-area: ttext; }
#practice.cs-path #compose #takePager { grid-area: tpager; }
#practice.cs-path #compose #takeWords { grid-area: twords; }
#practice.cs-path #compose #captions { grid-area: ttext; }
#practice.cs-path #compose #transcript { grid-row: 3 / 9; grid-column: 1 / -1; min-height: 0; height: auto; margin: 16px 0; resize: none; font: 400 18px/27px var(--cs-ui); }
#practice.cs-path #compose :is(.hint, .spacer) { display: none !important; }
/* the footer's buttons */
#practice.cs-path #compose #micBtn { width: auto !important; min-height: 48px; height: 48px; padding: 0 22px; border-radius: 12px; gap: 10px; }
#practice.cs-path #compose #micBtn .mic-say { font: 650 16px/20px var(--cs-ui); }
#practice.cs-path #compose #micBtn .ico { width: 20px; height: 20px; }
#practice.cs-path #compose #micBtn[aria-pressed="true"] { background: var(--cs-purple); }
#practice.cs-path #compose #micBtn[aria-pressed="true"] .ico.stop { display: none; }
#practice.cs-path #compose :is(#typeLink, #speakLink) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--cs-control-line); border-radius: 12px; background: #fff; text-decoration: none; font: 650 16px/20px var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path #compose :is(#typeLink, #speakLink).hidden { display: none !important; }
#practice.cs-path #compose :is(#typeLink, #speakLink) :is(.or, .w) { display: none; }
.type-link .w-long { display: none; }
#practice.cs-path #compose :is(#typeLink, #speakLink) .w-long { display: inline; }
#practice.cs-path #compose #takeSend { min-height: 48px; height: 48px; padding: 0 22px; font-size: 16px; }
#practice.cs-path #compose #takeMore { min-height: 48px; padding: 0 22px; }
#practice.cs-path #compose #takeDrop .w { font: 500 15px/20px var(--cs-ui); }
#practice.cs-path #compose #submitBtn { min-height: 48px; border-radius: 12px; padding: 0 22px; box-shadow: none; background: var(--cs-purple); font: 650 16px/20px var(--cs-ui); }
#practice.cs-path #compose #wordCount { font-size: 14px; color: var(--cs-muted); }
.cs-rec-note { display: none; margin: 0; font-size: 15px; color: var(--cs-muted); }
#practice.cs-path #compose.listening .cs-rec-note { display: block; }
#practice.cs-path #compose.listening #typeLink { display: none !important; }
/* the recording panel: what the microphone really hears, the time against four minutes */
#practice.cs-path #compose:not(.listening) :is(.ink, #dictTimer) { display: none !important; }
#practice.cs-path #compose.listening .ink { display: block; grid-area: panel; width: 100%; height: 96px; margin: 20px 0 0; padding: 24px 170px 24px 28px; box-sizing: border-box;
  border-radius: 16px; background: var(--cs-purple-soft); overflow: visible; }
#practice.cs-path #compose.listening .ink path { stroke: var(--cs-purple); stroke-width: 2.5; }
#practice.cs-path #compose.listening #dictTimer { position: relative; z-index: 2; display: block; grid-area: panel; justify-self: end; align-self: center; margin: 20px 28px 0 0; padding-left: 20px;
  border-left: 1px solid var(--cs-ring-track); font: 400 16px/22px var(--cs-ui); color: var(--cs-body); font-variant-numeric: tabular-nums; }
#practice.cs-path #compose.listening #dictTimer::before { content: "Recording"; display: block; font-weight: 650; color: var(--cs-ink); }
#practice.cs-path #compose.listening #dictTimer::after { content: " / 4:00"; }
/* the draft: "Your take is ready.", its length, the take itself in pages */
#practice.cs-path #compose #takeNote { margin: 0; font: 650 36px/40.3px var(--cs-ui); letter-spacing: -.5px; color: var(--cs-ink); }
#practice.cs-path #compose #takeNote::after { content: none; }
#practice.cs-path #compose #takeSum { margin: 8px 0 0; font-size: 15px; color: var(--cs-muted); }
.take-text { margin: 20px 0 0; padding: 20px 24px; border-radius: 16px; background: var(--cs-purple-soft, var(--brand-purple-soft)); font: 400 21px/30.5px var(--cs-ui, sans-serif); color: var(--cs-ink, var(--brand-plum)); }
.take-text.hidden { display: none; }
#practice.cs-path #compose #takeWords { margin: 12px 0 0; }

/* in-card pages: "Take 1 of 2  ‹ ›" */
.cs-pager { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.cs-pager.hidden { display: none; }
.cs-pager-label { margin-right: 4px; font-size: 14px; color: var(--cs-muted); font-variant-numeric: tabular-nums; }
.cs-pager-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--cs-control-line, var(--brand-control-line)); border-radius: 50%; background: #fff; color: var(--cs-ink, var(--brand-plum)); cursor: pointer; }
.cs-pager-btn:disabled { opacity: .45; cursor: default; }
.cs-pager-btn .ico { width: 18px; height: 18px; }

/* ---------- Warm up: one prompt, the answer in the body, a banner kept ready for the review ---------- */
#practice.cs-path #loop .loop-head h2 { font-size: 36px; line-height: 40.3px; }
#practice.cs-path #loop .loop-sub { margin: 8px 0 0; font-size: 18px; line-height: 27px; }
#practice.cs-path #loop .loop-progress { min-height: 64px; margin: 16px 0; padding: 0; font-size: 15px; color: var(--cs-muted); }
#practice.cs-path #loop .loop-progress.ready { padding: 12px 20px; border-radius: 16px; background: var(--cs-purple-soft); color: var(--cs-ink); gap: 12px; }
#practice.cs-path #loop .loop-progress.ready .ico { width: 24px; height: 24px; color: var(--cs-purple); fill: var(--cs-purple); flex: none; }
#practice.cs-path #loop .loop-progress .ready-text { display: flex; flex-direction: column; font-size: 15px; line-height: 20px; color: var(--cs-body); }
#practice.cs-path #loop .loop-progress .ready-text b { font-size: 17px; color: var(--cs-ink); }
#practice.cs-path #loop .loop-progress.ready .loop-see { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) { #practice.cs-path #loop .loop-progress.ready { animation: cs-fade .22s ease-out both; } @keyframes cs-fade { from { opacity: 0; } } }
#practice.cs-path #loop .loop-dot { animation: none; }
#practice.cs-path #loop > .loop-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#practice.cs-path #loop .idea-prompt { flex: 1 1 auto; display: flex; flex-direction: column; max-width: none; }
#practice.cs-path #loop .idea-cue { margin: 12px 0 20px; font: 500 28px/36.4px var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path #loop .idea-say { gap: 12px; }
#practice.cs-path #loop .idea-say .idea-mic { width: 56px; height: 56px; }
#practice.cs-path #loop .idea-say-text { height: 56px; border-radius: 12px; font: 400 18px/1 var(--cs-ui); }
#practice.cs-path #loop .idea-result { padding: 16px 20px; border-radius: 16px; }
#practice.cs-path #loop :is(.idea-you, .idea-model) { font-family: var(--cs-ui); font-size: 18px; }

/* ---------- How it went: one line of evidence, the numbers quiet, the paragraph read back in a soft panel ---------- */
.cs-evidence { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--cs-purple, var(--brand-purple)); font-size: 18px; line-height: 27px; color: var(--cs-ink, var(--brand-plum)); }
#practice.cs-path #loop .loop-proof { margin: 12px 0 0; font-size: 15px; color: var(--cs-muted); gap: 4px 10px; }
#practice.cs-path #loop .loop-proof b { font: 650 15px/1 var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path #loop .loop-hear { margin: 20px 0 0; padding: 20px 24px; border: 0; border-radius: 16px; background: var(--cs-surface-muted); box-shadow: none; }
#practice.cs-path #loop .loop-hear h3 { font: 650 17px/22px var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path #loop .loop-natural { font: 400 21px/30.5px var(--cs-ui); color: var(--cs-ink); }
#practice.cs-path #loop .loop-step { font-size: 15px; font-weight: 650; color: var(--cs-ink); }
#practice.cs-path #loop .loop-lesson { padding: 0; border: 0; box-shadow: none; }
#practice.cs-path #loop .loop-pair { font: 500 23px/32px var(--cs-ui); }
#practice.cs-path #loop :is(.drill-prompt, .drill-input) { font-family: var(--cs-ui); }
/* the end */
#practice.cs-path .cs-done-mark { width: 44px; height: 44px; margin: 0 0 16px; border-radius: 12px; background: var(--cs-yellow-soft); }
#practice.cs-path .cs-facts { display: inline-flex; align-self: flex-start; margin: 16px 0 24px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--cs-surface-muted); font-size: 17px; }
#practice.cs-path .cs-phrase-es { font: 500 28px/36px var(--cs-ui); }
#practice.cs-path .cs-full-review { align-self: flex-start; margin-top: 8px; }

/* ---------- a phone: a four-stop strip, the card 12px from the edges, a 132px footer ---------- */
@media (max-width: 899px) {
  body.on-practice:has(#practice.cs-path:not(.hidden)) .wrap { padding-left: 12px; padding-right: 12px; }
  #practice.cs-path .cs-rail { display: block !important; }
  #practice.cs-path .cs-path { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  #practice.cs-path .cs-step { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none !important; }
  #practice.cs-path .cs-step + .cs-step::before { left: calc(-50% + 16px); right: calc(50% + 16px); top: 13px; width: auto; height: 1.5px; }
  #practice.cs-path .cs-num { width: 28px; height: 28px; font-size: 12px; }
  #practice.cs-path .cs-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; text-align: center; }
  #practice.cs-path .cs-name { font-size: 12px; font-weight: 400; line-height: 1.3; }
  #practice.cs-path .cs-step.is-current .cs-name { font-weight: 650; }
  #practice.cs-path :is(.cs-sub, .cs-now, .cs-goal-short, .cs-goal) { display: none !important; }
  #practice.cs-path .cs-stage { display: flex !important; padding-bottom: 12px; }
  #practice.cs-path .cs-main { padding: 16px 16px 0; border-radius: 20px; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) { flex-direction: row; flex-wrap: wrap; align-content: flex-end; align-items: center;
    min-height: 132px; padding: 16px 0; gap: 8px; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > * { margin: 0 !important; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > .cs-primary { order: 1; flex: 1 0 100%; min-height: 48px; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > :is(.cs-secondary, .loop-later) { order: 2; flex: 1 1 0; min-height: 44px; padding-inline: 12px; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > .cs-link:not(.loop-later) { order: 3; flex: 0 0 auto; padding: 0 8px; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > .cs-note { order: 0; flex: 1 0 100%; font-size: 13px !important; line-height: 18px; }
  #practice.cs-path.learning .idea-actions .idea-skip { margin: 0 !important; }
  .today-body { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .today-text { gap: 8px; }
  .today-cover { order: 2; height: 128px; flex: none; object-position: 50% 60%; border-radius: 16px; }
  #practice.cs-path .today-head { font-size: 28px; line-height: 32.2px; }
  #practice.cs-path .today-sub { font-size: 16px; line-height: 22.4px; }
  #practice.cs-path.learning .idea-title, #practice.cs-path #loop .loop-head h2, #practice.cs-path #compose #takeNote { font-size: 26px; line-height: 29.9px; }
  :root[data-look] #practice.cs-path #question.question { font-size: 27px; line-height: 31.9px; }
  #practice.cs-path :is(.question-en, .idea-text, .deck-ex-en, .loop-sub) { font-size: 16px !important; line-height: 22.4px !important; }
  #practice.cs-path.learning .deck-ex { font-size: 18px; line-height: 24.3px; }
  #practice.cs-path.learning .idea-examples { margin-top: 12px; gap: 10px; }
  #practice.cs-path.learning .idea-frame { margin-top: 12px; padding: 8px 12px; font-size: 16px; }
  #practice.cs-path.learning .idea-frame b { font-size: 16px; }
  #practice.cs-path.learning .idea-card > * + * { margin-top: 10px; }
  #practice.cs-path.learning .deck-ex-en { font-size: 14px !important; line-height: 19px !important; }
  #practice.cs-path.learning .idea-ex { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  #practice.cs-path .cs-stage { padding-bottom: 8px; }
  #practice.cs-path #loop .idea-cue { font-size: 22px; line-height: 28.6px; }
  #practice.cs-path :is(.take-text, #loop .loop-natural) { font-size: 16px !important; line-height: 22.4px !important; }
  .take-text { padding: 14px 16px; }
  #practice.cs-path #loop .loop-hear { padding: 14px 16px; }
  #practice.cs-path #loop .loop-progress { min-height: 56px; }
  #practice.cs-path .cs-phrase-es { font-size: 22px; line-height: 28px; }
  /* Talk's footer on a phone: the main action, the other under it */
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px;
    grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "panel panel" "msg msg" "tnote tnote" "tsum tsum" "ttext ttext" "tpager tpager" "twords twords" ". ." "main main" "alt note"; row-gap: 0; }
  #practice.cs-path #compose::before { grid-area: main; grid-column: 1 / -1; }
  #practice.cs-path #compose :is(#micBtn, #takeSend, #submitBtn) { width: 100% !important; margin-top: 16px; justify-content: center; }
  #practice.cs-path #compose :is(#typeLink, #speakLink, #takeMore) { min-height: 44px; margin: 8px 0 16px; justify-content: center; }
  #practice.cs-path #compose :is(#takeDrop, #wordCount) { align-self: center; margin: 8px 0 16px; min-height: 44px; display: inline-flex; align-items: center; }
  #practice.cs-path #compose.listening #recNote { grid-area: alt / alt / alt / note; grid-column: 1 / -1; justify-self: center; margin: 12px 0 16px; min-height: 32px; }
  #practice.cs-path #compose.listening .ink { height: 72px; padding: 16px 120px 16px 16px; margin-top: 16px; }
  #practice.cs-path #compose.listening #dictTimer { margin: 16px 16px 0 0; padding-left: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { #practice.cs-path .cs-num { transition: none; } }
#practice.cs-path #compose.spoken #composeFoot { display: none !important; }   /* the draft has no editor, so no word count or Send of its own */

/* ===========================================================================================================
   Round 3 (16 Nov 2026, the design critique's follow-up): real depth, a warm page, Today as a story scene, and the
   actions placed by order rather than by screen position — under the content on a desktop (the card hugs what it
   holds, sparse steps sit centred), a frosted bar in thumb reach on a phone (the tab bar steps aside in a session).
   =========================================================================================================== */
#practice.cs-path, .cs-rail { --cs-ease: cubic-bezier(.16, 1, .3, 1); --cs-shadow-card: 0 1px 2px rgb(43 18 68 / .06), 0 18px 44px -18px rgb(43 18 68 / .26); }
:root[data-look] body.on-practice:has(#practice.cs-path:not(.hidden)) {
  background: radial-gradient(1100px 540px at 90% -10%, rgb(255 212 74 / .17), transparent 62%),
    radial-gradient(900px 640px at -10% 108%, rgb(91 43 201 / .10), transparent 60%), #f7f3fc fixed; }
#practice.cs-path ::selection, .cs-rail ::selection { background: var(--brand-yellow-soft); color: var(--brand-plum); }
#practice.cs-path :is(input, textarea) { caret-color: var(--brand-purple); }
#practice.cs-path .cs-main { border-color: rgb(91 43 201 / .09); box-shadow: var(--cs-shadow-card); }

/* buttons with a little weight: an inner highlight and a soft offset shadow, a 1px lift on hover */
#practice.cs-path :is(.cs-primary, #compose #micBtn, #compose #takeSend, #compose #submitBtn) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 20px -12px rgb(91 43 201 / .75);
  transition: background-color .18s, transform .2s var(--cs-ease), box-shadow .2s var(--cs-ease); }
#practice.cs-path :is(.cs-primary, #compose #micBtn, #compose #takeSend, #compose #submitBtn):hover:not(:disabled) {
  transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 14px 24px -12px rgb(91 43 201 / .8); }
#practice.cs-path :is(.cs-primary, #compose #micBtn, #compose #takeSend, #compose #submitBtn):active:not(:disabled) { transform: none; }
#practice.cs-path :is(.cs-secondary, #compose #typeLink, #compose #speakLink, #compose #takeMore, #loop .loop-later) { transition: background-color .18s, border-color .18s; }
#practice.cs-path :is(.cs-secondary, #compose #typeLink, #compose #speakLink, #compose #takeMore, #loop .loop-later):hover { border-color: var(--cs-purple); background: #faf7ff; }
.cs-btn .ico { width: 18px; height: 18px; transition: transform .2s var(--cs-ease, ease); }
.cs-btn:hover .ico { transform: translateX(3px); }
#practice.cs-path .cs-help-btn::before { content: none; }
#practice.cs-path .cs-help-btn { gap: 6px; }

/* the header: the tabs sit in a lilac track, the current one a raised white pill; the goal lives in the path */
@media (min-width: 761px) {
  :root[data-look] header .tabs { padding: 4px; gap: 2px; border-radius: 999px; background: rgb(91 43 201 / .07); }
  :root[data-look] header .tab { border-radius: 999px; padding: 8px 18px; background: none; color: var(--plum, var(--brand-plum)); transition: background-color .18s, box-shadow .18s; }
  :root[data-look] header .tab:hover:not([aria-selected="true"]) { background: rgb(255 255 255 / .55); }
  :root[data-look] header .tab[aria-selected="true"] { background: #fff; color: var(--brand-plum); box-shadow: 0 1px 2px rgb(43 18 68 / .08), 0 6px 14px -8px rgb(43 18 68 / .3); }
  body.on-practice:has(#practice.cs-path:not(.hidden)) header #goal { visibility: hidden; }
}
@media (max-width: 760px) {
  :root[data-look] .tab[aria-selected="true"] { background: var(--brand-yellow-soft); color: var(--brand-plum); }
}

/* the path: "Up next" on Today; the joining line fills as steps are done */
.cs-badge { display: inline-block; align-self: center; padding: 2px 8px; border-radius: 999px; background: var(--brand-yellow); font: 650 12px/18px var(--cs-ui); color: var(--brand-plum); }
.cs-step { grid-template-columns: 36px minmax(0, 1fr) auto; }
@media (prefers-reduced-motion: no-preference) {
  .cs-step.is-completed + .cs-step::before { transform-origin: top; animation: cs-line .5s var(--cs-ease) both; }
  @keyframes cs-line { from { transform: scaleY(0); } }
}
.cs-exit { display: none; }

/* ---------- desktop: the card hugs its content; actions directly under it, always main then second ---------- */
@media (min-height: 600px) and (min-width: 900px) {
  #practice.cs-path .cs-main { height: auto; max-height: 100%; min-height: min(520px, 100%); align-self: start; justify-content: center; padding: 32px; }
  #practice.cs-path .cs-main:has(> .cs-stage:not(.hidden)) { padding-top: 80px; }
  #practice.cs-path .cs-main > .cs-stage { position: absolute; top: 32px; left: 32px; right: 32px; }
  #practice.cs-path:is(.home-idle) .home, :root[data-look] #practice.cs-path.learning #targets, #practice.cs-path #loop:not(.hidden),
  #practice.cs-path.learning #tiles, #practice.cs-path.learning .idea-card, #practice.cs-path #loop > .loop-body, #practice.cs-path #loop .idea-prompt { flex: 0 0 auto; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) {
    margin: 32px 0 0 !important; min-height: 0; padding: 0; border-top: 0; justify-content: flex-start; flex-wrap: wrap; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > * { margin: 0 !important; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > .cs-primary { order: 1; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > :is(.cs-secondary, .loop-later) { order: 2; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > .cs-link:not(.loop-later) { order: 3; margin-left: 8px !important; }
  #practice.cs-path :is(.today-go, .idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) > .cs-note { order: 4; flex-basis: 100%; margin-top: 4px !important; }
  #practice.cs-path .idea-actions .idea-skip { order: 3; }
  /* Talk: the same order, under the question */
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose { flex: 0 0 auto; grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: repeat(8, auto);
    grid-template-areas: "panel panel panel" "msg msg msg" "tnote tnote tnote" "tsum tsum tsum" "ttext ttext ttext" "tpager tpager tpager" "twords twords twords" "main alt note"; }
  #practice.cs-path #compose::before { content: none; }
  #practice.cs-path #compose :is(#micBtn, #takeSend, #submitBtn, #typeLink, #speakLink, #takeMore) { margin-top: 32px; }
  #practice.cs-path #compose :is(#recNote, #takeDrop, #wordCount) { margin: 32px 0 0 8px; }
  #practice.cs-path #compose #transcript { grid-row: 3 / 8; min-height: 220px; }
}

/* ---------- a phone: the card ends where its content ends; in a session the actions ride a frosted bar ---------- */
@media (max-width: 899px) {
  #practice.cs-path .cs-main { height: auto; min-height: 0; padding-bottom: 20px; }
  :root[data-look] #practice.cs-path:not(.hidden) { grid-template-rows: auto auto !important; align-content: start; }
  #practice.cs-path:is(.home-idle) .home, :root[data-look] #practice.cs-path.learning #targets, #practice.cs-path #loop:not(.hidden),
  #practice.cs-path.learning .idea-card, #practice.cs-path #loop > .loop-body, #practice.cs-path #loop .idea-prompt { flex: 0 0 auto; }
  body.on-practice:has(#practice.cs-path:not(.home-idle):not(.hidden)) .tabs { display: none !important; }
  body.on-practice:has(#practice.cs-path:not(.home-idle):not(.hidden)) .wrap { padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important; height: auto !important; }
  #practice.cs-path:not(.home-idle) .cs-rail { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
  #practice.cs-path:not(.home-idle) .cs-exit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px 0 8px; border: 0; background: none;
    font: 600 14px/1 var(--cs-ui); color: var(--cs-purple); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  /* the bar */
  #practice.cs-path :is(.idea-actions.cs-foot, #loop .loop-go, .idea-prompt-row) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0 !important; min-height: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(91 43 201 / .1);
    background: rgb(247 243 252 / .86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  #practice.cs-path .today-go { position: static; min-height: 0; margin: 20px 0 0 !important; padding: 0; border-top: 0; }
  /* Talk's actions on the same bar */
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose { grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(8, auto); grid-template-areas: "panel" "msg" "tnote" "tsum" "ttext" "tpager" "twords" "note"; }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 39;
    height: calc(124px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(91 43 201 / .1);
    background: rgb(247 243 252 / .86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  #practice.cs-path:not(.learning):not(.looping):not(.home-idle) #compose.listening::after { height: calc(72px + env(safe-area-inset-bottom)); }
  #practice.cs-path #compose::before { content: none; }
  #practice.cs-path #compose :is(#micBtn, #takeSend, #submitBtn) { position: fixed; z-index: 41; left: 16px; right: 16px; width: auto !important; margin: 0 !important;
    bottom: calc(12px + 44px + 8px + env(safe-area-inset-bottom)); }
  #practice.cs-path #compose.listening #micBtn { bottom: calc(12px + env(safe-area-inset-bottom)); }
  #practice.cs-path #compose :is(#typeLink, #speakLink, #takeMore) { position: fixed; z-index: 41; left: 16px; right: 16px; width: auto; margin: 0 !important;
    bottom: calc(12px + env(safe-area-inset-bottom)); }
  #practice.cs-path #compose :is(#recNote, #takeDrop, #wordCount) { grid-area: note; justify-self: start; margin: 12px 0 0 !important; padding: 0; }
  #practice.cs-path #compose.listening #recNote { grid-area: note; grid-column: 1; justify-self: start; }
}

/* ---------- Today: a story scene ---------- */
#practice.cs-path .today-head { text-wrap: balance; }
#practice.cs-path .today-time { display: inline-flex; align-items: center; gap: 8px; }
#practice.cs-path .today-time .ico { width: 18px; height: 18px; }
#practice.cs-path .today-idea b { font-weight: 650; }
.today-start .ico { order: 2; }
@media (min-width: 900px) {
  #practice.cs-path.home-idle .cs-main { position: relative; overflow: hidden; min-height: min(600px, 100%); padding: 56px calc(46% + 48px) 56px 56px; }
  #practice.cs-path.home-idle .today-body { display: block; }
  #practice.cs-path.home-idle .today-text { gap: 16px; }
  #practice.cs-path.home-idle .today-head { font-size: clamp(40px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -1.2px; max-width: 12ch; }
  #practice.cs-path.home-idle .today-sub { font-size: 19px; line-height: 28px; max-width: 30ch; }
  #practice.cs-path.home-idle .today-cover { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: 100%; max-height: none; border-radius: 0;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); object-position: 50% 54%; }
  /* candlelight: a warm glow that breathes over the scene (the same cut), brighter while Start is pointed at */
  #practice.cs-path.home-idle .today-body::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%; pointer-events: none;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); mix-blend-mode: soft-light;
    background: radial-gradient(38% 34% at 56% 50%, rgb(255 214 120 / .9), transparent 70%); opacity: .35; transition: opacity .4s var(--cs-ease); }
  #practice.cs-path.home-idle:has(.today-start:is(:hover, :focus-visible)) .today-body::after { opacity: .75; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  #practice.cs-path.home-idle .today-body::after { animation: cs-candle 3.2s ease-in-out infinite alternate; }
  #practice.cs-path.home-idle:has(.today-start:is(:hover, :focus-visible)) .today-body::after { animation: none; }
  @keyframes cs-candle { 0% { opacity: .28; } 40% { opacity: .42; } 55% { opacity: .33; } 100% { opacity: .46; } }
}
@media (max-width: 899px) {
  #practice.cs-path.home-idle .cs-main { overflow: hidden; }
  #practice.cs-path.home-idle .today-body { gap: 14px; }
  #practice.cs-path.home-idle .today-cover { order: -1; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 16 / 9; margin: -16px -16px 2px;
    border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); object-position: 50% 58%; }
  #practice.cs-path.home-idle .today-head { font-size: 30px; line-height: 1.08; letter-spacing: -.6px; }
}
/* the entrance: the scene settles, then the words arrive one after another; leaving, Today glides out */
@media (prefers-reduced-motion: no-preference) {
  #today.arrive .today-text > * { animation: cs-rise .52s var(--cs-ease) both; }
  #today.arrive .today-text > :nth-child(2) { animation-delay: 60ms; }
  #today.arrive .today-text > :nth-child(3) { animation-delay: 120ms; }
  #today.arrive .today-text > :nth-child(4) { animation-delay: 180ms; }
  #today.arrive .today-text > :nth-child(n+5) { animation-delay: 240ms; }
  #today.arrive .today-go { animation: cs-rise .52s .3s var(--cs-ease) both; }
  #today.arrive .today-cover { animation: cs-scene .9s var(--cs-ease) both; }
  @keyframes cs-rise { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
  @keyframes cs-scene { from { opacity: 0; transform: scale(1.04); } }
  #today.leaving { opacity: 0; transform: translateX(-16px); transition: opacity .2s ease-in, transform .2s ease-in; }
}

/* ---------- colour fields inside steps: a lilac well holds Learn's examples ---------- */
#practice.cs-path.learning .idea-examples { padding: 20px 24px; border-radius: 16px; background: var(--cs-purple-soft); }
#practice.cs-path.learning .idea-ex .deck-say { background: #fff; }
@media (max-width: 899px) { #practice.cs-path.learning .idea-examples { padding: 14px; } }
/* round 3 fixes: Today's scene positions against the card; the writing box's own Send stays away while recording;
   on a phone nothing around the action bar may transform (a transform would trap the fixed bar inside the card) */
@media (min-width: 900px) {
  #practice.cs-path.home-idle :is(.home, .home-today, .today-body, .today-text) { position: static; }
}
#practice.cs-path #compose.listening #composeFoot { display: none !important; }
@media (max-width: 899px) {
  #practice.cs-path:not(.home-idle) :is(.cs-main, #targets, #tiles, .idea-card, .deck-card, #loop, #loop > *, .loop-body, .idea-prompt, #compose) {
    animation: none !important; transform: none !important; filter: none !important; }
  #practice.cs-path .cs-badge { display: none !important; }
}
@media (min-width: 900px) { #practice.cs-path.home-idle :is(.today-body, .today-text, .home-today) { animation: none !important; transform: none !important; filter: none !important; } }
.cs-step { grid-template-columns: 36px minmax(0, 1fr); }
.cs-step .cs-badge { position: absolute; top: 12px; right: 8px; }

/* ===========================================================================================================
   App-wide (16 Nov 2026, "apply Today's design to the rest"): every page takes the session's system. One family
   (DM Sans) for headings, Spanish and interface; the warm lilac-and-yellow page; cards with real two-layer depth and a
   whisper of an outline; flat purple primaries with weight; 12px controls; no handwriting except the logo.
   Done through the shared variables first, so every page's existing rules follow without being rewritten.
   =========================================================================================================== */
:root[data-look] {
  --display: "DM Sans", "Archivo", system-ui, sans-serif; --display-weight: 650; --display-track: -.02em; --display-adjust: none;
  --serif: "DM Sans", "Archivo", system-ui, sans-serif; --font: "DM Sans", "Archivo", system-ui, sans-serif;
  --edge: rgb(91 43 201 / .1); --edge-soft: #efe9f8;
  --panel-shadow: 0 1px 2px rgb(43 18 68 / .06), 0 18px 44px -18px rgb(43 18 68 / .24);
  --primary-grad: var(--brand-purple);
  --ctl-border: 1px solid var(--brand-control-line);
}
:root[data-look] body { font-family: var(--font); }
:root[data-look] body:not(.on-practice), :root[data-look] body.signed-out {
  background: radial-gradient(1100px 540px at 90% -10%, rgb(255 212 74 / .16), transparent 62%),
    radial-gradient(900px 640px at -10% 108%, rgb(91 43 201 / .09), transparent 60%), #f7f3fc fixed; }
:root[data-look] ::selection { background: var(--brand-yellow-soft); color: var(--brand-plum); }
:root[data-look] :is(input, textarea) { caret-color: var(--brand-purple); }
/* everything that used the handwriting or a serif speaks DM Sans upright, at a confident weight */
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) :is(h1, h2, h3, em, i, .deck-ex, .natural-text, .drill-prompt) { font-style: normal; }
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) :is(h1, h2, h3) { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; color: var(--brand-plum); }
/* page titles like Today's headline: big, tight, no spark */
:root[data-look] .title-row h1, :root[data-look] .conv-side-head h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
:root[data-look] :is(.title-row h1, .conv-side-head h1, #feedback > .win-back > .wb-head > h2)::after { content: none !important; }
:root[data-look] :is(.front-line) { font-weight: 650; letter-spacing: -.03em; font-style: normal; }
/* cards: the same lift as the session card; radius 20 */
:root[data-look] :is(#watch, #conversations, #drill, #progress) .card,
:root[data-look] :is(.drill-panel, .wb-fix, .watch-channels, .pstat, .proof-fig, .front-review, .signin-card.front .front-review) {
  border: 1px solid var(--edge); border-radius: 20px; box-shadow: var(--panel-shadow); background: #fff; }
/* buttons: 12px corners everywhere outside the round icon buttons; the primary flat purple with weight */
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin, .account-menu) :is(.btn, .submit-btn) { border-radius: 12px; }
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) .btn:not(.primary) { border: 1px solid var(--brand-control-line); background: #fff; color: var(--brand-plum); }
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) :is(.btn.primary, .submit-btn) {
  border: 0; background: var(--brand-purple); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 20px -12px rgb(91 43 201 / .75);
  transition: background-color .18s, transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1); }
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) :is(.btn.primary, .submit-btn):hover:not(:disabled) {
  background: var(--brand-purple-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 14px 24px -12px rgb(91 43 201 / .8); }
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) :is(.btn.primary, .submit-btn):active:not(:disabled) { transform: none; }
/* the switches (Overview / Conversations, Videos / Podcasts) as the header's lilac track */
:root[data-look] :is(.prog-switch, .watch-switch, #drillSwitch) { padding: 4px; gap: 2px; border: 0; border-radius: 999px; background: rgb(91 43 201 / .07); box-shadow: none; }
:root[data-look] :is(.prog-switch, .watch-switch, #drillSwitch) button { border: 0; border-radius: 999px; background: none; color: var(--brand-plum); box-shadow: none; }
:root[data-look] :is(.prog-switch button[aria-pressed="true"], .watch-switch [aria-pressed="true"], #drillSwitch [aria-pressed="true"]) {
  background: #fff; color: var(--brand-plum); box-shadow: 0 1px 2px rgb(43 18 68 / .08), 0 6px 14px -8px rgb(43 18 68 / .3); }
/* fields: 12px, a real control outline, purple focus */
:root[data-look] :is(#watch, #drill, #progress, #conversations, #signin) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { border-radius: 12px; }
/* the account menu: a raised sheet */
:root[data-look] .account-menu { border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 1px 2px rgb(43 18 68 / .06), 0 24px 48px -20px rgb(43 18 68 / .35); padding: 8px; }
:root[data-look] .account-menu button, :root[data-look] .account-menu a { border-radius: 10px; }
:root[data-look] .account-menu :is(button, a):hover { background: var(--brand-purple-soft); }
/* pages arrive like Today: the title, then the rest */
@media (prefers-reduced-motion: no-preference) {
  :root[data-look] :is(#watch, #drill, #progress, #conversations):not(.hidden) :is(.title-row, .conv-side-head) { animation: cs-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
}
@media (max-width: 760px) { :root[data-look] .title-row h1, :root[data-look] .conv-side-head h1 { font-size: 30px; } }
/* app-wide fixes: the page wash reaches the bottom of short pages; section headings carry weight; Conversations fits
   the page width (it was the window's width less 48px from the page's own left edge, so it ran 170px off the right) */
:root[data-look] body { min-height: 100vh; min-height: 100dvh; }
:root[data-look] :is(.watch-sub, .watch-head h2, #progress h2, #drill h2) { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; color: var(--brand-plum); }
:root[data-look] #conversations .conv { width: auto; margin-left: 0; }
:root[data-look] .conv-side-head h1 { font-size: 26px; }

/* ===== P1/P2 fixes after the 16 Nov app-wide audit ===== */
/* Watch video: wide for the player and transcript, but with the same 32px margins as every page; the challenge heading
   and the record button speak the shared system */
@media (min-width: 900px) {
  :root[data-look] body.watching .wrap { max-width: 1400px; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
}
:root[data-look] .challenge-head b { font: 650 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--brand-plum); }
:root[data-look] .watch-mic:not([aria-pressed="true"]) { background: var(--brand-purple); color: #fff; border: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 20px -12px rgb(91 43 201 / .75); }
:root[data-look] .watch-mic:not([aria-pressed="true"]):hover { background: var(--brand-purple-hover); }
:root[data-look] .watch-title { font-weight: 650; letter-spacing: -.02em; }
/* drawn icons where characters stood in: sized to the text, the same stroke everywhere */
:root[data-look] :is(.cs-backlink, .lr-done, .cs-ticked, .proof-arrow, .plan-move button, .wc-hide, .listen-hide, .cs-help-btn) .ico {
  width: 1em; height: 1em; flex: none; vertical-align: -.14em; stroke-width: 2.2; }
:root[data-look] :is(.cs-backlink, .lr-done, .cs-ticked, .cs-help-btn) { display: inline-flex; align-items: center; gap: 6px; }
:root[data-look] .proof-arrow { display: inline-flex; align-items: center; color: var(--muted, var(--brand-muted)); }
:root[data-look] :is(.wc-hide, .listen-hide, .plan-move button) { display: inline-grid; place-items: center; }
:root[data-look] :is(.wc-hide, .listen-hide) .ico { width: 14px; height: 14px; }
/* headings no longer wear a spark: one quiet system, like Today */
:root[data-look] :is(#conversations, #progress, #drill, #watch) :is(h1, h2, h3)::after, :root[data-look] :is(.wb-head h2, .mission h2, .mission-title)::after,
:root[data-look] :is(.wb-head h2, .mission h2, .mission-title)::before { content: none !important; }
/* one corner rule: things you press or type into have 12px corners; chips, toggles, tags and the switch tracks stay pills;
   round icon buttons stay round */
:root[data-look] select, :root[data-look] :is(.brand-select, .select-pick, .pick-btn) { border-radius: 12px !important; }
:root[data-look] #feedback :is(.btn, .btn.primary), :root[data-look] #feedback .card.mission .btn.primary,
:root[data-look] :is(#watch, #drill, #progress, #conversations) :is(.btn, .submit-btn, .drill-actions .btn) { border-radius: 12px !important; }
:root[data-look] #feedback .card.mission .btn.primary { background: var(--brand-purple); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 20px -12px rgb(91 43 201 / .75); }
/* phone tap targets: at least 44px. Text controls grow to 44px tall; small round controls keep their look and get an
   invisible 44px hit area around them */
@media (max-width: 760px), (pointer: coarse) {
  :root[data-look] :is(#watch, #drill, #progress, #conversations) :is(.linkish, summary, .prog-switch button, .watch-switch button, #drillSwitch button),
  :root[data-look] :is(.prog-switch button, .watch-switch button, .cs-backlink, #watchSavedBtn, #watchChannelsBtn),
  :root[data-look] .account-menu :is(button, a) { min-height: 44px; display: inline-flex; align-items: center; }
  :root[data-look] .account-menu :is(button, a) { display: flex; }
  :root[data-look] :is(#goalEdit, .hear-chip, .hear-speed, .wc-hide, .listen-hide, .plan-move button, .deck-say) { position: relative; }
  :root[data-look] :is(#goalEdit, .hear-chip, .hear-speed, .wc-hide, .listen-hide, .plan-move button)::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
@media (max-width: 760px), (pointer: coarse) {
  :root[data-look] .wm-spans button { min-height: 44px; }
  :root[data-look] #frontLost { min-height: 44px; }
}
:root[data-look] #lessonsPanel h2, :root[data-look] .drill-panel h2 { font-weight: 650; letter-spacing: -.02em; color: var(--brand-plum); }

/* How Cuéntame works (16 Nov 2026): in the card's place, a reading view. The promise in Today's headline type; the four
   steps with the path's numbered circles; the story, the research and the engine as rows you open. */
.how.hidden { display: none !important; }
#practice.cs-path.show-how .cs-main > :not(#howItWorks):not(#sessionSay) { display: none !important; }
#practice.cs-path.show-how .cs-main { overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; }
#practice.cs-path.home-idle.show-how .cs-main { padding: 48px 56px; }
.how { max-width: 68ch; color: var(--brand-body); font-family: var(--cs-ui, "DM Sans", sans-serif); }
.how-title { margin: 0; font: 650 clamp(32px, 3.4vw, 44px)/1.05 var(--cs-ui, "DM Sans", sans-serif); letter-spacing: -.03em; color: var(--brand-plum); }
.how-title:focus:not(:focus-visible) { outline: none; }
.how-promise { margin: 16px 0 0; font-size: 20px; line-height: 1.45; font-weight: 550; color: var(--brand-plum); }
.how-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.6; }
.how-steps { list-style: none; margin: 28px 0 8px; padding: 20px 24px; display: grid; gap: 14px; border-radius: 16px; background: var(--brand-purple-soft); }
.how-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 16px; line-height: 1.5; }
.how-steps b { color: var(--brand-plum); }
.how-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1.5px solid var(--brand-purple);
  font: 650 14px/1 var(--cs-ui, sans-serif); color: var(--brand-purple); font-variant-numeric: tabular-nums; }
.how-more { border-top: 1px solid var(--brand-line); }
.how-more:last-of-type { border-bottom: 1px solid var(--brand-line); }
.how-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none;
  font: 650 18px/1.3 var(--cs-ui, sans-serif); color: var(--brand-plum); }
.how-more summary::-webkit-details-marker { display: none; }
.how-more summary::after { content: ""; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--brand-purple); border-bottom: 2px solid var(--brand-purple);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.how-more[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.how-more summary:hover { color: var(--brand-purple); }
.how-more > :not(summary) { font-size: 16px; line-height: 1.6; }
.how-more p { margin: 0 0 12px; }
.how-more ul, .how-findings { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; }
.how-more b { color: var(--brand-plum); }
.how-why { display: block; margin-top: 4px; color: var(--brand-purple); font-weight: 550; }
.how-note { font-size: 14px !important; color: var(--brand-muted); }
.how-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.how-link { align-self: flex-start; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) { #practice.show-how .how > * { animation: cs-rise .45s cubic-bezier(.16, 1, .3, 1) both; } }
@media (max-width: 899px) {
  #practice.cs-path.home-idle.show-how .cs-main { padding: 20px 16px; }
  .how-promise { font-size: 18px; }
  .how-steps { padding: 16px; }
  .how-go { flex-direction: column; align-items: stretch; }
  .how-go .cs-btn { width: 100%; }
}
@media (min-width: 900px) { #practice.cs-path .cs-main { justify-self: stretch; width: auto; } }
.how-title:focus { outline: none; }
:root[data-look] #practice.cs-path:not(.hidden) { width: 100%; align-self: stretch; }   /* full page width, whatever the card holds */
#practice .how-title:focus, #practice .how-title:focus-visible { outline: none; }   /* focus moved there by the page, not by a key */
/* How it works, drawn (16 Nov 2026): the gap and the loop, from the brand tokens; type in SVG units sized to read on a phone */
.how-fig { display: block; width: 100%; height: auto; margin: 24px 0 0; font-family: var(--cs-ui, "DM Sans", sans-serif); overflow: visible; }
.how-gap { max-width: 520px; }
.how-loop { max-width: 440px; margin: 28px auto 8px; }
.how-fig .fig-label { font-size: 19px; font-weight: 600; fill: var(--brand-plum); }
.how-fig .fig-note { font-size: 15px; font-weight: 600; fill: var(--brand-purple); }
.how-fig .fig-bar-soft { fill: #e4dbfa; }
.how-fig .fig-bar { fill: var(--brand-purple); }
.how-fig .fig-bar-grow { fill: none; stroke: var(--brand-purple); stroke-width: 2; stroke-dasharray: 6 6; opacity: .55; }
.how-fig .fig-arrow, .how-fig .fig-arc { fill: none; stroke: var(--brand-purple); stroke-width: 2.5; stroke-linecap: round; }
.how-fig .fig-head { fill: var(--brand-purple); }
.how-fig .fig-ring { fill: var(--brand-purple-soft); stroke: none; }
.how-fig .fig-node circle { fill: #fff; stroke: var(--brand-purple); stroke-width: 2.5; }
.how-fig .fig-node text { font-size: 20px; font-weight: 650; fill: var(--brand-purple); text-anchor: middle; }
.how-fig .fig-step { font-size: 21px; font-weight: 650; fill: var(--brand-plum); }
.how-fig .fig-sub { font-size: 16px; fill: var(--brand-muted); }
.how-fig .end { text-anchor: end; }
.how-fig .fig-center { font-size: 20px; font-weight: 650; fill: var(--brand-purple); text-anchor: middle; }
.how-findings li, .how-engine li { line-height: 1.5; }
.how-engine { list-style: none; padding-left: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  #practice.show-how .how-loop .fig-arc { stroke-dasharray: 200; stroke-dashoffset: 200; animation: fig-draw .6s cubic-bezier(.16, 1, .3, 1) forwards; }
  #practice.show-how .how-loop .fig-arc:nth-of-type(2) { animation-delay: .15s; }
  #practice.show-how .how-loop .fig-arc:nth-of-type(3) { animation-delay: .3s; }
  #practice.show-how .how-loop .fig-arc:nth-of-type(4) { animation-delay: .45s; }
  #practice.show-how .how-loop .fig-arc:nth-of-type(5) { animation-delay: .6s; }
  #practice.show-how .how-gap .fig-bar { transform-origin: 0 113px; animation: fig-grow .7s .2s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes fig-draw { to { stroke-dashoffset: 0; } }
  @keyframes fig-grow { from { transform: scaleX(.2); } }
}

/* ===========================================================================================================
   The landing page (17 Nov 2026): the signed-out front page grows into the story — the promise and the real app in
   the hero, then the problem, the founder, the mechanism, a session, the research, the doubts and the ask again.
   Same world as Today: DM Sans, plum/purple/yellow, the warm lilac page, real screens instead of illustrations.
   =========================================================================================================== */
.signin.front-page { max-width: 1180px; }
.lp-primer { margin: 0 0 14px; font: 600 15px/1.4 var(--font); color: var(--brand-purple); }
:root[data-look] .front-line { font-weight: 650; letter-spacing: -.035em; color: var(--brand-plum); }
.front-page .signin-btn { border-radius: 12px; }
.front-page .signin-btn:not(.quiet) { background: var(--brand-purple); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 10px 20px -12px rgb(91 43 201 / .75); }
.front-page .signin-btn.quiet { background: #fff; color: var(--brand-plum); border: 1px solid var(--brand-control-line); }
.lp-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 12px 0 8px; }
.lp-phone { display: block; width: min(46%, 250px); height: auto; border-radius: 34px; background: #fff;
  border: 8px solid #1f1430; box-shadow: 0 2px 4px rgb(43 18 68 / .08), 0 30px 60px -24px rgb(43 18 68 / .45); }
.lp-phone-a { transform: rotate(-4deg) translateY(10px); z-index: 2; margin-right: -28px; }
.lp-phone-b { transform: rotate(4deg) translateY(36px); }
@media (min-width: 960px) {
  .front-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) !important; grid-template-areas: "line review" "copy review" !important; align-items: center !important; }
  .lp-hero-copy { grid-area: line; align-self: end; }
  .lp-phones { grid-area: review; }
  .front-line { font-size: clamp(40px, 4.1vw, 48px) !important; }   /* each half of the promise on one line */
}
@media (prefers-reduced-motion: no-preference) {
  .lp-phone-a { animation: lp-float-a .9s .1s cubic-bezier(.16, 1, .3, 1) both; }
  .lp-phone-b { animation: lp-float-b .9s .25s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes lp-float-a { from { opacity: 0; transform: rotate(-4deg) translateY(40px); } }
  @keyframes lp-float-b { from { opacity: 0; transform: rotate(4deg) translateY(70px); } }
}
/* the sections */
.lp-sec { padding: clamp(56px, 8vw, 104px) 0 0; max-width: 1040px; margin: 0 auto; width: 100%; }
.lp-sec h2 { margin: 0; max-width: 22ch; font: 650 clamp(24px, 3vw, 38px)/1.1 var(--font); letter-spacing: -.03em; color: var(--brand-plum); text-wrap: balance; }
.lp-lede { margin: 18px 0 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--brand-body); }
.lp-lede em { font-style: normal; font-weight: 650; color: var(--brand-plum); }
.lp-gap { max-width: 620px; margin-top: 36px; }
/* what you've tried: rows, the good in plum, the miss in muted with a dash */
.lp-rows { margin: 32px 0 0; border-top: 1px solid var(--brand-line); }
.lp-row { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr; gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--brand-line); }
.lp-row b { font-size: 18px; color: var(--brand-plum); }
/* the things they've tried: one line icon each, in the app's own icon style (24 grid, 2px round strokes) */
.lp-row b { display: flex; align-items: center; gap: 14px; }
.lp-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--brand-line); color: var(--brand-purple); }
@media (max-width: 760px) { .lp-row :is(.lp-good, .lp-miss) { padding-left: 58px; } }
.lp-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-row { align-items: center; }
.lp-good { font-size: 16px; color: var(--brand-purple); font-weight: 600; }
.lp-miss { font-size: 16px; color: var(--brand-muted); }
/* the story: a quiet column with a lilac rule of its own */
.lp-story-body { margin-top: 24px; max-width: 62ch; padding: 28px 32px; border-radius: 20px; background: #fff; box-shadow: var(--panel-shadow); }
.lp-story-body p { margin: 0 0 14px; font-size: 18px; line-height: 1.65; color: var(--brand-body); }
.lp-sign { margin: 4px 0 0 !important; font-weight: 600; color: var(--brand-plum) !important; }
/* the mechanism: two pillars */
.lp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.lp-pillar { padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--panel-shadow); }
.lp-pillar:nth-child(2) { background: var(--brand-plum); }
.lp-pillar:nth-child(2) :is(h3, p, li, b), :root[data-look] #signin .lp-pillar:nth-child(2) h3 { color: #fff; }
.lp-pillar:nth-child(2) .lp-num { background: var(--brand-yellow); color: var(--brand-plum); }
.lp-num { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 16px; border-radius: 50%; background: var(--brand-purple-soft); font: 650 16px/1 var(--font); color: var(--brand-purple); }
.lp-pillar h3 { margin: 0 0 10px; font: 650 24px/1.2 var(--font); letter-spacing: -.02em; color: var(--brand-plum); }
.lp-pillar p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--brand-body); }
.lp-soon { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--brand-yellow-soft); font-size: 14px !important; font-weight: 600; color: var(--brand-plum) !important; }
.lp-because { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lp-because li { padding-left: 18px; position: relative; font-size: 16px; line-height: 1.5; opacity: .92; }
.lp-because li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-yellow); }
.lp-after { margin-top: 28px; }
.lp-cta-row { margin: 28px 0 0; }
.lp-cta-row .signin-btn { width: auto; min-width: 220px; padding: 0 32px; }
/* a session: the real review, then three screens */
.lp-see .front-review { margin-top: 32px; max-width: 720px; }
.lp-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; max-width: 820px; }
.lp-strip figure { margin: 0; text-align: center; }
.lp-strip img { display: block; width: 100%; height: auto; border-radius: 26px; border: 6px solid #1f1430; box-shadow: 0 24px 48px -26px rgb(43 18 68 / .5); }
.lp-strip figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--brand-plum); }
/* the research: five findings, numbered in purple */
.lp-findings { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 32px; }
.lp-findings li { counter-increment: f; position: relative; padding: 18px 0 0 44px; border-top: 1px solid var(--brand-line); font-size: 16px; line-height: 1.55; color: var(--brand-body); }
.lp-findings li::before { content: counter(f); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-purple-soft); font: 650 14px/1 var(--font); color: var(--brand-purple); }
.lp-findings b { color: var(--brand-plum); }
/* doubts */
.lp-faq { margin: 28px 0 0; display: grid; gap: 0; max-width: 760px; }
.lp-faq dt { padding-top: 20px; border-top: 1px solid var(--brand-line); font: 650 19px/1.35 var(--font); color: var(--brand-plum); }
.lp-faq dd { margin: 8px 0 20px; font-size: 17px; line-height: 1.6; color: var(--brand-body); }
/* the ask, once more, on plum */
.lp-final { margin-top: clamp(56px, 8vw, 104px); padding: clamp(40px, 6vw, 72px); border-radius: 28px; background: var(--brand-plum); text-align: left; }
.lp-final h2, :root[data-look] #signin .lp-final h2 { color: #fff; }
.lp-final .lp-lede { color: rgb(255 255 255 / .82); }
.lp-final .signin-btn { background: var(--brand-yellow) !important; color: var(--brand-plum) !important; box-shadow: none !important; }
.front-links { margin-top: 40px; }
@media (max-width: 760px) {
  .lp-row { grid-template-columns: 1fr; gap: 2px; }
  .lp-story-body { padding: 22px 20px; }
  .lp-strip { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .lp-strip figure { scroll-snap-align: start; }
  .lp-phone { width: min(48%, 200px); border-width: 6px; border-radius: 28px; }
  .lp-cta-row .signin-btn { width: 100%; }
}

/* signed out, only the front page shows: later layout layers set .wrap to flex */
body.signed-out > .wrap { display: none !important; }

/* Where your minutes go: a slider and one stacked bar per way of learning (understanding, tapping and recalling,
   speaking). Colour is paired with the legend's words and each row's spoken number, never alone. */
.lp-mctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 8px; }
.lp-mctl label { font-size: 17px; color: var(--brand-plum); }
.lp-mctl input[type=range] { flex: 1 1 260px; max-width: 420px; height: 44px; accent-color: var(--brand-purple); }
.lp-mkey { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 18px; font-size: 14px; color: var(--brand-muted); }
.lp-mkey span { display: inline-flex; align-items: center; gap: 8px; }
.lp-mkey i, .lp-mbar i { display: block; }
.lp-mkey i { width: 14px; height: 14px; border-radius: 4px; }
.u { background: #c9bbe8; }
.r { background: repeating-linear-gradient(135deg, #8f74d6 0 4px, #c3b3ec 4px 8px); }
.s { background: var(--brand-purple); }
.lp-mrows { display: grid; gap: 0; border-top: 1px solid var(--brand-line); }
.lp-mrow { display: grid; grid-template-columns: minmax(170px, 1.1fr) 2fr minmax(170px, 1fr); align-items: center; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--brand-line); }
.lp-mname { font-size: 17px; font-weight: 600; color: var(--brand-plum); }
.lp-mbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #f1ecfb; }
.lp-mbar i { flex-basis: 0; transition: flex-grow .3s ease; }
.lp-mout { font-size: 16px; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.lp-mmin { font-size: 22px; font-weight: 650; color: var(--brand-plum); margin-right: 2px; }
.lp-mrow.is-us .lp-mname, .lp-mrow.is-us .lp-mmin { color: var(--brand-purple); }
.lp-mrow.is-us { background: linear-gradient(90deg, rgb(255 212 74 / .16), transparent 70%); }
.lp-mnote { margin: 18px 0 0; max-width: 760px; font-size: 14px; line-height: 1.6; color: var(--brand-muted); }
@media (max-width: 760px) {
  .lp-mrow { grid-template-columns: 1fr auto; }
  .lp-mbar { grid-column: 1 / -1; grid-row: 2; }
  .lp-mout { text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .lp-mbar i { transition: none; } }
