/* Layout: neon-nacht in een tropische stad — zonsondergang-band bovenaan, missiepaneel links, terminal + coach rechts. Bewust één donkere look. */
:root {
  /* Schoolkleuren: vervang deze twee door de huisstijlkleuren van je school */
  --school-1: #FF3D8B;
  --school-2: #FF9A3C;

  --bg: #0E0A1A;
  --surface: #181130;
  --surface-2: #221943;
  --ink: #F6F0FF;
  --muted: #B6A9D3;
  --line: #3A2C5E;
  --accent: var(--school-1);
  --accent-2: var(--school-2);
  --gold: #FFD166;
  --cyan: #2DE2E6;
  --cyan-soft: rgba(45, 226, 230, 0.12);
  --good: #3BE3A0;
  --good-soft: rgba(59, 227, 160, 0.13);
  --bad: #FF5C6C;
  --bad-soft: rgba(255, 92, 108, 0.13);
  --gold-soft: rgba(255, 209, 102, 0.13);
  --on-accent: #1A0A1F;
  --code-bg: #0A0714;
  --code-ink: #EDE6FF;
  --code-muted: #7D6FA3;
  --sunset: linear-gradient(100deg, #2A0F45 0%, #6E1D6E 32%, var(--school-1) 68%, var(--school-2) 100%);
  --hot: linear-gradient(100deg, var(--school-1), var(--school-2));
  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --cut: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(255, 61, 139, 0.16), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(45, 226, 230, 0.10), transparent 60%);
  background-attachment: fixed; min-height: 100%; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
code, pre { font-family: var(--f-mono); font-size: 0.88em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header: zonsondergang met palmen */
header.top { position: relative; background: var(--sunset); overflow: hidden; border-bottom: 3px solid var(--gold); }
header.top::after { content: ""; position: absolute; right: 0; bottom: 0; width: 520px; max-width: 70%; height: 100%; pointer-events: none; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 120' preserveAspectRatio='xMaxYMax meet'%3E%3Cg fill='%23120822'%3E%3Cpath d='M0 120h520v-14H470v-22h-14v-30h-10v30h-18v-18h-22v32h-20V62h-12v-14h-8v14h-12v42h-22V80h-30v24h-18V70h-24v34H160V90h-40v14H90V84H60v20H0z'/%3E%3Cpath d='M418 120c-2-30 2-58 10-82l4 1c-7 24-10 52-8 81z'/%3E%3Cpath d='M430 38c-14-10-34-12-48-4 16-2 30 2 42 10zM430 38c-6-14-20-24-36-26 12 6 22 16 30 28zM432 38c8-12 22-20 38-20-14 6-26 14-34 24zM432 38c14-6 32-4 44 6-14-4-28-4-40 0zM431 39c-2 12-10 22-20 28 8-10 14-20 16-30z'/%3E%3Cpath d='M486 120c0-24 4-46 12-66l4 1c-7 20-10 42-10 65z'/%3E%3Cpath d='M498 55c-12-8-28-9-40-2 13-1 25 2 35 8zM498 55c-4-12-15-20-29-22 10 5 18 13 25 23zM500 55c7-10 18-16 31-16-11 5-21 11-28 19zM500 55c11-4 25-2 34 6-11-3-22-3-31 0z'/%3E%3C/g%3E%3C/svg%3E") right bottom / contain no-repeat; }
.top .wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; background: var(--gold); color: #2A0F45; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600; clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); }
.brand-name { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 3px 3px 0 #2A0F45; transform: skewX(-6deg); }
.brand small { display: block; font-family: var(--f-body); font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); text-transform: none; text-shadow: none; transform: none; letter-spacing: 0.02em; margin-top: 3px; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.85); font-weight: 700; }
.steps { display: flex; gap: 4px; }
.steps span { font-size: 0.78rem; padding: 4px 10px; background: rgba(18, 8, 34, 0.55); color: rgba(255, 255, 255, 0.75); white-space: nowrap; font-weight: 700; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.steps span b { color: var(--gold); font-weight: 400; letter-spacing: 1px; margin-right: 4px; }
.steps span.on { background: #120822; color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.xp { font-family: var(--f-display); font-size: 1.5rem; color: var(--gold); text-shadow: 2px 2px 0 #2A0F45; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0.02em; }
.xp small { font-family: var(--f-body); font-size: 0.7rem; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.1em; text-shadow: none; margin-left: 2px; }
.progress-txt { font-size: 0.82rem; color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; }

.btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 8px 16px; font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.btn:hover { border-color: var(--cyan); color: #fff; }
.btn.primary { background: var(--hot); border-color: transparent; color: var(--on-accent); text-transform: uppercase; letter-spacing: 0.04em; }
.btn.primary:hover { filter: brightness(1.1); color: var(--on-accent); }
.btn.ghost { background: rgba(18, 8, 34, 0.55); border-color: transparent; color: #fff; }
.top .btn { background: rgba(18, 8, 34, 0.55); border-color: transparent; color: #fff; }
.top .btn:hover { background: #120822; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.small { padding: 5px 12px; font-size: 0.82rem; }

/* main grid */
main.wrap { padding-block: 24px 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { main.wrap { grid-template-columns: minmax(0, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.task { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; position: relative; }
.task::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--hot); }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mission-no { font-family: var(--f-mono); font-size: 0.78rem; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase; }
.chip { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding: 3px 9px; background: var(--surface-2); color: var(--muted); }
.chip.lv1, .chip.lv2, .chip.lv3 { background: var(--gold-soft); color: var(--gold); }
.task h2 { font-size: 2.4rem; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; transform: skewX(-5deg); transform-origin: left; padding-right: 6px; }
.why { font-size: 0.88rem; color: var(--ink); background: var(--cyan-soft); border-left: 3px solid var(--cyan); padding: 8px 12px; }
.why:empty { display: none; }
.opdracht p { margin: 0 0 10px; }
.opdracht p:last-child { margin-bottom: 0; }
.opdracht code, .bubble code, .tests code, .explain code { background: var(--code-bg); border: 1px solid var(--line); padding: 1px 5px; color: var(--cyan); }
.sig { font-family: var(--f-mono); background: var(--code-bg); color: var(--code-ink); padding: 10px 14px; font-size: 0.9rem; overflow-x: auto; border: 1px solid var(--line); }
.sig .kw, .kw { color: var(--accent); }

.stappen { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.stappen li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.stappen input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--good); flex: none; }
.sec-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }

details.explain { border: 1px solid var(--line); background: var(--surface-2); }
details.explain summary { padding: 10px 14px; font-weight: 700; cursor: pointer; }
details.explain .inner { padding: 0 14px 14px; font-size: 0.95rem; }
details.explain pre { background: var(--code-bg); color: var(--code-ink); padding: 12px 14px; overflow-x: auto; margin: 10px 0; }
.cmt { color: var(--code-muted); }

.tests { display: flex; flex-direction: column; gap: 6px; }
.test { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 0.9rem; padding: 8px 10px; background: var(--surface-2); border-left: 3px solid var(--line); }
.test .ic { width: 20px; height: 20px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: var(--line); color: var(--muted); margin-top: 1px; }
.test.pass { background: var(--good-soft); border-left-color: var(--good); } .test.pass .ic { background: var(--good); color: #062018; }
.test.fail { background: var(--bad-soft); border-left-color: var(--bad); } .test.fail .ic { background: var(--bad); color: #2A0710; }
.test .call { font-family: var(--f-mono); font-size: 0.85rem; overflow-wrap: anywhere; }
.test .detail { font-size: 0.84rem; color: var(--muted); overflow-wrap: anywhere; }
.test.fail .detail { color: var(--ink); }

.hintbox { display: flex; flex-direction: column; gap: 8px; }
.hint { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 9px 12px; font-size: 0.93rem; }

/* right column */
.work { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor-panel { overflow: hidden; background: var(--code-bg); border-color: var(--line); }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #120C24; color: var(--code-muted); font-family: var(--f-mono); font-size: 0.8rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ed-bar .fname { color: var(--code-ink); }
.ed-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.ed-bar .dots i { width: 10px; height: 10px; background: var(--accent); display: block; }
.ed-bar .dots i:nth-child(2) { background: var(--gold); } .ed-bar .dots i:nth-child(3) { background: var(--cyan); }
.ed-bar .sp { flex: 1; }
.ed { display: grid; grid-template-columns: auto minmax(0, 1fr); max-height: 440px; min-height: 260px; }
.gutter { font-family: var(--f-mono); font-size: 0.92rem; line-height: 1.6; color: var(--code-muted); text-align: right; padding: 14px 10px 14px 14px; user-select: none; overflow: hidden; white-space: pre; }
#code { font-family: var(--f-mono); font-size: 0.92rem; line-height: 1.6; background: transparent; color: var(--code-ink); border: 0; resize: none; padding: 14px 14px 14px 4px; tab-size: 4; white-space: pre; overflow: auto; min-height: 260px; caret-color: var(--cyan); }
#code:focus { outline: none; }
.ed-actions { display: flex; gap: 8px; padding: 10px; background: #120C24; flex-wrap: wrap; border-top: 1px solid var(--line); }
.ed-actions .sp { flex: 1; }

.console { background: var(--code-bg); color: var(--code-ink); font-family: var(--f-mono); font-size: 0.86rem; padding: 12px 14px; border-top: 1px solid var(--line); min-height: 70px; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.console .muted { color: var(--code-muted); }
.console .err { color: var(--bad); }
.console .inp { color: var(--gold); }
.console-input { display: flex; gap: 6px; align-items: center; }
.console-input input { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); color: var(--code-ink); font-family: var(--f-mono); font-size: 0.86rem; padding: 4px 8px; }

.result { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.result h3 { font-size: 1.5rem; color: var(--bad); }
.result.ok { background: linear-gradient(100deg, rgba(59, 227, 160, 0.16), rgba(45, 226, 230, 0.08)); border-color: var(--good); }
.result.ok h3 { color: var(--good); }
.result .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* coach */
.coach { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.coach-head { display: flex; align-items: center; gap: 12px; }
.coach-avatar { width: 40px; height: 40px; background: var(--cyan); color: #06222A; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 0.8rem; flex: none; clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%); }
.coach-head h3 { font-size: 1.3rem; }
.coach-head p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.bubble { background: var(--surface-2); padding: 10px 13px; font-size: 0.94rem; overflow-wrap: anywhere; border-left: 3px solid var(--cyan); }
.bubble.me { background: rgba(255, 61, 139, 0.14); border-left: 0; border-right: 3px solid var(--accent); align-self: flex-end; max-width: 85%; }
.bubble.sys { border-left-color: var(--gold); background: var(--gold-soft); }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin: 0; }
.bubble pre { background: var(--code-bg); color: var(--code-ink); padding: 8px 10px; overflow-x: auto; margin: 6px 0; }
.bubble pre code { background: none; border: 0; padding: 0; color: inherit; }
.bubble .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.coach-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 8px 12px; font: inherit; font-size: 0.93rem; }
.ask input::placeholder { color: var(--muted); }
.note { font-size: 0.8rem; color: var(--muted); }

/* missie geslaagd */
.passed { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.passed-band { width: 100%; background: rgba(10, 7, 20, 0.88); padding-block: 26px; text-align: center; border-block: 3px solid var(--gold); }
.passed-band h2 { font-size: clamp(2.6rem, 9vw, 5.5rem); background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; transform: skewX(-6deg); display: inline-block; padding: 0 10px; }
.passed-band p { margin: 6px 0 0; font-family: var(--f-display); font-size: 1.6rem; color: var(--gold); letter-spacing: 0.04em; }
@media (prefers-reduced-motion: no-preference) {
  .passed-band { animation: slam 2.4s ease-out both; }
  @keyframes slam { 0% { transform: scaleY(0); opacity: 0; } 8% { transform: scaleY(1.08); opacity: 1; } 14% { transform: scaleY(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* overlay / dialogen */
.overlay { position: fixed; inset: 0; background: rgba(6, 3, 14, 0.75); z-index: 40; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.dialog { background: var(--surface); max-width: 720px; width: 100%; padding: 30px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); position: relative; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.dialog::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--sunset); }
.dialog h2 { font-size: 2.6rem; transform: skewX(-5deg); transform-origin: left; }
.dialog h2 .hl { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dialog .lede { color: var(--muted); margin: 0; }
.dialog .lede strong { color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .choices { grid-template-columns: minmax(0, 1fr); } .dialog { padding: 22px; } .dialog h2 { font-size: 2rem; } }
.choice { text-align: left; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.choice:hover { border-color: var(--accent); background: #2A1F50; }
.choice strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.choice .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.choice span { font-size: 0.88rem; color: var(--muted); }
.choice.wide { grid-column: 1 / -1; }
.quiz pre { background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; overflow-x: auto; margin: 0; border: 1px solid var(--line); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 10px 12px; font-family: var(--f-mono); font-size: 0.9rem; text-align: left; white-space: pre-wrap; }
.opts button:hover { border-color: var(--cyan); }
.qcount { font-size: 0.78rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--f-mono); }

.drawer-list { display: flex; flex-direction: column; gap: 16px; max-height: 60vh; overflow-y: auto; }
.drawer-list h3 { font-size: 1.2rem; margin-bottom: 8px; }
.drawer-list h3 b { color: var(--gold); font-weight: 400; margin-right: 6px; letter-spacing: 1px; }
.exlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.exitem { text-align: left; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 8px 10px; display: flex; gap: 8px; align-items: center; font-size: 0.9rem; }
.exitem:hover { border-color: var(--cyan); }
.exitem.cur { border-color: var(--accent); background: rgba(255, 61, 139, 0.14); }
.dot { width: 10px; height: 10px; background: var(--line); flex: none; transform: rotate(45deg); }
.dot.done { background: var(--good); }
.dot.busy { background: var(--gold); }
.confirm-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* doelen, eindbewijs, docent */
.goals { display: flex; gap: 14px; align-items: center; }
.goal { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.goal-top { display: flex; align-items: baseline; gap: 5px; line-height: 1; }
.goal-val { font-family: var(--f-display); font-size: 1.45rem; color: var(--gold); text-shadow: 2px 2px 0 #2A0F45; font-variant-numeric: tabular-nums; }
.goal-of { font-size: 0.74rem; color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 6px; background: rgba(18, 8, 34, 0.6); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s ease; }
.goal.met .bar i { background: var(--good); }
.goal.met .goal-val { color: var(--good); }
.done-badge { font-family: var(--f-display); font-size: 1.05rem; background: var(--good); color: #062018; padding: 4px 10px; letter-spacing: 0.04em; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.intro { background: var(--cyan-soft); border: 1px solid var(--cyan); padding: 12px 14px; font-size: 0.95rem; }
.intro .sec-label { color: var(--cyan); }
.intro p { margin: 0 0 8px; } .intro p:last-child { margin: 0; }
.intro code { background: var(--code-bg); border: 1px solid var(--line); padding: 1px 5px; color: var(--cyan); }
.bonus-note { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 10px 12px; font-size: 0.93rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.field input { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 9px 12px; font: inherit; max-width: 100%; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.cert { border: 2px solid var(--gold); padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--surface-2); }
.cert div { display: flex; flex-direction: column; gap: 2px; }
.cert span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cert strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.cert .wide { grid-column: 1 / -1; }
.stats { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.stats th, .stats td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats th { color: var(--muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.table-wrap { overflow-x: auto; max-height: 260px; overflow-y: auto; }
.err-txt { color: var(--bad); font-size: 0.9rem; min-height: 1.2em; }
.gen-wait { display: flex; flex-direction: column; gap: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .bubble, .result { animation: rise 0.25s ease-out; }
  @keyframes rise { from { transform: translateY(4px); opacity: 0.6; } to { transform: none; opacity: 1; } }
}
@media (max-width: 640px) {
  .meter-label { display: none; }
  .top-actions { margin-left: 0; width: 100%; }
  .goals { width: 100%; }
  .goal { flex: 1; min-width: 0; }
  .progress-txt { margin-right: auto; }
  .top-actions .btn { white-space: nowrap; }
  .task { padding: 20px 18px; }
  .task h2 { font-size: 2rem; }
  .brand-name { font-size: 1.6rem; }
  .opts { grid-template-columns: minmax(0, 1fr); }
}

/* ===== productie-aanvullingen ===== */
html, body { margin: 0; }
body { font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--cyan); padding: 10px 16px; max-width: min(520px, calc(100% - 32px)); font-size: 0.95rem; }
.toast.bad { border-left-color: var(--bad); }
.toast.good { border-left-color: var(--good); }

/* inlogpagina */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.auth main { display: grid; place-items: center; padding-block: 32px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--sunset); }
.auth-card h1 { font-size: 2.3rem; transform: skewX(-5deg); transform-origin: left; }
.auth-card h1 .hl { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .field input { font-size: 1rem; }
.tabs { display: flex; gap: 4px; }
.tabs button { flex: 1; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); padding: 9px 10px; font-weight: 700; }
.tabs button[aria-selected="true"] { background: #120822; color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.form-err { color: var(--bad); min-height: 1.3em; font-size: 0.92rem; }
.auth-foot { font-size: 0.85rem; color: var(--muted); }
.auth-foot a, .linklike { color: var(--cyan); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
input[type="checkbox"].switch { width: 18px; height: 18px; accent-color: var(--good); }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; }

/* docentenpagina */
.dash { padding-block: 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.side { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.klaslist { display: flex; flex-direction: column; gap: 6px; }
.klasitem { text-align: left; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.klasitem:hover { border-color: var(--cyan); }
.klasitem.cur { border-color: var(--accent); background: rgba(255, 61, 139, 0.14); }
.klasitem small { color: var(--muted); }
.mainp { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mainp h2 { font-size: 2rem; }
.codebox { display: inline-flex; gap: 10px; align-items: center; background: var(--code-bg); border: 1px solid var(--gold); padding: 8px 14px; font-family: var(--f-mono); font-size: 1.5rem; color: var(--gold); letter-spacing: 0.15em; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.kpi strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats td .mini { display: inline-block; width: 70px; height: 6px; background: var(--line); vertical-align: middle; margin-right: 6px; }
.stats td .mini i { display: block; height: 100%; background: var(--gold); }
.stats td .mini.met i { background: var(--good); }
.stats tr.click { cursor: pointer; }
.stats tr.click:hover td { background: var(--surface-2); }
.pill { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.busy { background: var(--gold-soft); color: var(--gold); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.code-view { background: var(--code-bg); color: var(--code-ink); font-family: var(--f-mono); font-size: 0.82rem; padding: 10px 12px; white-space: pre; overflow: auto; max-height: 240px; border: 1px solid var(--line); margin: 6px 0 0; }
details.vp { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.vp summary { cursor: pointer; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty { color: var(--muted); padding: 20px 0; }
.dialog.wide { max-width: 900px; }
.sso-btn { justify-content: center; padding-block: 12px; font-size: 1rem; width: 100%; text-decoration: none; }
#kiesBox, #ssoBox, #localBox { display: flex; flex-direction: column; gap: 14px; }
#kiesBox[hidden], #ssoBox[hidden], #localBox[hidden] { display: none; }
a.btn { text-decoration: none; }
