/* ACADEMY (ui/learn/learn.js): one screen for the Academy on the shared theme. Relative units; 44 px targets on touch. */
body.lrn { margin: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.l-top { display: flex; align-items: center; gap: 8px 12px; padding: 8px 14px; border-bottom: 1px solid rgba(var(--ph-rgb), .25); flex-wrap: wrap; }
.l-title { letter-spacing: .12em; color: var(--ph-bright); }
.l-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.l-tabs .sn-btn.on, .l-pick .sn-btn.on { background: rgba(var(--ph-rgb), .18); color: var(--ph-bright); }
.l-runs { flex-basis: 100%; margin: 0; font-size: var(--fs-1); color: var(--ph-dim); }
.l-main { flex: 1; overflow: auto; padding: 12px 16px 48px; max-width: 60rem; width: 100%; box-sizing: border-box; margin: 0 auto; }
.l-main h2 { margin: 6px 0 10px; letter-spacing: .08em; font-size: var(--fs-4); }
.l-main h3 { margin: 4px 0 8px; font-size: var(--fs-3); }
.l-main .sn-sect { margin-top: 16px; }
.l-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px dashed var(--gd-edge); }
.l-who { margin-right: auto; color: var(--ph-bright); letter-spacing: .06em; }
.l-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.l-row .l-in { flex: 1; min-width: 12rem; }
.l-in { background: var(--panel); color: var(--text); border: 1px solid var(--gd-edge); border-radius: var(--r-sm); padding: 6px 8px; font: inherit; box-sizing: border-box; }
.l-in:focus { outline: none; border-color: rgba(var(--ph-rgb), .7); }
textarea.l-in { width: 100%; margin-top: 6px; resize: vertical; }
.l-big { font-size: var(--fs-3); padding: 8px 16px; }
a.sn-btn { display: inline-flex; align-items: center; text-decoration: none; }
.l-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.l-sub { color: var(--ph-dim); font-size: var(--fs-1); }
.l-note { color: var(--ph-dim); font-size: var(--fs-1); margin: 6px 0; }
.l-crumb { color: var(--ph-dim); font-size: var(--fs-1); letter-spacing: .04em; margin: 4px 0 8px; }
.l-h { color: var(--ph-bright); }
.l-card { margin: 8px 0; }
.l-card p { margin: 6px 0; }
.l-example h3 { color: var(--gold); }
.l-steps { margin: 6px 0; padding-left: 1.6em; } .l-steps li { margin: 3px 0; }
.l-link { background: none; border: 0; padding: 0; color: var(--ph-bright); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.l-link.warn { color: var(--warn); display: block; margin-top: 4px; font-size: var(--fs-1); }
.l-banner { border: 1px solid var(--warn); border-radius: var(--r); padding: 6px 10px; margin-bottom: 8px; }
.l-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--fs-1); color: var(--ph-dim); margin: 0 0 6px; }
/* status marks */
.l-st { display: inline-block; width: 1.4em; text-align: center; font-size: 1.15em; }
.st-active, .st-proficient { color: var(--ok); } .st-open { color: var(--ph-dim); } .st-master { color: var(--gold); }
.st-later { color: var(--ph-faint); }
/* concept board */
.l-sect { margin-bottom: 10px; }
.l-concepts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.l-concept { display: flex; align-items: center; gap: 10px; }
.l-concept.current { border-color: rgba(var(--ph-rgb), .55); }
.l-ctext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.l-ctext small { color: var(--ph-dim); }
/* questions */
.l-prompt { font-size: var(--fs-4); margin: 10px 0; }
.l-answer { font-size: var(--fs-4); width: 100%; max-width: 20rem; }
.l-choices { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.l-choice { min-width: 6rem; font-size: var(--fs-3); padding: 8px 14px; color: var(--text); }
.l-choice.sel { background: rgba(var(--ph-rgb), .2); border-color: var(--ph); box-shadow: 0 0 0 2px var(--ph) inset; }
.l-hint { color: var(--gold); }
.l-ok { color: var(--ok); font-weight: 600; font-size: var(--fs-3); }
.l-bad { color: var(--bad); font-weight: 600; }
.l-done { color: var(--gold); font-size: var(--fs-3); }
/* stats and tables */
.l-stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.l-stat { min-width: 10rem; text-align: left; font: inherit; }
.l-stat b code { font-size: var(--fs-2); }
button.l-stat { cursor: pointer; }
.l-tablewrap { overflow-x: auto; }
.l-table { border-collapse: collapse; font-size: var(--fs-1); width: 100%; }
.l-table th, .l-table td { padding: 5px 8px; border-bottom: 1px solid rgba(var(--ph-rgb), .1); text-align: left; vertical-align: top; }
.l-table th { color: var(--ph-dim); font-weight: normal; letter-spacing: .06em; }
.l-click { cursor: pointer; } .l-click:hover { background: var(--gd-hover); }
/* curriculum */
.l-rank { margin: 6px 0; }
.l-rank summary { cursor: pointer; padding: 4px 0; }
.l-clist { margin: 6px 0; padding-left: 1.8em; display: flex; flex-direction: column; gap: 8px; }
.l-clist .sn-badge { font-size: var(--fs-0); }
/* map (map.js) */
.m-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 6px; margin: 8px 0 14px; }
.m-rank { text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.m-rank.on { border-color: var(--ph); background: rgba(var(--ph-rgb), .12); }
.m-wrap { position: relative; overflow-x: auto; padding-bottom: 8px; }
.m-grid { display: grid; gap: 10px 40px; position: relative; z-index: 1; min-width: min-content; }
.m-col { display: flex; flex-direction: column; gap: 10px; }
.m-card { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; }
.m-card.spine { border-left: 3px solid var(--gold); }
.m-title { font-weight: 600; }
.m-enc { list-style: none; margin: 4px 0 0; padding: 0; font-size: var(--fs-1); color: var(--gold); }
.m-list { margin: 4px 0 8px; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.m-lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: visible; }
.m-line { fill: none; stroke: rgba(var(--ph-rgb), .45); stroke-width: 1.5; }
.m-line.soft { stroke-dasharray: 5 4; }
.m-line.back { stroke: var(--bad); }
.m-red { color: var(--bad); }
.m-card.draft { border-style: dashed; opacity: .85; }
.m-draft-tag { font-size: var(--fs-1); font-weight: 700; letter-spacing: .06em; color: var(--warn, var(--gold)); }
.l-main:has(.m-wrap) { max-width: none; }
/* trouble and modal */
.l-down p { margin: 4px 0 8px; }
.l-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; z-index: 50; overflow: auto; }
.l-modal[hidden] { display: none; }
.l-box { background: var(--panel); max-width: 40rem; width: 100%; box-sizing: border-box; padding: 14px 16px; }
@media (max-width: 600px) {
  .l-main { padding: 10px 10px 40px; }
  .l-concept { flex-wrap: wrap; }
  .l-concept > .sn-btn { width: 100%; }
}
@media (pointer: coarse) {
  .sn-btn, .l-in, .l-link, .l-rank summary, .l-st { min-height: 44px; }
  .l-link { display: inline-flex; align-items: center; }
  .l-st { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
}

/* ---------- every screen size, 2026-11-08 (docs/ui-changes.md, "Every app at every size"; ui/e2e/sizes-apps.mts) ---------- */
/* No text under 11 px: a concept's one-line summary on the board was a <small> under the 13 px line (9.9 px). */
.l-ctext small { font-size: var(--fs-1); }
/* Touch screens: the map's "open the tables" link a full-size target too. */
@media (pointer: coarse) { .l-legend a[href] { display: inline-flex; align-items: center; min-height: 44px; } }
/* "Would you like more help?" on a stuck concept (R59): soft, never an alarm colour. */
.l-help { border-color: var(--accent, currentColor); }
.l-page { display: flex; flex-direction: column; gap: 8px; }
/* Read-aloud (R7): the word being spoken lights up. */
.l-word.on { background: var(--accent, #2f6); color: var(--bg, #000); border-radius: 3px; }
/* the step-by-step player: the newest step lit; FIND YOUR MISTAKE's choices read as sentences, left aligned */
.l-player li.on { color: var(--text); font-weight: 600; } .l-player li { color: var(--muted, inherit); }
.l-find .l-choices { flex-direction: column; align-items: stretch; } .l-mistake { text-align: left; min-width: 0; }
.l-find .l-row .l-in { flex: 1; }
/* Speed drills (R140): the clock, and a brief flash for right or wrong. */
.l-clock { font-size: 2rem; font-variant-numeric: tabular-nums; }
.l-flash-ok { outline: 2px solid var(--ok, #3c6); outline-offset: 4px; }
.l-flash-bad { outline: 2px solid var(--bad, #c33); outline-offset: 4px; }
/* the sweep's instruments (learn/instruments/kit.ts): the object drawn on white like paper, its moves as big buttons.
   Targets at least 44 px; 76 px (about 2 cm) at ranks 1-3 (.ins-young), sweep build plan 4 (NN/g, WCAG 2.5.8). */
.ins { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.ins-pic { background: #fff; border-radius: var(--r); padding: 10px; line-height: 0; touch-action: none; user-select: none; }
.ins-pic svg { width: 100%; height: auto; max-height: 60vh; display: block; }
.ins-pic:focus-visible { outline: 3px solid var(--ph-bright); outline-offset: 2px; }
.ins-moves { display: flex; flex-wrap: wrap; gap: 8px; }
/* Brought in (decisions.md 174): a JSXGraph view fills the white card at the drawing's own shape; a PhET sim keeps its
   own shape (PhET lays its screens out at 1024 by 618) with its credit and logo under it. */
.ins-pic-jxg { line-height: normal; }
.ins-jxg { width: 100%; max-height: 60vh; border: 0; border-radius: 0; background: #fff; overflow: hidden; }
.ins-jxg.jxgbox { border: 0; border-radius: 0; }
.phet { margin: 10px 0; }
.phet-frame { background: #fff; border-radius: var(--r); overflow: hidden; aspect-ratio: 1024 / 618; max-height: 70vh; }
.phet-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.phet-credit { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--fs-1); color: var(--ph-dim); line-height: 1.35; }
.phet-logo { height: 22px; width: auto; background: #fff; border-radius: 3px; padding: 2px 4px; flex: none; }
.ins-btn { min-height: 44px; min-width: 44px; font-size: var(--fs-3); padding: 6px 12px; }
.ins-young .ins-btn { min-height: 76px; min-width: 76px; font-size: var(--fs-5); padding: 8px 16px; }
/* the instruments gallery (learn/instruments.html): each instrument with its settings, reading and paper drawing */
.ig-sect { border-top: 1px dashed var(--gd-edge); padding: 12px 0; }
.ig-out { font-family: var(--mono, monospace); font-size: var(--fs-1); color: var(--ph-dim); margin: 4px 0; }
.ig-paper { background: #fff; padding: 10px; border-radius: var(--r); line-height: 0; }
.ig-paper svg { width: 100%; height: auto; max-height: 40vh; }
/* the games folder (learn/games/, README there): plain look, ink on white like paper. The number board's line stays
   straight at every width: up the card (1 at the bottom) until all eleven cells fit across at their target size (44 px;
   76 px at ranks 1-3, .gm-young), then across. The piece is the orange disc; after a wrong tap the next square is ringed. */
.gm { margin: 10px 0; }
/* top: LEARN's main area scrolls with 12 px of padding above its content, so the head sticks 12 px higher to meet its edge */
.gm-head { position: sticky; top: -12px; z-index: 1; background: var(--bg); padding: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.gm-say { font-size: var(--fs-4); min-height: 1.5em; margin: 6px 0; flex: 1 1 14rem; }
.gm-board { container: gm / inline-size; background: #fff; border-radius: var(--r); padding: 10px; }
.gm-row { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.gm-cell { box-sizing: border-box; width: 8rem; min-height: 44px; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate;
  border: 2px solid #111; border-radius: 4px; background: #fff; color: #111; font: inherit; font-size: var(--fs-4); font-weight: 700; padding: 0; }
button.gm-cell { cursor: pointer; scroll-margin-bottom: 1rem; }
.gm-start { border-style: dashed; font-size: var(--fs-0); font-weight: 400; letter-spacing: .08em; }
.gm-past { background: #ececec; }
.gm-here { color: #fff; }
.gm-here::before { content: ''; position: absolute; left: 50%; top: 50%; height: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #b4541c; z-index: -1; }
.gm-start.gm-here { color: #111; } .gm-start.gm-here::before { height: 70%; opacity: .55; }
.gm-hint { outline: 4px solid #b4541c; outline-offset: 2px; animation: gm-pulse 1s ease-in-out 3; }
@keyframes gm-pulse { 50% { outline-offset: 6px; } }
.gm-young .gm-cell { width: 10rem; min-height: 76px; font-size: var(--fs-5); }
@container gm (min-width: 560px) { .gm:not(.gm-young) .gm-row { flex-direction: row; } .gm:not(.gm-young) .gm-cell { width: auto; flex: 1 1 0; min-width: 44px; } }
@container gm (min-width: 900px) { .gm-young .gm-row { flex-direction: row; } .gm-young .gm-cell { width: auto; flex: 1 1 0; min-width: 76px; } }
.gm-ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.gm-spinner { width: 96px; line-height: 0; } .gm-young .gm-spinner { width: 128px; }
.gm-spinner svg { width: 100%; height: auto; border-radius: 50%; }
.gm-arrow { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.gm-btn { min-height: 44px; min-width: 44px; font-size: var(--fs-3); padding: 6px 16px; }
.gm-young .gm-btn { min-height: 76px; min-width: 76px; font-size: var(--fs-5); }
@media (prefers-reduced-motion: reduce) { .gm-arrow { transition: none; } .gm-hint { animation: none; } }
/* the games workbench (learn/games.html): the five fields, the event log, the two paper versions side by side */
.gg-fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; font-size: var(--fs-1); margin: 6px 0; }
.gg-fields dt { color: var(--ph-dim); } .gg-fields dd { margin: 0; }
.gg-log { white-space: pre-line; max-height: 12em; overflow: auto; }
.gg-paper { display: flex; gap: 10px; align-items: flex-start; }
.gg-paper-side { flex: 0 0 20%; } .gg-paper-page { flex: 1; }
.gg-paper svg { max-height: 60vh; }
/* the SWEEP screen (learn/sweep.ts, sweep build plan 5.4, phase 7): one item a screen, large and calm; no right or wrong
   colours anywhere. Every target at least 44 px; 76 px (about 2 cm) at ranks 1-3 (.sw-young), taps only. */
.sw-item { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sw-prompt { font-size: var(--fs-5); line-height: 1.4; flex: 1; }
.sw-stim { white-space: pre-wrap; font-family: inherit; font-size: var(--fs-4); line-height: 1.5; margin: 0; }
.sw-item .sn-btn, .sw-item .l-in { min-height: 44px; }
.sw-boxes { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-boxlab { display: flex; align-items: center; gap: 6px; flex: 1 1 8rem; }
.sw-box { font-size: var(--fs-5); width: 100%; min-width: 5rem; }
.sw-n { font-size: var(--fs-2); color: var(--ph-dim); min-width: 1.2em; }
.sw-choices { align-items: center; }
.sw-line { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; align-items: center; padding: 6px; border: 1px dashed var(--gd-edge); border-radius: var(--r-sm); }
.sw-piece { font-size: var(--fs-4); padding: 6px 12px; border: 1px solid var(--ph); border-radius: var(--r-sm); }
.sw-idkrow { justify-content: flex-end; }
.sw-young .sn-btn, .sw-young .l-in, .sw-young .l-choice { min-height: 76px; min-width: 76px; font-size: var(--fs-5); }
.sw-young .sw-box { min-height: 76px; }
.sw-edu { border-color: var(--ph); }
.sw-rows { display: flex; flex-direction: column; gap: 8px; }
.sw-rows .sn-btn { text-align: left; white-space: normal; }
.sw-trial { color: var(--ph-dim); }
.sw-things { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sw-thing { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-top: 1px dashed var(--gd-edge); padding-top: 6px; }
.sw-thing small { color: var(--ph-dim); }
.sw-app { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.sw-open { align-items: center; }
.sw-ground { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.sw-rank { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.sw-rk { min-width: 2em; font-size: var(--fs-2); color: var(--ph-dim); }
.sw-rank i { width: 14px; height: 14px; border: 1px solid var(--ph); border-radius: 3px; display: inline-block; }
.sw-rank i.on { background: var(--ph); }
.sw-bar .sn-btn { min-height: 44px; }
.sw-recheck { margin: 4px 0 12px; }
.sw-mrank { margin: 6px 0; }
.sw-mrank summary { cursor: pointer; padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.sw-answers { margin: 0; padding-left: 1.1em; }
.sw-res { white-space: nowrap; }
.sw-gap, .sw-blocked { font-weight: bold; }
.sw-prompt:focus { outline: none; }
.sw-prompt:focus-visible { outline: 2px solid var(--ph-bright); outline-offset: 4px; }
/* READING (R75): the student's books, his log, and the adult's folded candidates */
.l-books { list-style: none; padding: 0; margin: 6px 0; }
.l-books li { padding: 6px 0; border-bottom: 1px solid rgba(var(--ph-rgb), .1); }
.l-book small { display: block; color: var(--ph-dim); font-size: var(--fs-1); }
.l-row .l-mins { flex: 0 0 6rem; min-width: 6rem; }
.l-candidates { margin-top: 16px; }
.l-candidates summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.l-candidates summary::before { content: '▸'; margin-right: 8px; }
.l-candidates[open] summary::before { content: '▾'; }

/* The first-login welcome and the tour (welcome.ts; first-login.md, Academy/decisions.md 186), in the Glint look picked
   2026-11-19: night blue, one stone that catches the light, Lexend. Placeholder art until the redesign. Targets 76 px. */
@font-face { font-family: "Lexend"; src: url("vendor/lexend/Lexend.ttf"); font-weight: 100 900; font-display: swap; }
body.aw-open { overflow: hidden; }
.aw { position: fixed; inset: 0; z-index: 50; overflow: auto; color: #f2f5ff; font-family: "Lexend", system-ui, sans-serif;
  background: radial-gradient(ellipse at 70% 0%, #2b3a78 0%, #141c3f 45%, #0b1026 100%);
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 33% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 81% 14%, #fff6 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 91% 36%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 6% 44%, #fff5 50%, transparent 51%),
    radial-gradient(ellipse at 70% 0%, #2b3a78 0%, #141c3f 45%, #0b1026 100%); }
.aw-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 40px); }
.aw-brand { display: flex; align-items: center; gap: 12px; }
.aw-mark { width: 44px; height: 44px; flex: none; }
.aw-word { font-weight: 600; font-size: 26px; line-height: 1; }
.aw-word small { display: block; font-weight: 400; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #b9c3e6; margin-top: 5px; }
.aw-grown { min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid #7fe3ff; background: transparent; color: #f2f5ff; font: 600 16px "Lexend", sans-serif; cursor: pointer; }
.aw-stage { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 40px); padding: 8px clamp(16px, 4vw, 48px) 24px; min-height: calc(100vh - 104px); }
.aw-wizard { width: clamp(150px, 26vw, 320px); height: auto; flex: none; }
.aw-panel { width: min(640px, 100%); padding: clamp(22px, 3.5vw, 40px); background: rgba(20, 28, 63, .6); border: 1.5px solid #7fe3ff; border-radius: 20px; }
.aw-panel h1 { font-weight: 600; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; margin: 0; }
.aw-words { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; margin: 16px 0 0; color: #f2f5ff; }
.aw-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.aw-go { min-height: 76px; padding: 0 34px; border: 0; border-radius: 18px; background: #7fe3ff; color: #0b1026; font: 700 26px "Lexend", sans-serif; cursor: pointer; }
.aw-hear { min-height: 76px; padding: 0 22px; border: 2px solid #7fe3ff; border-radius: 18px; background: transparent; color: #f2f5ff; font: 600 19px "Lexend", sans-serif; cursor: pointer; }
.aw-go:focus-visible, .aw-hear:focus-visible, .aw-tile:focus-visible, .aw-grown:focus-visible, .aw-in:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.aw-field { margin-top: 22px; }
.aw-in { width: 100%; min-height: 76px; padding: 0 20px; border-radius: 16px; border: 2px solid #7fe3ff; background: #0b1026; color: #f2f5ff; font: 600 30px "Lexend", sans-serif; }
.aw-tiles { display: grid; grid-template-columns: repeat(5, minmax(76px, 1fr)); gap: 12px; margin-top: 22px; }
.aw-tile { min-height: 76px; border-radius: 16px; border: 2px solid #7fe3ff; background: rgba(127, 227, 255, .08); color: #f2f5ff; font: 700 28px "Lexend", sans-serif; cursor: pointer; }
.aw-tile.on { background: #7fe3ff; color: #0b1026; }
.aw-tile.wide { grid-column: span 4; font-size: 22px; }
.aw-realms { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.aw-realms li { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(127, 227, 255, .08); border: 1px solid rgba(127, 227, 255, .35); }
.aw-realms .aw-icon { grid-row: span 2; font-size: 28px; text-align: center; }
.aw-realms b { font-size: 18px; } .aw-realms small { color: #b9c3e6; font-size: 14px; }
.aw-ways { margin: 18px 0 0; padding-left: 0; list-style: none; font-size: 19px; line-height: 1.7; }
.aw-ways b { display: inline-block; min-width: 132px; color: #7fe3ff; }
.aw-demo { margin-top: 20px; } .aw-idk { display: inline-block; padding: 18px 26px; border-radius: 16px; border: 2px dashed #7fe3ff; font: 700 22px "Lexend", sans-serif; }
@media (max-width: 760px) { .aw-stage { flex-direction: column; } .aw-wizard { width: 150px; } .aw-tiles { grid-template-columns: repeat(3, 1fr); } .aw-tile.wide { grid-column: span 3; } }
.l-subpick { min-height: 52px; font-size: 18px; margin: 0 0 12px; }

/* The realm map (learn.ts realmMap; decisions.md 186): a light first version, one tile a realm; ! marks the next quest
   (★ stays mastery). */
.l-realms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.l-realm { position: relative; width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.l-realm-icon { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.l-realm b { font-size: 1.15em; } .l-realm small { opacity: .85; }
.l-realm-next { font-weight: 700; opacity: 1 !important; }
.l-realm.has-quest { border-color: #e0a100; }
.l-quest { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e0a100; color: #111; font-weight: 800; font-size: 20px; flex: none; }
.l-realm .l-quest { position: absolute; top: 10px; right: 10px; }
.aw-stack { display: grid; gap: 12px; }
.aw-names { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 0; }
.aw-msg { min-height: 1.4em; margin: 4px 0 0; font-size: 19px; color: #ffd28a; }
/* messages (no reading voice, a save that failed) show above the welcome and sign-in screens */
.toasts { position: fixed; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 120; max-width: min(520px, calc(100vw - 28px)); }

/* The Glint frame on the people's address (learn.ts, body.glint; 2026-11-19): the brand in a navy band, one row of tabs
   that scrolls sideways on a phone rather than wrapping, and the page itself on the reading style's own ground, so the
   learning zone keeps the screen spec's colours (light, or dark from Aa) inside the brand's frame. */
body.glint { background: radial-gradient(ellipse at 70% 0%, #2b3a78 0%, #141c3f 45%, #0b1026 100%) fixed #0b1026; }
body.glint .l-top { border: 0; padding: 14px clamp(14px, 4vw, 32px); }
body.glint .l-title { display: flex; align-items: center; gap: 10px; color: #f2f5ff; font: 600 22px "Lexend", system-ui, sans-serif; letter-spacing: 0; }
body.glint .l-title small { font: 400 11px "Lexend", system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #b9c3e6; align-self: flex-end; margin-bottom: 3px; }
body.glint .l-mark { color: #7fe3ff; font-size: 22px; }
body.glint .l-main { background: var(--rd-bg, #FAF7F2); color: var(--rd-ink, #1A1A1A); border-radius: 18px; padding: 0 clamp(14px, 3vw, 28px) 36px; margin: 0 auto 28px; max-width: 64rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); width: calc(100% - 2 * clamp(8px, 3vw, 32px)); }
body.glint .l-main > .l-bar { position: sticky; top: 0; z-index: 5; margin: 0 calc(-1 * clamp(14px, 3vw, 28px)) 20px; padding: 10px 14px; background: #141c3f; border: 0; border-radius: 18px 18px 0 0;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 4px; }
body.glint .l-bar .sn-btn, body.glint .l-bar a.sn-btn { background: transparent; border: 0; color: #c9d3f5; font: 600 15px "Lexend", system-ui, sans-serif; letter-spacing: .02em;
  padding: 0 14px; min-height: 44px; border-radius: 10px; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
body.glint .l-bar .sn-btn:hover, body.glint .l-bar a.sn-btn:hover { background: rgba(127, 227, 255, .14); color: #fff; }
body.glint .l-bar .sn-btn.on { background: #7fe3ff; color: #0b1026; }
body.glint .l-bar .l-who { color: #7fe3ff; font: 600 15px "Lexend", system-ui, sans-serif; margin: 0 8px 0 4px; white-space: nowrap; }
body.glint .l-spacer { flex: 1 0 8px; }
body.glint .l-main > .l-bar .l-aa { font-family: Georgia, serif; }
/* the page scrolls as a whole (no scroll box inside the card), and the tabs keep their size and slide sideways */
body.glint.lrn, body.glint { height: auto; min-height: 100vh; display: block; overflow: auto; }
body.glint .l-main { overflow: visible; flex: none; }
body.glint .l-main > .l-bar > * { flex-shrink: 0; }
body.glint .l-subpick { width: 100%; max-width: 30rem; }
