/* One identity for the whole Git + CI course: the discovery's paper, ink, cobalt and coral.
   Loaded last on /git/ only, so Docker and the shared console keep their own look. */
:root{--paper:#f3efe5;--surface:#fffdf7;--ink:#192e3c;--muted:#53616b;--line:#d4cfc1;--accent:#2352ae;--tint:#e8ebf2;--coral:#b3462b;--good:#1d6b4f;--shadow:none;--lift:3px 3px 0 var(--line);--serif:Georgia,'Times New Roman',serif}
[data-theme=dark]{--paper:#101f2a;--surface:#172a37;--ink:#f4eddd;--muted:#bcc9d2;--line:#34495a;--accent:#a3c3ff;--tint:#1c3243;--coral:#f6ae8b;--good:#86d6b4;--lift:3px 3px 0 #0a151d}
html[data-hud=discover] body{--line:#c6c8bf}
html[data-theme=dark][data-hud=discover] body{--line:#526474}
/* Commands appear in prose: Manrope's contextual alternates would turn -- into a dash. */
body{background:var(--paper);font-feature-settings:"calt" 0,"liga" 0;font-variant-ligatures:none}

/* Chrome: a hairline masthead on paper, never a white slab. */
.topbar{background:var(--paper);border-bottom:1px solid var(--line)}
.topbar nav a{color:var(--ink);font-weight:650;opacity:.78;transition:opacity .2s}
.topbar nav a:hover,.topbar nav a[aria-current=page]{opacity:1}
.topbar nav a[aria-current=page]{border-bottom-color:var(--coral)}
.topbar .actions button,.topbar .actions select{background:var(--surface);border-color:var(--line);border-radius:5px}

/* Type: mono coral eyebrows, tight ink headlines, never microscopic labels. */
.eyebrow{font:700 11px/1.4 ui-monospace,SFMono-Regular,monospace!important;letter-spacing:.06em!important;text-transform:none;color:var(--coral)!important}
h1,h2{color:var(--ink)}
/* Balanced headings and orphan-free paragraphs: a French « ? » never ends up alone on a line. */
h1,h2,h3{text-wrap:balance}
p,blockquote,li{text-wrap:pretty}
.wb-heading h1{font-weight:760;letter-spacing:-.05em}
.wb-heading h1 em,.page-head h1 em{font:italic 1.04em var(--serif);letter-spacing:-.04em;color:var(--accent)}
.lede{color:var(--muted)}

/* Surfaces: hairline paper cards with a tactile offset, small radii. */
.wb-module-preview,.wb-reading,.wb-principle,.wb-demo,.learning-workbench .card,.wb-practice-grid>article,.incident-card,.wb-metric{border-radius:6px!important;box-shadow:none}
.wb-principle{background:var(--tint)}
.learning-workbench .button,.learning-workbench button{border-radius:5px}
.primary,.button.primary,button.primary{background:var(--ink);border-color:var(--ink);color:var(--paper);box-shadow:var(--lift)}
.primary:hover:not(:disabled),.button.primary:hover,button.primary:hover:not(:disabled){background:var(--accent);border-color:var(--accent);color:var(--surface)}
.primary:disabled{box-shadow:none}
:focus-visible{outline-color:var(--coral)}

/* Step tabs read like the discovery chapters: hairline cells, a coloured top rule for the current one. */
.wb-navigation{gap:0;border-top:1px solid var(--line);padding-bottom:0}
.wb-navigation a,.wb-navigation button{border-radius:0;border:0;border-right:1px solid var(--line);position:relative;color:var(--muted);background:transparent}
.wb-navigation a:last-child,.wb-navigation button:last-child{border-right:0}
.wb-navigation a[aria-current=step],.wb-navigation button[aria-pressed=true]{background:var(--surface);color:var(--ink)}
.wb-navigation a[aria-current=step]::before,.wb-navigation button[aria-pressed=true]::before{content:"";position:absolute;inset:-1px 0 auto;height:3px;background:var(--accent)}
.wb-navigation a[aria-current=step] span{color:var(--accent)}

:root{--game-blue:#2352ae;--game-gold:#7c5410;--game-coral:#b3462b;--game-blue-wash:#e6ebf6;--game-gold-wash:#f6ecd2;--game-coral-wash:#f8e6dd}
[data-theme=dark]{--game-blue:#a3c3ff;--game-gold:#f0cc7a;--game-coral:#f6ae8b;--game-blue-wash:#1f3850;--game-gold-wash:#3a3322;--game-coral-wash:#45302a}
/* The game shares the same paper; its command dock stays the dark ink of the discovery. */
.game-hub{--paper:#f3efe5;--surface:#fffdf7;--ink:#192e3c;--muted:#4f5d67;--line:#cfc9ba;--accent:#2352ae;--good:#1d6b4f;--game-blue:#2352ae;--game-blue-wash:#e6ebf6;--game-gold:#7c5410;--game-gold-wash:#f6ecd2;--game-coral:#b3462b;--game-coral-wash:#f8e6dd;--hub-canvas:#fbf8f0;--stage-dot:#d7d1c2;--hub-work:#b3462b;--hub-work-wash:#f8e6dd;--hub-console:#192e3c}
[data-theme=dark] .game-hub{--paper:#101f2a;--surface:#172a37;--ink:#f4eddd;--muted:#bcc9d2;--line:#3b5163;--accent:#a3c3ff;--good:#86d6b4;--game-blue:#a3c3ff;--game-blue-wash:#1f3850;--game-gold:#f0cc7a;--game-gold-wash:#3a3322;--game-coral:#f6ae8b;--game-coral-wash:#45302a;--hub-canvas:#132430;--stage-dot:#2f4555;--hub-work:#f6ae8b;--hub-work-wash:#45302a;--hub-console:#0a161f}


/* A demonstrated command reads as a command, not as a full-width slab. */
.wb-demo-controls{display:flex;justify-content:center;gap:8px}
.wb-demo-controls button{width:auto;flex:0 1 280px;min-width:0;justify-content:center;border-radius:5px}
.wb-demo-controls button:not(.primary):not([aria-pressed=true]){background:var(--surface)}

/* Level won: the check stamps in, a ring of commit-coloured dots bursts from it, a light sweep crosses the bar. */
.game-hub .hub-mission{position:relative}
.hub-burst{position:absolute;left:24px;top:22px;width:0;height:0;pointer-events:none;z-index:3}
.hub-burst i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;box-shadow:0 0 0 2px var(--surface);border-radius:50%;background:var(--c);opacity:0}
@media(prefers-reduced-motion:no-preference){
 .hub-mission.celebrate .hub-win-mark{animation:win-stamp .55s cubic-bezier(.2,1.6,.4,1) both}
 .hub-mission.celebrate .hub-burst i{animation:win-burst 1.1s cubic-bezier(.15,.7,.3,1) .12s both}
 .hub-mission.celebrate::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--game-gold) 22%,transparent) 50%,transparent 70%) no-repeat;background-size:220% 100%;animation:win-sweep 1.2s ease-out .2s both}
 .hub-mission.celebrate .win-proof{animation:win-rise .5s ease-out .15s both}
}
@keyframes win-stamp{0%{transform:scale(.2) rotate(-25deg);opacity:0}60%{transform:scale(1.35)}100%{transform:none;opacity:1}}
@keyframes win-burst{0%{opacity:1;transform:rotate(var(--a)) translateX(4px) scale(1)}70%{opacity:.9}100%{opacity:0;transform:rotate(var(--a)) translateX(var(--d)) scale(.4)}}
@keyframes win-sweep{from{background-position:120% 0}to{background-position:-20% 0}}
@keyframes win-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Level map: completion is visible at every scale — world counts, finished series in gold. */
.gc-campaign .game-world-tabs button{display:flex;align-items:center;justify-content:center;gap:8px}
.gc-world-count{font:600 11px ui-monospace,monospace;color:var(--muted);margin-left:4px}
.gc-campaign .game-world-tabs button.is-complete .gc-world-count{color:var(--game-gold)}
.gc-campaign .game-world-tabs button.is-complete .gc-world-count::before{content:"✓ "}
.gc-series-done{color:var(--game-gold);font-weight:750}
.gc-series-done b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--game-gold);color:var(--surface);font-size:11px;margin-right:4px}
.gc-campaign .gc-level-map.is-complete{--path-line:var(--game-gold)}
@media(prefers-reduced-motion:no-preference){
 html[data-game-motion=on] .gc-campaign .gc-level-map.is-complete>li:after{animation:gc-route-glow 1.4s ease-out both}
 html[data-game-motion=on] .gc-series-done b{animation:win-stamp .55s cubic-bezier(.2,1.6,.4,1) both}
}
@keyframes gc-route-glow{from{opacity:.2}to{opacity:1}}

/* Course map preview: title and promise beside the illustration, so the scene keeps its drawn scale. */
@media(min-width:901px) and (min-height:560px){
 .wb-module-preview:has(.gc-preview-scene){display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"meta meta" "copy scene" "actions scene";gap:16px 36px}
 .wb-module-preview:has(.gc-preview-scene) .wb-preview-meta{grid-area:meta}
 .wb-module-preview:has(.gc-preview-scene) .wb-preview-copy{grid-area:copy;align-self:center;margin:0;padding:0}
 .wb-module-preview:has(.gc-preview-scene) .gc-preview-scene{grid-area:scene;align-self:stretch;min-height:0;display:grid;place-items:center}
 .wb-module-preview:has(.gc-preview-scene) .gc-preview-scene svg{max-height:100%;width:100%}
 .wb-module-preview:has(.gc-preview-scene) .wb-preview-actions{grid-area:actions;align-self:end}
}
.wb-course-list small{font-size:11px;letter-spacing:.01em;color:var(--muted)}
.wb-course-list a[aria-current=true]{border-color:var(--ink);box-shadow:var(--lift)}
.wb-course-state{color:var(--good)}

/* Page entrance after a navigation: only the work surface moves, so stage tabs and headings stay anchored. */
@media(prefers-reduced-motion:no-preference){
 html[data-enter]:not([data-hud=discover]) .learning-workbench>.wb-body{animation:page-in .38s cubic-bezier(.2,.7,.2,1) both}
}
@keyframes page-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Comprendre, with room: why, situation and model in full on the left, the animated scene on the right. */
.gc-lesson .gc-model.gc-model-split{grid-template-rows:none;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:32px;padding:26px 30px}
.gc-model-text{display:flex;flex-direction:column;gap:16px;min-height:0;justify-content:center}
.gc-model-text>h2{font-size:clamp(22px,2.1vw,30px);line-height:1.18;letter-spacing:-.035em;margin:0}
.gc-model-text section{border-top:1px solid var(--line);padding-top:12px}
.gc-model-text .eyebrow{margin:0 0 6px}
.gc-model-text section p:not(.eyebrow){margin:0 0 6px;font-size:15px;line-height:1.55}
.gc-model-text strong{font-weight:700;color:var(--ink)}
.gc-model-text .wb-source{font-size:12px;font-weight:700}
.gc-model-split .gc-model-scene{border-radius:4px;background:var(--wb-wash,transparent);display:grid;place-items:center}

/* Questions and investigations: facts in readable prose; on wide screens the module's scene fills the empty column. */
.pq-scene{display:none}
.pq-facts{font:500 clamp(17px,1.6vw,21px)/1.55 Manrope,system-ui,sans-serif!important;letter-spacing:-.01em;max-width:760px}
.pq-prediction{font-weight:700;color:var(--accent)}
.pq-evidence{border-left-width:3px}
@media(min-width:1101px) and (min-height:651px){
 .pq-evidence{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);grid-template-rows:auto auto auto auto minmax(0,1fr);column-gap:40px;row-gap:16px;align-content:center;max-width:1240px;width:100%}
 .pq-evidence>:not(.pq-scene){grid-column:1}
 .pq-evidence>button{justify-self:start}
 .pq-evidence .pq-scene{display:grid;place-items:center;grid-column:2;grid-row:1/-1;align-self:stretch;min-height:0;background:var(--tint);border-radius:4px}
 .pq-prompt{justify-content:flex-start}
 .pq-prompt .pq-scene{display:grid;place-items:center;flex:1;min-height:0;width:100%;margin-top:6px;background:var(--tint);border-radius:4px}
 .pq-scene svg{width:100%;height:100%;max-height:100%}
}
.wb-practice-brief{margin:4px 0 2px;padding:10px 14px;border-left:3px solid var(--coral);background:var(--paper);font-size:14px;line-height:1.5;color:var(--ink);max-width:560px}
@media(max-height:700px),(max-width:900px){.wb-practice-brief{display:none}}
.pq-facts code,.pq-case p code,.wb-practice-brief code{font:600 max(.9em,11px)/1.3 ui-monospace,SFMono-Regular,monospace;background:var(--tint);color:var(--ink);padding:1px 5px;border-radius:3px;white-space:nowrap}

