:root{
  --bg:#f4f7fb; --card:#ffffff; --ink:#1c2431; --muted:#5c6b7f; --line:#e3e9f2;
  --brand:#2f6df0; --brand-dk:#1f52c0; --good:#1a9d5a; --warn:#e0922f; --bad:#d1495b;
  --shadow:0 6px 24px rgba(24,43,77,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);color:var(--ink);line-height:1.5}
a{color:var(--brand);text-decoration:none}
.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  padding:12px 20px;background:#fff;border-bottom:1px solid var(--line)}
.brand{font-weight:800;font-size:20px;letter-spacing:-.3px;cursor:pointer;color:var(--ink)}
.brand span{color:var(--brand);margin:0 1px}
.userbox{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--muted)}
/* v29-bugfix (3 independent reports, DEV #fd6364a7/#7e62682c + QA #9a50b93f): "a lot of space
   the question isn't using," "shouldn't have to scroll to see everything." A modest, safe
   width bump (not a redesign) -- desktop-only per standing rule, so no responsive-breakpoint
   risk. Revisit with a real design pass if testers still find it cramped after this. */
.app{max-width:1080px;margin:0 auto;padding:24px 18px 60px}
.foot{max-width:920px;margin:0 auto;padding:0 18px 40px;color:var(--muted);font-size:12px;text-align:center}

.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow);margin-bottom:18px}
/* FIXD14 Dashboard owner (fd7d8923/Sid12, 2026-09-20): #/student de-boxing. .flat is a
   COMPOUND modifier (.card.flat) -- it only fires where both classes are present, and "flat" is
   emitted nowhere except viewStudent()'s own supplementary/info cards, so this can never change
   the plain .card look on any other screen. Info sits closer to the page background instead of
   in its own bordered box; still a margin-bottom'd block so vertical rhythm is unchanged. */
.card.flat{border-color:var(--top-bg);box-shadow:none;background:transparent;padding-left:4px;padding-right:4px}
/* Difficulty selector strip (98dfedbc/Sid7, same round) -- deliberately NOT a .card: the ask was
   fewer boxes, so this sits as a plain inline row, same idiom as .row above. Scoped class name
   (dash-diff*) so it can't collide with anything outside viewStudent(). */
.dash-diff{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 18px}
.dash-diff .dash-diff-btn.active{box-shadow:inset 0 0 0 2px var(--accent);font-weight:700}
h1{font-size:28px;margin:.2em 0 .3em;letter-spacing:-.5px}
h2{font-size:20px;margin:.2em 0 .5em}
h3{font-size:16px;margin:.2em 0 .4em}
/* S5-U1 (Fable T1 AMEND 2026-09-30): ported verbatim from PONDUX1 mockups/dashboard_mockup.html:50
   -- an ADDITIVE, class-scoped rule. Bare h1/h2/h3 above are untouched. Applied selectively to
   top-level page headings only (see app.js call sites), never sitewide. */
h1.page-title,h2.page-title{background:var(--top-bg);color:var(--top-ink);font-size:19px;font-weight:800;
  margin:0;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
/* FIXD35 8a95328f (Ram design ask): section headings inside flat cards take the Dashboard banner look. */
.card.flat > h2:not(.page-title){background:var(--top-bg);color:var(--top-ink);font-size:19px;font-weight:800;margin:0 0 12px;padding:10px 14px;border-radius:10px}
.card.flat > h2:not(.page-title) .muted,.card.flat > h2:not(.page-title) small{color:var(--top-ink);opacity:.85}
.muted{color:var(--muted)}
.row{display:flex;gap:12px;flex-wrap:wrap}
.grow{flex:1}
.center{text-align:center}
.spacer{height:10px}

label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin:10px 0 4px}
input,select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;font-size:15px;background:#fff}
input:focus,select:focus{outline:none;border-color:var(--brand)}

