:root{font-family:system-ui,sans-serif;color:#221b34;background:#f7f4ee;font-size:16px;--violet:#593bc1;--ink:#23193b;--muted:#655e71;--line:#e5dfed;--mint:#d9f4d5;--paper:#fffdf8}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.68}a{color:#4930a8}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-.045em}h1{font-size:clamp(2.5rem,6vw,5.3rem);line-height:.94;margin-bottom:.45em}h2{font-size:clamp(1.55rem,3vw,2.25rem);margin-bottom:.55em}h3{margin-bottom:.4em}p{line-height:1.55}.top{height:76px;padding:0 clamp(16px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:var(--paper)}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px;font-weight:700;font-size:1.2rem;letter-spacing:-.04em}.brand b{color:var(--violet)}.brand small{display:block;font-size:.56rem;letter-spacing:.13em;margin-top:2px;color:var(--muted)}.logo{display:grid;place-items:center;background:#b7a2ff;border-radius:11px;width:38px;height:38px;font-size:1.6rem;transform:rotate(-7deg)}.tools{display:flex;gap:8px;align-items:center}.quiet,.account,.pill,.choice{display:inline-flex;align-items:center;justify-content:center;min-height:43px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:8px 13px;font-weight:650;color:var(--ink);text-decoration:none}.account{background:#281e42;color:white}.layout{max-width:1500px;margin:auto;display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100vh - 140px)}.sidebar{padding:34px 16px;border-right:1px solid var(--line)}.eyebrow{font-size:.71rem;letter-spacing:.13em;font-weight:850;color:#655487;margin-bottom:10px}.sidebar .eyebrow{padding-left:12px}.secondary{margin-top:30px}.sidebar nav{display:grid;gap:5px}.sidebar button{border:0;padding:11px 12px;text-align:left;border-radius:10px;background:none;color:var(--ink);font-weight:700;min-height:44px}.sidebar button span{margin-right:8px;color:#593bc1}.sidebar button[aria-pressed=true]{background:#eae2ff;color:#4528a2}.side-note{background:#f0e9fd;padding:14px;border-radius:14px;margin-top:40px}.side-note p{font-size:.82rem;margin:4px 0 0}.side-note b{font-size:.9rem}main{padding:clamp(15px,3vw,42px);min-width:0}.hero{background:#2b1b50;color:#fff;border-radius:25px;padding:clamp(22px,5vw,56px);position:relative;overflow:hidden;margin-bottom:22px;isolation:isolate}.hero:after{content:"é";position:absolute;right:2%;bottom:-.38em;font-size:clamp(14rem,40vw,34rem);line-height:1;color:#a987f9;opacity:.19;transform:rotate(-17deg);z-index:-1}.hero p{max-width:50ch;color:#eee5ff}.hero .eyebrow{color:#ddcaff}.hero h1 em{font-style:normal;color:#c7fb99}.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--violet);color:white;border:0;border-radius:12px;font-weight:800;padding:12px 16px;min-height:44px;text-decoration:none}.hero .primary{background:#c7fb99;color:#281b42}.stack{display:grid;gap:20px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.metric,.card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:18px}.metric{padding:12px}.metric b{font-size:clamp(1.35rem,3vw,2rem);display:block}.metric span,.subtle{color:var(--muted);font-size:.86rem}.metric:nth-child(2){background:#e7f6de}.metric:nth-child(3){background:#fff2c8}.metric:nth-child(4){background:#ffe5e1}.metric:nth-child(5){background:#ede7ff}.card{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.card p{margin:0 0 auto}.card .pill{margin-top:4px}.tile{padding:6px 9px;border-radius:8px;background:#ede5ff;color:#4f329d;font-size:.8rem;font-weight:800}.card:nth-child(3n+2) .tile{background:#ddf4d5;color:#2c5837}.card:nth-child(3n) .tile{background:#ffe5d0;color:#7f4217}.bar{height:10px;border-radius:99px;overflow:hidden;background:#eae4f5}.bar span{display:block;height:100%;background:#7957d3}.strength{display:grid;grid-template-columns:minmax(100px,1fr) minmax(70px,2fr) minmax(68px,auto);gap:10px;align-items:center;margin:12px 0}.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.spaced{justify-content:space-between}.quiz{max-width:760px;margin:auto}.quiz h2{font-size:clamp(1.45rem,4vw,2.4rem)}.choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.choice{justify-content:flex-start;text-align:left;min-height:54px;overflow-wrap:anywhere}.choice:hover,.quiet:hover,.pill:hover{border-color:#8a6adb;background:#f0eaff}.choice.good{background:#e1f6d7;border-color:#7dae62}.choice.bad{background:#ffe1dd;border-color:#e39c92}.choice.selected{border-color:#6744c8;background:#ede3ff}.feedback{margin:12px 0;padding:12px;border-radius:10px;background:#eee6fb}.feedback:empty{display:none}.sentence-gap{display:inline-block;max-width:100%;min-width:5ch;padding:.08em .28em;border:2px dashed #8c70bd;border-radius:.3em;color:#563a94;text-align:center;overflow-wrap:anywhere}.sentence-gap.good{border-style:solid;background:#e1f6d7;color:#23562b}.sentence-gap.bad{border-style:solid;background:#ffe1dd;color:#892d28}.list{display:grid;gap:6px;list-style:none;margin:12px 0 0;padding:0}.list li{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:8px 0}.list li div{min-width:0;overflow-wrap:anywhere}.list li span{display:block}.input,textarea{width:100%;padding:10px 12px;border:1px solid #bdb1cc;border-radius:10px;background:white;color:var(--ink)}textarea{min-height:110px;resize:vertical}.compact{max-width:260px}details{margin:10px 0}summary{cursor:pointer;font-weight:700}.status{font-size:.88rem;color:#563a94;margin:8px 0}.skip{position:absolute;top:-100px}.skip:focus{top:5px;z-index:9;background:white;padding:10px}footer{display:flex;justify-content:space-between;gap:10px;padding:18px clamp(16px,4vw,54px);border-top:1px solid var(--line);font-size:.74rem;color:var(--muted)}@media(max-width:850px){.layout{grid-template-columns:175px minmax(0,1fr)}.sidebar{padding:25px 8px}}@media(max-width:650px){.top{height:63px}.brand small{display:none}.brand{font-size:1rem}.logo{width:31px;height:31px}.tools .quiet,.account{padding:7px 8px;font-size:.8rem}.layout{display:block}.sidebar{padding:8px 12px;border-right:0;border-bottom:1px solid var(--line);display:grid;gap:5px}.sidebar .eyebrow,.side-note{display:none}.sidebar nav{grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}.sidebar button{font-size:.85rem;text-align:center;padding:6px;min-height:40px}.sidebar button span{margin-right:3px}.metrics{grid-template-columns:repeat(3,1fr)}.panel{padding:13px}.hero{margin-bottom:15px}.choices{gap:6px}.choice{padding:8px;font-size:.93rem}}@media(prefers-reduced-motion:no-preference){button{transition:background .18s,border-color .18s,transform .18s}button:not(:disabled):active{transform:scale(.98)}}
.draft-note{white-space:pre-wrap}

.vocabulary-overview h2,.meter-card h3,.insight h3{margin-bottom:0}
.overview-total{display:flex;align-items:baseline;gap:10px;margin-top:16px}
.overview-total strong{font-size:clamp(2.5rem,7vw,4rem);line-height:1;letter-spacing:-.06em}
.overview-total span{color:var(--muted);font-weight:700}
.bank-composition{display:flex;height:14px;overflow:hidden;border-radius:20px;background:#eae4f5;margin:15px 0}
.bank-composition .meter-fill{flex:none}
.vocabulary-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.meter-card,.insight{border:1px solid var(--line);border-radius:13px;padding:13px}
.meter-card h3{font-size:.97rem;display:flex;align-items:center;gap:8px}
.meter-card b{font-size:1.35rem}
.meter-card .bar{margin:10px 0 7px}
.meter-card p{margin-bottom:8px}
.swatch{width:11px;height:11px;flex:none;border-radius:100%}
.swatch.known,.meter-fill.known{background:#28834b}
.swatch.partly,.meter-fill.partly{background:#ba7911}
.swatch.practice,.meter-fill.practice{background:#c7525d}
.swatch.unplayed,.meter-fill.unplayed{background:#7851be}
.swatch.revision,.meter-fill.revision{background:#2f6fb2}
/* P05 visuals — colour swatches and picture signs for General Words. */
.prompt-visual{text-align:center;margin:6px 0 2px}
.prompt-visual .color-swatch{display:inline-block;width:96px;height:96px;border-radius:18px;border:2px solid rgba(0,0,0,.18)}
.prompt-visual .word-emoji{font-size:64px;line-height:1}
.list .color-swatch,.match-grid .color-swatch{display:inline-block;width:18px;height:18px;border-radius:5px;border:1px solid rgba(0,0,0,.2);vertical-align:-3px;margin-right:6px}
.list .word-emoji,.match-grid .word-emoji{font-size:18px;margin-right:6px}
.color-swatch{display:inline-block;border-radius:5px}
.skill-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.insight-strength{background:#e7f6de}.insight-next{background:#fff2d5}.insight p{margin:6px 0}
.skill-row{font-variant-numeric:tabular-nums}.skill-row button{font-size:.86rem}
@media(max-width:470px){.vocabulary-breakdown,.skill-insights{grid-template-columns:1fr}.overview-total{align-items:flex-end}.skill-row{gap:6px;grid-template-columns:minmax(100px,1fr) minmax(40px,1fr) auto}}

.theme-switch{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;isolation:isolate;width:61px;min-height:44px;padding:0 4px;border:0;background:transparent;color:#4a326f;flex:none;border-radius:12px}
.theme-switch::before{content:"";position:absolute;inset:7px 0;border-radius:18px;background:#eee6fb;border:1px solid #d1c1ee;z-index:-2}
.theme-switch .theme-thumb{position:absolute;inset:10px auto auto 4px;width:24px;height:24px;border-radius:50%;background:#fffdf8;box-shadow:0 1px 5px #30224d35;z-index:-1}
.theme-sun,.theme-moon{font-size:1.18rem;line-height:1;text-align:center}
.theme-moon{opacity:.72}
.theme-switch[aria-checked=true] .theme-thumb{transform:translateX(29px);background:#3c2d5b}
.theme-switch[aria-checked=true] .theme-moon{opacity:1}
@media(prefers-reduced-motion:no-preference){.theme-switch .theme-thumb{transition:transform .24s cubic-bezier(.22,.75,.35,1),background-color .2s}}
footer{align-items:center;flex-wrap:wrap}
@media(max-width:380px){.top{gap:6px;padding-inline:10px}.tools{gap:4px}.brand{gap:5px}.tools .quiet,.account{padding-inline:6px}.theme-switch{width:52px}.theme-switch[aria-checked=true] .theme-thumb{transform:translateX(20px)}}

:root[data-theme=dark]{color-scheme:dark;color:#f1edf8;background:#000;--violet:#7450da;--ink:#f4effc;--muted:#c5bbd6;--line:#373041;--paper:#121016}
[data-theme=dark] .theme-switch{color:#eadcff}
[data-theme=dark] .theme-switch::before{background:#241c35;border-color:#5a4976}
[data-theme=dark] .hero{background:#1a112d;color:#faf5ff;border:1px solid #45335e}
[data-theme=dark] .hero .primary{background:#c7fb99;color:#201438}
[data-theme=dark] a{color:#d1baff}
[data-theme=dark] .account,[data-theme=dark] a.primary{color:#fff;background:#39285b}
[data-theme=dark] .eyebrow,[data-theme=dark] .sidebar button span,[data-theme=dark] .status{color:#c9aaff}
[data-theme=dark] .sidebar button[aria-pressed=true],[data-theme=dark] .side-note{background:#281c40;color:#f0e6ff}
[data-theme=dark] .choice:hover,[data-theme=dark] .quiet:hover,[data-theme=dark] .pill:hover,[data-theme=dark] .choice.selected{background:#2c2042;border-color:#a188cb}
[data-theme=dark] .choice.good{background:#143120;border-color:#63ac78}
[data-theme=dark] .choice.bad{background:#391b24;border-color:#d17c87}
[data-theme=dark] .feedback{background:#2c2040}
[data-theme=dark] .sentence-gap{color:#e0ceff;border-color:#ad90db}
[data-theme=dark] .sentence-gap.good{background:#143120;color:#b7e8bd;border-color:#63ac78}
[data-theme=dark] .sentence-gap.bad{background:#391b24;color:#ffc3bb;border-color:#d17c87}
[data-theme=dark] .input,[data-theme=dark] textarea{background:#1b1722;border-color:#625274}
[data-theme=dark] .bar,[data-theme=dark] .bank-composition{background:#332741}
[data-theme=dark] .tile{background:#35224f;color:#e6d1ff}
[data-theme=dark] .card:nth-child(3n+2) .tile,[data-theme=dark] .insight-strength{background:#1b3221;color:#e1f5df}
[data-theme=dark] .card:nth-child(3n) .tile,[data-theme=dark] .insight-next{background:#342517;color:#ffe8bb}

.skill-translate{--skill-color:#8f62dc}
.skill-match{--skill-color:#279d92}
.skill-sentence{--skill-color:#d99929}
.skill-complex{--skill-color:#588fe1}
.skill-tenses{--skill-color:#db629b}
.skill-accent{--skill-color:#65a93e}
.skill-writing{--skill-color:#e47a45}
.skill-row .pill{gap:6px}
.skill-swatch,.bar .skill-fill{background:var(--skill-color)}
.skill-swatch{width:9px;height:9px;border-radius:50%;flex:none}

.profile-page{gap:16px}
.profile-page .profile-hero{margin-bottom:0}
.profile-hero{display:grid;grid-template-columns:1fr auto;gap:6px 24px;align-items:center}
.profile-hero>.eyebrow,.profile-hero>h1,.profile-hero>p{grid-column:1}
.profile-hero h1,.profile-hero p{margin-bottom:0}
.profile-streak{grid-column:2;grid-row:1 / 4;display:flex;align-items:center;gap:15px;border:1px solid #ad91ed77;background:#e7dbff20;padding:14px 20px;border-radius:18px}
.profile-streak b,.profile-streak div span{display:block}
.profile-streak div span{color:#e7dafa;font-size:.85rem;margin-top:4px}
.streak-number{font-size:clamp(2.4rem,6vw,4.5rem);line-height:1;letter-spacing:-.07em;color:#c7fb99;font-weight:850}
.profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profile-metric{padding:14px}
.profile-metric b{display:block;font-size:clamp(1.3rem,4vw,2rem);letter-spacing:-.05em}
.profile-metric span{color:var(--muted);font-size:.85rem}
.profile-goal h2{margin:0}
.profile-goal>.subtle{margin:8px 0 0}
.goal-meter{height:24px;border-radius:20px;overflow:hidden;background:#e9e0f7;margin-top:15px}
.goal-meter span{display:block;height:100%;background:linear-gradient(90deg,#7851ce,#419b75);border-radius:20px}
.profile-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
.profile-columns>.panel{min-width:0}
.week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0}
.week-column{display:grid;grid-template-rows:2.3rem 80px auto;text-align:center;align-items:center;gap:5px;font-size:clamp(.58rem,1.2vw,.8rem);color:var(--muted);overflow-wrap:anywhere}
.week-value{color:var(--ink);font-weight:700}
.week-track{height:100%;border-radius:6px;background:#eee7f6;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.week-track span{width:100%;background:#8f62dc;border-radius:6px}
.week-column[aria-current=date] .week-track span{background:#28834b}
.profile-bank h3{margin-bottom:0}
.profile-bank .bar{margin:6px 0}
.profile-bank .profile-tcf{background:#8f62dc}
.profile-bank .profile-personal{background:#279d92}
.profile-bank .profile-general{background:#2e7dc7}
.profile-bank .profile-idioms{background:#c26a1b}
.profile-table{overflow-x:auto;margin-bottom:12px}
.profile-table table{width:100%;border-collapse:collapse;font-size:.9rem;white-space:nowrap}
.profile-table th,.profile-table td{border-bottom:1px solid var(--line);padding:8px 10px;text-align:left}
.profile-table thead th{color:var(--muted);font-size:.78rem}
.profile-table tbody th{font-weight:650}
[data-theme=dark] .goal-meter,[data-theme=dark] .week-track{background:#30243c}
@media(max-width:850px){.profile-columns{grid-template-columns:1fr}.profile-streak{padding:10px 13px}}
@media(max-width:650px){.profile-hero{grid-template-columns:1fr}.profile-streak{grid-column:1;grid-row:auto;width:fit-content;margin-top:8px}.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar nav[aria-label="Your space"]{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}}

.game-quiz{border-top:4px solid var(--skill-color,#8f62dc);padding:clamp(18px,4vw,38px)}
.round-meter{display:block;width:100%;height:.7rem;appearance:none;border:0;border-radius:1rem;overflow:hidden;margin:1rem 0;background:var(--line);color:var(--skill-color,#8f62dc)}
.round-meter::-webkit-progress-bar{background:var(--line)}
.round-meter::-webkit-progress-value{background:var(--skill-color,#8f62dc);border-radius:1rem}
.round-meter::-moz-progress-bar{background:var(--skill-color,#8f62dc);border-radius:1rem}
.quiz-prompt,.lab-passage{padding:clamp(14px,3vw,24px);border-radius:16px;background:#f0eafa}
.quiz-prompt{font-size:clamp(1.5rem,4.5vw,2.45rem);line-height:1.2}
.game-quiz .choice{min-height:62px;gap:10px}
.choice-letter{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:#e9ddfa;color:#492f78;font-size:.82rem;font-weight:800}
.match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:1rem 0}
.match-grid>div{display:grid;gap:8px}
.match-grid .choice{width:100%;overflow-wrap:anywhere}
/* Phase 3 — new games. Example sentence shown as a clue in the games;
   spelling input; sentence-building word chips. Electric Lime palette. */
.example-line{font-style:italic}
#spell{display:grid;gap:12px;margin:1rem 0}
.spell-input{font-size:1.25rem;padding:14px 16px}
.build-tokens,.build-answer{display:flex;flex-wrap:wrap;gap:8px;margin:1rem 0}
.build-token{width:auto;min-height:48px;padding:10px 14px}
.build-token.placed{background:#e9ddfa;border-color:#8f62dc}
.game-quiz .choice:focus-visible,.lab-session button:focus-visible{outline:3px solid var(--skill-color,#9272db);outline-offset:3px}
[data-theme=dark] .game-quiz{background:#191620}
[data-theme=dark] .game-quiz .quiz-prompt,[data-theme=dark] .lab-passage{background:#302741;color:#fff4e7}
[data-theme=dark] .game-quiz .choice:not(.good):not(.bad){background:#252132;border-color:#615075}
[data-theme=dark] .game-quiz .choice:not(:disabled):hover,[data-theme=dark] .game-quiz .choice.selected{background:#392a4e;border-color:#b393e4}
[data-theme=dark] .choice-letter{background:#493964;color:#ffe6bc}
.lab-tools{margin-bottom:18px}
.lab-session{margin-top:12px;max-width:850px}
.lab-session label:has(textarea){display:block;margin:1rem 0}
.lab-session audio{display:block;max-width:100%;margin:1rem 0}
.lab-session [hidden]{display:none}
.lab-option{display:block;padding:12px;margin:6px 0;border:1px solid var(--line);border-radius:10px}
.lab-option:has(input:checked){border-color:#9670dc}
.lab-session fieldset{margin-top:12px;border:1px solid var(--line);border-radius:12px}
@media(max-width:650px){.game-quiz .choices{grid-template-columns:1fr}.sidebar nav[aria-label="Practice areas"] button{min-width:0;overflow-wrap:anywhere}}

.lab-levels{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0}
.lab-levels [aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px;font-weight:700}
.lab-reading{margin:1rem 0;padding:clamp(1rem,4vw,2rem)}
.lab-reading-head{display:flex;justify-content:space-between;align-items:start;gap:1rem}
.lab-reading-head h3{margin:.3rem 0 1rem}
.lab-reading summary{cursor:pointer;font-size:1.05rem;line-height:1.8}
.lab-reading summary .subtle{display:block;font-size:.85rem;margin-top:.55rem}
.lab-reading details>p{margin:1rem 0 0;line-height:1.7;padding:1rem;border-inline-start:3px solid currentColor}
.lab-reading-controls{flex-wrap:wrap}
.lab-corrections{padding-inline-start:1.5rem}
.lab-corrections li{margin:.8rem 0}
.lab-corrections summary{cursor:pointer}
.lab-documents{margin:1rem 0;padding-inline-start:1rem;border-inline-start:3px solid currentColor}
.lab-recording audio{display:block;max-width:100%;margin:.5rem 0}
/* Item 5 (P20/P12): listening playback controls and the draft/revision
   word-level comparison. Added words use the Electric Lime accent;
   removed words are struck through, never hidden. */
.lab-playback{margin:1rem 0}
.lab-diff{line-height:1.8}
.lab-diff-add{background:#c7fb99;border-radius:4px;padding:0 2px}
.lab-diff-del{background:#ffe1dd;text-decoration:line-through;border-radius:4px;padding:0 2px}
[data-theme=dark] .lab-diff-add{background:#3d5a22;color:#eef7df}
[data-theme=dark] .lab-diff-del{background:#5a2b28;color:#ffd9d4}
.lab-plan{list-style:decimal;padding-inline-start:1.75rem;margin:1.2rem 0}
.lab-plan li{padding:.75rem 0;border-bottom:1px solid var(--line)}
.lab-plan li::marker{font-weight:750}
.lab-plan li>div{display:inline-block;vertical-align:middle;width:calc(100% - 12rem)}
.lab-plan li p{margin:.25rem 0}
.lab-plan li>button{vertical-align:middle;margin:.3rem 0}
@media(max-width:650px){.lab-plan li>div{display:block;width:auto}}

.grammar-hero{margin:0}
.grammar-path{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:12px;align-items:start;margin-top:14px}
.grammar-path details{display:block;margin:0}
.grammar-path summary .tile{display:inline-block;margin:0 4px 4px}
.grammar-path ol{display:grid;gap:5px;padding-left:1.2rem;margin-bottom:0}
.grammar-path ol button{text-align:left;justify-content:flex-start;width:100%;min-height:36px}
.grammar-path [aria-current=step]{border-color:var(--violet);font-weight:850}
.grammar-lesson{scroll-margin-top:16px}
.grammar-lesson h3:not(:first-child){margin-top:1rem}
@media(max-width:420px){.sidebar nav[aria-label="Practice areas"]{grid-auto-flow:row;grid-template-columns:1fr 1fr}}

.report-flag{margin-block:4px;color:var(--violet);min-height:40px}
.report-dialog{width:min(94vw,560px);color:var(--ink);padding:22px}
.report-dialog::backdrop{background:rgb(19 10 39 / .64)}
.report-dialog form,.report-dialog [data-fields]{display:grid;gap:12px}
.report-dialog [hidden]{display:none}
.report-dialog label{display:grid;gap:6px}
.report-dialog h2,.report-dialog p{margin:0}
.match-with-flag{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px}
.match-flag{padding-inline:8px;color:var(--violet)}
.round-milestone{font-weight:800;background:var(--mint);color:#24402c;padding:14px;border-radius:12px}
.history-controls{margin:14px 0}
.history-controls label{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.history-day{margin-top:18px;margin-bottom:8px}
.history-round{margin-bottom:10px;display:block}
.history-round h4{margin:0 0 4px}
.history-round time{font-size:.9rem;color:var(--muted)}
.history-answers{padding:0;margin:8px 0 0;list-style:none}
.history-answers li{display:grid;grid-template-columns:minmax(110px,9rem) minmax(0,1fr);gap:9px;padding:6px 0;border-top:1px solid var(--line);align-items:baseline;overflow-wrap:anywhere}
.history-answers li div>span{display:block;font-size:.86rem;color:var(--muted)}
.history-result{font-size:.85rem;font-weight:700}
.history-result.correct{color:#26703e}.history-result.wrong{color:#a43742}.history-result.adjust,.history-result.unsure{color:#865408}
[data-theme=dark] .history-result.correct{color:#8ee1a2}[data-theme=dark] .history-result.wrong{color:#ff9ca7}[data-theme=dark] .history-result.adjust,[data-theme=dark] .history-result.unsure{color:#f1cb73}

/* Keep navigation compact and give desktop exercises the full working width. */
.top{justify-content:flex-start;gap:16px;padding-inline:clamp(14px,2.2vw,34px)}
.top .tools{margin-left:auto}
.nav-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.sidebar .nav-heading .eyebrow{margin:0}.sidebar .nav-toggle{justify-content:center;min-width:40px;min-height:40px;padding:0;border:1px solid var(--line);font-size:1.2rem}.sidebar .nav-toggle span{margin:0}
.layout{max-width:none;grid-template-columns:auto minmax(0,1fr);position:relative;--nav-width:198px}
.sidebar{padding:20px 9px;background:var(--paper)}
.sidebar .eyebrow{padding-left:8px}
.sidebar button{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px;font-size:.86rem}
.sidebar button .nav-icon{margin:0;flex:0 0 18px;text-align:center;font-size:1.05rem}
.sidebar button .nav-label{margin:0;color:inherit}
.sidebar .secondary{margin-top:20px}
.sidebar .side-note{display:none}
.section-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.section-nav a{padding:7px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-size:.85rem;background:var(--paper)}
.section-nav a[aria-current="page"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
main#main{padding:clamp(13px,2vw,32px)}
.dashboard-hero{padding:clamp(24px,3.2vw,52px)}
.dashboard-hero h1{font-size:clamp(2.7rem,5vw,5rem)}
.dashboard-insights{display:grid;gap:16px;align-items:start}
.games-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,182px),1fr))}
#main>.game-quiz,#lab-output>.lab-session{max-width:none;margin-inline:0}
#main>.game-quiz .quiz-prompt{max-width:none}
#main>.game-quiz .choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.topics-panel h2{margin-bottom:5px}
.topics-panel p{margin-bottom:0}
.topics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,218px),1fr));gap:10px;margin-top:15px}
.topic-card{display:flex;align-items:center;gap:10px;text-align:left;min-height:82px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink)}
.topic-card:hover{border-color:var(--violet)}
.topic-icon,.topic-count{background:var(--topic-tint);color:var(--topic-ink);border-radius:9px;font-weight:850}
.topic-icon{display:grid;place-items:center;flex:0 0 34px;height:34px}
.topic-count{padding:4px 7px;font-size:.78rem;margin-left:auto}
.topic-text{min-width:0}
.topic-text small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}
.topic-color-0{--topic-tint:#ece3ff;--topic-ink:#533596}.topic-color-1{--topic-tint:#dcf3db;--topic-ink:#225a3b}
.topic-color-2{--topic-tint:#dceeff;--topic-ink:#244d79}.topic-color-3{--topic-tint:#ffebd7;--topic-ink:#77421e}
.topic-color-4{--topic-tint:#fce2ee;--topic-ink:#8c3056}.topic-color-5{--topic-tint:#dff3ed;--topic-ink:#205e53}
@media(min-width:1120px){.dashboard-insights{grid-template-columns:1.02fr 1fr}.dashboard-insights>.panel{height:100%}}
@media(min-width:761px){
  /* Desktop sidebar collapse — animated width, not an abrupt jump.
     The sidebar column is `auto` and the sidebar itself carries the
     width, so the width transition animates the rail (grid-template-
     columns does not animate). --nav-width is the single source of
     truth: the sidebar width and the edge toggle's left both read it,
     so the toggle rides the edge through the transition.
     The toggle itself is quiet chrome, not a box: while the sidebar
     is expanded it sits in the header row at the top-right as a small
     borderless chevron (the Muse / VS Code / Notion pattern) — no
     button box floating at the top of the sidebar. It only becomes
     the round button riding the outer edge when the sidebar is
     collapsed to the icon rail, where it expands the rail again.
     .nav-heading is absolutely positioned against .layout (not
     .sidebar) in that collapsed state only, so the sidebar's
     overflow:hidden — which clips the labels cleanly mid-transition
     and lets the rail shrink below its content width — never clips
     the toggle. */
  .layout.nav-compact{--nav-width:61px}
  .sidebar{width:var(--nav-width);overflow:hidden;transition:width .25s ease}
  .nav-heading{justify-content:flex-end}
  .sidebar .nav-toggle{min-width:28px;min-height:28px;width:28px;height:28px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--muted);font-size:1rem}
  .sidebar .nav-toggle:hover{color:var(--ink)}
  .layout.nav-compact .nav-heading{position:absolute;top:20px;left:var(--nav-width);transform:translateX(-50%);margin:0;z-index:5;transition:left .25s ease}
  .layout.nav-compact .sidebar .nav-toggle{border:1px solid var(--line);border-radius:50%;background:var(--paper);box-shadow:0 1px 4px rgb(0 0 0/.14);color:inherit}
  .sidebar .nav-toggle span{display:inline-block;transition:transform .25s ease}
  .layout.nav-compact .nav-toggle span{transform:rotate(180deg)}
  .nav-compact .sidebar button{justify-content:center}

}
/* Global sidebar search: one box at the top of the desktop sidebar
   (below the header chevron) that searches every bank plus Numbers &
   Dates. Hidden when the sidebar is collapsed to the icon rail and on
   small screens, where the sidebar itself is hidden. */
.nav-search{margin:2px 0 10px}
.nav-search .input{width:100%}
.nav-search-count{margin:6px 0 0;padding:0 9px;font-size:.78rem;color:var(--muted)}
.nav-search-results{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}
.sidebar .nav-search-result{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;min-height:0;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font-size:.84rem;text-align:left}
.sidebar .nav-search-result:hover{border-color:var(--violet)}
.sidebar .nav-search-result b{font-size:.88rem}
.sidebar .nav-search-result span{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.sidebar .nav-search-result small{color:var(--muted);font-size:.76rem}
.layout.nav-compact .nav-search{display:none}
@media(prefers-reduced-motion:reduce){.sidebar,.nav-heading,.sidebar .nav-toggle span{transition:none}}
@media(max-width:760px){
  .layout{display:block}.sidebar{padding:8px 12px;border-right:0;border-bottom:1px solid var(--line);display:grid;gap:4px}
  .sidebar>.eyebrow{display:none}.sidebar .nav-heading .eyebrow{display:block}
  .sidebar nav[aria-label]{grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .sidebar button{justify-content:center;text-align:center;font-size:.78rem;padding:5px 3px;gap:4px;line-height:1.15}
  .sidebar button .nav-icon{flex:0 0 auto;font-size:.88rem}
  .nav-search{display:none}
  .layout.nav-compact .sidebar{grid-template-columns:auto 1fr 1fr;align-items:center;gap:6px}.nav-compact .nav-heading{margin:0}.nav-compact .sidebar nav[aria-label]{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:430px){.top{gap:7px}.sidebar nav[aria-label]{grid-template-columns:repeat(2,minmax(0,1fr))}#main>.game-quiz .choices{grid-template-columns:1fr}}

.nav-compact .nav-heading{justify-content:center}
.nav-compact .sidebar .eyebrow,.nav-compact .sidebar .nav-heading .eyebrow{display:none}
.nav-compact .sidebar .nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.topic-card .topic-progress{font-size:.77rem;color:var(--violet);font-weight:650}
.topic-workspace{margin-block:12px 18px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.topic-workspace h3{font-size:clamp(1.3rem,2vw,1.75rem)}
.topic-stats{display:flex;flex-wrap:wrap;gap:6px;margin-block:10px 12px}
.topic-stats span{border:1px solid var(--line);border-radius:9px;padding:5px 8px;font-size:.84rem}
.topic-bridge{margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}
.topic-bridge p{max-width:82ch;margin-bottom:.55rem}

/* The study path and reference share the same visual vocabulary as the games. */
.sync-strip {
  min-height: 1.75rem;
  margin: 0;
  padding: .2rem clamp(14px,4vw,54px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  text-align: right;
  font-size: .76rem;
  font-weight: 650;
}
.sync-strip[data-sync="pending"] { color: #805000; background: #fff0d2; }
[data-theme="dark"] .sync-strip[data-sync="pending"] { color: #ffdfa5; background: #302510; }
/* M4 — game focus: while a round is active (body.game-focus, set by
   render()) the page chrome hides so only the game is on screen, and the
   sync strip shows only the blinking dot. The bottom nav lives in
   #mobile-navigation on main and on the M3 branch alike, so hiding that
   container covers both. */
body.game-focus header.top,
body.game-focus #site-nav,
body.game-focus #mobile-navigation{display:none}
body.game-focus .layout{grid-template-columns:minmax(0,1fr)}
body.game-focus #page-location{display:none}
body.game-focus .context-strip{border-bottom:0}
body.game-focus .sync-strip{min-height:0;padding:.3rem clamp(14px,4vw,54px);border-bottom:0;background:transparent}
.sync-dot{display:inline-block;width:10px;height:10px;border-radius:50%;vertical-align:middle}
.sync-dot[data-state="pending"]{background:#e5484d;animation:sync-blink 1.2s ease-in-out infinite}
.sync-dot[data-state="synced"]{background:#2f9e44;animation:sync-blink 1.2s ease-in-out infinite}
@keyframes sync-blink{0%,100%{opacity:1}50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.sync-dot{animation:none}}
/* M4 — the game flag is a single ⚑ at the right end of the actions row. */
.question-actions .report-flag-icon{margin-left:auto;min-width:0;padding:8px 11px}
.study-path {
  border-inline-start: 4px solid #5673c4;
  background: linear-gradient(110deg,#edf2ff,var(--paper) 72%);
}
[data-theme="dark"] .study-path { background: linear-gradient(110deg,#232a46,var(--paper) 72%); }
.study-path h2,.study-path p,.profile-export p { margin-bottom: .28rem; }
.recall-card {
  margin-block: .75rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid #39878d;
  border-radius: 10px;
  padding: .65rem .8rem;
}
.recall-card p { margin: .28rem 0 0; }
.profile-export { margin-top: 20px; }
.numbers-hero { background: #1e3656; margin-bottom: 0; }
.numbers-hero::after { content: "42"; right: 3%; bottom: -.3em; font-size: clamp(9rem,28vw,21rem); color: #8fe2d9; }
.numbers-hero h1 em { color: #a8f1dc; }
.numbers-hero .primary { background: #a8f1dc; color: #14394c; }
.number-topics { grid-template-columns: repeat(auto-fit,minmax(min(100%,154px),1fr)); }
.number-topic {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 75px;
  border-inline-start: 3px solid var(--number-color,#5275c7);
}
.number-topic:nth-child(2) { --number-color: #875cb7; }
.number-topic:nth-child(3) { --number-color: #51844f; }
.number-topic:nth-child(4) { --number-color: #be5c78; }
.number-topic:nth-child(5) { --number-color: #a27227; }
.number-topic:nth-child(6) { --number-color: #29868d; }
.number-topic[aria-pressed="true"] { outline: 2px solid var(--number-color,#5275c7); outline-offset: 2px; }
.number-reference { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.number-reference .list li { min-height: 52px; }
.number-reference .list { margin-bottom: 1rem; }
.number-history .list { padding-inline: .85rem; }
.number-history .list li { gap: .75rem; align-items: flex-start; }
.number-history .list li b { text-align: right; min-width: 5rem; }
.skill-numbers { --skill-color: #39878d; }
[data-theme="dark"] .numbers-hero { background: #192a46; }
[data-theme="dark"] .game-quiz {
  background: linear-gradient(150deg,#211b2b,#171922 72%);
}
[data-theme="dark"] .game-quiz .choice:not(.good):not(.bad) { background: #262237; }
[data-theme="dark"] .game-quiz .choice:not(:disabled):hover,
[data-theme="dark"] .game-quiz .choice:not(:disabled):focus-visible { background: #3c3156; }
.game-quiz .choice.good:disabled,.game-quiz .choice.bad:disabled { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .game-quiz .choice.good,.game-quiz .choice.bad,.round-milestone { animation: reveal-answer .26s ease-out both; }
  @keyframes reveal-answer {
    from { transform: translateY(3px); opacity: .72; }
    to { transform: translateY(0); opacity: 1; }
  }
}
@media (max-width: 760px) {
  .sidebar nav[aria-label="Practice areas"] { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .sidebar nav[aria-label="Practice areas"] button { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .sidebar nav[aria-label="Practice areas"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .layout.nav-compact .sidebar { grid-template-columns: auto minmax(0,1fr); }
  .nav-compact .sidebar nav[aria-label] { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .nav-compact .sidebar nav[aria-label="Your space"] { grid-column: 2; grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.sound-settings label{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin-block:1rem}.sound-settings input[type="range"]{display:block;width:100%;min-width:0;accent-color:var(--accent)}.sound-settings input[type="checkbox"]{width:1.25rem;height:1.25rem}.sound-settings .row{flex-wrap:wrap}

/* Phase 4 — Sidebar progress (all six sections, same data as the
   Dashboard comparison). One compact row per section: a pie (donut) for
   the headline percent, the name, and a stacked bar of the five word
   states (or the recent-accuracy bar for Numbers/Grammar). It fills the
   empty space below the sidebar nav. Hidden on small screens and in
   compact-nav mode, where there is no room for it. */
.sidebar-progress{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.sidebar-progress .eyebrow{padding-left:8px}
.side-progress-row{display:flex;gap:9px;align-items:flex-start;padding:7px 8px;border-radius:10px}
.side-progress-donut{flex:none;margin-top:2px}
.side-progress-donut .donut{width:34px;height:34px}
.side-progress-text{min-width:0;flex:1}
.side-progress-text .row b{font-size:.86rem}
.side-progress-text .row span{font-size:.8rem;font-weight:700;color:var(--muted)}
.side-progress-bar{height:8px;margin:6px 0}
.side-progress-text p{margin:0;font-size:.78rem}
.nav-compact .sidebar-progress{display:none}
@media(max-width:760px){.sidebar-progress{display:none}}

/* Donut (pie) for one percent. The circle's circumference is 100
   units, so the dash length IS the percent. Same palette as the
   meter fills: Known green, recent-accuracy violet. */
.donut{width:34px;height:34px;flex:none}
.donut-ring{fill:none;stroke:#eae4f5;stroke-width:3.5}
.donut-fill{fill:none;stroke-width:3.5;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center}
.donut-fill.known{stroke:#28834b}
.donut-fill.score{stroke:#7957d3}
.meter-fill.score{background:#7957d3}

/* Phase 5 — Dashboard comparison (all six sections at a glance). One
   card per section: the headline percent, a pie, and all five state
   bars for a word bank (or the recent-accuracy bar for Numbers and
   Grammar). The grid is auto-fit, so it uses the width it is given. */
.comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;margin-top:14px}
.comparison-card{border:1px solid var(--line);border-radius:13px;padding:13px}
.comparison-card h3{font-size:.97rem;margin-bottom:0}
.comparison-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;margin:10px 0}
.comparison-donut{flex:none}
.comparison-donut .donut{width:44px;height:44px}
.comparison-head span{font-size:.86rem;color:var(--muted)}
.comparison-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:8px;align-items:center;margin:7px 0;font-size:.85rem}
.comparison-bar b{text-align:right}

/* Known-words revision + speedometer gauge. The revision button is a
   distinct revision blue (the app's Under-revision colour), clearly
   different from the primary practice button; on Sundays it gets the
   amber Sunday highlight and badge. The gauge is a semicircular arc
   (pathLength 100, so the dash offset IS the percent) with a flame
   marker at the current position; the arc and flame animate from zero
   when the card mounts, and the flame transitions smoothly when the
   numbers change. */
.revision-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#2f6fb2;color:#fff;border:0;border-radius:12px;font-weight:800;padding:12px 16px;min-height:44px}
.revision-btn:hover{background:#2a639f}
.revision-btn.sunday{background:#8f5e08}
.revision-btn.sunday:hover{background:#7a4f06}
.sunday-badge{display:inline-flex;align-items:center;background:#fff3d6;color:#7a5200;border-radius:99px;padding:2px 8px;font-size:.72rem;font-weight:800;letter-spacing:.02em}
.revision-note{margin:10px 0;padding:10px 12px;border-radius:10px;background:#e7f0fb;color:#2f5b8f;font-weight:700;font-size:.86rem}
.comparison-side{flex:1;min-width:0;display:grid;gap:10px}
.comparison-actions{display:flex;flex-wrap:wrap;gap:8px}
.gauge{flex:none;width:120px;max-width:100%}
.gauge-svg{width:100%;height:auto;display:block}
.gauge-arc-bg{fill:none;stroke:#eae4f5;stroke-width:7;stroke-linecap:round}
.gauge-arc-fill{fill:none;stroke:#28834b;stroke-width:7;stroke-linecap:round;animation:gauge-arc 1s ease-out}
.gauge-tick{stroke:#bdb1cc;stroke-width:2;stroke-linecap:round}
.gauge-flame{transition:transform .6s ease;animation:gauge-flame 1s ease-out}
.gauge-label{margin:2px 0 0;text-align:center;font-size:.8rem;color:var(--muted)}
@keyframes gauge-arc{from{stroke-dashoffset:100}}
@keyframes gauge-flame{from{transform:translate(var(--fx0),var(--fy0))}}
@media(prefers-reduced-motion:reduce){.gauge-arc-fill,.gauge-flame{animation:none}}
[data-theme=dark] .gauge-arc-bg{stroke:#30243c}
[data-theme=dark] .revision-note{background:#243a52;color:#bcd7f5}
.week-column.sunday .week-track span{background:#ba7911}

/* Dashboard analytics (owner brief, 2026-11-20 evening): practice
   calendar heatmap, accuracy trend, per-section attempts and
   suggestions. New panels on top of the existing dashboard — no
   existing card is redesigned. The attempts bars are single-colour
   (one bar per attempt); there is no stacked bar anywhere here. */
.heatmap{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,14px);grid-auto-columns:14px;gap:3px;margin:12px 0;overflow-x:auto;padding-bottom:2px}
.heat-cell{width:14px;height:14px;border-radius:3px;display:block}
.heat-0{background:#eae4f5}
.heat-1{background:#b7e4a8}
.heat-2{background:#7cc46a}
.heat-3{background:#4a9e3f}
.heat-4{background:#28834b}
.heat-pad{background:transparent}
.heat-legend{display:flex;align-items:center;gap:5px}
.heat-legend .heat-cell{width:12px;height:12px}
.streak-flame{display:inline-block;width:13px;height:18px;vertical-align:-3px}
.streak-flame svg{width:100%;height:100%;display:block}
.trend-svg{width:100%;height:auto;display:block;margin-top:8px}
.trend-line{fill:none;stroke:#7957d3;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.trend-dot{fill:#7957d3}
.trend-grid{stroke:#eae4f5;stroke-width:1}
.trend-axis{font-size:9px;fill:var(--muted)}
.attempts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;margin-top:12px}
.attempts-block{border:1px solid var(--line);border-radius:13px;padding:13px}
.attempts-block h3{font-size:.97rem;margin-bottom:4px}
.attempts-block p{margin:4px 0 10px}
.attempt-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px;align-items:center;margin:7px 0;font-size:.85rem}
.attempt-date{color:var(--muted)}
.attempt-bar{height:10px}
.attempt-pct{color:var(--muted);min-width:3ch;text-align:right}
.suggest-list{list-style:none;display:grid;gap:10px;padding:0;margin:12px 0 0}
.suggest-list li{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:13px;padding:12px}
.suggest-list li>div{flex:1;min-width:0}
.suggest-list li b{display:block}
.suggest-list li p{margin:4px 0 0}
.suggest-tile{flex:none;padding:6px 9px;border-radius:8px;font-size:.8rem;font-weight:800}
.suggest-focus{background:#ede5ff;color:#4f329d}
.suggest-due{background:#fff2c8;color:#7a5200}
.suggest-next{background:#e7f0fb;color:#2f5b8f}
[data-theme=dark] .heat-0{background:#30243c}
[data-theme=dark] .trend-grid{stroke:#30243c}

/* Wide screens — full-width layout (owner: no empty space left/right
   on big screens). The layout already spans the viewport; these steps
   make the CONTENT use it: the sidebar widens a little, the main area
   gets roomier padding, and the card grids step up to more columns.
   Phones, tablets and laptops are unchanged — every rule here is
   min-width 1400px or wider, so nothing below 1400px moves. */
@media(min-width:1400px){
  .layout{--nav-width:220px}
  main#main{padding:clamp(20px,2.5vw,48px)}
  .games-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
  .topics-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
  .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
  .comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .vocabulary-breakdown{grid-template-columns:repeat(5,minmax(0,1fr))}
  .dashboard-insights{grid-template-columns:1.05fr 1fr}
}
@media(min-width:1920px){
  .layout{--nav-width:240px}
  main#main{padding:40px 56px}
  .games-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
  .topics-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
  .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
  .comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .profile-columns{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
}

/* Item 6 (P25 quality fixes).
   - Keyboard focus: the app previously relied on the browser default
     outline alone (only game choices and lab buttons had a custom one).
     Every interactive element now gets a visible 3px violet ring.
   - Long labels: topic cards, quiz prompts and the small-screen
     sidebar buttons wrap anywhere, so a long French label cannot
     overflow its card or button. */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #7957d3;outline-offset:2px}
[data-theme=dark] button:focus-visible,[data-theme=dark] a:focus-visible,[data-theme=dark] input:focus-visible,[data-theme=dark] select:focus-visible,[data-theme=dark] textarea:focus-visible,[data-theme=dark] summary:focus-visible{outline-color:#c9aaff}
.topic-card{overflow-wrap:anywhere}
.quiz-prompt{overflow-wrap:anywhere}
@media(max-width:760px){.sidebar button{min-width:0;overflow-wrap:anywhere}}

/* Item 6 (P23): version & what's new. Electric Lime: the notice uses
   the mint panel; the footer label is small muted text. */
.whats-new{background:#e7f6de;border-color:#9dc98f}
.whats-new h2{margin-bottom:.3em}
.whats-new p{margin:0}
.version-list{margin:10px 0 0;padding-left:1.2rem}
.version-list li{margin:6px 0;line-height:1.5;overflow-wrap:anywhere}
[data-theme=dark] .whats-new{background:#1b3221;border-color:#4a7a44}

/* M2 — Mobile dashboard (owner brief, 2026-11-17 evening). Small screens
   (the existing ≤600px breakpoint, same as M1's top bar) get a
   rearranged Dashboard: uniform stat buttons, seven section tiles, then
   a trimmed Summary by area. Both variants render; CSS picks one, so a
   resize needs no re-render. The full comparison panel (with the
   per-section progress bars), the Practice Lab panel and the Activity
   table stay desktop-only inside .desktop-dashboard-flow. The "Your
   progress" sidebar panel is not rendered into the mobile block at all.
   Tiles are Electric Lime: the lime icon chip matches the hero primary;
   all other colours are the theme variables, so dark mode just works.
   The stat buttons' compact sizing lives in lexi-premium.css next to
   the other ≤600px overrides (it must beat the .lp-app .panel padding). */
.mobile-dashboard{display:none}
.desktop-dashboard-flow{display:grid;gap:20px}
.mobile-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mobile-tile{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);text-decoration:none}
.mobile-tile:hover{border-color:var(--violet)}
.mobile-tile-icon{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#c7fb99;color:#281b42;font-size:1.05rem;font-weight:800}
.mobile-tile-text{min-width:0;flex:1}
.mobile-tile-text b{display:block;font-size:.92rem;overflow-wrap:anywhere}
.mobile-tile-text small{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
.mobile-tile-arrow{flex:none;color:var(--muted);font-weight:800}
.mobile-summary-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:2px}
.mobile-summary-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line)}
.mobile-summary-row:last-child{border-bottom:0}
.mobile-summary-row span{overflow-wrap:anywhere}
.mobile-summary-row b{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .mobile-dashboard{display:grid;gap:20px}
  .desktop-dashboard-flow{display:none}
}