/* Module validated: a gold stamp and the course-wide count, the next module one keystroke away. */
.pq-module-done{display:inline-flex;align-items:center;gap:8px;margin:0;padding:6px 12px 6px 6px;border:1px solid var(--game-gold);border-radius:999px;color:var(--game-gold);font-weight:750;font-size:13px;background:var(--game-gold-wash)}
.pq-module-done b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--game-gold);color:var(--surface);font-size:13px}
@media(prefers-reduced-motion:no-preference){
 .pq-validated .pq-module-done{animation:win-rise .5s ease-out both}
 .pq-validated .pq-module-done b{animation:win-stamp .6s cubic-bezier(.2,1.6,.4,1) .15s both}
}
@media(max-height:560px){.pq-module-done{font-size:11px;padding:3px 9px 3px 3px}.pq-module-done b{width:17px;height:17px;font-size:11px}}
@media(min-width:1101px) and (min-height:651px){
 .pq-lab{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:repeat(4,auto) minmax(0,1fr);column-gap:44px;row-gap:16px;align-content:center;max-width:1240px;width:100%}
 .pq-lab>:not(.pq-scene){grid-column:1}
 .pq-lab .pq-scene{display:grid;place-items:center;grid-column:2;grid-row:1/-1;align-self:stretch;min-height:0;background:var(--tint);border-radius:4px}
}

