/* CareerKraft Evaluate: dark theme. Every colour is a token so screen and print stay consistent. */
:root { color-scheme:dark;
  --bg:#071230; --bg2:#0a1a45; --card:#0e1e4a; --raise:#13285f; --line:#24418a; --field:#091842; --edge:#5577c9;
  --ink:#eef3ff; --soft:#a9bdec; --cyan:#5fd4ff; --orange:#ff8a1f; --on-orange:#1c0e00;
  --ok:#8ff0bf; --okbg:#0c3a2a; --bad:#ffb3bb; --badbg:#481528; --warn:#ffd479; --warnbg:#3d2d08; --infobg:#123274; --danger:#ff7b83;
  --radius:14px; --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100vh; background:var(--bg) linear-gradient(180deg,var(--bg2),var(--bg) 420px) no-repeat; color:var(--ink); font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--cyan); }
header.top { background:#0a1741; border-bottom:1px solid var(--line); box-shadow:0 1px 0 var(--orange),0 8px 28px #02081c99; padding:10px 16px; display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
/* The logo is drawn for a light background. */
header.top img { height:46px; width:auto; max-width:72vw; object-fit:contain; background:#fff; border-radius:10px; padding:5px 12px; }
main { max-width:1180px; margin:0 auto; padding:20px 16px 40px; }
main.narrow { max-width:740px; }
h1 { font-size:1.55rem; line-height:1.3; margin:.4em 0; letter-spacing:-.01em; } h2 { font-size:1.17rem; margin:1.2em 0 .5em; } h3 { font-size:1.02rem; margin:.8em 0 .3em; }
h2 { color:var(--cyan); }
h1:focus { outline:none; }
p { margin:.55em 0; }
.card { background:linear-gradient(160deg,var(--raise),var(--card) 55%); border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin:0 0 16px; box-shadow:0 10px 30px #02081c66; }
.card > h1:first-child, .card > h2:first-child { margin-top:0; }
summary { cursor:pointer; font-weight:600; min-height:32px; }
label { display:block; font-weight:600; margin:12px 0 5px; }
fieldset { border:0; padding:0; margin:0; min-width:0; }
legend { padding:0; font-weight:600; }
label.check, label.option { font-weight:400; display:flex; gap:12px; align-items:flex-start; }
input, select, textarea { font:inherit; color:var(--ink); width:100%; min-height:46px; padding:10px 12px; border:1px solid var(--edge); border-radius:10px; background:var(--field); }
select option { background:var(--field); color:var(--ink); }
textarea { min-height:96px; }
textarea.code, pre { font-family:var(--mono); font-size:.92rem; }
input[type=checkbox], input[type=radio] { width:22px; height:22px; min-height:0; flex:none; margin:1px 0 0; accent-color:var(--orange); }
.hint { color:var(--soft); font-size:.9rem; margin:3px 0; }
button, a.button { font:inherit; font-weight:700; min-height:46px; padding:10px 20px; border-radius:10px; border:1px solid var(--orange); background:var(--orange); color:var(--on-orange); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; transition:filter .15s, box-shadow .15s; }
button:hover:not(:disabled), a.button:hover { filter:brightness(1.1); box-shadow:0 0 0 3px #ff8a1f33; }
button.secondary, a.button.secondary { background:transparent; color:var(--ink); border-color:var(--edge); font-weight:600; }
button.secondary:hover:not(:disabled), a.button.secondary:hover { border-color:var(--cyan); box-shadow:0 0 0 3px #5fd4ff2e; }
button.danger { background:var(--danger); border-color:var(--danger); color:#2a0409; }
button.small, a.button.small { min-height:44px; padding:6px 13px; font-size:.9rem; }
button:disabled { opacity:.45; cursor:default; }
:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:14px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:0 16px; align-items:start; }
.topics { margin-top:14px; border:1px solid var(--line); border-radius:10px; padding:10px 14px 12px; }
.topics legend { padding:0 6px; }
.topics .row { margin-top:4px; } .topics select { width:auto; max-width:100%; }
.checks { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:0 16px; max-height:260px; overflow:auto; }
.checks label.check { min-height:36px; margin:8px 0 0; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; }
.stat { background:var(--card); border:1px solid var(--line); border-top:3px solid var(--cyan); border-radius:var(--radius); padding:14px; color:var(--soft); }
.stat b { display:block; font:700 1.8rem/1.2 var(--mono); color:var(--ink); }
.msg { padding:11px 15px; border-radius:10px; margin:10px 0; background:var(--infobg); border-left:4px solid var(--cyan); }
.msg.error { background:var(--badbg); color:var(--bad); border-color:var(--bad); } .msg.ok { background:var(--okbg); color:var(--ok); border-color:var(--ok); } .msg.warn { background:var(--warnbg); color:var(--warn); border-color:var(--warn); }
.muted { color:var(--soft); }
.scroll { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:.93rem; }
th, td { text-align:left; padding:10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--soft); white-space:nowrap; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; }
tbody tr:hover { background:#ffffff08; }
.tag { display:inline-block; padding:2px 10px; border-radius:99px; background:#233a77; font-size:.82rem; font-weight:600; white-space:nowrap; }
.tag.good { background:var(--okbg); color:var(--ok); } .tag.mid { background:var(--warnbg); color:var(--warn); } .tag.bad { background:var(--badbg); color:var(--bad); }
.meter { height:10px; background:#071033; border:1px solid var(--line); border-radius:9px; overflow:hidden; min-width:90px; }
.meter svg { display:block; width:100%; height:100%; } .meter rect { fill:var(--cyan); }
nav { display:flex; gap:4px; flex-wrap:wrap; }
nav button { white-space:nowrap; flex:none; background:transparent; color:var(--soft); border-color:transparent; padding:6px 14px; min-height:44px; font-weight:600; }
nav button[aria-current=page] { background:var(--raise); color:var(--ink); border-color:var(--cyan); }
pre { background:#040c26; color:#e4ecff; border:1px solid var(--line); padding:12px; border-radius:10px; overflow-x:auto; white-space:pre; }
.option { padding:14px; border:1px solid var(--line); border-radius:12px; margin:10px 0; background:var(--field); cursor:pointer; transition:border-color .15s, background-color .15s; }
.option:hover { border-color:var(--edge); }
.option:has(input:checked) { border-color:var(--cyan); background:var(--infobg); box-shadow:0 0 0 1px var(--cyan); }
.item { display:flex; gap:8px; align-items:center; padding:8px 10px; border:1px solid var(--line); background:var(--field); border-radius:12px; margin:8px 0; }
.item span { flex:1; overflow-wrap:anywhere; }
.prompt { font-size:1.12rem; font-weight:600; white-space:pre-wrap; overflow-wrap:anywhere; }
.thumbs { display:flex; flex-wrap:wrap; gap:8px; }
.thumbs figure { margin:0; width:160px; font-size:.8rem; } .thumbs img { width:160px; border-radius:8px; display:block; }
/* Report graphics */
.charts { display:flex; flex-wrap:wrap; gap:24px; justify-content:space-around; align-items:center; }
.charts figure { margin:0; text-align:center; flex:0 1 320px; } .charts figcaption { color:var(--soft); font-size:.85rem; }
.charts svg { width:100%; height:auto; } .charts .ring { max-width:200px; }
.ring circle { fill:none; stroke-width:11; } .ring .track { stroke:var(--line); } .ring .value { stroke:var(--cyan); stroke-linecap:round; } .ring .value.low { stroke:var(--orange); }
.ring .mark { stroke:var(--ink); stroke-width:3; } .ring text { fill:var(--ink); font:700 24px var(--mono); }
.radar .grid-line { fill:none; stroke:var(--line); stroke-width:1; } .radar .area { fill:var(--cyan); fill-opacity:.22; stroke:var(--cyan); stroke-width:2; } .radar text { fill:var(--soft); font:600 12px var(--mono); }
/* Exam status bar: the question timer is the most important number on screen. */
.bar { position:sticky; top:0; z-index:5; background:#0a1741f2; border-bottom:1px solid var(--line); padding:8px 16px 0; display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:12px; font-weight:600; }
.bar #saved { grid-column:1; grid-row:2; color:var(--soft); font-size:.85rem; min-height:1.4em; }
.bar #clock { grid-column:2; grid-row:1 / span 2; text-align:right; font-family:var(--mono); }
.bar #clock b { display:block; font-size:1.7rem; line-height:1.15; color:var(--cyan); }
.bar #clock small { color:var(--soft); font-size:.8rem; }
.bar progress { grid-column:1 / -1; width:100%; height:6px; border:0; appearance:none; -webkit-appearance:none; background:#071033; margin-top:4px; }
.bar progress::-webkit-progress-bar { background:#071033; } .bar progress::-webkit-progress-value { background:var(--cyan); } .bar progress::-moz-progress-bar { background:var(--cyan); }
.bar.warn { border-color:var(--orange); } .bar.warn #clock b { color:var(--orange); } .bar.warn progress::-webkit-progress-value { background:var(--orange); } .bar.warn progress::-moz-progress-bar { background:var(--orange); }
#fs { background:var(--bg); min-height:100vh; min-height:100dvh; overflow:auto; }
#watermark { position:fixed; inset:0; pointer-events:none; z-index:20; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); align-content:space-around; justify-items:center; opacity:.09; transform:rotate(-18deg) scale(1.15); font-weight:700; color:#fff; overflow:hidden; }
#cover { position:fixed; inset:0; z-index:30; background:var(--bg); display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:24px; }
#selfview { position:fixed; right:10px; bottom:10px; width:96px; border-radius:10px; border:2px solid var(--cyan); z-index:25; box-shadow:0 2px 14px #000a; transform:scaleX(-1); }
dialog { border:1px solid var(--line); border-radius:16px; padding:22px; width:min(760px,94vw); max-height:90vh; background:var(--card); color:var(--ink); box-shadow:0 20px 60px #000c; }
dialog::backdrop { background:#020716cc; }
body.locked { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
body.locked input, body.locked textarea { -webkit-user-select:text; user-select:text; }
.exam-space { padding-bottom:120px; }
@media (max-width:640px) { main { padding:14px 12px 32px; } .card { padding:14px; } nav { flex-wrap:nowrap; overflow-x:auto; max-width:100%; } }
@media print {
  :root { color-scheme:light; --bg:#fff; --bg2:#fff; --card:#fff; --raise:#fff; --line:#c9d2e6; --field:#fff; --ink:#101a30; --soft:#44506b; --cyan:#0a4fa8; --okbg:#e5f5ea; --ok:#0f6b34; --badbg:#fdeaea; --bad:#a3161a; --warnbg:#fff2d6; --warn:#7a4b00; --infobg:#e8f0fd; }
  body.locked { display:none; } header.top nav, .noprint, button { display:none !important; } body { background:#fff; } .card { border:0; padding:0; box-shadow:none; break-inside:avoid; } pre { background:#f2f4fa; color:#101a30; } .tag { background:#e8ecf4; } }
@media (prefers-reduced-motion:reduce) { * { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

/* ---------- Version 1.2: brand navy, motion and practical tasks ---------- */
.backdrop { position:fixed; inset:0; z-index:-1; pointer-events:none; }
body { background-color:var(--bg); }
body:has(.backdrop), body:has(.backdrop) #fs { background:radial-gradient(1100px 600px at 85% -10%,#0b3f8a66,transparent 60%),radial-gradient(800px 500px at -10% 110%,#ff8a1f1f,transparent 60%),var(--bg); }
body:has(.backdrop) #fs { background:transparent; }
main.landing { max-width:1040px; }
.hero { padding:18px 0 12px; } .hero h1 { font-size:clamp(1.9rem,5vw,3.1rem); margin:.15em 0; }
.hero h1 span { background:linear-gradient(90deg,var(--cyan),#ffb066,var(--cyan)); background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:shine 7s linear infinite; }
.eyebrow { text-transform:uppercase; letter-spacing:.18em; font-size:.8rem; color:var(--orange); font-weight:700; }
.columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:0 16px; }
.columns > .card { transition:transform .2s, border-color .2s; } .columns > .card:hover { transform:translateY(-3px); border-color:var(--cyan); }
.card.signin { max-width:520px; margin-inline:auto; }
.rise { animation:rise .5s ease-out both; } .columns > .rise:nth-child(2) { animation-delay:.08s; } .columns > .rise:nth-child(3) { animation-delay:.16s; }
.slide { animation:slide .28s ease-out both; }
.card:not(.rise):not(.slide) { animation:fade .35s ease-out both; }
dialog[open] { animation:rise .25s ease-out both; }
@keyframes rise { from { opacity:0; transform:translateY(14px); } }
@keyframes slide { from { opacity:0; transform:translateX(26px); } }
@keyframes fade { from { opacity:0; } }
@keyframes shine { to { background-position:-200% 0; } }
button:active:not(:disabled) { transform:scale(.97); }
.meter rect { transition:width .6s ease-out; } .meter.warm rect { fill:var(--orange); }
.ring .value { animation:sweep 1s ease-out both; } @keyframes sweep { from { stroke-dasharray:0 320; } }
.radar .area { animation:grow .8s ease-out both; transform-origin:150px 140px; } @keyframes grow { from { transform:scale(.2); opacity:0; } }
button.tile { flex-direction:column; align-items:flex-start; text-align:left; background:var(--card); color:var(--soft); border:1px solid var(--line); border-top:3px solid var(--cyan); font-weight:400; border-radius:var(--radius); }
.hbar { display:grid; grid-template-columns:minmax(90px,1fr) 1.4fr auto; gap:10px; align-items:center; margin:10px 0; font-size:.9rem; }
.steps { list-style:none; display:flex; gap:8px; padding:0; margin:0 0 6px; counter-reset:s; flex-wrap:wrap; }
.steps li { counter-increment:s; color:var(--soft); font-size:.85rem; display:flex; align-items:center; gap:6px; }
.steps li::before { content:counter(s); display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1px solid var(--edge); font-weight:700; }
.steps li.now { color:var(--ink); font-weight:700; } .steps li.now::before { background:var(--orange); border-color:var(--orange); color:var(--on-orange); }
.steps li.done::before { content:"✓"; border-color:var(--ok); color:var(--ok); }
.steps li + li { border-left:1px solid var(--line); padding-left:8px; }
.bar #clock { display:flex; gap:10px; align-items:center; justify-content:flex-end; }
#ring { width:44px; height:44px; transform:rotate(-90deg); } #ring circle { fill:none; stroke-width:4; } #ring .track { stroke:var(--line); }
#ring .value { stroke:var(--cyan); stroke-dasharray:100; stroke-linecap:round; transition:stroke-dashoffset .5s linear; animation:none; }
.bar.warn #ring .value { stroke:var(--orange); }
.trail { grid-column:1 / -1; height:3px; margin:3px -16px 0; background:#ffffff10; } .trail i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--orange),var(--cyan)); transition:width .4s; }
.option:active { transform:scale(.99); }
.celebrate { position:relative; width:130px; height:130px; margin:14px auto; }
.celebrate svg { width:100%; } .celebrate circle { fill:none; stroke:var(--ok); stroke-width:6; stroke-dasharray:290; animation:draw .7s ease-out both; }
.celebrate path { fill:none; stroke:var(--ok); stroke-width:9; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:80; animation:draw .5s .55s ease-out both; }
@keyframes draw { from { stroke-dashoffset:290; opacity:0; } 1% { opacity:1; } }
.celebrate path { animation-name:tick; } @keyframes tick { from { stroke-dashoffset:80; opacity:0; } 1% { opacity:1; } }
.spark { position:absolute; left:50%; top:50%; width:7px; height:7px; border-radius:2px; background:var(--orange); opacity:0; animation:burst 1s .8s ease-out both; }
.spark:nth-of-type(even) { background:var(--cyan); }
@keyframes burst { 0% { opacity:1; transform:rotate(var(--a)) translateY(0); } 100% { opacity:0; transform:rotate(var(--a)) translateY(-95px); } }
.s0 { --a:0deg } .s1 { --a:26deg } .s2 { --a:51deg } .s3 { --a:77deg } .s4 { --a:103deg } .s5 { --a:129deg } .s6 { --a:154deg } .s7 { --a:180deg } .s8 { --a:206deg } .s9 { --a:231deg } .s10 { --a:257deg } .s11 { --a:283deg } .s12 { --a:309deg } .s13 { --a:334deg }
details.report { margin-top:14px; color:var(--soft); } details.report summary { font-weight:400; font-size:.9rem; }
details.more { margin-top:14px; }
.topic { display:flex; gap:8px; align-items:center; justify-content:space-between; } .topics input.amount { width:78px; flex:none; min-height:40px; }
/* Practical tasks */
main.narrow.wide { max-width:1100px; }
.workbench { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:0 18px; align-items:start; }
.workbench > div { min-width:0; }
.examples h2 { margin-top:.4em; }
.editor { display:flex; border:1px solid var(--edge); border-radius:10px; background:#040c26; overflow:hidden; }
.editor .gutter { margin:0; border:0; border-radius:0; padding:10px 8px; text-align:right; color:#8ea2d8; background:#081338; user-select:none; overflow:hidden; line-height:1.5; max-height:420px; }
.editor textarea { border:0; border-radius:0; background:transparent; line-height:1.5; white-space:pre; overflow:auto; resize:vertical; max-height:420px; }
.mono { font-family:var(--mono); font-size:.85rem; overflow-wrap:anywhere; }
iframe.preview { width:100%; height:240px; border:1px solid var(--edge); border-radius:10px; background:#fff; margin-top:10px; pointer-events:none; }
iframe.offstage { position:fixed; left:-9999px; width:800px; height:600px; }
.label { font-weight:600; margin:12px 0 5px; }
.pad .sheet { width:100%; height:auto; background:#040c26; border:1px solid var(--edge); border-radius:10px; touch-action:none; cursor:crosshair; display:block; }
.pad.small { max-width:420px; }
.sheet .g { stroke:#1b2f66; stroke-width:.25; } .sheet .g.major { stroke:#34539f; stroke-width:.4; } .sheet .axis { fill:#8ea2d8; font:4px var(--mono); }
.sheet .ink { fill:none; stroke:var(--cyan); stroke-width:.9; stroke-linecap:round; } .sheet .guide { fill:none; stroke:var(--orange); stroke-width:.7; stroke-dasharray:2.5 2; }
.sheet .draft { fill:none; stroke:#fff; stroke-width:.5; stroke-dasharray:1.5 1.5; } .sheet .pin { fill:var(--orange); stroke:#fff; stroke-width:.5; }
.sheet .area { fill:#8ff0bf33; stroke:var(--ok); stroke-width:.6; }
.pad .tools { margin-top:0; margin-bottom:10px; } .pad button[aria-pressed=true] { border-color:var(--cyan); background:var(--infobg); }
.pad .command { display:flex; gap:8px; margin-top:10px; } .pad .command input { flex:1; font-family:var(--mono); }
.pad .row input[type=number] { width:110px; }
button.tiny { min-height:32px; min-width:32px; padding:2px 8px; margin-left:8px; font-size:.8rem; }
@media print { .backdrop, .celebrate { display:none !important; } .sheet { background:#fff !important; } }
@media (prefers-reduced-motion:reduce) { .celebrate circle, .celebrate path { stroke-dasharray:none; } .spark { display:none; } }
/* keep the drawing sheet on screen, and long text from breaking awkwardly */
.sheet { max-width:calc(62vh * 4 / 3); max-height:62vh; margin-inline:auto; }
@media (max-height:520px) { .sheet { max-width:100%; max-height:none; } }
.examples pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.hero h1 { text-wrap:balance; } .hero h1 span { white-space:nowrap; }
/* warning screen: opaque, so the question cannot be read or captured behind it */
#warn { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:20px; background:#040c26; overflow:auto; }
#warn .box { max-width:520px; text-align:center; background:var(--card); border:2px solid var(--orange); border-radius:18px; padding:28px; box-shadow:0 0 60px #ff8a1f44; animation:rise .3s ease-out both; }
#warn h1 { margin-top:0; color:#ffb066; } #warn.last .box { border-color:var(--danger); box-shadow:0 0 60px #ff5c6c55; } #warn.last h1 { color:var(--bad); }
/* live room */
.badge { display:inline-block; min-width:20px; padding:0 6px; border-radius:10px; background:var(--danger); color:#2a0409; font-size:.75rem; font-weight:800; line-height:20px; margin-left:4px; }
.badge[hidden] { display:none; }
.live-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:16px; align-items:start; }
.live-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr)); gap:12px; }
.card.live { margin:0; border-top:3px solid var(--ok); } .card.live.watch { border-top-color:var(--orange); } .card.live.risk { border-top-color:var(--danger); box-shadow:0 0 30px #ff5c6c33; }
.card.live h3 { margin:0 0 4px; } .card.live progress { width:100%; height:10px; accent-color:var(--cyan); } .card.live img { width:100%; max-width:240px; border-radius:8px; } .card.live figure { margin:0; }
.pips { display:inline-flex; gap:5px; margin:0 10px 0 6px; vertical-align:middle; } .pips i { width:14px; height:14px; border-radius:50%; border:2px solid var(--edge); } .pips i.on { background:var(--orange); border-color:var(--orange); }
.feed { list-style:none; margin:0; padding:0; max-height:70vh; overflow:auto; }
.feed li { display:flex; gap:10px; justify-content:space-between; align-items:center; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--edge); border-radius:10px; padding:10px 12px; margin-bottom:8px; animation:slide .3s ease-out both; }
.feed li.warn { border-left-color:var(--orange); } .feed li.bad { border-left-color:var(--danger); }
.feed li div { display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
#toasts { position:fixed; right:14px; bottom:14px; z-index:50; display:flex; flex-direction:column; gap:8px; max-width:min(360px,calc(100vw - 28px)); }
button.toast { flex-direction:column; align-items:flex-start; text-align:left; background:var(--raise); color:var(--ink); border:1px solid var(--orange); box-shadow:0 12px 30px #0008; animation:slide .3s ease-out both; }
button.toast.bad { border-color:var(--danger); } button.toast span { font-weight:400; }
fieldset.consent { border:1px solid var(--line); border-radius:10px; margin:10px 0; padding:6px 14px 10px; min-width:0; }
#dialog .row { margin-top:8px; }
@media (max-width:860px) { .live-layout { grid-template-columns:minmax(0,1fr); } }
@media print { #toasts { display:none; } }
/* Fields side by side share their label, control and hint rows, so controls stay level when a label wraps. */
.grid > div:has(> label:first-child + :is(input, select)) { display:grid; grid-template-rows:subgrid; grid-row:span 3; align-self:stretch; row-gap:0; min-width:0; }
.grid > div:has(> label:first-child + :is(input, select)) > label { align-self:end; }
.grid > div:has(> label:first-child + :is(input, select)) > :is(input, select) { align-self:start; }
.scroll td > div:not(.row):not(.meter) { min-width:130px; }
@media (min-width:700px) and (max-width:900px) { .stats { grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); } }
/* credits and course promotion */
.credit { max-width:1040px; margin:28px auto 0; padding:16px 16px calc(18px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); text-align:center; color:var(--soft); font-size:.9rem; overflow-wrap:anywhere; }
.credit p { margin:4px 0; } .credit a { color:var(--cyan); display:inline-block; padding:3px 0; min-height:24px; }
body.locked .credit { display:none; }
.promo { border-top:3px solid var(--orange); margin-top:18px; } .promo h2 { margin-top:0; } .promo .row { align-items:stretch; } .promo a.button { overflow-wrap:anywhere; text-align:center; }
/* switched off by the admin: nothing moves, nothing shifts */
html.calm *, html.calm *::before, html.calm *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
html.calm .backdrop, html.calm .spark { display:none; }
body.no-mark #watermark { display:none; }
body.locked.free-copy { -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }
/* control centre and camera test */
.switch-row { display:flex; gap:14px; align-items:flex-start; padding:10px 0; border-top:1px solid var(--line); }
.switch-row label { margin:0; flex:1; min-width:0; min-height:44px; cursor:pointer; } .switch-row small { display:block; font-weight:400; color:var(--soft); }
input.switch { appearance:none; -webkit-appearance:none; flex:none; width:52px; height:30px; margin:4px 0 0; padding:0; border-radius:15px; border:2px solid var(--edge); background:var(--bg); position:relative; cursor:pointer; }
input.switch::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--soft); transition:transform .15s; }
input.switch:checked { background:var(--orange); border-color:var(--orange); } input.switch:checked::after { transform:translateX(22px); background:#0a1741; }
input.switch:disabled { opacity:.5; cursor:default; }
.control-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr)); gap:0 16px; align-items:start; }
.lab { display:grid; grid-template-columns:minmax(0,360px) minmax(0,1fr); gap:16px; align-items:start; } .lab video { width:100%; max-width:360px; border-radius:var(--radius); background:#000; transform:scaleX(-1); }
.checks-inline { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr)); gap:0 18px; }
@media (max-width:760px) { .lab { grid-template-columns:minmax(0,1fr); } }
/* The three course areas stay level: three across, or one under another. */
.landing .columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:760px) { .landing .columns { grid-template-columns:minmax(0,1fr); } }
@media print { .promo { display:none; } }