.btn{display:inline-block;border:0;border-radius:10px;padding:11px 18px;font-size:15px;font-weight:700;
  background:var(--brand);color:#fff;cursor:pointer;transition:transform .05s ease, background .15s}
.btn:hover{background:var(--brand-dk)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:#eef3fd;color:var(--brand-dk)}
.btn.ghost:hover{background:#e2ebfb}
.btn.wide{width:100%}
.btn:disabled{opacity:.5;cursor:default}
.btn.lg{padding:14px 22px;font-size:16px}
.file-input{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.file-input input[type="file"]{display:none}

.hero{background:linear-gradient(135deg,#2f6df0,#5b8bff);color:#fff;border:0}
/* FIXD24 (Ram, 2026-10-01): .hero h1 and h1.page-title have equal selector specificity, so
   whichever rule sits later in the cascade wins regardless of intent. .page-title owns a
   complete, self-contained light-on-dark treatment (line ~41); this exclusion stops the older
   .hero override from clobbering it whenever a .page-title heading sits inside a .hero (every
   Dashboard state + Full Length Practice Tests + Vocabulary practice -- 5 sites, confirmed
   invisible (dark-on-dark) live on DEV before this fix). */
.hero h1:not(.page-title){color:var(--ink)}
.hero-strip{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:16px;font-size:13px;opacity:.92}
/* 194d60a4 (vandanasat1): .hero-strip inherited .hero's white text (line 60), tuned for the
   gradient background -- but .card.flat (used on every .hero instance) kills that gradient to
   transparent (see the tdev1 P-U1 comment below), same as .hero h1/.hero .muted already had to
   be re-darkened for. hero-strip had no such override, so its icon labels went white-on-white. */
.hero .hero-strip{color:var(--ink)}
.pill{display:inline-block;background:#eaf1ff;color:var(--brand-dk);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}

.bar{height:14px;background:#e9eef6;border-radius:999px;overflow:hidden}
.bar > i{display:block;height:100%;border-radius:999px;background:var(--good);transition:width .6s ease}
.barlabel{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px}

.kid{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
.kid .grow{min-width:0}
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.tab{padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);cursor:pointer;font-weight:600;font-size:14px}
.tab.on{background:var(--brand);color:#fff;border-color:var(--brand)}
/* FIXD30 (fd3d7e7d, 34ba76e2): bug tracker compact toolbar + breathing room under the heading */
/* 34ba76e2: h2.page-title (0,1,1) beat the bare .bug-tracker-title (0,1,0) margin, so the title sat flush on the group-by buttons.
   Class fix: any control row / tab strip directly under a banner heading gets its own top gap, and the group-by pair is a sized, evenly spaced segment. */
h2.page-title.bug-tracker-title{margin-bottom:16px}
.page-title + .row,.page-title + .tabs,.page-title + .bug-toolbar{margin-top:14px}
.bug-groupby{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.bug-groupby .btn{min-width:150px;justify-content:center;padding:9px 16px}
/* 94472579: a banner heading that opens a flat card sits flush on the card border (top and both sides), like one block.
   .card.flat has 22px top / 4px side padding + 1px border; the negative margins cancel exactly that. */
.card.flat:not(.bug-panel) > h1.page-title:first-child,.card.flat:not(.bug-panel) > h2.page-title:first-child,.card.flat:not(.bug-panel) > h2:not(.page-title):first-child{margin:-23px -5px 14px;border-radius:13px 13px 0 0}
.bug-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:14px}
.bug-tb-item{display:flex;align-items:center;gap:6px}
.bug-tb-item select.bug-tb-sel{width:auto;max-width:240px;padding:7px 10px;font-size:14px}
/* V2-C4 lesson shell: the body under a .tabs bar. Reuses the EXISTING tab component
   rather than porting SidV's .ltabs/.ltab, whose rules reference --panel/--brand2, tokens
   this palette does not define (Opus amendment to Fable's C4 amendment 2, 2026-09-01). */
.tab-body{margin-top:14px}

.q .stem{font-size:15px;font-weight:400;margin:6px 0 14px;white-space:pre-wrap;line-height:1.55}
.opt{display:block;width:100%;text-align:left;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:#fff;margin-bottom:10px;cursor:pointer;font-size:15px;color:#1a1a2e}
.opt:hover{border-color:var(--brand)}
/* Glimpse (viewTry, public/app.js) disables option buttons the instant one is picked, so it
   can grade immediately -- with no override here that fell through to the browser's default
   :disabled dimming (~30% opacity text), which auto-test evidence (2026-08-26) showed reading
   as broken/unstyled on the product's single most important first-impression screen. */
.opt:disabled{color:#1a1a2e;opacity:.85;cursor:default}
/* fe546747: the old #eef3fd tint was nearly white, so a picked vocab option looked unselected. One shared selected look
   for every .opt quiz (vocab practice, SAT, ACT, AP, lessons): clear blue fill + double border (inset ring, no layout shift) + bold. */
.opt.sel{border-color:var(--brand);background:#d4e2fe;box-shadow:inset 0 0 0 1px var(--brand);font-weight:700}
.opt.correct{border-color:var(--good);background:#e9f8f0}
.opt.wrong{border-color:var(--bad);background:#fbecef}
.progress-dots{display:flex;gap:6px;margin:4px 0 16px}
.dot{width:26px;height:6px;border-radius:999px;background:#dfe6f0}
.dot.done{background:var(--brand)}

.result-score{font-size:52px;font-weight:800;letter-spacing:-1px}
.tag{display:inline-block;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px}
.list{margin:8px 0 0;padding-left:18px}
.list li{margin:5px 0}
.err{background:#fbecef;color:#a12b3d;border:1px solid #f3c9d1;padding:10px 12px;border-radius:10px;font-size:14px;margin:8px 0}
.ok{background:#e9f8f0;color:#137a45;border:1px solid #bfe8d1;padding:10px 12px;border-radius:10px;font-size:14px;margin:8px 0}
.review .item{border:1px solid var(--line);border-radius:11px;padding:12px;margin-bottom:10px}
/* ===== QA 3e35f5b5/56eafc85/f66e9094/cfd2c2f4: collapsed-by-default review card (Sid7) =====
   .item is now a <details> — the border/spacing rule above is unchanged and still applies. */
.review-summary{cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style:none}
/* FIXD22 (bug 9c2d6b1f, "tick and x are shown before the question... no expanding happening"):
   list-style:none above removes Firefox's native disclosure triangle entirely, and the
   ::-webkit-details-marker below is a ~12px glyph easy to miss among 5-6 other pills on the
   row -- browsers disagreed AND the cue was too subtle either way, so testers never realized
   the row was expandable. Explicit text cue instead, same in every browser, toggled by the
   native details[open] state (no extra JS). */
.review-summary::-webkit-details-marker{display:none}
.review-summary::after{content:'▸ Tap to see the full question';margin-left:auto;color:var(--brand,#4A4E69);font-size:12px;font-weight:700;flex:0 0 auto}
.review .item[open] .review-summary::after{content:'▾ Hide the full question'}
.review-body{margin-top:10px}
.review-filters{margin-bottom:14px}
.review-filter-sep{width:1px;align-self:stretch;background:var(--line)}
.review-filter-btn.active,.review-level-btn.active{box-shadow:inset 0 0 0 2px var(--accent,var(--brand))}
.btn.ghost.small.active{box-shadow:inset 0 0 0 2px var(--accent,var(--brand))}
.review-module{margin-top:6px}
.review-module h3{margin-bottom:8px}

/* ===== QA 4e484e63/231cb5a2: R&W-only highlighter (Sid7, asked twice). No dark-theme variant
   below — this stylesheet has no prefers-color-scheme / dark palette to hook into yet. ===== */
.hl{background:#fff3a3;cursor:pointer;border-radius:2px}
.hl.hl-color-1{background:#fff3a3}
.hl.hl-color-2{background:#ffc0e0}
.hl.hl-color-3{background:#b3d9ff}
.hl-swatch{border:2px solid var(--line);cursor:pointer;transition:transform .05s ease;border-radius:4px}
.hl-swatch:hover{transform:scale(1.1)}
#hlBtn.active{box-shadow:inset 0 0 0 2px var(--accent,var(--brand))}
.email{background:#fbfdff;border:1px solid var(--line);border-radius:11px;padding:14px;white-space:pre-wrap;font-size:14px}
.small{font-size:13px}
.hide{display:none}
.pwrow{display:flex;gap:8px;align-items:stretch}
.pwrow input{flex:1}
.eye{border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer;color:var(--muted);white-space:nowrap}
.note-good{color:var(--good);font-weight:700}
.note-bad{color:var(--bad);font-weight:700}
.note-revealed{color:var(--warn);font-weight:700}
.req{color:var(--bad)}
#userNote,#pwNote{margin-top:5px;min-height:18px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--good);color:#fff;padding:12px 22px;border-radius:12px;font-weight:700;box-shadow:var(--shadow);z-index:60}

/* ---- domain groups, dashboard (G1) ---- */
.domain{padding:0;overflow:hidden}
.domain > summary{list-style:none;cursor:pointer;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;font-weight:700;font-size:16px}
.domain > summary::-webkit-details-marker{display:none}
.domain > summary::before{content:'▸';display:inline-block;margin-right:8px;color:var(--brand);transition:transform .15s ease}
.domain[open] > summary::before{transform:rotate(90deg)}
.domain-body{padding:0 22px 20px}

/* ---- question screen: timer, cross-out, flag (G3) ---- */
.optrow{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.optrow .opt{margin-bottom:0;flex:1}
.opt.elim{text-decoration:line-through;opacity:.45}
/* bb2d5704: the strike line spans the WHOLE choice box (also choices holding math/KaTeX), not only the text runs. */
.opt.elim{position:relative}
.opt.elim::after{content:'';position:absolute;left:8px;right:8px;top:50%;border-top:2px solid currentColor;pointer-events:none}
.strike{border:1px solid var(--line);background:#fff;border-radius:8px;width:38px;height:38px;font-size:16px;font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap;flex-shrink:0;line-height:1}
.strike.on{color:var(--brand-dk);border-color:var(--brand);background:#eef3fd}
.dot.flag{background:var(--warn)}

/* v29-bugfix (QA #7883dd23): a small corner marker on the question card itself, standing in
   for the flag once the dots row is hidden (see DOTS_MAX_ROW in app.js). */
#flagBtn{min-width:10.5em;text-align:center}   /* FIXD30 L1: label swap must not change width */

/* FIXD14 Practice-owner (88f72956 front half): single-question mode's strategy box.
   f1583148 (FIXD18, 2026-09-21): was position:absolute;top:-10px;left:14px, floating the box
   OVER the header row (same top-left corner as the question-count text) instead of beside it --
   now a normal inline flex child of that row (see paintQuestion's header markup); only needs
   position:relative left as the anchor for its dropdown panel below. */
.strategy-box{position:relative}
.strategy-box-panel{position:absolute;top:100%;left:0;margin-top:6px;width:260px;max-width:80vw;
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.15);z-index:20;text-align:left}
.strategy-box-panel h4{margin:0 0 4px;font-size:13px}
.strategy-box-panel p{margin:0 0 10px;font-size:12.5px;line-height:1.4;color:#444}
.strategy-box-panel p:last-child{margin-bottom:0}

/* ---- grid-in entry widget (C4a step 5) — sizing/layout only, no new color tokens;
   the input/focus colors already come from the global input rule above. ---- */
.gridin-input{max-width:200px;font-size:20px;font-weight:700;letter-spacing:1px;text-align:center}

/* ---- per-question immediate feedback (G4) ---- */
.feedback-banner{font-weight:800;font-size:17px;border-radius:11px;padding:11px 14px;margin:12px 0}
.feedback-banner.good{background:#e9f8f0;color:#137a45}
.feedback-banner.bad{background:#fbecef;color:#a12b3d}
.rationale{font-size:14px;color:var(--ink);background:#f7f9fd;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:4px 0 8px}
.worked-solution{font-size:15px;line-height:1.5;color:var(--ink);background:#eef4fc;border:1px solid var(--line);border-left:3px solid var(--accent,#C9ADA7);border-radius:10px;padding:10px 12px;margin:4px 0 8px;max-height:50vh;overflow-y:auto}
.worked-solution b{display:block;margin-bottom:6px;font-size:13px;text-transform:uppercase;letter-spacing:.4px;color:var(--accent,#C9ADA7)}
.worked-solution-text{margin:0;font-size:16px;line-height:1.65;font-family:var(--font-body)}
/* 8d0b6e4a (QA): "Worked examples should be in steps... font better for each question. It
   shouldn't be plain text." Numbered circular badges instead of bare <ol> markers, generous
   line-height and a serif reading face so multi-sentence math explanations scan as discrete
   steps, not one paragraph. Used for both real steps[] and the client-side sentence split. */
.steps-list{list-style:none;counter-reset:step;padding-left:0;margin:6px 0 0}
.steps-list li{position:relative;counter-increment:step;padding:6px 0 8px 36px;margin:2px 0;font-size:16px;line-height:1.65;font-family:var(--font-body);border-bottom:1px dashed rgba(0,0,0,.08)}
.steps-list li:last-child{border-bottom:none}
.steps-list li::before{content:counter(step);position:absolute;left:0;top:6px;width:23px;height:23px;border-radius:50%;background:var(--accent,#C9ADA7);color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:12px;font-weight:700;line-height:23px;text-align:center}
/* FIXD19: tap-to-reveal step feature — single step visible at a time with "Show next step" button */
.steps-reveal-container{display:flex;flex-direction:column;gap:10px}
.steps-next-btn{margin-top:8px;align-self:flex-start}
.trap-pill{display:inline-block;background:var(--bad);color:#fff;font-size:10px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;border-radius:999px;padding:2px 8px;margin-right:7px;vertical-align:middle}

/* ---- results summary strip (G5) ---- */
.summary-hero .qpillrow{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:14px}
.qpill{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 4px;border-radius:8px;font-size:12px;font-weight:800;color:#fff}
.qpill.pass{background:var(--good)}
.qpill.fail{background:var(--bad)}

/* ---- Finish-the-Test chunk: module clock, check-your-work, celebratory result ---- */
.clock{font-variant-numeric:tabular-nums;font-weight:700;font-size:14px;color:var(--muted);
  background:#f1f5fb;border-radius:8px;padding:3px 9px}
.clock.low{color:#fff;background:var(--bad)}

.checklist{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.checkrow{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  text-align:left;font-size:14px;font-family:inherit;color:var(--ink);cursor:pointer;
  background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px}
.checkrow:hover{border-color:var(--brand)}
.flagpill{background:#fdf0dd;color:#a4691b;margin-left:6px}

/* 2026-08-27: GATE-exam-style question-nav grid (Vandana #7) */
.qnav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:6px;margin:8px 0 16px}
.qnav-cell{position:relative;padding:8px 0;border-radius:8px;border:1px solid var(--line);background:#fff;
  font-size:13px;font-weight:600;color:var(--ink);cursor:pointer}
.qnav-cell:hover{border-color:var(--brand)}
.qnav-cell.answered{background:#eef6ee;border-color:#9fd39f}
.qnav-cell.flagged::after {
  content: "🚩";
  position: absolute;
  top: -5px;
  right: -3px;
  font-size: 10px;
  line-height: 1;
}
.qnav-cell.current{outline:2px solid var(--brand);outline-offset:1px}

.cheer{font-size:44px;line-height:1}
.cheer-line{font-weight:800;font-size:18px;margin:2px 0 6px}
.review .item.flagged{border-color:var(--warn);box-shadow:inset 3px 0 0 var(--warn)}

/* ---- C4: phones. The kids open this on a 375px screen, so 375 IS the demo.
   Overflow fixes only — no layout redesign, no hidden controls. ---- */
.stem, .opt, .rationale, .barlabel span, .domain-name, .passage{overflow-wrap:anywhere}

/* ---- C7b: R&W passage block. Sits inside the existing .card.q container, above .stem. ---- */
.passage{background:#f7f8fa;border:1px solid var(--line);border-radius:11px;
  padding:14px 16px;margin-top:12px;margin-bottom:14px;line-height:1.5;white-space:pre-wrap;font-size:16px}
.passage-label{font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.04em;
  color:var(--brand);margin-bottom:8px}
.passage-source{font-style:italic;font-size:12px;color:var(--muted);margin-top:8px}

/* ---- v24 (Sid dry-run item 12): Bluebook-style split for stimulus questions — passage/notes/
   graphic on the left, stem+choices on the right, each side scrolling independently so a long
   passage doesn't push the choices off screen. Desktop-only, per this project's standing law. ---- */
.q-split{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
/* FIXD19 (#cd143238 "Full-Test Layout Breaks in Mobile Portrait Mode"): reverted a mobile-portrait
   media query that was added here. The comment immediately above this rule is an explicit
   standing project law -- "Desktop-only" -- matching the separate SAT-laptop-only product
   ruling (SAT is never built for phone; mobile/phone is a different product). Building mobile
   layout support for the full-test screen would directly conflict with that standing ruling, so
   this is NOT a code fix -- it needs Ram's call on whether #cd143238 is even in scope. Flagged
   in Open_Questions.md; do not re-add without that ruling. */
/* 3f456caa: content already scrolls (max-height+overflow-y above) but nothing on screen hinted
   that — a faint inset shadow at the bottom edge signals "more below" without needing JS to
   track scroll position. */
/* VISUALUX1-U3 (QA #9a50b93f, Ram Q6 ruling 2026-09-20 -- option (c), Saanvi-confirmed live):
   both panes now fill the available viewport height instead of the old asymmetric
   left:70vh/right:uncapped shape. --top-h is the same chrome-height token .rail already uses
   (line ~334) for this exact "viewport minus sticky topbar" calc -- reused here, not invented.
   CSS-only, no new control. */
.q-split-left{max-height:calc(100vh - var(--top-h));overflow-y:auto;padding-right:4px;box-shadow:inset 0 -14px 10px -10px rgba(0,0,0,.14)}
.q-split-left .passage{margin-bottom:0}
.q-split-right{min-width:0;max-height:calc(100vh - var(--top-h));overflow-y:auto;position:sticky;top:var(--top-h)}
/* a28b9062: narrow laptop window -> one column; no sticky / max-height so the page scrolls normally. */
@media (max-width: 768px){
  .q-split{grid-template-columns:1fr;gap:16px}
  .q-split-left,.q-split-right{max-height:none;overflow-y:visible;position:static;box-shadow:none;padding-right:0}
  .q-split .stem,.q-split .opt,.q-split .passage{overflow-wrap:break-word;word-break:normal}
}
/* FIXD30 6200dc05: reserve room so the Loading state does not jump the pane */
#revealPanel:not(:empty){min-height:96px}

/* v29-bugfix (QA #9a50b93f/#ea4d7759): the question card was capped by .app's 1080px max-width
   even on wide screens, so a long passage/answer-choice set felt cramped into "half the
   screen" and read as one dense block. Let the practice card use the real viewport instead of
   the site's article-width cap, and give body copy Bluebook-style breathing room. */
.card.q{max-width:min(1400px,96vw);width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);box-sizing:border-box}
@media(max-width:1024px){ .card.q{max-width:100vw} }
/* PZN1 S4 fix (2026-09-09, live-verify): the 100vw/negative-margin breakout above assumes .app
   is centered on the full viewport, which is only true outside .shell (rail hidden). Inside
   .shell, .app is already a flex:1 column next to the rail (.shell .app{flex:1}, line ~278) --
   the breakout escapes that column and renders underneath the rail (confirmed via
   getBoundingClientRect: choice rows started at x:125 while .app starts at x:220). .shell
   .app is already the correct full available width, so just fill it. */
.shell .card.q{width:100%;max-width:100%;margin-left:0;margin-right:0}
.card.q .passage,.card.q .stem{line-height:1.6;font-family:var(--font-body)}
.card.q .passage > div{margin-bottom:10px}

/* FIXD14 Practice-owner (0f2bd4aa structure half, #/student/practice only): Bluebook-style
   answer-choice layout -- circular lettered badge + generous stem/option spacing, matching the
   real Digital SAT's presentation. Scoped under .card.q so lesson/vocab/results screens (bare
   .opt/.stem/.optrow, unchanged) are untouched; font-family is deliberately not part of this --
   that is the Visual-pass owner's job, blocked on Ram's font reference. VISUALUX1-U5
   (Ram Q1 ruling, option b): question text + math now use --font-body (serif); chrome
   (buttons/nav/optletter badges) stays on the sans body default -- see .card.q .stem/
   .passage/.opttext below. */
.card.q .stem{margin-bottom:20px;font-family:var(--font-body)}
.card.q .optrow{gap:10px}
.card.q .optrow .opt{display:flex;align-items:flex-start;gap:12px;padding:14px 16px}
.card.q .optletter{flex:0 0 26px;width:26px;height:26px;border-radius:50%;
  border:1.5px solid var(--line);display:inline-flex;align-items:center;justify-content:center;
  font-weight:600;font-size:13px}
.card.q .optrow .opt.sel .optletter{border-color:var(--brand);background:var(--brand);color:#fff}
.card.q .optrow .opt.correct .optletter{border-color:var(--good);background:var(--good);color:#fff}
.card.q .optrow .opt.wrong .optletter{border-color:var(--bad);background:var(--bad);color:#fff}
.card.q .opttext{flex:1;padding-top:1px;font-family:var(--font-body)}

/* Font-size control (item 12): three presets, toggled by the Aa buttons in the question header,
   persisted to localStorage (qFontScale) so it carries across questions in the same session. */
.qfont-2 .stem{font-size:18px}
.qfont-2 .opt{font-size:17px}
.qfont-2 .passage{font-size:18px}
.qfont-3 .stem{font-size:21px}
.qfont-3 .opt{font-size:19px}
.qfont-3 .passage{font-size:20px}

/* ---- C7e-0: rw_evidence_quant data table. Sits where .passage would, above .stem. ---- */
.graphic{background:#f7f8fa;border:1px solid var(--line);border-radius:11px;
  padding:14px 16px;margin-bottom:14px;overflow-x:auto}
.graphic-caption{font-weight:700;font-size:13px;margin-bottom:8px}
.graphic-table{border-collapse:collapse;width:100%;font-size:14px}
.graphic-table th,.graphic-table td{border:1px solid var(--line);padding:6px 10px;text-align:left}
.graphic-table th{background:#eef0f4;font-weight:700}

/* ---- Math figures/graphs retrofit: hand-authored SVG diagram, sits above .stem. ---- */
.figure{background:#f7f8fa;border:1px solid var(--line);border-radius:11px;
  padding:14px 16px;margin-bottom:14px;text-align:center;overflow-x:auto}
.figure svg{max-width:100%;height:auto}

/* ---- C7f-2 Chunk 2: rw_rhet_synthesis research notes. Renders inside .passage, above .stem. ---- */
.notes-list{margin:4px 0 0;padding-left:20px}
.notes-list li{margin-bottom:6px;line-height:1.4}

/* ===== C1a shell (2026-08-19) ===== */
:root{
  --top-bg:#0F2A43; --top-ink:#EAF1F8; --accent:#00A60E; --accent-ink:#FFFFFF;
  --rail-w:220px; --top-h:56px; --ex-runbar-h:64px; --ex-pane-top:132px;
}

/* Z-INDEX SCALE: rail 40 · topbar 50 · toast 60 · modal 100 */

.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--top-h);background:var(--top-bg);color:var(--top-ink)}
.topbar .brand{color:var(--top-ink)}

.topbar-left{display:flex;align-items:center;gap:10px}

.rail-toggle{background:transparent;border:0;color:var(--top-ink);font-size:20px;cursor:pointer;padding:4px 8px;border-radius:8px}
.rail-toggle:hover{background:rgba(234,241,248,.15)}

.shell{display:flex;align-items:flex-start}

/* FIXD24 (Ram, 2026-10-01): rail is now a flex column -- .rail-scroll holds the scrollable
   groups, .rail-collapse-row is a non-scrolling footer pinned to the bottom so the collapse
   control never scrolls out of view. Width/scroll/position are unchanged at this (expanded)
   state; only the internal layout changed. */
.rail{width:var(--rail-w);flex:0 0 var(--rail-w);position:sticky;top:var(--top-h);height:calc(100vh - var(--top-h));background:#fff;border-right:1px solid var(--line);z-index:40;padding:0;display:flex;flex-direction:column}
.rail-scroll{flex:1;min-height:0;overflow-y:auto;padding:12px 8px}

.rail-group{margin-bottom:14px}
/* v29-bugfix (DEV #c9a07103 / #b908769e): section headers (READING & WRITING, MATH, TESTS...)
   were the same muted, non-bold treatment as regular labels — "should look defined" (Pond).
   Bolder weight + full-strength ink color, not --muted, so they read as headers over the items
   under them, not as more list rows. */
.rail-head{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);padding:6px 10px}
.rail-item{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:10px;color:var(--ink);cursor:pointer;text-decoration:none;font-size:14px}
.rail-item:hover{background:rgba(74,78,105,.08)}
.rail-item.active{box-shadow:inset 0 0 0 2px var(--accent);font-weight:600}
.rail-icon{flex:0 0 auto;font-size:15px;line-height:1}

.shell .app{flex:1;min-width:0}

/* FIXD24: rail-hidden on mobile keeps its original meaning (fully gone, see the <=1024px
   block below -- untouched). On desktop it now means "collapsed to icons", not "gone", per
   Ram's ask -- the collapse control must stay reachable instead of needing the header ☰ to
   bring it back. */
body.rail-hidden .rail{display:none}
body.shell-off .rail, body.shell-off .rail-toggle, body.testing .rail, body.testing .rail-toggle{display:none}

@media(min-width:1025px){
  body.rail-hidden .rail{display:flex}
}

@media(max-width:1024px){
  .rail{position:fixed;left:0;top:var(--top-h);bottom:0;height:auto;box-shadow:0 12px 30px rgba(15,42,67,.25)}
}

/* ===== C1b nav IA (2026-08-19) ===== */
.hdr-hi{flex:1;text-align:center;font-weight:700;font-size:15px;color:var(--top-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-sub{margin:2px 0 6px 14px;padding-left:6px} /* FIXD27 (493a7a37): the 2px guide line was removed; the chevron on the parent row already shows open/closed */
.rail-sub .rail-item{font-size:13px;padding:7px 10px}
.rail-item.locked{color:var(--muted);cursor:pointer;opacity:.75}
.rail-item.locked .lock{float:right}
.rail-item.expandable .chev{transition:transform .15s}
.rail-item.expandable.open .chev{transform:rotate(90deg)}

/* ===== SidV palette adoption (Ram ruling "B", 2026-08-19) =====
   One block, deliberately last, so reverting to the SAT blue is deleting this section.
   Values are SidV's ACCESSIBILITY-TUNED ones, not the raw brand sheet: --brand #7458F0
   (#7C5CFF measured 4.35:1 with white text; this clears 4.5:1), --muted #726470 (Ram's
   Q8 ruling 2026-10-03; 5.57:1 on --card, 4.65:1 on --bg; see MUTED HISTORY below), and the text-safe green/red pair — SidV's --good/--error are fill
   colors and fail as small body text, which is exactly how SAT uses them.
   MUTED HISTORY: #45445C (Ram's earlier ruling A2) was the LIVE muted colour until 2026-09-30,
   when Pond's Soft Lavender palette replaced it with a pale lilac-grey (3.19:1 on white, fails 4.5:1). An
   earlier note here (and in Check_K4) that the ruled colour "was never applied" was wrong. The
   current ruled value is #726470 (Ram 2026-10-03). #45445C is not coming back: it is only 1.16:1
   from --brand #4A4E69, so captions would read as headings. A darker --muted is WORSE on dark
   fills (2.77:1 on #22223B, 1.46:1 on #4A4E69), so never put .muted text on one; every app.js
   .hero is "card flat hero" (transparent on --bg), which is why .hero .muted needs no override. */
:root{
  --bg:#F3F1F8; /* FIXD29 D14: was #F2E9E4 */ --card:#FFFFFF; --panel2:#C9ADA7;
  --ink:#22223B; --muted:#726470; --line:#E4D6CF;
  --brand:#4A4E69; --brand-dk:#22223B;
  --good:#1C8A4B; --bad:#B23A3A;
  --top-bg:#22223B; --top-ink:#F2E9E4;
  --accent:#C9ADA7; --accent-ink:#22223B;
  --radius:16px;
  --shadow:0 4px 14px rgba(34,34,59,.08);
  /* VISUALUX1-U5 (Ram Q1 ruling 2026-09-21, option b): system serif stack for question
     text + math only, no webfont. Reused by the 2 pre-existing hardcoded serif rules below
     (worked-solution text, step-badge) since they already matched this exact stack. */
  --font-body:"SAT Digits",Georgia,"Times New Roman",serif; /* FIXD29 E1: "SAT Digits" = lining 0-9 only, see lane E block at end of file */
}
/* SidV rounds its surfaces harder than the old SAT sheet did. */
.card,.kid,.domain,.review,.summary-hero{border-radius:var(--radius)}
.btn,.opt,.optrow .opt{border-radius:12px}
.rail-item,.tag,.pill{border-radius:999px}
.rail-item{border-radius:12px}
/* Three blue literals predate the tokens and would have left a blue hero on a purple site.
   Gradient ends at --brand-shade rather than a tint: measured, white body text on the old
   light end came in at 4.03:1. */
.hero{background:linear-gradient(135deg,var(--brand),var(--brand-dk))}
.hero .muted{color:var(--muted)}
.hero .pill{background:rgba(6,43,38,.35);color:var(--ink)}
/* tdev1 P-U1: .card.flat kills .hero's gradient background app-wide (every .hero usage is
   paired with "card flat"), so the white/near-white text above -- tuned for the blue/purple
   gradient -- landed on plain white and failed contrast. Darkened to --ink/--muted, which
   measured 14.7:1 / 9.4:1 against white (9.4:1 was --muted #45445C; since the 2026-10-03
   Q8 ruling --muted is #726470 = 5.57:1 on white, 4.65:1 on --bg). */
.card.flat.bug-panel{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}
.rail-item:hover{background:rgba(74,78,105,.08)}
/* The topbar went dark in C1a; --muted body text on it is dark-on-dark (measured 1.57:1). */
.topbar .userbox{color:var(--top-ink)}
.pill{background:var(--panel2);color:var(--brand-dk)}
/* Accent (teal) drives the active ring and the log-out button, as in the Dojo. */
.rail-item.active{box-shadow:inset 0 0 0 2px var(--accent)}
.userbox .btn.ghost{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-weight:700}

/* ===== C5 gamification chips (2026-08-20): XP + streak + Level, top bar. Student role only,
   private to the family (no leaderboard styling — this never renders anyone else's numbers). ===== */
.hdr-chips{display:flex;align-items:center;gap:8px;flex-shrink:0}
.chip{display:flex;align-items:center;gap:5px;background:rgba(240,237,255,.1);color:var(--top-ink);
  border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.chip .chip-ic{font-size:13px;line-height:1}
.chip.streak.on{background:var(--accent);color:var(--accent-ink)}
.chip-lvl-bar{width:44px;height:5px;border-radius:999px;background:rgba(240,237,255,.25);overflow:hidden;display:inline-block}
.chip-lvl-bar > i{display:block;height:100%;background:var(--accent);border-radius:999px}
@media(max-width:720px){ .hdr-chips .chip-label{display:none} }
/* DASH1 css fix: plum look only (the header sits outside .shell, so gate with :has). Narrow screens:
   header wraps, chips shrink, user box (Log out) stays on screen; page never widens. */
@media(max-width:720px){
  body:has(.look-plum) .topbar{flex-wrap:wrap;gap:6px 8px;padding:8px 12px;max-width:100vw;box-sizing:border-box}
  body:has(.look-plum) .hdr-chips{flex-wrap:wrap;flex-shrink:1;min-width:0;gap:4px 6px}
  body:has(.look-plum) .hdr-chips .chip{padding:3px 8px}
  body:has(.look-plum) .userbox{flex-wrap:wrap;gap:6px 10px;min-width:0;margin-left:auto}
  body:has(.look-plum) .hdr-hi{min-width:0;overflow:hidden;text-overflow:ellipsis}
}

.xp-toast{background:var(--accent);color:var(--accent-ink)}
.strongweak{display:flex;gap:12px;flex-wrap:wrap}
.strongweak .sw-card{flex:1;min-width:220px;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.strongweak .sw-card.strong{border-left:4px solid var(--good)}
.strongweak .sw-card.weak{border-left:4px solid var(--warn)}
/* FIXD22 Q2 (Ram: "big tiles clubbed similar items"; FPP-ruled 2026-09-24): #/plan's ranked
   items reuse .strongweak/.sw-card (Math/Reading & Writing section tiles) instead of a new
   visual system. .plan-tail hides items (and, on a .sw-card, a whole section) beyond the
   top-N until "Show all" is clicked -- same items/rows, just no longer two separate lists. */
.plan-list:not(.show-tail) .plan-tail{display:none}

/* ===== C6 reference sheet (2026-08-20): slide-over on PRACTICE screens only, never during
   the timed full test. Z-INDEX SCALE says modal = 100 — this sits there. ===== */
/* v29-bugfix (QA #d37cd3ab): the dimmed full-screen backdrop here used to sit at the same
   z-index as .calc-overlay and darken the calculator panel behind it whenever both were open —
   "can't see both at the same time". Same fix already applied to .calc-overlay (Pond7 6ffb44bf):
   no backdrop, no pointer capture on the overlay itself; only the panel intercepts clicks. */
.refsheet-overlay{position:fixed;inset:0;background:transparent;pointer-events:none;z-index:100;
  display:flex;justify-content:flex-end}
.refsheet-panel{pointer-events:auto}
.refsheet-panel{background:var(--card);width:min(360px,92vw);height:100%;overflow:auto;
  padding:20px;box-shadow:-8px 0 30px rgba(24,43,77,.18);animation:refsheet-in .18s ease;
  min-width:280px;min-height:240px;max-width:96vw;max-height:96vh;resize:both}
@keyframes refsheet-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
.modal-panel{pointer-events:auto;background:var(--card);height:auto;max-height:80vh;overflow:auto;
  padding:20px;box-shadow:-8px 0 30px rgba(24,43,77,.18);animation:refsheet-in .18s ease;
  min-width:280px;min-height:240px;max-width:96vw;resize:both}
.refsheet-group{margin-top:14px}
.refsheet-group .list{margin-top:4px}
.refsheet-group .list li{margin:4px 0;font-size:14px}
.refsheet-diagram{color:var(--ink);margin-top:4px;overflow-x:auto}
.refsheet-diagram svg{display:block;max-width:100%;height:auto}

.list-table{width:100%;border-collapse:collapse;font-size:14px;margin-top:8px}
.list-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);padding:6px 10px;border-bottom:1px solid var(--line)}
.list-table td{padding:8px 10px;border-bottom:1px solid var(--line)}
.list-table tr:last-child td{border-bottom:none}
/* fix3: About ACT / About AP tables scroll inside themselves on narrow screens instead of widening the page (360px).
   Intentionally NOT scoped to the dashv2 look: it fixes a real overflow bug on every env (DEV, QA, PRD); it changes nothing else. */
.list-table[data-about]{display:block;max-width:100%;overflow-x:auto}

/* ===== C2b (2026-08-19) ===== */
.progress-dots{flex-wrap:wrap;row-gap:4px}
/* Long modules (full test) use a bar, not 44 dots — see paintQuestion's DOTS_MAX. */
.progress-track{height:6px;border-radius:999px;background:#dfe6f0;margin:4px 0 16px;overflow:hidden}
.progress-track span{display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .2s}

/* ===== V25: real Desmos GraphingCalculator, floating over the question, not a dimmed modal —
   QA 6ffb44bf (Pond7): real Bluebook opens Desmos as a movable panel with the question still
   readable behind it. The overlay only provides positioning now (no backdrop, no pointer
   capture); the panel opts back into pointer events so it stays clickable/draggable/resizable.
   Same Z-INDEX SCALE modal=100 as refsheet-overlay. Desktop-only per the project rule, so no
   small-viewport tuning here. ===== */
.calc-overlay{position:fixed;top:0;left:0;width:0;height:0;overflow:visible;background:transparent;pointer-events:none;z-index:100}
.calc-panel{position:fixed;top:80px;right:24px;pointer-events:auto;background:var(--card);width:min(760px,94vw);max-height:calc(100vh - 100px);
  min-width:340px;min-height:280px;max-width:96vw;overflow:auto;resize:both;
  border-radius:14px;padding:20px;box-shadow:0 12px 40px rgba(24,43,77,.25)}
.calc-canvas-wrap{position:relative;margin-top:14px;width:100%;height:520px;
  border:1px solid var(--line);border-radius:10px;overflow:hidden}
/* QAFIX1 (QA 4711079c, ace360e1): while the Calculator or Reference sheet is open on a wide screen, the page content makes room
   beside it instead of sitting underneath (paintToolReserve in app.js sets the two variables; narrower screens are untouched). */
body.tool-reserve .app{margin-left:var(--tool-reserve-left,0px);margin-right:var(--tool-reserve-right,0px);transition:margin .15s ease}
/* QAFIX1 (QA be4ad7be, b3d648ec): long pages as collapsible sections -- the heading row stays, the body opens on click.
   Native <details>, no JS state; the marker is a plus/minus drawn here. */
.about-sec > summary,.strat-grp > summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px}
.about-sec > summary::-webkit-details-marker,.strat-grp > summary::-webkit-details-marker{display:none}
.about-sec > summary h2,.strat-grp > summary h3{margin:0;flex:1}
.about-sec > summary::after,.strat-grp > summary::after{content:"+";font-weight:700;font-size:20px;line-height:1;color:var(--muted,#667)}
.about-sec[open] > summary::after,.strat-grp[open] > summary::after{content:"\2212"}
.about-sec[open] > summary{margin-bottom:10px}
.strat-grp[open] > summary{margin-bottom:8px}
.strat-grp > summary .strat-count{font-size:12px;font-weight:600;color:var(--muted,#667);white-space:nowrap}
/* STRAT1: Strategies hub = domain tabs + card grid; strategy page = Use when callout, numbered steps, compare links. Light theme only, like the rest of the sheet. */
.strat-domains{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.strat-domain{font:inherit;font-size:13px;padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer}
.strat-domain:hover{border-color:var(--brand)}
.strat-domain.on{background:#eef3fd;border-color:var(--brand);color:var(--brand-dk);font-weight:600}
.strat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.strat-card{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 13px;color:var(--ink);text-decoration:none}
.strat-card:hover{border-color:var(--brand)}
.strat-card.mastered{background:#e6f9ee;border-color:#22c55e}
.strat-use{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#8a5a0b;background:#fdf0d5;border-radius:999px;padding:1px 8px}
.strat-name{font-weight:600;font-size:15px;line-height:1.35}
.strat-when{font-size:13px;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.strat-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:6px;font-size:12px;color:var(--muted)}
.strat-ok{color:#15803d}
.strat-dots{display:flex;gap:4px}
.strat-dots i{width:9px;height:9px;border-radius:50%;border:1px solid #b6c0d0;display:block}
.strat-dots i.on{background:var(--brand);border-color:var(--brand)}
.strat-card.mastered .strat-dots i.on{background:var(--good);border-color:var(--good)}
.strat-usebox{background:#fdf0d5;border-radius:10px;padding:10px 14px;margin:0 0 16px;line-height:1.5}
.strat-usebox-h{font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#8a5a0b;margin:0 0 2px}
.strat-h{margin:0 0 6px;font-size:15px}
.strat-steps{list-style:none;padding:0;margin:0;counter-reset:strat-step}
.strat-steps li{counter-increment:strat-step;display:flex;gap:10px;align-items:flex-start;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;margin:0 0 6px;line-height:1.5}
.strat-steps li::before{content:counter(strat-step);flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#eef3fd;color:var(--brand-dk);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.strat-chips{display:flex;flex-wrap:wrap;gap:6px}
.strat-chip{font-size:13px;padding:4px 11px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--brand-dk);text-decoration:none}
.strat-chip:hover{border-color:var(--brand)}

/* ===== v24: report-a-bug widget — dancing FAB (restored, Ram 2026-08-24) + left-rail entries, both ===== */
@keyframes bug-dance{0%,100%{transform:translateY(0) rotate(0deg)}25%{transform:translateY(-4px) rotate(-8deg)}
  50%{transform:translateY(0) rotate(0deg)}75%{transform:translateY(-4px) rotate(8deg)}}
.bug-fab{position:fixed;left:calc(var(--rail-w) + 18px);bottom:18px;z-index:5000;width:48px;height:48px;border-radius:50%;
  background:var(--bad,#e0473e);color:#fff;border:none;font-size:22px;cursor:pointer;
  box-shadow:0 6px 18px rgba(224,71,62,.4);animation:bug-dance 2.2s ease-in-out infinite}
/* 57ceccea: dances only until the tester has noticed it once (JS adds .bug-fab-seen on first
   hover/click, see initBugWidget) — stops the distracting loop instead of running forever. */
.bug-fab.bug-fab-seen{animation:none}
.bug-fab:hover{animation-play-state:paused;transform:scale(1.08)}
body.rail-hidden .bug-fab, body.shell-off .bug-fab, body.testing .bug-fab { left: 18px; }
/* FIXD24 sibling-surface fix: on desktop, rail-hidden now means "collapsed to a 60px icon
   rail", not "gone" -- the rule above would sit the FAB under the icon rail. Must come after
   that rule in source order (same specificity) to win. shell-off/testing are unaffected: the
   rail really is gone in those states, so they correctly keep left:18px. */
@media(min-width:1025px){
  body.rail-hidden .bug-fab{left:78px}
}
@media (max-width: 768px) {
  .bug-fab { left: 18px; }
}
/* 9841628e/Wave-0: the fab used to sit at z-index:90, BELOW every in-app popup (e.g. the
   difficulty-picker dialog at z-index:100) — reachable on "main" screens only, invisible/
   unclickable behind any modal. Bumped above all other in-app overlays (100) but still below
   the screenshot-capture veil (100000+) so screenshot selection still works untouched. */
.bug-overlay{position:fixed;inset:0;background:rgba(20,16,40,.45);z-index:5001;
  display:flex;align-items:center;justify-content:center}
.bug-overlay[hidden]{display:none}
.bug-panel{width:min(440px,92vw);padding:20px}
.bug-lightbox-panel{width:min(94vw,1400px);max-height:90vh;overflow:auto;padding:20px}
.bug-panel textarea,.bug-panel input[type=text]{width:100%;border:1px solid var(--line);border-radius:8px;
  padding:8px 10px;font:inherit;resize:vertical}

/* ===== V21 vocab flashcards ===== */
.vocab-card{min-height:160px;display:flex;flex-direction:column;justify-content:center;
  border:1px solid var(--line);transition:box-shadow .15s}
.vocab-card:hover{box-shadow:0 4px 16px rgba(24,43,77,.12)}
.vocab-card.flipped{border-color:var(--brand)}

/* ===== Guru chat widget (visitor launcher + panel) — port of SidV's chat_widget.css
   (Kids AI Training SidV/App/cf/public/css/chat_widget.css), re-themed onto SAT's own tokens
   (--brand/--card/--line/--ink/--muted/--panel2/--radius/--shadow above) instead of SidV's
   palette. Desktop-only per this project's standing rule — no responsive/mobile breakpoints.
   Z-INDEX SCALE (see C1a shell comment above): rail 40 · topbar 50 · toast 60 · modal 100.
   The widget sits above the toast layer, below any modal overlay. ===== */
.guru-root{position:fixed;right:16px;bottom:16px;z-index:70;font-family:inherit}
.guru-root [hidden]{display:none !important}

.guru-launcher{width:56px;height:56px;border-radius:50%;background:var(--brand);color:#fff;
  border:none;box-shadow:var(--shadow);font-size:24px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.guru-launcher:hover{transform:scale(1.05)}
.guru-launcher:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.guru-panel{position:absolute;right:0;bottom:68px;width:340px;height:min(480px,calc(100vh - var(--top-h) - 68px - 68px - 16px));
  background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;
  /* FIXD36-A 65f46a54: movable by the header (app.js wireChatPanelDrag) and resizable from the corner */
  resize:both;min-width:260px;min-height:240px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
.guru-head{cursor:move;touch-action:none}
.guru-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:12px 14px;border-bottom:1px solid var(--line);background:var(--panel2);flex:none}
.guru-head-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.guru-head-name{font-weight:800;font-size:14px}
.guru-status{font-size:12px;color:var(--muted)}
.guru-close{background:transparent;border:1px solid var(--line);color:var(--muted);
  border-radius:8px;padding:4px 8px;font-size:14px;cursor:pointer;flex:none}
.guru-close:hover{background:var(--card);color:var(--ink)}

.guru-msgs{flex:1 1 auto;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.guru-row{display:flex;flex-direction:column;max-width:88%}
.guru-row-me{align-self:flex-end;align-items:flex-end}
.guru-row-them{align-self:flex-start;align-items:flex-start}
.guru-row-system{align-self:center;max-width:96%;align-items:center}
.guru-bubble-label{font-size:11px;color:var(--muted);margin:0 2px 2px;font-weight:700}
.guru-bubble{padding:8px 12px;border-radius:14px;font-size:13.5px;line-height:1.4;
  word-break:break-word;white-space:pre-wrap}
.guru-bubble-me{background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.guru-bubble-them{background:var(--panel2);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px}
.guru-bubble-system{background:transparent;color:var(--muted);font-size:12px;text-align:center;padding:4px 8px}

.guru-typing{display:flex;align-items:center;gap:6px;padding:2px 14px 6px;font-size:12px;color:var(--muted);flex:none}
.guru-hourglass{display:inline-block;animation:guru-spin 1.6s linear infinite}
@keyframes guru-spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}

.guru-escalate-btn{margin:0 12px 8px;padding:8px 10px;border-radius:10px;font-size:12.5px;
  border:1px dashed var(--line);background:transparent;color:var(--brand-dk);cursor:pointer;flex:none}
.guru-escalate-btn:disabled{opacity:.7;cursor:default}

.guru-input-row{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--line);flex:none}
.guru-input{flex:1 1 auto;resize:none;min-height:40px;max-height:96px;padding:9px 12px;
  font-size:13.5px;font-family:inherit;border-radius:12px;border:1px solid var(--line);
  background:var(--card);color:var(--ink)}
.guru-input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.guru-send{flex:none;width:40px;height:40px;border-radius:50%;background:var(--brand);
  color:#fff;border:none;font-size:16px;cursor:pointer}
.guru-send:disabled,.guru-input:disabled{opacity:.5;cursor:not-allowed}

/* ===== Guru console (parent-only claim queue) — port of SidV's chat_console.js layout,
   reusing the .card/.btn/.row/.muted/.small vocabulary already used across app.js instead of
   inventing a parallel one. Modal, same Z-INDEX SCALE modal=100 as .refsheet-overlay/.calc-overlay. ===== */
.guru-console-overlay{position:fixed;inset:0;background:rgba(20,16,40,.45);z-index:100;
  display:flex;align-items:center;justify-content:center}
.guru-console-panel{width:min(760px,94vw);max-height:88vh;overflow-y:auto;padding:20px}

/* ===== Super Guru widget (ask-anything tutor launcher + panel), 2026-09-24 -----------------
   Same shape/behavior as the .guru-* widget above (launcher + dialog panel, same DOM idiom),
   deliberately parallel classes rather than a shared one so the two can move/recolor
   independently: Super Guru sits top-right just under the header (Ram: "in line with Guru" =
   same right-edge column, opposite corner), Guru stays bottom-right. Orange = var(--warn),
   already in the token set (no new color invented). Always visible to every logged-in student;
   entitlement (superGuruAddon) gates what clicking it does, checked client-side from
   State.user (same flag the server already returns at login) so a non-entitled click costs
   zero network calls, matching the server's own "zero LLM calls if not entitled" rule. */
.sguru-root{position:fixed;right:16px;top:calc(var(--top-h) + 12px);z-index:70;font-family:inherit}
.sguru-root [hidden]{display:none !important}

.sguru-launcher{width:56px;height:56px;border-radius:50%;background:var(--warn);color:#fff;
  border:none;box-shadow:var(--shadow);font-size:24px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.sguru-launcher:hover{transform:scale(1.05)}
.sguru-launcher:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.sguru-panel{position:absolute;right:0;top:68px;width:340px;height:min(480px,calc(100vh - var(--top-h) - 12px - 68px - 16px));
  background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;
  /* FIXD36-A 65f46a54: movable by the header (app.js wireChatPanelDrag) and resizable from the corner */
  resize:both;min-width:260px;min-height:240px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
.sguru-head{cursor:move;touch-action:none}
.sguru-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:12px 14px;border-bottom:1px solid var(--line);background:var(--panel2);flex:none}
.sguru-head-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.sguru-head-name{font-weight:800;font-size:14px}
.sguru-status{font-size:12px;color:var(--muted)}
.sguru-close{background:transparent;border:1px solid var(--line);color:var(--muted);
  border-radius:8px;padding:4px 8px;font-size:14px;cursor:pointer;flex:none}
.sguru-close:hover{background:var(--card);color:var(--ink)}
/* FIXD30 be572d2f: timed full-length modules show neither help launcher (set by syncTimedHelpGate) */
body.help-off-timed .sguru-root,body.help-off-timed .guru-root{display:none !important}

.sguru-msgs{flex:1 1 auto;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.sguru-row{display:flex;flex-direction:column;max-width:88%}
.sguru-row-me{align-self:flex-end;align-items:flex-end}
.sguru-row-them{align-self:flex-start;align-items:flex-start}
.sguru-row-system{align-self:center;max-width:96%;align-items:center}
.sguru-bubble-label{font-size:11px;color:var(--muted);margin:0 2px 2px;font-weight:700}
.sguru-bubble{padding:8px 12px;border-radius:14px;font-size:13.5px;line-height:1.4;
  word-break:break-word;white-space:pre-wrap}
.sguru-bubble-me{background:var(--warn);color:#fff;border-bottom-right-radius:4px}
.sguru-bubble-them{background:var(--panel2);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:4px}
.sguru-bubble-system{background:transparent;color:var(--muted);font-size:12px;text-align:center;padding:4px 8px}

.sguru-typing{display:flex;align-items:center;gap:6px;padding:2px 14px 6px;font-size:12px;color:var(--muted);flex:none}
.sguru-hourglass{display:inline-block;animation:guru-spin 1.6s linear infinite}

.sguru-input-row{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--line);flex:none}
.sguru-input{flex:1 1 auto;resize:none;min-height:40px;max-height:96px;padding:9px 12px;
  font-size:13.5px;font-family:inherit;border-radius:12px;border:1px solid var(--line);
  background:var(--card);color:var(--ink)}
.sguru-input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sguru-send{flex:none;width:40px;height:40px;border-radius:50%;background:var(--warn);
  color:#fff;border:none;font-size:16px;cursor:pointer}
.sguru-send:disabled,.sguru-input:disabled{opacity:.5;cursor:not-allowed}
.sguru-attach{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);
  background:var(--card);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px}
.sguru-attach:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.sguru-img-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;
  font-size:12.5px;color:var(--muted);border-top:1px solid var(--line)}
.sguru-img-chip[hidden]{display:none}
.sguru-img-clear{background:none;border:none;color:var(--accent);cursor:pointer;font-size:12.5px;text-decoration:underline}

.sguru-upgrade{padding:16px;text-align:center;display:flex;flex-direction:column;gap:10px;justify-content:center;flex:1 1 auto}
.sguru-upgrade p{margin:0;font-size:13.5px;color:var(--muted)}

/* Sid7 QA 2026-09-05 (79e7a869): real radical — glyph + overline over the radicand. */
.radical{white-space:nowrap}
.prime{margin-left:.12em;margin-right:.08em;font-weight:600}
.rad{border-top:1px solid currentColor;padding:0 2px 0 1px;margin-left:1px}

/* FIXD13 U3 c52bbf87: mobile dashboard toolbar wrapping — on narrower screens (<768px),
   stack the subskill info and toolbar vertically so toolbar buttons can wrap properly
   instead of clipping the Custom Quiz button. */
@media (max-width: 768px) {
  .item > .row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- S2-U1 (PONDUX1 home mockup merge, 2026-09-30): landing-page how-it-works grid,
   study-plan section and final-CTA, appended per brief -- reuses existing :root vars only,
   no new palette/font tokens. ---- */
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.hero-graphic{display:flex;justify-content:center}
.qcard{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);
  max-width:400px;width:100%}
.qcard-head{background:var(--ink);color:#fff;padding:10px 16px;border-radius:14px 14px 0 0;
  display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700}
.qcard-tag{background:rgba(255,255,255,.16);padding:3px 9px;border-radius:999px;font-size:12px}
.qcard-body{padding:18px 16px}
.qbar{height:10px;border-radius:6px;background:var(--line);margin-bottom:9px}
.qbar.w90{width:90%} .qbar.w75{width:75%} .qbar.w60{width:60%} .qbar.w40{width:40%}
.qchoices{margin-top:14px;display:grid;gap:8px}
.qchoice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.qchoice b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;
  border:1.5px solid var(--line);font-size:12px;color:var(--muted);flex:0 0 22px}
.qchoice .qbar{margin:0;flex:1;height:8px}
.qchoice.correct{border-color:var(--good);background:#eef8f1}
.qchoice.correct b{background:var(--good);border-color:var(--good);color:#fff}
.qchoice.trap{border-color:var(--bad);background:#fbf1f1}
.qchoice.trap b{border-color:var(--bad);color:var(--bad)}
.qexplain{margin-top:12px;border-left:3px solid var(--brand);background:#f1f5fd;padding:9px 11px;
  border-radius:0 8px 8px 0;font-size:12.5px;color:var(--ink);font-weight:600}
.qexplain .qbar{background:#dbe6fb;margin-top:7px;margin-bottom:0}

.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:14px}
.how-item{padding:0}
.how-ico{width:40px;height:40px;border-radius:10px;background:var(--bg);color:var(--brand-dk);
  display:grid;place-items:center;font-size:19px;margin-bottom:10px}
.how-item p{margin:0}

.plan-section .plan-eyebrow{text-transform:uppercase;letter-spacing:.8px;font-weight:700}
.plan-commit{margin-top:10px}
.plan-commit .pill{font-weight:700}
.plan-stat{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.plan-stat-num{font-size:40px;font-weight:800;letter-spacing:-1px;color:var(--brand-dk);display:flex;
  align-items:baseline;gap:8px;flex-wrap:wrap}
.plan-stat-num span{font-size:14px;font-weight:700;color:var(--ink)}
.plan-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.plan-step{border:1px solid var(--line);border-radius:12px;padding:16px;text-align:center;background:var(--card)}
.plan-step-num{width:40px;height:40px;border-radius:50%;margin:0 auto 10px;display:grid;place-items:center;
  font-size:17px;font-weight:800;color:#fff;background:var(--brand)}
.plan-step h3{font-size:16px;margin:6px 0}
.plan-demo{margin-top:12px;background:var(--bg);border:1px dashed var(--line);border-radius:10px;
  padding:10px 12px;text-align:left;font-size:13px}
.plan-demo-lbl{display:block;font-size:10.5px;letter-spacing:.8px;text-transform:uppercase;
  color:var(--muted);font-weight:700;margin-bottom:4px}
.plan-demo-score{font-size:20px;font-weight:800;color:var(--brand-dk)}
.plan-demo-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:4px;font-weight:600}
.plan-demo-list li{display:flex;justify-content:space-between}
.plan-demo-list em{font-style:normal;color:var(--muted);font-weight:600}

.final-cta{text-align:center}
.final-cta .row{justify-content:center}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .qcard{transform:none;margin:0 auto}
  .how-grid{grid-template-columns:1fr}
  .plan-steps{grid-template-columns:1fr}
}

/* UXBUILD2 Stage 2 S2-U2: PONDUX1 3-state /student dashboard (State A tracker/locked tile,
   State B/C key-value rows and projected-score line). Minimal, reuses existing card/row/pill
   tokens above rather than a new visual system. */
.steps3{display:flex;gap:14px;flex-wrap:wrap}
.step3{display:flex;gap:10px;align-items:flex-start;flex:1;min-width:180px}
.step3 .n{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-weight:700;flex-shrink:0;background:var(--line);color:var(--muted)}
.step3.now .n{background:var(--brand,#7458F0);color:#fff}
.step3 span{display:block;color:var(--muted);font-size:13px}
.dash-locked-tile{opacity:.75}
.kv{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px dashed var(--line)}
.kv:last-of-type{border-bottom:none}
.kv span{color:var(--muted)}
.bigline{display:flex;align-items:baseline;gap:8px;font-weight:800;font-size:26px}
.bigline .arrow{color:var(--muted);font-weight:400}

/* ---- S4-U1 (UXBUILD2 Stage 4, PONDUX1 home mockup merge pt.2): Home-page-scoped navbar,
   hero float chips, domain pills, plan-head 2-col grid + progress tracks, final-CTA 2-col grid.
   Appended per brief -- reuses existing :root vars only. Scoped to viewLanding() output; does
   NOT touch the global .topbar used by index.html's static header on every other page. ---- */
.home-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;
  gap:12px;min-height:52px;background:var(--top-bg,var(--ink));color:var(--top-ink,#fff);
  padding:0 20px;border-radius:14px;margin-bottom:18px}
.home-topbar-brand{font-weight:800;font-size:18px;letter-spacing:-.3px;color:var(--top-ink,#fff)}
.home-topbar-brand span{color:var(--accent,var(--brand));margin:0 1px}
.home-topnav{display:flex;align-items:center;gap:4px}
.home-topnav a{color:var(--top-ink,#fff);text-decoration:none;font-size:13px;font-weight:600;
  padding:7px 10px;border-radius:8px;opacity:.9}
.home-topnav a:hover{background:rgba(255,255,255,.1);opacity:1}
.home-topnav a.cta{background:var(--accent,var(--brand));color:var(--accent-ink,#fff);opacity:1;margin-left:6px}

.hero-graphic{position:relative}
.hero-chip{position:absolute;background:var(--card);border:1px solid var(--line);border-radius:10px;
  padding:7px 11px;font-size:12px;font-weight:700;box-shadow:var(--shadow);display:flex;
  align-items:center;gap:7px;color:var(--ink)}
.hero-chip.a{right:4px;top:10px}
.hero-chip.b{left:4px;bottom:10px}
.hero-chip-dot{width:8px;height:8px;border-radius:50%;background:var(--accent,var(--good));
  box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.hero-chip-up{color:var(--good)}

.domains{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}
.domains span{font-size:11.5px;font-weight:600;background:var(--card);border:1px solid var(--line);
  color:var(--ink);padding:4px 9px;border-radius:999px}
.domains span.rw{border-color:var(--brand);color:var(--brand-dk)}
.domains span.m{border-color:var(--good);color:var(--good)}

.plan-head{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:end}
.plan-head .plan-stat{margin-top:0;padding-top:0;border-top:0;min-width:200px}

.plan-track{height:8px;border-radius:6px;background:var(--line);margin-top:8px;overflow:hidden}
.plan-track i{display:block;height:100%;width:0;background:var(--brand);border-radius:6px}
.plan-track i.good{background:var(--good)}

.final-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;text-align:left}
.final-actions{justify-content:flex-end}
.final-cta{text-align:left}

@media (max-width:900px){
  .home-topnav a:not(.cta){display:none}
  .hero-chip.a{right:0;top:-10px}
  .hero-chip.b{left:0;bottom:-10px}
  .plan-head{grid-template-columns:1fr}
  .final-grid{grid-template-columns:1fr}
  .final-actions{justify-content:flex-start}
}
/* === FIXD26 lane A === */
/* Corner X shared by the Reference sheet, Calculator and Questions list (one close control per pop-up). */
.tool-x{width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:6px;background:#f5f6f8;
  color:var(--ink);font-size:16px;line-height:1;cursor:pointer;flex:0 0 auto}
.tool-x:hover{background:#e9eef6;border-color:var(--brand)}
.tool-x:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.refsheet-panel:focus{outline:none}
/* === /FIXD26 lane A === */
/* === FIXD26 lane B2 === */
.hl-swatch.active{border-color:var(--ink)}
/* === /FIXD26 lane B2 === */
/* === FIXD26 lane C1 === */
body.landing-open .topbar{display:none}
/* sticky .home-topbar is ~52px tall: keep the anchor headings clear of it after scrollIntoView */
#homePlan,#homeHow{scroll-margin-top:76px}
/* === /FIXD26 lane C1 === */
/* === FIXD26 lane C2 === */
/* FIXD26 C2: make Reading & Writing and Math rail section headers bold again */
.rail-section[data-section="rw"] > .rail-item.expandable,
.rail-section[data-section="math"] > .rail-item.expandable {
  font-weight: 700;
}
/* FIXD26 C2: jump-to-topic scrollIntoView must not land the heading under the sticky top bar (--top-h) */
.domain{scroll-margin-top:calc(var(--top-h) + 12px)}
/* === /FIXD26 lane C2 === */
/* === FIXD26 lane C3 === */
/* === /FIXD26 lane C3 === */
/* === FIXD26 lane D1 === */
/* qa:bd48b853, qa:4a77f5ff (Q8 #10): the vocab question / welcome / dashboard cards are now
   `card hero flat vocab-light` (transparent, light-page look). .hero still sets color:#fff, which
   on a transparent card is white-on-cream, so every plain-text child (stem, h2, p, li, stats,
   "Correct!" line) is re-inked here. Scoped to .vocab-light so no other `card flat hero` screen
   changes. Ink measures 12.9:1 on the page cream (#F2E9E4). The correct-answer span used
   var(--good) (#1C8A4B = 4.39:1 on white, 3.67:1 on cream): a darker green literal lives here
   (5.72:1 on cream, 6.84:1 on white) and is bold; --good in :root is untouched (lane G owns it).
   The span now carries a CLASS (an inline style="color:var(--good)" beats any stylesheet rule). */
.card.hero.flat.vocab-light{color:var(--ink)}
.vocab-correct{color:#14683A;font-weight:700}
/* === /FIXD26 lane D1 === */
/* === FIXD26 lane E1 === */
/* === /FIXD26 lane E1 === */
/* === FIXD26 lane E3 === */
/* === /FIXD26 lane E3 === */
/* === FIXD26 lane G === */
/* Q8 dark-surface sweep (fixer pass): NO global dark-surface override lives here on purpose.
   Every app.js .hero is "card flat hero" = transparent on the cream --bg, so its helper text
   must keep var(--muted) (4.65:1). A light colour here drops it to 1.40:1. The only real dark
   heroes are the non-flat cards in public/js/vocab.js (lane D1 turns them into light cards). */
/* === /FIXD26 lane G === */
/* === FIXD26 lane H === */
/* === /FIXD26 lane H === */
/* === FIXD30 lane L6 (tester b347d185): hover/focus overlay-expand of the collapsed rail ===
   body.rail-peek is added by JS only while collapsed on desktop. The rail keeps its 60px flow
   footprint (negative right margin cancels the extra width) so the page never shifts. */
@media(min-width:1025px){
  /* b8e832a2: smooth the peek open/close (hover behaviour unchanged). */
  body.rail-hidden .rail{transition:width .18s ease,flex-basis .18s ease,margin-right .18s ease,box-shadow .18s ease}
  body.rail-hidden.rail-peek .rail{width:var(--rail-w);flex:0 0 var(--rail-w);margin-right:calc(60px - var(--rail-w));z-index:60;box-shadow:6px 0 24px rgba(15,42,67,.18)}
  body.rail-hidden.rail-peek .rail-label{display:block}
  body.rail-hidden.rail-peek .rail-head{display:block}
  body.rail-hidden.rail-peek .chev{display:inline-block}
  body.rail-hidden.rail-peek .rail-sub.open{display:block!important}
  body.rail-hidden.rail-peek .rail-item{justify-content:flex-start;padding:9px 10px}
  body.rail-hidden.rail-peek .rail-sub .rail-item{padding:7px 10px}
  body.rail-hidden.rail-peek .rail-icon{font-size:15px}
}
/* === FIXD28 lane D (qa:a291b3f5) === */
/* Dropdown children are hidden by default and shown by a class (.open), never by an inline
   style, so the collapsed-rail rule below can always win. The 2px guide line stays removed (FIXD27). */
.rail-sub{display:none}
.rail-sub.open{display:block}
/* Collapsed-rail flyout: dropdown children pop out to the right of the icon. */
.rail-flyout{position:fixed;z-index:55;min-width:210px;max-width:300px;max-height:calc(100vh - 16px);overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(15,42,67,.22);padding:6px}
.rail-flyout-head{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);padding:6px 10px}
.rail-flyout .rail-item{font-size:13px;padding:8px 10px;justify-content:flex-start}
.rail-flyout .rail-flyout-all{font-weight:700}
/* === /FIXD28 lane D === */
/* === FIXD29 lane A === */
/* 60ecfaf7 (saisat1, "side panel moves up and down on Show answer"): .rail is position:sticky INSIDE .shell, and the
   page footer (.foot) sits AFTER .shell, outside the rail's containing block. When the page is scrolled to the very
   bottom (a short question) the footer's height pushes the whole rail up ~52px; Show answer makes the page taller, the
   page is no longer at the bottom, and the rail drops back down -- the "moving panel". Fix at the cause: give the
   footer a fixed height and let .shell reach under it (negative margin) so the rail's containing block always ends
   at the real page bottom, never above the viewport bottom; .app keeps clear of the footer with matching padding. */
:root{--foot-h:56px}
.foot{box-sizing:border-box;height:var(--foot-h)}
.shell{margin-bottom:calc(-1 * var(--foot-h))}
.shell .app{padding-bottom:calc(60px + var(--foot-h))}
.foot{position:relative;z-index:1}
/* === /FIXD29 lane A === */
/* === FIXD29 lane B === */
/* d190819d: Test history title row + Back */
.hist-head{display:flex;align-items:stretch;gap:12px;margin-bottom:12px}
.hist-head h1.page-title{flex:1}
.hist-head .btn{align-self:center}
/* ff935357: results screen back row */
.results-back-row{margin:0 0 10px}
/* 4cf6e9bf (D8): "Review all tests" text link under the page content */
.review-all{margin:14px 4px 4px;font-size:14px}
.review-all a{font-weight:600}
/* e8761ea7: "Placement estimate" is a plain muted label under the skill name, not a pill/button */
.placement-label{margin-top:2px;font-style:italic;cursor:help}
/* === /FIXD29 lane B === */
/* === FIXD29 lane C === */
/* "Bug reported" toast with a "View in tracker" link (c279227b/fc9c2b66): the link must be clickable and readable on the green toast. */
.toast.bug-toast-link{pointer-events:auto}
.toast.bug-toast-link .bug-toast-view{color:#fff;text-decoration:underline;margin-left:6px;cursor:pointer}
.toast.bug-toast-link .bug-toast-view:hover{opacity:.85}
/* === /FIXD29 lane C === */
/* === FIXD29 lane D === */
/* === /FIXD29 lane D === */
/* === FIXD29 lane E === */
/* D12 (828104ae/ee8b2659): Georgia's old-style numerals (uneven digit heights, tiny round 0) are
   replaced by KaTeX's lining digits, ONLY for U+0030-0039, so letters stay Georgia. Same CDN +
   version as the katex.min.css link in index.html. Placed FIRST in --font-body (:root). A 700 face
   is declared so <b>/<strong> digits do not get a synthetic bold. If the font fails to load,
   digits fall back to Georgia. */
@font-face{font-family:"SAT Digits";font-weight:400;font-style:normal;
  src:url("https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/fonts/KaTeX_Main-Regular.woff2") format("woff2");
  unicode-range:U+0030-0039;font-display:swap}
@font-face{font-family:"SAT Digits";font-weight:700;font-style:normal;
  src:url("https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/fonts/KaTeX_Main-Bold.woff2") format("woff2");
  unicode-range:U+0030-0039;font-display:swap}
/* === /FIXD29 lane E === */
/* === FIXD29 lane F === */
/* === /FIXD29 lane F === */
/* === FIXD29 lane G === */
/* D13 (ddbd8a7a/5fdf5f92): the two launchers are labelled pills with different glyphs, so they read as
   two different things. Later in source order than the round .guru-launcher/.sguru-launcher rules
   above (same specificity), so these win. Panels keep their 68px offset: the pill stays 56px tall. */
.guru-launcher,.sguru-launcher{width:auto;min-width:56px;height:56px;border-radius:28px;padding:0 18px 0 14px;
  gap:8px;font-size:14px;font-weight:800;font-family:inherit;white-space:nowrap}
.guru-launcher .launcher-glyph,.sguru-launcher .launcher-glyph{display:inline-flex;align-items:center;font-size:22px;line-height:1}
.guru-launcher .launcher-label,.sguru-launcher .launcher-label{letter-spacing:.2px}
/* 5fdf5f92: one-time callout beside the Super Guru launcher (speech/thought-bubble, tail points at the pill). */
.sguru-callout{position:absolute;right:calc(100% + 14px);top:2px;width:210px;padding:10px 12px;
  background:var(--card);color:var(--ink);border:2px solid var(--warn);border-radius:16px;
  box-shadow:var(--shadow);font-size:13px;line-height:1.35;display:flex;flex-direction:column;gap:2px;
  animation:sguru-callout-in .35s ease-out}
.sguru-callout b{font-size:14px;color:var(--warn)}
.sguru-callout::after{content:"";position:absolute;right:-9px;top:16px;width:14px;height:14px;
  background:var(--card);border-right:2px solid var(--warn);border-top:2px solid var(--warn);transform:rotate(45deg)}
@keyframes sguru-callout-in{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
/* 7181ee40(c): the Super Guru header and tutor bubbles sat on the brown --panel2 with dark/grey text
   (muted grey on brown was hard to read). Plain white surfaces with the normal ink colour instead. */
.sguru-head{background:var(--card)}
.sguru-status{color:var(--ink);opacity:.75}
.sguru-bubble-them{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.sguru-msgs{background:var(--bg)}
/* === /FIXD29 lane G === */
/* === FIXD29 lane H === */
/* H1 (b84ad646): "Past vocabulary quizzes" rows are buttons that open a read-only review. */
.vocab-hist-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  text-align:left;font:inherit;color:var(--ink);background:rgba(255,255,255,.55);
  border:1px solid var(--line);border-radius:10px;padding:10px 14px;cursor:pointer}
.vocab-hist-row:hover{background:#fff;border-color:var(--brand);box-shadow:0 2px 10px rgba(24,43,77,.10)}
.vocab-hist-row:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.vocab-hist-chev{font-size:22px;line-height:1;color:var(--brand);flex:none}
.vocab-review-list{list-style:none;margin:0;padding:0}
.vocab-review-item{margin:8px 0;padding:10px 14px;background:#fff;border:1px solid var(--line);
  border-left:4px solid var(--bad);border-radius:8px}
.vocab-review-item.is-right{border-left-color:#14683A}
.vocab-review-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.vocab-review-mark{margin-left:auto;font-weight:700;color:#a8283b}
.vocab-review-item.is-right .vocab-review-mark{color:#14683A}
.vocab-review-def{margin-top:4px;color:var(--ink)}
/* === /FIXD29 lane H === */
/* === FIXD29 lane I === */
/* 189f951d: obvious Highlight ON state - filled brand button (OFF stays the plain ghost button). */
#hlBtn.btn.active{background:var(--brand);color:#fff;box-shadow:0 0 0 3px rgba(47,109,240,.35)}
#hlBtn.btn.active:hover{background:var(--brand-dk)}
/* cad98cb3: retry practice-set questions stacked with a divider so each passage reads with its own stem. */
#practiceQs .practice-q{padding:14px 0;border-top:1px solid var(--line)}
#practiceQs .practice-q:first-child{border-top:0;padding-top:0}
/* === /FIXD29 lane I === */

/* FIXD30 L1 (ff2bc3cb): highlight swatches + Done float under the button; nothing in the row reflows */
.hl-wrap{position:relative}
.hl-pop{position:absolute;top:100%;right:0;z-index:30;margin-top:4px;padding:6px;background:var(--card,#fff);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15);white-space:nowrap}
/* fixed-width slot: Hide <-> Show swap keeps neighbours still */
.timer-slot{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;min-width:21em}

.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;align-items:start}
.dash-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;align-items:start}
.dash-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.dash-disabled{opacity:.55;pointer-events:none}
.dash-tgt-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:14px}
.dash-tgt-steppers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dash-tgt{border:1px solid var(--line);border-radius:12px;padding:10px}
.dash-tgt-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dash-tgt-btn{min-width:36px;padding:4px 0;font-size:18px;line-height:1}
.dash-tgt-val{font-size:26px;font-weight:800;text-align:center}
.dash-tgt-gain{font-size:12px;font-weight:400;color:var(--muted)}
@media (max-width:640px){.dash-tgt-grid{grid-template-columns:1fr}}
@media (max-width:640px){.dash-grid,.dash-grid-2,.dash-plan-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion: reduce){ body.rail-hidden .rail{transition:none} }

/* === FIXD APC1 F2 === phone: the floating help buttons must never sit on lesson text at the end of a page.
   .app (every scrolling page: lessons, quiz, practice, dashboard, ACT, AP) keeps extra bottom room, and the three
   floating widgets (.guru-root, .sguru-root, .bug-fab) shrink and tuck into the corners at 480px and below. */
@media (max-width:480px){
  .shell .app{padding-bottom:calc(88px + var(--foot-h))}
  .guru-root{right:8px;bottom:8px}
  .guru-launcher{width:44px;height:44px;font-size:20px}
  .sguru-root{right:8px;top:calc(var(--top-h) + 6px)}
  .sguru-launcher{width:40px;height:40px;font-size:18px}
  .sguru-panel{top:48px}
  .guru-panel{bottom:52px}
  .bug-fab{left:8px;bottom:8px;width:40px;height:40px;font-size:18px}
  .foot{font-size:11px;line-height:1.25;padding:4px 12px 0}
}
/* === /FIXD APC1 F2 === */
/* FIXD APC writing (097c4a70 + class): the global input{width:100%} stretched every checkbox that sat in a plain label, pushing its text to the next line. */
input[type=checkbox],input[type=radio]{width:auto}
.ess-ack{display:flex;align-items:flex-start;gap:8px;margin:10px 0;font-weight:400;color:inherit}
.ess-ack input{flex:none;margin:3px 0 0}
.ess-ack a,.ess-priv-link{text-decoration:underline;cursor:pointer}
/* 13e3602f: in-page privacy notice popup */
.ess-priv-overlay{position:fixed;inset:0;background:rgba(20,16,40,.45);z-index:5001;display:flex;align-items:center;justify-content:center}
.ess-priv-panel{width:min(640px,94vw);max-height:86vh;display:flex;flex-direction:column;padding:20px}
.ess-priv-body{overflow:auto;line-height:1.5}
.ess-priv-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}

/* APCONT2Q: AP lesson quiz on the SAT-style runner */
.card.q.lesson-quiz .opt,.review.lq-review .opt{white-space:pre-wrap;overflow-wrap:anywhere}
.lq-mono{font-family:ui-monospace,Menlo,Consolas,monospace;tab-size:4}
.lq-frq{margin-top:16px}
.lq-frq .ex-frq-answer{width:100%;box-sizing:border-box;min-height:9em}
.lq-model{margin-top:10px}
.lq-model-part{margin:8px 0}
.review.lq-review .review-body>div:not(.opt){white-space:pre-wrap;overflow-wrap:anywhere}
.lesson-quiz .stem.lq-code,.lq-review .lq-code{font-family:ui-monospace,Menlo,Consolas,monospace;tab-size:4}
.lesson-quiz .stem.lq-code,.lq-review .lq-code{white-space:pre;overflow-x:auto;overflow-wrap:normal;-webkit-overflow-scrolling:touch}
.lq-cs .opt{font-family:ui-monospace,Menlo,Consolas,monospace;tab-size:4}

/* Review tab (js/lesson.js): quick review, one example, then the quiz */
.rv-steps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.rv-step{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:600;font-size:14px;color:var(--muted);cursor:pointer}
.rv-step span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--line);color:var(--ink);font-size:13px}
.rv-step.on{color:var(--ink);border-color:var(--brand)}
.rv-step.on span{background:var(--brand);color:#fff}
.rv-step.done span{background:var(--good);color:#fff}
.rv-points{margin:8px 0 0;padding-left:0;list-style:none;counter-reset:rv}
.rv-points li{counter-increment:rv;position:relative;padding:12px 14px 12px 48px;margin:0 0 8px;background:var(--bg);border-radius:10px}
.rv-points li::before{content:counter(rv);position:absolute;left:14px;top:11px;width:24px;height:24px;border-radius:50%;background:var(--brand);color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.rv-worked{margin:8px 0 0;padding-left:22px}
.rv-worked li{margin:0 0 8px}
.rv-takeaway{margin-top:10px;padding:10px 12px;background:#f0f7ff;border-radius:8px}
.rv-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}

/* Unit modules (js/unit_module.js): topic buttons, then Review, Practice example, Quiz */
.um-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.um-card{display:flex;gap:12px;align-items:flex-start;text-align:left;width:100%;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;font:inherit;color:inherit}
.um-card:hover{border-color:var(--brand);box-shadow:0 4px 14px rgba(24,43,77,.08)}
.um-num{flex:none;width:32px;height:32px;border-radius:50%;background:var(--brand);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.um-card-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.um-card-title{font-weight:700;font-size:16px}
.um-h{margin:16px 0 6px}
.um-math{margin:12px 0;overflow-x:auto;padding:4px 0}
.um-rule{background:#f0f7ff;border-radius:10px;padding:12px 14px;margin:14px 0}
.um-table{overflow-x:auto;margin:12px 0}
.um-table table{border-collapse:collapse;min-width:60%}
.um-table th,.um-table td{border:1px solid var(--line);padding:8px 12px;text-align:left}
.um-table th{background:var(--bg)}
.ex-unit.ex-unit-module{cursor:pointer}
.ex-unit.ex-unit-module:hover{border-color:var(--brand)}
.um-extras-title{margin:26px 0 10px}
.um-extra{margin:0 0 12px;padding:16px}
.um-more{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 20px;margin:18px 0 4px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.um-more .small.muted{grid-column:1/-1}
.um-links{margin:6px 0 0;padding-left:18px}
.um-links li{margin:4px 0}
.um-code{margin:10px 0;padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:10px;overflow-x:auto;font-family:Consolas,Menlo,monospace;font-size:14px;white-space:pre}
/* APVID1: YouTube video cards with thumbnails (AP unit Videos). */
.vid-card{display:flex;flex-direction:column;gap:12px}
.vid-card .vid-thumb{position:relative;display:block;flex:0 0 auto;width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:var(--line)}
.vid-card .vid-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.vid-card .vid-thumb:focus-visible,.vid-card .btn:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.vid-card .vid-play{position:absolute;left:50%;top:50%;width:46px;height:32px;margin:-16px 0 0 -23px;border-radius:9px;background:rgba(0,0,0,.65)}
.vid-card .vid-play::after{content:"";position:absolute;left:18px;top:8px;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent #fff}
.vid-card .vid-body{min-width:0}
.vid-more{margin:18px 0 8px}
@media (min-width:560px){.vid-card{flex-direction:row;align-items:flex-start}.vid-card .vid-thumb{width:240px}.vid-card .vid-body{flex:1 1 auto}}
@media (prefers-color-scheme:dark){.vid-card .vid-thumb{background:#2a3342}.vid-card .vid-play{background:rgba(0,0,0,.75)}}

/* QB text tables in question stems / passages (public/js/stem_table.js) */
.stem-table{border-collapse:collapse;margin:8px 0 10px;font-size:14px;white-space:normal}
.stem-table th,.stem-table td{border:1px solid var(--line,#d5d9e0);padding:4px 10px;text-align:center}
.stem-table th{background:#f3f5f9;font-weight:700}