/* Command listings read as a real terminal: dark ink, cream text, a prompt, lines from the top. */
.wb-terminal{--term-bg:#192e3c;--term-ink:#f4eddd;--term-dim:#9fb0bc;--term-line:#2c4556;background:var(--term-bg);border-color:var(--term-bg);border-radius:6px;color:var(--term-ink)}
[data-theme=dark] .wb-terminal{--term-bg:#0a161f;--term-line:#22384a;border-color:#2c4556}
.wb-terminal>header{border-bottom-color:var(--term-line);color:var(--term-dim)}
.wb-terminal>header button{background:transparent;color:var(--term-ink);border-color:var(--term-line)}
.wb-terminal pre{justify-content:flex-start;color:var(--term-ink)}
.wb-terminal .wb-code-line>span{color:var(--term-dim)}
.wb-terminal .wb-code-line code{color:var(--term-ink)}
.wb-terminal:not(.is-file) .wb-code-line.is-command code:not(:empty)::before{content:"$ ";color:#f6ae8b}
.wb-terminal .wb-code-line.is-comment code{color:var(--term-dim);font-style:italic}
.wb-terminal .wb-code-nav{border-top:1px solid var(--term-line);color:var(--term-dim)}
.wb-terminal .wb-code-nav a{color:#a3c3ff}
.wb-terminal .wb-code-nav button{background:transparent;color:var(--term-ink);border-color:var(--term-line)}
.wb-terminal .wb-code-nav button:disabled{opacity:.35}

/* Side notes and report cards anchor their content near the top instead of floating mid-card. */
@media(min-width:1000px) and (min-height:700px){
 .wb-terminal-note,.wb-lesson-stage .wb-reading.wb-verification,.wb-principle{justify-content:flex-start;padding-top:clamp(24px,6vh,56px)}
 .learner-report .panel,.learner-report article{justify-content:flex-start}
}

/* Cards without an illustration stay one readable column; a validated answer shows one check, not two. */
@media(min-width:1101px) and (min-height:651px){
 .pq-evidence:not(:has(.pq-scene)),.pq-lab:not(:has(.pq-scene)){display:flex;max-width:900px}
}
.pq-validated .pq-result-mark{display:none}
/* On phones the lesson's module switcher would truncate the title; the course map already switches modules. */
@media(max-width:700px){.wb-module-select:has([data-wb-module]){display:none}.wb-module-select{width:min(48vw,230px)}.wb-module-select select{font-size:11px;text-overflow:ellipsis}}
/* At phone widths the three-state values (including short conflict values) stay inside their cards. */
@media(max-width:360px){.game-hub .snapshot-card>code,.game-hub .snapshot-card>code[data-value-kind]{font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}}

/* While deciding, the investigation facts stay in sight beside the answers. */
.pq-prompt .pq-facts-inline{font-size:15px!important;line-height:1.55;border-left:3px solid var(--coral);padding:6px 0 6px 12px;margin:4px 0 0;color:var(--ink)}
.pq-choice code,.choice code,.pq-explanation code,.pq-picked code,.pq-prompt h2 code{font:600 max(.92em,11px) ui-monospace,SFMono-Regular,monospace;background:var(--tint);padding:0 4px;border-radius:3px}
@media(max-height:650px){.pq-prompt .pq-facts-inline{display:none}}
/* Real Git output under each command: dimmed, unprompted, unnumbered. */
.wb-terminal .wb-code-line.is-output code{color:var(--term-dim);white-space:pre}
.wb-terminal .wb-code-line.is-output{opacity:.92}
.wb-terminal>header{gap:8px}.wb-terminal>header>button[data-wb-outputs]{margin-left:auto}
.wb-terminal>header button[aria-pressed=true]{background:#f6ae8b;color:#192e3c;border-color:#f6ae8b}

/* Dashboard game mosaic: every level at a glance, stars in gold, the selected tile ringed. */
@media(min-width:1001px) and (min-height:641px){
 .rp-game-summary:has(.rp-mosaic){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px 32px}
 .rp-game-summary:has(.rp-mosaic)>.rp-mosaic{grid-column:1;grid-row:1/-1;align-self:center}
 .rp-game-summary:has(.rp-mosaic)>header,.rp-game-summary:has(.rp-mosaic)>article{grid-column:2}
}
.rp-mosaic{display:grid;gap:7px}
.rp-mosaic-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:10px}
.rp-mosaic-row>span{font:600 11px/1.3 ui-monospace,SFMono-Regular,monospace;color:var(--muted)}
.rp-mosaic-row>div{display:flex;flex-wrap:wrap;gap:5px}
.rp-tile{min-height:38px!important;width:46px;padding:2px 0!important;display:grid;place-items:center;gap:0;border:1px solid var(--line);border-radius:5px;background:var(--surface);font:700 11px ui-monospace,monospace;color:var(--muted)}
.rp-tile i{font-style:normal;font-size:11px;letter-spacing:0;color:var(--game-gold);line-height:1}
.rp-tile.is-done{background:var(--game-gold-wash);border-color:color-mix(in srgb,var(--game-gold) 45%,transparent);color:var(--ink)}
.rp-tile[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}
@media(max-width:1000px),(max-height:640px){.rp-mosaic{display:none!important}}
/* Wrong-answer explanation and the next module's question. */
.pq-why-not{border-left:3px solid var(--coral);padding-left:12px;color:var(--ink)}
.pq-next-hook{flex-basis:100%;margin:0 0 4px;color:var(--muted);font-size:14px}
@media(max-height:650px){.pq-next-hook{display:none}}

/* Observer: predict first, then watch the mechanism. */
.wb-predict{display:grid;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.wb-predict>p{margin:0;font-weight:700;color:var(--ink)}
.wb-predict>div{display:flex;flex-wrap:wrap;gap:6px}
.wb-predict button{min-height:34px!important;font-size:13px!important;padding:5px 10px!important;display:inline-flex;gap:8px;align-items:center;text-align:left}
.wb-predict kbd{font:600 11px ui-monospace,monospace;border:1px solid var(--line);border-radius:3px;padding:0 4px;color:var(--muted)}
.wb-predict-verdict{margin:0 0 8px;font-weight:700}
.wb-predict-verdict.is-right{color:var(--good)}.wb-predict-verdict.is-wrong{color:var(--coral)}
/* Small screens keep the demonstration and its caption; the choice chips need room they do not have. */
@media(max-height:650px),(max-width:700px){.wb-predict{display:none}}
@media(pointer:coarse){.wb-predict kbd{display:none}}
.wb-gloss{font-size:14px;color:var(--muted)}.wb-gloss code{font:600 max(.92em,11px) ui-monospace,monospace;background:var(--tint);padding:0 4px;border-radius:3px;color:var(--ink);white-space:pre}
/* Narrow screens keep the earned stars; the command count stays in the history and the dashboard. */
@media(max-width:420px){.game-hub .win-score>span{display:none}.game-hub .win-score{margin-left:6px}}
@media(max-width:420px) and (max-height:700px){.game-hub .hub-mission[data-won=true] .win-proof{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}

/* Long output lines wrap inside the terminal instead of widening it. */
.wb-terminal .wb-code-line.is-output code{white-space:pre-wrap;overflow-wrap:anywhere}
.wb-terminal pre{min-width:0;overflow-x:hidden}
/* No microscopic labels: step numbers, demo headers and observe tabs stay readable. */
.wb-navigation a span{font-size:11px!important}
.wb-demo>header{font-size:11px!important}
.wb-observe-tabs button{font-size:12px!important}
.rp-tile i{font-size:12px}
/* What the learner can now do, one line per validated module. */
.rp-acquired{list-style:none;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line);display:grid;gap:4px;font-size:13px;color:var(--ink)}
.rp-acquired b{color:var(--good)}
@media(max-height:700px),(max-width:700px){.rp-acquired{display:none}}

/* The lab has room for its prediction on every screen: compact chips, one per line on phones. */
@media(max-width:700px),(max-height:650px){.feedback .wb-predict{display:grid!important;gap:4px}.feedback .wb-predict>p{font-size:12px;margin:0}.feedback .wb-predict>div{display:grid;gap:4px}.feedback .wb-predict button{min-height:30px!important;font-size:12px!important;padding:3px 8px!important;text-align:left}}
/* Command text is literal: never let contextual alternates draw `--` as a dash, whatever font shorthand a component sets. */
*,*::before,*::after{font-variant-ligatures:none!important}

/* Readability floor: no learner-facing text under 11 px. Labels that are 10 px everywhere first, then the phone reductions. */
.module-card .button,.module-card .module-num,.wb-code-nav a,.wb-code-nav span,.ds-text-button,.wb-footer button,.wb-footer>span,.wb-terminal header button,.ds-after-command span,.ds-after-command code,.wb-predict kbd,.filters label,.filters span,.wb-preview-meta span,.wb-preview-meta small,.wb-module-select>span,.wb-code-line>span,.pq-pages span,.ds-topline span,.ds-visual-heading span,.rp-metrics span,.module-links span,.wb-preview small,.wb-preview-meta>span small,span>small,.ds-chapters a strong,.ds-chapters a span{font-size:11px!important}
@media(max-width:700px){
 .actions .button,.actions button,.rp-layout article .button,.wb-footer .button,.wb-footer a,.ds-actions a,.topbar nav a,.wb-navigation a,.wb-navigation button,.wb-preview-actions a,.wb-heading .wb-quiet,.wb-demo-controls button,.gc-context-tabs button,.wb-reading code,.ds-eyebrow,.ds-caption p,.ds-feedback,.ds-key-hint,.rail-bottom .status,article>p.status,p.wb-command,.wb-terminal header span,.ds-topline a,.ds-visual-heading button{font-size:11px!important}
 /* Phones have no arrow keys to hint at. */
 .wb-discovery .ds-keyboard{display:none}
}

/* Wide screens: the demonstration takes the full height on the left; question, chips and reading sit beside it. */
@media(min-width:1100px) and (min-height:600px){
 .gc-lesson .gc-observation{grid-template-columns:minmax(0,1.3fr) minmax(340px,1fr);grid-template-rows:minmax(0,1fr)}
 .gc-observation .wb-reading{border-top:0;border-left:1px solid var(--line);align-content:center;padding:20px 24px;overflow:auto}
 .gc-observation .wb-predict>div{display:grid;gap:6px;justify-items:start}
 .gc-observation .wb-predict button{text-align:left}
}

/* Placement result: the eight modules in one strip, acquired in ink, to review in coral. */
.pq-placement-map{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:0 0 14px}
.pq-placement-map a{display:grid;gap:3px;padding:8px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-decoration:none;font-size:12px;line-height:1.25;min-width:0}
.pq-placement-map a span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pq-placement-map b{font-size:14px;color:var(--good)}.pq-placement-map i{font:600 11px/1 ui-monospace,monospace;font-style:normal;color:var(--muted);margin-right:4px}
.pq-placement-map small{font-size:11px;color:var(--muted)}
.pq-placement-map .is-review{border-color:color-mix(in srgb,var(--coral) 45%,var(--line))}
.pq-placement-map .is-review b,.pq-placement-map .is-review small{color:var(--coral)}
.pq-placement-map .is-current{outline:2px solid var(--coral);outline-offset:1px}
.pq-placement-map a:hover{border-color:var(--ink)}
@media(max-width:900px){.pq-placement-map{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px),(max-height:650px){.pq-placement-map{gap:4px;margin-bottom:8px}.pq-placement-map a{padding:5px 6px;grid-template-columns:auto 1fr;align-items:center}.pq-placement-map a span{display:none}.pq-placement-map small{font-size:11px}}
/* Short screens: one row of eight numbered marks; the colour carries acquired or to review. */
@media(max-height:650px){.pq-placement-map{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;margin-bottom:6px}.pq-placement-map a{padding:3px 2px;display:block;text-align:center}.pq-placement-map small{display:none}.pq-placement-map b{font-size:11px;white-space:nowrap}.pq-placement-map i{margin-right:1px;color:inherit}}
@media(max-height:650px){.pq-placement-map~.pq-lab{padding-top:12px;padding-bottom:10px;justify-content:start;align-content:start}.pq-placement-map~.pq-lab .pq-lab-note{font-size:11px;line-height:1.35}}
/* Short phones: while predicting, the chips replace the command reminder. */
@media(max-height:600px){.feedback:has(.wb-predict) code:not(button code){display:none}}
/* The strip and the card share the frame: the card takes what the strip leaves. */
.pq-placement{height:100%;min-height:0;display:flex;flex-direction:column}
.pq-placement>.pq-lab{flex:1 1 auto;min-height:0;height:auto;overflow:auto;width:100%}
/* Landscape phones: the recommendation's 11 px answer note stays inside its card under a smaller title. */
@media(max-height:450px){.pq-placement-map~.pq-lab{gap:7px}.pq-placement-map~.pq-lab h2{font-size:22px}}
