/* PJT Lesplatform. Rustig, neutraal, PJT-oranje als enige accent.
   Alle tekst/achtergrond-paren doorgerekend op WCAG AA (>= 4.5:1) in licht en donker. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f3ec; --surface: #ffffff; --surface-2: #fbf8f3; --hover: #f3eee5;
  --ink: #292524; --ink-2: #44403c; --muted: #6b645a; --line: #e9e3d8; --line-strong: #d9d0c2;
  --accent: #1D4ED8; --accent-weak: #E8EEFC; --btn: #1D4ED8; --on-btn: #ffffff;
  --success: #15803d; --warning: #92580a; --danger: #b91c1c; --info: #1d4ed8;
  --code-bg: #fbf8f3; --code-ink: #292524;
  --r: 8px; --r-sm: 6px;
  --shadow: 0 1px 2px rgba(68, 52, 30, .06);
  --shadow-lg: 0 8px 24px rgba(68, 52, 30, .10);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  --t: 150ms ease-out;
  --side: 248px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: 1.6rem; font-weight: 650; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 32px 0 12px; }
h3 { font-size: .95rem; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: var(--hover); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.select { user-select: all; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.bad { color: var(--danger); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible, .optie:focus-within { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

@font-face { font-family: "BebasNeue"; src: url("/static/fonts/BebasNeue-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DMMono"; font-weight: 500; src: url("/static/fonts/DMMono-500-latin.woff2") format("woff2"); font-display: swap; }
.pjt-logo { display: inline-flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.pjt-logo .logo-top { font-family: "DMMono", monospace; font-weight: 500; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.pjt-logo .logo-top .arr { color: var(--accent); }
.pjt-logo .logo-bottom { display: flex; align-items: baseline; font-family: "BebasNeue", sans-serif; letter-spacing: .04em; font-size: 28px; color: var(--ink); }
.pjt-logo .b-toe { color: var(--accent); }
.pjt-logo .b-cur { display: inline-block; width: 3px; height: 20px; margin-left: 3px; background: var(--accent); border-radius: 1px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- App-shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--ink); text-decoration: none !important; }
.logo-text { display: flex; flex-direction: column; font-weight: 650; font-size: .9rem; line-height: 1.2; }
.logo-text small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.side-school { display: flex; align-items: center; gap: 8px; margin: 0 8px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .82rem; color: var(--ink-2); background: var(--surface-2); }
.side-school span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; text-decoration: none; transition: background var(--t), color var(--t);
}
.side nav a .ic { color: var(--muted); }
.side nav a:hover { background: var(--hover); color: var(--ink); }
.side nav a[aria-current="page"] { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.side nav a[aria-current="page"] .ic { color: var(--accent); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hover); border: 1px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--ink-2); flex: none; }
.side-user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.side-user-info strong { font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info span { font-size: .75rem; color: var(--muted); }
.side-user-actions { display: flex; }
.side-user-actions a, .side-user-actions button {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); color: var(--muted);
  background: none; border: 0; cursor: pointer; transition: background var(--t), color var(--t);
}
.side-user-actions a:hover, .side-user-actions button:hover { background: var(--hover); color: var(--ink); }
.side-user-actions form { margin: 0; }

.content { padding: 32px 40px 96px; max-width: 1040px; width: 100%; }
.content.wide { max-width: 1320px; }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .content { min-width: 0; }
  .side { min-width: 0; position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .logo { padding: 0 8px 0 0; }
  .logo-text small, .side-school, .side-user-info { display: none; }
  .side nav { order: 3; flex-direction: row; flex-basis: 100%; min-width: 0; overflow-x: auto; }
  .side nav a { white-space: nowrap; }
  .side-user { order: 2; margin: 0 0 0 auto; border: 0; padding: 0; }
  .avatar { display: none; }
  .content { padding: 20px 16px 96px; }
}

/* ---------- Inlogscherm ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; min-height: 100vh; }
.auth-brand { background: var(--accent-weak); color: var(--ink); padding: 40px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.auth-brand .logo { color: var(--ink); padding: 0; }

.auth-pitch { margin: auto 0; }
.auth-pitch h2 { color: var(--ink); font-size: 1.7rem; font-weight: 650; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
.auth-pitch p { color: var(--ink-2); }
.auth-foot { color: var(--muted); font-size: .82rem; margin: 0; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px; }
.auth-main > div[aria-live] { width: 100%; max-width: 380px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.content .auth-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 20px; }
  .auth-pitch, .auth-foot { display: none; }
}

/* ---------- Pagina-kop ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 10px; min-height: 32px; }
.back .ic { width: 16px; height: 16px; }
.back:hover { color: var(--ink); text-decoration: none; }

/* ---------- Knoppen en formulieren ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  background: var(--btn); color: var(--on-btn); border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none !important;
  transition: background var(--t), border-color var(--t), box-shadow var(--t); touch-action: manipulation; white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { background: #a92f08; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--hover); }
.btn-ms { width: 100%; background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ms:hover { background: var(--hover); }
.btn-block { width: 100%; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: .88rem; padding: 8px 4px; min-height: 36px; }
button.link:hover { text-decoration: underline; }
button.link.bad { color: var(--danger); }

input, select, textarea {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 8px 12px; min-height: 40px; transition: border-color var(--t), box-shadow var(--t);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox], input[type=radio] { min-height: 0; width: 18px; height: 18px; accent-color: var(--btn); margin: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
label.check { flex-direction: row !important; align-items: center; gap: 10px; font-weight: 400; min-height: 40px; cursor: pointer; font-size: .9rem; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
input.small { width: 84px; }
input.grow { flex: 1; min-width: 200px; }
.code-input { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-family: ui-monospace, Consolas, monospace; }

/* ---------- Oppervlakken ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.narrow { max-width: 440px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 20px; border: 1px solid; font-size: .9rem; }
.flash .ic { margin-top: 2px; }
.flash-ok { background: color-mix(in srgb, var(--success) 8%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.flash-ok .ic { color: var(--success); }
.flash-error { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.flash-error .ic { color: var(--danger); }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 40px 24px; text-align: center; color: var(--muted); }
.empty > .ic { width: 28px; height: 28px; color: var(--muted); margin-bottom: 8px; }
.empty p { margin: 0 0 16px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0 20px; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.table tbody tr:hover { background: var(--surface-2); }
.table td a { display: inline-block; padding: 6px 0; }
tr.gepland td { color: var(--muted); }
.actions { display: flex; gap: 12px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; color: var(--muted); font-weight: 500; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; transition: color var(--t), border-color var(--t); }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tabs .count { font-size: .8rem; font-weight: 600; background: var(--btn); color: #fff; border-radius: 10px; padding: 1px 7px; }
.tabs.small a { min-height: 38px; font-size: .85rem; }

/* ---------- Badges ---------- */
.status, .tag, .chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; line-height: 1;
  padding: 5px 8px; border-radius: 4px; border: 1px solid; white-space: nowrap;
}
.status .ic { width: 13px; height: 13px; }
.st-ok, .st-klaar { color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); background: color-mix(in srgb, var(--success) 7%, transparent); }
.st-hulp, .st-bezig { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); background: color-mix(in srgb, var(--warning) 7%, transparent); }
.st-achter { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.st-nieuw { color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 7%, transparent); }
.st-slot, .tag { color: var(--muted); border-color: var(--line-strong); background: var(--surface-2); }
.chip { color: var(--ink-2); border-color: var(--line); background: var(--surface); font-weight: 500; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 8px; color: var(--muted); }
.mod { font-size: .75rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.mod::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--accent)); }

/* ---------- Lijst van lessen (leerling) ---------- */
.les-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.les-row { display: grid; grid-template-columns: 36px 1fr auto auto 18px; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: background var(--t); }
.les-row:last-child { border-bottom: 0; }
a.les-row:hover { background: var(--surface-2); }
.les-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.les-main { min-width: 0; }
.les-main strong { display: block; font-weight: 600; font-size: .95rem; }
.les-main span { font-size: .8rem; color: var(--muted); }
.les-due { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.les-due.bad { color: var(--danger); font-weight: 600; }
.les-row > .ic { color: var(--muted); }
.les-row.op-slot { color: var(--muted); background: var(--surface-2); }
.les-row.op-slot .les-ic { background: var(--hover); color: var(--muted); }
@media (max-width: 640px) {
  .les-row { grid-template-columns: 36px 1fr 18px; row-gap: 6px; }
  .les-row .les-due, .les-row .status { grid-column: 2; justify-self: start; }
  .les-row > .ic { grid-row: 1; grid-column: 3; }
}

/* ---------- Kaarten (klassen, leerlijn) ---------- */
.lesgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lescard {
  position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow);
  transition: border-color var(--t), box-shadow var(--t);
}
a.lescard:hover, .lescard:has(> a):hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.lescard > a { color: var(--ink); font-weight: 600; }
.lescard > a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.lescard strong { font-weight: 600; font-size: 1rem; }
.lescard.gepland { background: var(--surface-2); box-shadow: none; border-style: dashed; color: var(--muted); }
.lescard .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .82rem; margin-top: 4px; }
.lescard .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.lescard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.lescard .meta .ic { width: 14px; height: 14px; }
.jaar h2 { display: flex; gap: 12px; align-items: baseline; }
.jaar h2 .muted { font-size: .82rem; font-weight: 400; }

/* ---------- Klas ---------- */
.klascode { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; box-shadow: var(--shadow); }
.klascode span { font-size: .75rem; color: var(--muted); font-weight: 500; }
.klascode strong { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; letter-spacing: .14em; }
.klascode.dicht strong { color: var(--muted); text-decoration: line-through; }
.klascode em { font-style: normal; font-size: .75rem; color: var(--danger); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.stat span { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; }
.stat span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.stat strong { display: block; font-size: 1.75rem; font-weight: 650; line-height: 1.1; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat.st-ok span { color: var(--success); } .stat.st-hulp span { color: var(--warning); } .stat.st-achter span { color: var(--danger); }

.matrix-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.matrix { border-collapse: collapse; font-size: .88rem; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 8px 12px; white-space: nowrap; text-align: left; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix thead th { background: var(--surface-2); font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; vertical-align: bottom; }
.matrix tbody tr:hover { background: var(--surface-2); }
.matrix th.rot { height: 160px; padding: 6px 4px; width: 36px; text-transform: none; letter-spacing: 0; }
.matrix th.rot a { writing-mode: vertical-rl; transform: rotate(180deg); display: block; padding: 0 5px; margin: 0 auto; max-height: 136px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 500; font-size: .8rem; }
.matrix th.rot small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.cell { width: 36px; padding: 0 !important; text-align: center !important; }
.cell::after, .cell-l { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; margin: 8px; vertical-align: middle; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; }
.cell-l { margin: 0 4px 0 14px; }
.c-klaar::after, .cell-l.c-klaar { content: "\2713"; background: #15803d; }
.c-bezig::after, .cell-l.c-bezig { content: "\2026"; background: #a16207; }
.c-telaat::after, .cell-l.c-telaat { content: "!"; background: #b91c1c; }
.c-niet::after, .cell-l.c-niet { content: ""; background: transparent; border: 1.5px dashed var(--line-strong); }

/* ---------- Lessen ---------- */
.les-header { margin-bottom: 28px; }
.les-header h1 { font-size: 1.9rem; margin-top: 6px; }
.doelen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-top: 16px; box-shadow: var(--shadow); max-width: 70ch; }
.doelen strong { font-size: .85rem; }
.doelen ul { margin: 8px 0 0; padding: 0; list-style: none; }
.doelen li { position: relative; padding-left: 26px; margin: 4px 0; font-size: .92rem; }
.doelen li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }
.prose { max-width: 70ch; font-size: 1rem; line-height: 1.7; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose img { max-width: 100%; height: auto; }
.prose pre, pre.starter { background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; font-size: .86rem; line-height: 1.55; border: 1px solid var(--line-strong); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .92rem; margin: 12px 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.tip, .docentblok { display: block; border: 1px solid; border-left-width: 3px; padding: 4px 18px; border-radius: var(--r-sm); margin: 20px 0; max-width: 70ch; }
.tip { border-color: color-mix(in srgb, var(--info) 30%, transparent); border-left-color: var(--info); background: color-mix(in srgb, var(--info) 5%, var(--surface)); }
.docentblok { border-color: color-mix(in srgb, var(--warning) 30%, transparent); border-left-color: var(--warning); background: color-mix(in srgb, var(--warning) 5%, var(--surface)); padding: 12px 18px; }
.blok { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 24px 0; box-shadow: var(--shadow); }
.blok-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.blok-head strong { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.docentblok .blok-head { color: var(--warning); }
.blok textarea { width: 100%; resize: vertical; }
.opties { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.optie { display: flex; gap: 12px; align-items: center; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; transition: border-color var(--t), background var(--t); }
.optie:hover { border-color: var(--accent); background: var(--surface-2); }
.optie:has(input:disabled) { cursor: default; }
.optie:has(input:disabled):hover { border-color: var(--line-strong); background: none; }
.optie.goed { border-color: var(--success); background: color-mix(in srgb, var(--success) 7%, transparent); }
.optie.fout { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.optie.goed::after { content: "Goed"; margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--success); }
.optie.fout::after { content: "Fout"; margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--danger); }
.opties-key li.goed { color: var(--success); font-weight: 600; }
.quiz-result { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.save-state { font-size: .78rem; color: var(--muted); min-height: 1.3em; margin-top: 4px; }
.code-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
textarea.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86rem; min-height: 300px; background: var(--code-bg); color: var(--code-ink); border-color: var(--line-strong); tab-size: 2; line-height: 1.55; }
iframe.preview { width: 100%; min-height: 300px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; }
@media (max-width: 760px) { .code-wrap { grid-template-columns: minmax(0, 1fr); } }
.fb { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); border-left: 3px solid var(--success); background: color-mix(in srgb, var(--success) 5%, var(--surface)); padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; }
.fb p { margin: 4px 0 0; }
.ingeleverd { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--success); font-size: .9rem; }
.upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.upload input[type=file] { padding: 6px; }
.inlever-bar {
  position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow-lg); margin-top: 32px; font-size: .9rem;
}
.pres-knoppen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Voortgang ---------- */
.voortgang-kaart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 28px; box-shadow: var(--shadow); }
.voortgang-kaart .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: .9rem; }
.balk { height: 8px; background: var(--hover); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.balk span { display: block; height: 100%; background: var(--success); border-radius: 99px; transition: width 400ms ease-out; }

/* ---------- Nakijken ---------- */
.nakijk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 12px 0; box-shadow: var(--shadow); }
.nakijk.done { background: var(--surface-2); box-shadow: none; }
.nakijk-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: .9rem; }
.antwoord { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 10px; font-size: .92rem; }
.beoordeel { width: 100%; margin-top: 8px; }
.filter { margin-bottom: 16px; }
.list { padding-left: 20px; }
.row-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .les-header h1 { font-size: 1.55rem; }
  .inlever-bar { bottom: 0; margin: 24px -16px 0; border-radius: 0; border-left: 0; border-right: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .inlever-bar .btn, .inlever-bar form.inline { width: 100%; }
  form.inline.beoordeel input.grow { min-width: 0; flex-basis: 100%; }
  .page-actions { width: 100%; }
}
.tabs, .side nav { scrollbar-width: none; }
.tabs::-webkit-scrollbar, .side nav::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat span { font-size: .8rem; }
  .stat strong { font-size: 1.4rem; }
  .tabs a { padding: 0 10px; }
  .tabs a .ic { display: none; }
}
.auth-card form + p, .auth-card .muted { margin-top: 18px; font-size: .88rem; }
@media (max-width: 760px) {
  .auth-shell { grid-template-rows: auto 1fr; }
  .auth-brand { padding: 14px 20px; }
  .auth-main { justify-content: flex-start; padding-top: 32px; }
}
/* Ronde 1: lespagina leerling */
.deadline { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.deadline .ic { width: 16px; height: 16px; }
.deadline.te-laat { color: var(--danger); font-weight: 600; }
.bar-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.bar-info .ic { color: var(--success); }
.bar-info .balk { flex: 1; max-width: 220px; }
@media (max-width: 640px) {
  .inlever-bar { flex-wrap: nowrap; padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .inlever-bar form.inline, .inlever-bar .btn { width: auto; }
  .bar-info { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .82rem; }
  .bar-info .balk { width: 100%; max-width: none; }
}
/* Ronde 2: lesplanning en nakijken (docent) */
.plan-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row:hover { background: var(--surface-2); }
.plan-nr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-row.klaar .plan-nr { background: var(--success); border-color: var(--success); color: #fff; }
.plan-row.klaar .plan-nr .ic { width: 14px; height: 14px; stroke-width: 3; }
.plan-main { display: flex; flex-direction: column; min-width: 0; }
.plan-main a, .plan-main strong { font-weight: 600; color: var(--ink); }
.plan-main a:hover { color: var(--accent); }
.ok-text { color: var(--success); font-weight: 600; }
.plan-row.gepland { background: var(--surface-2); }
.plan-row.gepland .plan-main strong { color: var(--muted); font-weight: 500; }
.plan-row.gepland .tag { grid-column: 3 / -1; justify-self: end; }
.plan-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.plan-form input[type=date] { min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.plan-form label.check { min-height: 36px; font-size: .85rem; }
.plan-tools { display: flex; gap: 2px; }
.plan-tools form { margin: 0; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); color: var(--muted); background: none; border: 0; cursor: pointer; transition: background var(--t), color var(--t); }
.icon-btn:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.icon-btn.danger:hover { color: var(--danger); }
@media (max-width: 900px) {
  .plan-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .plan-form { grid-column: 2 / -1; flex-wrap: wrap; }
  .plan-tools { grid-row: 1; grid-column: 3; }
}
details.opdracht { margin: 0 0 10px; font-size: .88rem; }
details.opdracht summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
details.opdracht summary:hover { color: var(--ink); }
details.opdracht .prose { font-size: .9rem; padding: 8px 12px; border-left: 2px solid var(--line-strong); margin-top: 4px; }
@media (max-width: 640px) {
  .plan-row { grid-template-columns: 28px minmax(0, 1fr); gap: 6px 12px; }
  .plan-form, .plan-tools { grid-column: 2; grid-row: auto; }
  .plan-tools { margin-left: -8px; }
  .plan-row.gepland .tag { grid-column: 2; justify-self: start; }
}
details.opdracht summary { list-style: none; gap: 6px; }
details.opdracht summary::-webkit-details-marker { display: none; }
details.opdracht summary::before { content: "\25B8"; transition: transform var(--t); display: inline-block; }
details.opdracht[open] summary::before { transform: rotate(90deg); }
/* Ronde 3: leerlijn en niveau-schakelaar */
.ll-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
@media (max-width: 640px) { .ll-row { grid-template-columns: 28px minmax(0, 1fr) auto; } .ll-row .status, .ll-row .tag { grid-column: 3 !important; justify-self: end !important; } }
.niveau-switch { display: inline-flex; align-items: center; gap: 2px; margin-top: 16px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: .85rem; }
.niveau-switch span { padding: 0 8px 0 6px; color: var(--muted); }
.niveau-switch a { padding: 6px 12px; border-radius: 4px; color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; text-decoration: none !important; }
.niveau-switch a:hover { background: var(--hover); }
.niveau-switch a.active { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
/* Ronde 4 */
@media (max-width: 760px) { .shell { grid-template-rows: auto 1fr; } }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 76px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; border-radius: 4px; }
.pw-toggle:hover { background: var(--hover); color: var(--ink); }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.profiel { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: .9rem; }
.profiel dt { color: var(--muted); }
.profiel dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.grid2 > .card { margin: 0; }
.code-input::placeholder { text-transform: none; letter-spacing: normal; font-family: "Inter", system-ui, sans-serif; font-weight: 400; }
.stack label .hint { display: block; margin-top: -2px; }
/* Ronde 5: beheer */
.school-list { display: grid; gap: 12px; margin-bottom: 24px; }
.school { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.school-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.school h2 { font-size: 1.35rem; margin: 0 0 6px; display: block; }
.school h2::after { display: none; }
.meta-line { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.meta-line .ic { width: 14px; height: 14px; }
.school .hint { margin: 10px 0; }
.school .plan-form { flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.inline-label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
/* Ronde 6 */
.empty-slot { max-width: 560px; margin: 48px auto; padding: 40px 28px; }
.empty-slot > .ic { width: 36px; height: 36px; color: var(--accent); margin-bottom: 12px; }
.empty-slot h1 { font-size: 1.3rem; margin-bottom: 8px; color: var(--ink); }
.empty-slot p { color: var(--ink-2); }
.empty-slot .page-actions { width: auto; }
.btn { max-width: 100%; } .btn { white-space: normal; text-align: center; }
.mono, .opties-key li { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
.code-pane { display: flex; flex-direction: column; min-width: 0; }
.pane-label { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.pane-label .ic { width: 14px; height: 14px; }
.pane-label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: auto; }
.code-pane textarea.code, .code-pane iframe.preview { flex: 1; }

/* ==========================================================================
   PJT-huisstijl (zoals promptjetoekomst.nl): papier, Bebas Neue-koppen,
   DM Mono-labels, dunne lijnen, vlak. Inter alleen voor lopende tekst.
   #1D4ED8 = merkoranje, alleen decoratief (haalt geen 4.5:1 als tekst).
   ========================================================================== */
@font-face { font-family: "DMMono"; font-weight: 400; src: url("/static/fonts/DMMono-400-latin.woff2") format("woff2"); font-display: swap; }
:root {
  --bg: #f5f2ec; --surface: #fbf9f5; --surface-2: #f0ece4; --hover: #ece7dd;
  --ink: #0e0c09; --ink-2: #3a342d; --muted: #6b6253; --line: #ddd8ce; --line-strong: #c9c1b3;
  --brand: #E8420A; --accent: #1D4ED8; --accent-weak: #E8EEFC; --success: #146c36;
  --code-bg: #f0ece4;
  --r: 4px; --r-sm: 3px;
  --shadow: none; --shadow-lg: 0 6px 18px rgba(60, 44, 20, .08);
  --display: "BebasNeue", "Arial Narrow", sans-serif;
  --mono: "DMMono", ui-monospace, Consolas, monospace;
}

/* Koppen in Bebas Neue */
h1, .les-header h1, .auth-pitch h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .95; }
h1 { font-size: 2.6rem; }
.les-header h1 { font-size: 3.1rem; }
.empty-slot h1 { font-size: 2rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; line-height: 1; display: flex; align-items: baseline; gap: 14px; margin: 40px 0 14px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card h2, .prose h2, .jaar h2 { display: flex; }
.card h2 { font-size: 1.35rem; margin-top: 0; }
.card h2::after { display: none; }
.prose h2 { font-size: 1.7rem; }
.prose h2::after { display: none; }
.auth-pitch h2 { font-size: 2.6rem; }
.auth-pitch h2::after { display: none; }
.jaar h2 .muted { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; order: 3; }

/* Labels in DM Mono, hoofdletters */
.eyebrow, .mod, .blok-head, .pane-label, .table th, .matrix thead th, .stat span, .klascode span,
.back, .tabs a, .niveau-switch, .status, .tag, .chip, .les-due, .deadline, .side-school, .side-user-info span,
.lescard .meta, .meta-line, .plan-nr, .count {
  font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.eyebrow { font-size: .75rem; letter-spacing: .22em; color: var(--muted); margin-bottom: 8px; }
.eyebrow::before { content: "> "; color: var(--brand); }
.mod { font-size: .75rem; letter-spacing: .14em; }
.mod::before { border-radius: 0; width: 7px; height: 7px; }
.back { font-size: .75rem; letter-spacing: .14em; }
.tabs a { font-size: .8rem; letter-spacing: .12em; }
.tabs a.active { border-bottom-width: 2px; border-color: var(--brand); color: var(--ink); }
.status, .tag, .chip { font-size: .75rem; letter-spacing: .12em; padding: 5px 8px; border-radius: 2px; }
.les-due, .deadline { font-size: .75rem; letter-spacing: .1em; }
.plan-nr { font-size: .75rem; letter-spacing: 0; border-radius: 2px; }
.blok-head { font-size: .75rem; letter-spacing: .18em; color: var(--accent); }
.blok-head strong { font-family: var(--display); font-size: 1.3rem; letter-spacing: .03em; color: var(--ink); text-transform: none; font-weight: 400; }
.stat strong { font-family: var(--display); font-weight: 400; font-size: 2.6rem; letter-spacing: .02em; }
.stat span { font-size: .75rem; letter-spacing: .14em; }
.klascode strong { font-family: var(--mono); font-weight: 500; }

/* Knoppen: strak, DM Mono hoofdletters zoals de marketingsite */
.btn { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; border-radius: 2px; min-height: 42px; padding: 10px 18px; }
.btn-sm { font-size: .75rem; min-height: 36px; padding: 6px 12px; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ms { border-color: var(--line-strong); }
.btn-ms:hover { background: var(--surface-2); color: var(--ink); }

/* Vlak: lijnen in plaats van schaduwen */
.card, .les-list, .plan-list, .lescard, .stat, .blok, .doelen, .school, .nakijk, .voortgang-kaart, .table-wrap, .matrix-wrap, .klascode, .inlever-bar {
  box-shadow: none; border-color: var(--line); border-radius: var(--r);
}
.inlever-bar { border-top: 2px solid var(--ink); border-radius: 0; }
input, select, textarea { border-radius: 2px; background: var(--surface); }
.balk { border-radius: 0; height: 6px; }
.balk span { border-radius: 0; background: var(--brand); }
.les-ic { border-radius: 2px; }
.optie { border-radius: 2px; }
.doelen li::before { content: ">"; font-family: var(--mono); color: var(--brand); }

/* Zijbalk en logo */
.side { background: var(--bg); border-right-color: var(--line); }
.side nav a { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 500; border-radius: 2px; }
.side nav a[aria-current="page"] { background: transparent; color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
.side nav a[aria-current="page"] .ic { color: var(--brand); }
.avatar { border-radius: 2px; font-family: var(--display); font-size: 1.1rem; font-weight: 400; }
.side-user { border-top-color: var(--line); }
.pjt-logo .logo-top .arr, .pjt-logo .b-toe, .pjt-logo .b-cur { color: var(--brand); }
.pjt-logo .b-cur { background: var(--brand); }
@media (max-width: 760px) {
  .side nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
}

/* Inlogscherm */
.auth-brand { background: var(--surface-2); border-right: 1px solid var(--line); }
.auth-pitch p { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.auth-foot { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  .les-header h1 { font-size: 2.4rem; }
  h2 { font-size: 1.4rem; }
}
.voortgang-kaart .row strong { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.voortgang-kaart .row .muted { font-size: .85rem; }
.stat span::before, .chip::before, .mod::before { flex: none; }
.plan-form .btn-ghost, .school .btn-ghost, .beoordeel .btn { border-color: var(--line-strong); color: var(--ink-2); background: var(--surface); }
.plan-form .btn-ghost:hover, .school .btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
/* Ronde 10: brede weergave */
label.check { display: inline-flex; align-items: center; }
label.check input { flex: none; }
.matrix { width: 100%; }
@media (min-width: 1100px) {
  .klassen-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .klassen-layout .card { margin: 0; position: sticky; top: 24px; }
  .page-head .page-actions .btn[href="#nieuw"] { display: none; }
}
/* Ronde 10b: brede weergave */
.content { margin-inline: auto; }
.les-toc { display: none; }
html { scroll-padding-top: 24px; }
@media (min-width: 1200px) {
  .les-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
  .les-toc { display: block; position: sticky; top: 24px; border-left: 1px solid var(--line); padding-left: 20px; }
  .toc-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
  .les-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .les-toc a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 2px; color: var(--ink-2); font-size: .86rem; text-decoration: none !important; line-height: 1.3; }
  .les-toc a:hover { background: var(--hover); color: var(--ink); }
  .toc-nr { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 2px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
  .les-toc li.klaar .toc-nr { background: var(--success); border-color: var(--success); color: #fff; }
  .les-toc li.klaar .toc-nr .ic { width: 13px; height: 13px; stroke-width: 3; }
  .les-toc li.klaar a { color: var(--muted); }
}
/* Ronde 11 */
td.actions { display: table-cell; white-space: nowrap; text-align: right; }
td.actions form { display: inline-flex; margin-left: 12px; }
td.actions button.link { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
td.actions button.link:hover { text-decoration: underline; }
.school input.small { width: 120px; }

/* ---------- Rapportages ---------- */
.rapport-acties { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rapport-acties p { margin: 0; font-size: .85rem; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rapport-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rapport-grid .card { margin: 0; }
.rbalk { height: 8px; background: var(--hover); border: 1px solid var(--line); flex: 1; min-width: 60px; }
.rbalk span { display: block; height: 100%; background: var(--brand); }
.kd-grid { display: grid; gap: 18px; margin-top: 8px; }
.kd-domein h3 { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.kd-rij { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 6px 0; }
.kd-naam span { display: block; font-size: .88rem; font-weight: 500; }
.kd-naam small { font-size: .8rem; color: var(--muted); }
.kd-pct { font-family: var(--mono); font-size: .78rem; text-align: right; font-variant-numeric: tabular-nums; }
.kd-rij.leeg .kd-naam span, .kd-rij.leeg .kd-pct { color: var(--muted); }
.week-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 18px; overflow-x: auto; }
.week { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.week-bar { width: 100%; max-width: 28px; background: var(--brand); min-height: 2px; }
.week-n { font-family: var(--mono); font-size: .75rem; }
.week-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.cel-balk { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.cel-balk span:last-child { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.rapport-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.rapport-head .pjt-logo .logo-bottom { font-size: 26px; }
.fb-lijst { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fb-lijst li { border-left: 3px solid var(--brand); padding: 6px 12px; background: var(--surface); }
.fb-lijst p { margin: 4px 0 0; font-size: .9rem; }
.print-kop, .print-voet { display: none; }
.print-voet { display: block; margin-top: 24px; }
@media (max-width: 900px) {
  .rapport-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .side, .tabs, .page-head .page-actions, .rapport-acties, .no-print, .skip, .flash, .back { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .print-kop { display: block; font-family: var(--mono); font-size: 9pt; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
  .card, .stat, .table-wrap, .rapport-doc .card { break-inside: avoid; background: #fff; }
  .rapport-grid { grid-template-columns: minmax(0, 1fr); }
  .rbalk span, .week-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- SLO-kerndoelen centraal ---------- */
.kd-code { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .06em; color: var(--accent); background: var(--accent-weak); padding: 2px 5px; border-radius: 2px; margin-right: 8px; white-space: nowrap; }
.kd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kd-tag { display: inline-flex; align-items: center; font-size: .8rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); padding: 2px 8px 2px 2px; border-radius: 2px; }
.kd-tag .kd-code { margin-right: 6px; }
.kd-tag.actief { border-color: var(--brand); }
.les-doelen-rij { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; margin-top: 16px; max-width: 900px; }
.les-doelen-rij .doelen { margin-top: 0; max-width: none; }
.slo-blok { border: 1px solid var(--line); border-top: 3px solid var(--brand); background: var(--surface); padding: 12px 16px; border-radius: var(--r); }
.slo-blok-kop { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.slo-blok ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slo-blok li { display: flex; align-items: flex-start; }
.slo-blok li strong { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.slo-blok li small { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .les-doelen-rij { grid-template-columns: minmax(0, 1fr); } }

.slo-wrap { box-shadow: none; }
.slo-matrix { width: 100%; border-collapse: collapse; font-size: .88rem; }
.slo-matrix th, .slo-matrix td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.slo-matrix thead th { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
.slo-matrix thead th:first-child, .slo-matrix td:first-child { text-align: left; }
.slo-matrix td:first-child a { color: var(--ink); display: inline-flex; align-items: center; min-height: 28px; }
.slo-matrix td:first-child a:hover { color: var(--accent); text-decoration: none; }
.slo-domein th { text-align: left !important; font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: .03em; background: var(--bg); padding-top: 14px !important; }
.slo-cel { font-family: var(--mono); font-variant-numeric: tabular-nums; width: 80px; }
.slo-cel small { display: block; font-size: .75rem; color: var(--muted); }
.slo-cel.n1 { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.slo-cel.n2 { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.slo-cel.n3 { background: color-mix(in srgb, var(--brand) 32%, transparent); }
.slo-cel.n4 { background: color-mix(in srgb, var(--brand) 46%, transparent); font-weight: 600; }
.slo-tot { font-family: var(--mono); font-weight: 500; }
.slo-matrix tr.actief td { background-color: var(--accent-weak); }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--brand); background: var(--accent-weak); margin: 16px 0; font-size: .9rem; }
/* Tabs nooit verstoppen: op smalle schermen naar een tweede regel */
@media (max-width: 760px) {
  .tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; }
  .tabs a { min-height: 40px; }
}
.rapport-klassen { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 16px; }
.rapport-klas { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 16px 18px; color: var(--ink); text-decoration: none !important; transition: border-color var(--t), box-shadow var(--t); }
.rapport-klas:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); border-top-color: var(--brand); }
.rk-kop { display: flex; justify-content: space-between; align-items: flex-start; }
.rk-kop strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: .02em; line-height: 1; margin-top: 4px; }
.rk-kop .ic { color: var(--muted); }
.rk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rk-stats span { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rk-stats b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
.rk-stats .bad b { color: var(--danger); }
.rk-voet { font-size: .82rem; color: var(--muted); }
.rk-voet strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Zijbalk: groepen, klassen, teller, hulp ---------- */
.nav-groep { margin-bottom: 14px; }
.nav-kop { font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.nav-badge { margin-left: auto; font-family: var(--mono); font-size: .75rem; font-weight: 500; background: var(--btn); color: #fff; border-radius: 10px; padding: 1px 7px; letter-spacing: 0; }
.nav-sub { display: flex; flex-direction: column; margin: 0 0 4px 21px; padding-left: 10px; border-left: 1px solid var(--line); }
.side nav .nav-sub a { min-height: 32px; padding: 4px 10px; font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: .84rem; font-weight: 500; justify-content: space-between; }
.nav-sub a small { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side nav .nav-sub a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--brand); }
.side { overflow-y: auto; }
.side-help { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; margin-top: auto; color: var(--ink-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; text-decoration: none !important; border-radius: 2px; }
.side-help .ic { color: var(--muted); }
.side-help:hover, .side-help[aria-current="page"] { background: var(--hover); color: var(--ink); }
.side-help + .side-user { margin-top: 0; }
@media (max-width: 760px) {
  .nav-groep { display: contents; }
  .nav-kop, .nav-sub, .side-help { display: none; }
}

/* ---------- Vandaag ---------- */
.vandaag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vandaag-grid .card { margin: 0; }
.stat-link { color: var(--ink); text-decoration: none !important; }
.stat-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.vlijst { list-style: none; margin: 0; padding: 0; }
.vlijst li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vlijst li:last-child { border-bottom: 0; }
.vlijst a { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none !important; }
.vlijst a strong { font-weight: 600; font-size: .92rem; }
.vlijst a span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlijst a:hover strong { color: var(--accent); }
.vteller { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.vteller.ok { color: var(--success); }
.leeg-tekst { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 8px 0; }
.leeg-tekst .ic { color: var(--success); }
.meer { display: inline-flex; align-items: center; min-height: 28px; margin-top: 6px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.snel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.snel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none !important; border-radius: 2px; }
.snel a:hover { border-color: var(--brand); }
.snel a .ic { color: var(--brand); }
.snel strong { display: block; font-size: .88rem; }
.snel small { display: block; font-size: .8rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) { .vandaag-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Presentaties ---------- */
.pres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pres-kaart { background: var(--surface); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pres-preview { aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.pres-preview strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; line-height: 1; }
.pres-preview small { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pres-acties { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.pres-acties .icon-btn { margin-left: auto; }
.pres-kaart .kd-tags { margin-top: 0; }

/* ---------- Hulp ---------- */
.hulp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hulp-kaart { margin: 0; position: relative; }
.hulp-nr { font-family: var(--display); font-size: 2.4rem; color: var(--brand); line-height: 1; }
.hulp-kaart h2 { margin-top: 6px; }
.hulp-kaart ol { padding-left: 18px; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.hulp-contact { border-left: 3px solid var(--brand); margin-top: 16px; }
.jaarthema { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-weak); padding: 3px 8px; border-radius: 2px; align-self: center; }
.jaarthema-kop { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.jaarthema-kop .eyebrow { margin: 0; }
.jaarthema-kop strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }

/* ---------- Weekplanning / jaarkalender ---------- */
.weekplan { margin-top: 0; }
.weekplan-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.weekplan-kop h2 { margin: 0 0 4px; }
.weekplan-kop h2::after { display: none; }
.weekplan-form input[type=date], .weekplan-form select { min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.jaarkalender { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 4px 0 14px; }
.wk-cel { margin: 0; }
.wk-cel button { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 6px 5px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; border-radius: 2px; font: inherit; min-height: 62px; transition: border-color var(--t); }
.wk-cel button:hover { border-color: var(--ink); }
.wk-nr { font-family: var(--display); font-size: 1.15rem; line-height: 1; color: var(--ink); }
.wk-blokjes { display: flex; gap: 3px; min-height: 8px; }
.wk-blokjes i { flex: 1; height: 8px; background: var(--c); }
.wk-blokjes i.gepland { opacity: .35; }
.wk-datum { font-family: var(--mono); font-size: .75rem; letter-spacing: 0; white-space: nowrap; color: var(--muted); text-transform: uppercase; }
.wk-cel.vakantie button { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--bg) 6px 12px); }
.wk-cel.vakantie .wk-nr { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.reeks-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 16px 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); border-left: 3px solid var(--c, var(--brand)); font-family: var(--display); font-size: 1.05rem; letter-spacing: .03em; }
.reeks-kop small { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-list .reeks-kop:first-child { border-top: 0; }

/* Smal scherm: zijbalk smaller tussen 761 en 1000px, menu loopt door op mobiel */
@media (min-width: 761px) and (max-width: 1000px) { :root { --side: 210px; } .content { padding: 28px 24px 96px; } }
@media (max-width: 760px) { .side nav { flex-wrap: wrap; overflow: visible; } .side nav a { padding: 6px 8px; font-size: .75rem; } .side nav a .ic { width: 15px; height: 15px; } }

/* ---------- Nakijkmodus ---------- */
.nm-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); }
.nm-banner strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .02em; }
.nm-banner span { font-size: .86rem; color: var(--muted); }
.nm-kop { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.nm-kop .back { margin: 0; }
.nm-voortgang { flex: 1; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nm-voortgang .balk { flex: 1; max-width: 360px; }
.nm-nav { display: flex; gap: 4px; }
.icon-btn.uit { opacity: .3; pointer-events: none; }
.nm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.nm-vraag { position: sticky; top: 16px; }
.nm-vraag h1 { font-size: 2.2rem; margin: 2px 0 4px; }
.nm-antwoord { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.nm-leerling { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nm-leerling strong { display: block; font-size: 1rem; }
.nm-leerling small { font-size: .78rem; color: var(--muted); }
.nm-tekst { font-size: 1rem; line-height: 1.6; min-height: 90px; }
.nm-code { grid-template-columns: minmax(0, 1fr); }
.nm-form { display: grid; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.nm-cijfers { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nm-cijfers legend { font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.nm-cijfers label { cursor: pointer; }
.nm-cijfers input { position: absolute; opacity: 0; pointer-events: none; }
.nm-cijfers label > span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--display); font-size: 1.2rem; border-radius: 2px; transition: background var(--t), border-color var(--t); }
.nm-cijfers .geen > span { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nm-cijfers label:hover span { border-color: var(--ink); }
.nm-cijfers input:checked + span { background: var(--btn); border-color: var(--btn); color: #fff; }
.nm-cijfers input:focus-visible + span { box-shadow: var(--focus); }
.nm-fb-label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
.nm-fb-label textarea { width: 100%; font-weight: 400; }
.nm-snel { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-knop { font: inherit; font-size: .78rem; padding: 5px 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 2px; cursor: pointer; min-height: 32px; }
.chip-knop:hover { border-color: var(--brand); color: var(--ink); }
.nm-acties { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) { .nm-grid { grid-template-columns: minmax(0, 1fr); } .nm-vraag { position: static; } }
@media (max-width: 900px) { .nm-grid { display: flex; flex-direction: column; } .nm-antwoord { order: -1; } }
.nm-cijfers legend .hint { font-weight: 400; margin-left: 6px; }

/* ---------- Fasen en opbouw ---------- */
.fase { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; margin-right: 8px; border: 1px solid; }
.fase-kennismaken { color: #1d4ed8; border-color: color-mix(in srgb, #1d4ed8 35%, transparent); background: color-mix(in srgb, #1d4ed8 7%, transparent); }
.fase-oefenen { color: #92580a; border-color: color-mix(in srgb, #92580a 35%, transparent); background: color-mix(in srgb, #92580a 7%, transparent); }
.fase-toepassen { color: #146c36; border-color: color-mix(in srgb, #146c36 35%, transparent); background: color-mix(in srgb, #146c36 7%, transparent); }
.les-header .fase { margin-top: 10px; }
.opbouw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.opbouw-grid strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; margin: 4px 0 6px; }
.opbouw-grid p { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.6; }
.opbouw-grid .fase { margin: 0 2px 4px 0; }
.opbouw-nr { font-family: var(--display); font-size: 2rem; color: var(--brand); line-height: 1; }
@media (max-width: 900px) { .opbouw-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Terugblik en exit-ticket ---------- */
.terugblik, .exit { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--info); padding: 16px 20px; margin: 0 0 28px; max-width: 900px; }
.exit { border-left-color: var(--brand); margin: 32px 0 0; }
.tb-kop { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.tb-kop .eyebrow { margin-bottom: 2px; }
.tb-kop strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; }
.tb-vraag { padding: 10px 0; border-top: 1px solid var(--line); }
.tb-vraag:first-of-type { border-top: 0; }
.terugblik .opties { gap: 6px; }
.terugblik .optie { min-height: 40px; padding: 8px 12px; }
.exit-opties { display: flex; gap: 8px; flex-wrap: wrap; }
.exit-optie input { position: absolute; opacity: 0; pointer-events: none; }
.exit-optie span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 600; cursor: pointer; border-radius: 2px; transition: background var(--t), border-color var(--t); }
.exit-optie span:hover { border-color: var(--ink); }
.exit-optie input:focus-visible + span { box-shadow: var(--focus); }
.exit-ja input:checked + span { background: var(--success); border-color: var(--success); color: #fff; }
.exit-bijna input:checked + span { background: var(--warning); border-color: var(--warning); color: #fff; }
.exit-nee input:checked + span { background: var(--danger); border-color: var(--danger); color: #fff; }
.zi-lijst { display: grid; gap: 8px; }
.zi-rij { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: .88rem; }
.zi-les { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zi-balk { display: flex; height: 10px; border: 1px solid var(--line); background: var(--hover); }
.zi-ja, .zi-l.zi-ja { background: var(--success); }
.zi-bijna, .zi-l.zi-bijna { background: var(--warning); }
.zi-nee, .zi-l.zi-nee { background: var(--danger); }
.zi-tel { font-family: var(--mono); font-size: .8rem; text-align: right; color: var(--muted); }
.zi-l { display: inline-block; width: 12px; height: 12px; margin: 0 4px 0 12px; vertical-align: middle; }

/* Weekkalender: 12 kolommen (3 rijen voor 36 weken), smaller op tablet en telefoon */
@media (max-width: 1100px) { .jaarkalender { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 760px) { .jaarkalender { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 420px) { .jaarkalender { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.les-kolom { min-width: 0; }
.les-kolom > .terugblik, .les-kolom > .exit { max-width: none; }
.wk-legend { margin: -4px 0 14px; }

/* Telefoon: alle bedieningselementen minimaal 44px hoog (WCAG / Apple HIG) */
@media (max-width: 760px) {
  .btn, .btn-sm, .chip-knop, .pw-toggle, .tabs a,
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
  .icon-btn, .pw-toggle, .side-user a, .side-user button { min-width: 44px; min-height: 44px; }
  .plan-main > a { display: block; padding: 10px 0; }
  .back, .meer, a.logo, .niveau-switch a, button.link { display: inline-flex; align-items: center; min-height: 44px; }
  main select, main input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .weekplan-form select, .weekplan-form input[type=date], .plan-form input[type=date] { min-height: 44px; }
  details > summary { padding-top: 10px; padding-bottom: 10px; }
}

/* Telefoon: menu als één veegbare rij, hulp als icoon naast account */
@media (max-width: 760px) {
  .side nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; margin: 4px -12px 0; padding: 0 12px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%); }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { flex: none; }
  .side .side-help { display: inline-flex; order: 2; margin: 0 0 0 auto; padding: 0; min-width: 44px; min-height: 44px; justify-content: center; }
  .side .side-help span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side .side-help + .side-user { margin-left: 0; }
}
.mod { align-items: flex-start; } .mod::before { margin-top: .42em; }
.mod { flex-wrap: wrap; row-gap: 2px; }
.jaar-switch { margin: 0 0 8px; }
h2 > .muted { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; align-self: center; }

/* Telefoon: ankers niet onder de kopbalk; kopbalk schuift weg bij omlaag scrollen */
@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .side { transition: transform 200ms ease-out; }
  .side.kop-weg { transform: translateY(-100%); }
  .side:focus-within { transform: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .side { transition: none; } }
/* Tabelacties: neutrale actie rustig, vernietigende actie rood en apart */
.table button.link:not(.bad) { color: var(--ink-2); }
.table button.link:not(.bad):hover { color: var(--ink); }
.table form + form button.link.bad, .table button.link.bad { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }

/* ---------- Oefenvormen: volgorde, koppelen, invullen, waar/niet waar ---------- */
.oefen .hint { color: var(--muted); font-size: .88rem; margin: 6px 0 10px; }
.sorteer-lijst { list-style: none; counter-reset: stap; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.sorteer-lijst li { counter-increment: stap; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); transition: background 300ms, border-color 200ms; }
.sorteer-lijst li::before { content: counter(stap); font-family: var(--mono); font-size: .8rem; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); flex: none; }
.sorteer-tekst { flex: 1; min-width: 0; }
.sorteer-knoppen { display: flex; gap: 4px; flex: none; }
.sorteer-knoppen .icon-btn { border: 1px solid var(--line); font-size: 1rem; }
.sorteer-lijst li.verplaatst { background: var(--accent-weak); }
.koppel-rijen, .stelling-rijen { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.koppel-rij { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); }
.koppel-links { font-weight: 600; }
.stelling { border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.stelling legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.stelling label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
.invul-tekst { line-height: 2.1; margin: 8px 0 14px; }
.invul-tekst p { margin: 0 0 8px; }
.gat { display: inline-block; width: 11em; max-width: 100%; min-height: 32px; padding: 2px 8px; margin: 0 2px; border: 0; border-bottom: 2px solid var(--line-strong); background: var(--surface); font: inherit; }
.gat:focus-visible { border-bottom-color: var(--accent); }
.oefen .goed { border-color: color-mix(in srgb, var(--success) 55%, transparent); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.oefen .fout { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.gat.goed { border-bottom-color: var(--success); }
.gat.fout { border-bottom-color: var(--danger); }
.oefen-uitslag { margin-top: 10px; padding: 10px 14px; border-left: 3px solid; display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.oefen-uitslag.goed { border-color: var(--success); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.oefen-uitslag.fout { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.oefen-uitslag ol { margin: 2px 0 0; padding-left: 1.3em; }
.oefen-uitslag strong::before { content: ""; }
.antwoordsleutel { margin: 6px 0 0; padding-left: 1.3em; }
.gat-antwoord { background: color-mix(in srgb, var(--success) 14%, transparent); padding: 1px 6px; font-weight: 600; }
@media (max-width: 760px) { .koppel-rij { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.sorteer-lijst li.goed::after, .koppel-rij.goed::after { content: "goed"; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.sorteer-lijst li.fout::after, .koppel-rij.fout::after { content: "fout"; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--danger); }
.stelling.goed legend::after { content: "  (goed)"; color: var(--success); font-size: .85rem; }
.stelling.fout legend::after { content: "  (fout)"; color: var(--danger); font-size: .85rem; }

/* Support: balk tijdens meekijken, kaart op de accountpagina en het beheeroverzicht. */
.support-balk { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  margin: -8px 0 20px; padding: 10px 14px; border-radius: var(--r-sm); background: #1d4ed8; color: #fff; font-size: .92rem; }
.support-balk > span { display: inline-flex; gap: 8px; align-items: center; }
.support-balk svg { width: 18px; height: 18px; flex: none; }
.support-balk .btn { background: #fff; color: #1d4ed8; border-color: #fff; }
.support-kaart { margin-top: 20px; }
.support-kaart .status { display: inline-block; margin: 4px 0 12px; }
.support-geschiedenis { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.support-beheer { margin: 24px 0; }
.support-log { margin-top: 14px; }
.support-log summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.support-log code { white-space: normal; word-break: break-word; }
.side-help + .side-help { margin-top: 0; }
@media (max-width: 760px) { .side .side-help + .side-help { margin-left: 0; } }
.soort-keuze { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.soort-keuze legend { font-weight: 600; margin-bottom: 6px; }
.soort-optie { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; min-height: 44px; }
.soort-optie input { margin-top: 3px; }
.soort-optie span { display: grid; gap: 2px; }
.soort-optie small { color: var(--muted); }
.soort-optie:has(input:checked) { border-color: var(--btn); background: var(--accent-weak); }
.soort-optie:has(input:focus-visible) { outline: 2px solid var(--btn); outline-offset: 2px; }
.support-form label.check { display: flex; gap: 10px; align-items: flex-start; }
.support-form label.check input { margin-top: 3px; flex: none; }
.support-form:not(:has(input[value="technisch"]:checked)) .alleen-technisch { display: none; }
.support-eerder, .support-vragen { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.support-eerder li { display: flex; gap: 10px; align-items: flex-start; }
.support-eerder li > span:last-child { display: grid; }
.support-eerder small { color: var(--muted); }
.support-vragen li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.support-vraag-kop { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.support-bericht { white-space: pre-wrap; margin: 8px 0; }
.support-acties { display: flex; flex-wrap: wrap; gap: 8px; }
.support-beheer h3 { margin-top: 18px; }
.support-form .soort-optie, .support-form label.check { flex-direction: row; display: flex; }
.gevaar-zone { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.gevaar-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.gevaar-zone p { max-width: 70ch; color: var(--ink-2); }
.gevaar-zone form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.btn-gevaar { background: var(--danger); border-color: var(--danger); color: #fff; }
.docent-lijst { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.docent-lijst li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.privacy { max-width: 75ch; }
.privacy .lead { font-size: 1.05rem; }
.privacy-blok { margin-top: 24px; }
.privacy-blok p { margin: 6px 0; }
.support-betreft { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--accent-weak); border-radius: var(--r-sm); }
.support-betreft svg { width: 18px; height: 18px; flex: none; }
.side-cta { display: flex; gap: 10px; align-items: center; margin: auto 0 6px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent-weak); color: var(--ink); text-decoration: none !important; transition: background var(--t); }
.side-cta .ic { color: var(--accent); width: 20px; height: 20px; flex: none; }
.side-cta span { display: grid; gap: 1px; }
.side-cta strong { font-size: .9rem; }
.side-cta small { color: var(--ink-2); font-size: .78rem; line-height: 1.3; }
.side-cta:hover, .side-cta[aria-current="page"] { background: var(--surface); }
.side-cta + .side-help { margin-top: 0; }
@media (max-width: 760px) {
  .side .side-cta { order: 2; margin: 0 0 0 auto; padding: 0; min-width: 44px; min-height: 44px; justify-content: center; border: 0; background: none; }
  .side .side-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side .side-cta .ic { width: 22px; height: 22px; }
  .side .side-cta + .side-help { margin-left: 0; }
}
.table th.kies, .table td.kies { width: 44px; text-align: center; }
.table td.kies input, .table th.kies input { width: 20px; height: 20px; }
.bulk-balk { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.bulk-balk strong { width: 100%; }
.bulk-balk .hint { width: 100%; margin: 0; }
.klas-instellingen { max-width: 720px; }
.opties-blok { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; display: grid; gap: 8px; }
.opties-blok legend { font-weight: 600; padding: 0 4px; }
.opties-blok label.check { display: flex; gap: 10px; align-items: flex-start; flex-direction: row; }
.opties-blok label.check input { margin-top: 3px; flex: none; }
.ai-basis { border-left: 4px solid #7a3ad6; margin-bottom: 16px; }
.ai-basis-kop { display: flex; gap: 12px; align-items: flex-start; }
.ai-basis-kop > .ic { width: 28px; height: 28px; color: #7a3ad6; flex: none; margin-top: 4px; }
.ai-basis-kop h2 { margin: 0 0 4px; }
.bewijs-tabel td { white-space: nowrap; }
.bewijs-balk { display: block; height: 4px; margin-top: 4px; background: var(--line); border-radius: 2px; overflow: hidden; min-width: 48px; }
.bewijs-balk span { display: block; height: 100%; background: var(--success); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.verklaring-tekst p { font-size: 1.02rem; line-height: 1.6; }
.handtekening { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.handtekening div { border-top: 1px solid var(--ink); padding-top: 6px; min-height: 60px; }
.handtekening span { font-size: .85rem; color: var(--muted); }

/* Mobiel en tablet: rondjes en vinkjes nooit platdrukken, vinkjes in de leerlingenlijst groter, tabbladen op tablet laten doorlopen */
input[type=checkbox], input[type=radio] { flex: none; }
.table td.kies input, .table th.kies input { width: 24px; height: 24px; }
@media (max-width: 1100px) { .tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; } }
@media (max-width: 600px) { .rapport-head .pjt-logo { display: none; } }
@media print { .rapport-head .pjt-logo { display: inline-flex !important; } }
.exit-regel { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 0; }
.inloglijst code { font-size: .95rem; }
@media print { .inloglijst td, .inloglijst th { padding: 6px 8px; } }

/* ---------- Zachte stijl (overgenomen van Huda), in PJT-huisstijl ----------
   Afgeronde kaarten, pilknoppen, zachte schaduwen en Inter voor alle UI-tekst.
   Paginatitels houden Bebas Neue (PJT). Contrast doorgerekend: #1D4ED8 op #0E0C09 6,75:1, #0E0C09 op #E8EEFC 14,9:1. */
.zacht { --r: 18px; --r-sm: 12px; --zacht-schaduw: 0 2px 10px rgba(28, 25, 23, .07); --zacht-schaduw-hover: 0 8px 20px rgba(28, 25, 23, .12); background: #f6f3ee; }
.zacht h2, .zacht h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: #0E0C09; }
.zacht h2 { font-size: 21px; line-height: 1.25; }
.zacht h2::after { display: none; }
.zacht .eyebrow::before { content: ""; }
.zacht .eyebrow { font-family: "Inter", system-ui, sans-serif; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .85rem; color: #57534e; }
.zacht main .stat strong, .zacht main .blok-head strong { font-family: var(--display); letter-spacing: .02em; }
.zacht main .klascode strong { font-family: var(--mono); letter-spacing: .08em; }
.zacht main .code, .zacht main code, .zacht main pre, .zacht main textarea.code, .zacht .demo-bron { font-family: Consolas, "Courier New", monospace; }

/* Zijbalk */
.zacht .side { background: #fffdf9; }
.zacht .side nav a, .zacht .nav-kop, .zacht .side-school, .zacht .side-help, .zacht .side-user-info span { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.zacht .side nav a { border-radius: 12px; font-weight: 600; font-size: 15px; }
.zacht .nav-kop { font-size: 12px; font-weight: 700; color: #78716c; }
.zacht .side nav a[aria-current="page"] { background: #E8EEFC; box-shadow: none; color: #0E0C09; }
.zacht .side nav a[aria-current="page"] .ic { color: #1D4ED8; }
.zacht .side-help { border-radius: 12px; font-size: 14px; }
.zacht .side-cta { border-radius: 14px; }
.zacht .avatar { border-radius: 50%; }

/* Knoppen, invoer, labels */
.zacht .btn { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; border-radius: 999px; font-weight: 600; font-size: 15px; }
.zacht .btn-sm { border-radius: 999px; font-size: 14px; }
.zacht input, .zacht select, .zacht textarea { border-radius: 12px; }
.zacht label, .zacht .pane-label, .zacht .back, .zacht td.actions button.link { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.zacht .back { font-weight: 600; }

/* Kaarten, tabellen, tabbladen, statussen */
.zacht .card, .zacht .stat, .zacht .rk-kaart, .zacht .tegel, .zacht .kaart, .zacht .school, .zacht .klas-kaart, .zacht .rapport-klas, .zacht .snel a, .zacht .empty, .zacht .voortgang-kaart, .zacht .table-wrap, .zacht .slo-blok, .zacht .bulk-balk, .zacht .klascode {
  border: 0; border-radius: 18px; box-shadow: var(--zacht-schaduw); background: #fff; }
.zacht .stat span { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 600; }
.zacht .tabs a { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 15px; }
.zacht .tabs a.active { border-color: #1D4ED8; color: #0E0C09; }
.zacht th { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 600; color: #0E0C09; }
.zacht .status { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 13px; }
.zacht .tag, .zacht .chip, .zacht .fase, .zacht .mod { border-radius: 999px; font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.zacht .plan-row { border-radius: 14px; }

/* Leerling: welkomstblok */
.held { display: flex; justify-content: space-between; align-items: stretch; gap: 16px; background: #0E0C09; color: #fff; border-radius: 24px; overflow: hidden; margin-bottom: 20px; min-height: 200px; }
.held-tekst { padding: 28px 32px; min-width: 0; }
.zacht .held h1 { color: #1D4ED8; font-size: 52px; margin: 6px 0 6px; line-height: 1; }
.zacht .held p { margin: 0 0 18px; font-size: 17px; color: #fff; }
.zacht .held-klas { display: inline-block; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; color: #fff; }
.zacht .held-knop { display: inline-flex; align-items: center; gap: 6px; background: #1D4ED8; color: #0E0C09; font-weight: 700; padding: 11px 20px; border-radius: 999px; text-decoration: none; transition: transform .15s ease; }
.zacht .held-knop:hover { transform: translateY(-2px) scale(1.02); color: #0E0C09; text-decoration: none; }
.held-knop .ic { width: 18px; height: 18px; }
.held-merk { flex: none; display: grid; place-items: center; width: 200px; font-family: var(--mono), monospace; font-size: 72px; color: #1D4ED8; background: radial-gradient(circle at 60% 40%, rgba(255, 122, 61, .22), transparent 65%); }
.zacht main .held-merk span { font-family: var(--mono), monospace; }
.held-merk .knipper { animation: held-cursor 1.1s steps(1) infinite; }
@keyframes held-cursor { 50% { opacity: 0; } }

/* Leerling: voortgang als reis per onderdeel */
.zacht .voortgang-kaart { padding: 18px 20px; }
.zacht .voortgang-kaart .row strong { font-size: 16px; color: #0E0C09; font-weight: 700; }
.zacht .balk { height: 14px; border-radius: 999px; background: #f0e9df; overflow: hidden; }
.zacht .balk span { border-radius: 999px; background: linear-gradient(90deg, #1D4ED8, #1D4ED8); }
.reis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.reis-stap { display: flex; gap: 10px; align-items: center; background: #f6f3ee; border-radius: 14px; padding: 10px 12px; min-width: 0; }
.reis-stap strong { display: block; font-size: 14px; color: #0E0C09; line-height: 1.2; }
.reis-stap small { color: #57534e; font-size: 13px; }
.reis-nr { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c, #0E0C09); color: #fff; display: grid; place-items: center; }
.reis-nr .ic { width: 16px; height: 16px; }
.reis-stap.af { background: #dff3e6; }
.nog-slot { display: flex; align-items: center; gap: 8px; color: #57534e; margin: 12px 4px 0; font-size: 15px; }
.nog-slot .ic { width: 18px; height: 18px; }

/* Leerling: lessen als losse kaarten */
.zacht .les-list { display: grid; gap: 10px; border: 0; background: none; box-shadow: none; }
.zacht .les-row { border: 0; border-radius: 18px; background: #fff; box-shadow: var(--zacht-schaduw); transition: transform .15s ease, box-shadow .15s ease; padding: 14px 18px; column-gap: 16px; }
.zacht a.les-row:hover { transform: translateY(-2px); box-shadow: var(--zacht-schaduw-hover); }
.zacht .les-row.op-slot { background: #f0ebe3; box-shadow: none; }
.zacht .les-row .les-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.zacht .les-row .les-ic .ic { width: 22px; height: 22px; }
.zacht .les-row.op-slot .les-ic { background: #e7e1d7; color: #78716c; }
.zacht .les-due { font-weight: 600; font-size: 13px; }
.zacht .st-nieuw { background: #1D4ED8; color: #0E0C09; }
.zacht .st-bezig { background: #E8EEFC; color: #1D4ED8; }
.zacht .st-klaar { background: #dff3e6; color: #146c36; }

/* Leerling: in de les */
.zacht .blok, .zacht .les-header, .zacht .tip, .zacht .doelen, .zacht .terugblik, .zacht .exit, .zacht .inlever-bar { border-radius: 18px; }
.zacht .blok { border: 0; box-shadow: var(--zacht-schaduw); background: #fff; }
.zacht .doelen { border: 0; background: #E8EEFC; }
.zacht .optie { border-radius: 14px; border-width: 2px; font-size: 16px; transition: transform .12s ease, border-color .12s ease; }
.zacht .optie:hover { transform: translateX(3px); border-color: #1D4ED8; }
.zacht .optie.goed { animation: zacht-goed .4s ease; }
@keyframes zacht-goed { 40% { transform: scale(1.02); } }

/* Inloggen */
.auth-card { border-radius: 22px; border: 0; box-shadow: 0 4px 18px rgba(28, 25, 23, .08); background: #fff; padding: 28px; }
.auth-card label { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 600; }
.auth-card input { border-radius: 12px; min-height: 48px; }
.auth-card .btn { border-radius: 999px; font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 16px; min-height: 48px; }
.auth-brand { background: #0E0C09; color: #fff; border-right: 0; }
.auth-brand .auth-pitch h2 { color: #1D4ED8; }
.auth-brand .auth-pitch p, .auth-brand .auth-foot { color: #e7e5e4; }
.auth-brand .auth-foot a { color: #1D4ED8; }
.auth-brand .logo-bottom { color: #fff; }

@media (max-width: 640px) { .held-merk { display: none; } .held-tekst { padding: 22px; } .zacht .held h1 { font-size: 40px; } .held { min-height: 0; } .zacht .held-knop { white-space: normal; } }
@media (max-width: 960px) {
  .zacht .les-row { grid-template-columns: 48px 1fr 18px; }
  .zacht .les-row .les-ic { grid-row: 1 / span 3; align-self: start; }
  .zacht .les-row .les-due, .zacht .les-row .status { grid-column: 2; justify-self: start; }
  .zacht .les-row > svg:last-child { grid-column: 3; grid-row: 1; }
  .zacht .les-row .les-due:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .zacht *, .held-merk .knipper { animation: none !important; transition: none !important; } }
.zacht .les-row { grid-template-columns: 48px 1fr auto auto 18px; }
@media (max-width: 960px) { .zacht .les-row { grid-template-columns: 48px 1fr 18px; } }
.auth-brand .pjt-logo .logo-top { color: #a8a29e; }
.zacht .deadline, .zacht .les-meta, .auth-foot { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.zacht .deadline { font-weight: 600; }
.zacht .toc-nr { border-radius: 50%; font-family: "Inter", system-ui, sans-serif; }
.zacht .toc-head { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 700; color: #0E0C09; }
@media (max-width: 640px) { .reis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reis-stap { padding: 8px 10px; } .reis-nr { width: 28px; height: 28px; } }
.auth-foot { font-size: 13px; }

/* ==========================================================================
   Digiroute-huisstijl (Digiroute logo en huisstijl.html)
   Routeblauw #1D4ED8 voor knoppen en links, Inkt #0E0C09 voor tekst, Papier #F5F2EC als achtergrond,
   Steen #6B6357 voor labels en bijtekst, PJT-oranje #E8420A alleen voor de > en AI.
   Koppen: Space Grotesk bold. Labels en knoppen: DM Mono, hoofdletters, ruim gespatieerd. Lestekst: Inter.
   Het platform blijft altijd licht. Contrast: wit op routeblauw 6,7:1, steen op papier 5,3:1, blauw op #E8EEFC 5,8:1.
   ========================================================================== */
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/SpaceGrotesk-latin-wght.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root, .zacht {
  --bg: #F5F2EC; --surface: #FFFFFF; --surface-2: #FAF8F3; --hover: #EEF2FD;
  --ink: #0E0C09; --ink-2: #2E2B26; --muted: #6B6357; --line: #E4DFD5; --line-strong: #CFC9BD;
  --accent: #1D4ED8; --accent-weak: #E8EEFC; --btn: #1D4ED8; --on-btn: #FFFFFF; --brand: #1D4ED8; --pijl: #E8420A;
  --display: "Space Grotesk", system-ui, sans-serif; --mono: "DMMono", "DM Mono", ui-monospace, Consolas, monospace;
  --r: 16px; --r-sm: 6px;
  --zacht-schaduw: none; --zacht-schaduw-hover: 0 4px 14px rgba(14, 12, 9, .08);
  --focus: 0 0 0 2px #FFFFFF, 0 0 0 4px #1D4ED8;
}
body, .zacht, .auth-body { background: #F5F2EC; color: #0E0C09; font-family: "Inter", system-ui, sans-serif; }
a { color: #1D4ED8; }

/* Koppen: Space Grotesk */
h1, h2, h3, .les-header h1, .zacht h1, .zacht h2, .zacht h3, .auth-card h1, .zacht .held h1, .zacht main h2, .zacht main h3, .blok-head strong, .zacht main .blok-head strong, .stat strong, .zacht main .stat strong {
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: #0E0C09; }
h1, .les-header h1 { font-size: 2.3rem; line-height: 1.08; }
.zacht h2, .zacht main h2 { font-size: 1.35rem; }
.stat strong, .zacht main .stat strong { font-size: 2.4rem; letter-spacing: -.03em; }

/* Labels en knoppen: DM Mono hoofdletters */
.btn, .zacht .btn, .auth-card .btn, .eyebrow, .zacht .eyebrow, .status, .zacht .status, .zacht th, .nav-kop, .zacht .nav-kop, .stat span, .zacht .stat span,
.auth-card label, .zacht label, .stack label, .tabs a, .zacht .tabs a, .back, .zacht .back, .held-klas, .zacht .held-klas, .zacht .held-knop, .auth-foot, .toc-head, .zacht .toc-head, .les-due, .zacht .les-due, .pane-label, .zacht .pane-label {
  font-family: "DMMono", "DM Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.zacht main :is(.eyebrow, .status, th, label, .back, .les-due, .pane-label, .stat span, .held-klas, .held-knop, .btn, .toc-head) { font-family: "DMMono", "DM Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow, .zacht .eyebrow, .zacht main .eyebrow { font-size: .72rem; font-weight: 500; color: #6B6357; }
.btn, .zacht .btn, .auth-card .btn, .zacht main .btn { font-size: .78rem; font-weight: 500; border-radius: 6px; min-height: 44px; }
.btn-sm, .zacht .btn-sm, .zacht main .btn-sm { font-size: .72rem; border-radius: 6px; min-height: 36px; }
.btn:not(.btn-ghost):not(.btn-gevaar):not(.link), .zacht .btn:not(.btn-ghost):not(.btn-gevaar):not(.link) { background: #1D4ED8; border-color: #1D4ED8; color: #FFFFFF; }
.btn-ghost, .zacht .btn-ghost { background: #FFFFFF; color: #0E0C09; border: 1px solid #0E0C09; }
.btn-ghost:hover, .zacht .btn-ghost:hover { background: #EEF2FD; }
.zacht label, .stack label, .zacht main label { font-size: .7rem; font-weight: 500; color: #0E0C09; }
.zacht label .hint, .stack label .hint, .zacht main label .hint { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; color: #6B6357; }
.zacht label.check, .opties-blok label.check, .soort-optie, .zacht main .soort-optie, .zacht main label.check { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 400; }
.zacht main .soort-optie strong, .zacht main .soort-optie small { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.status, .zacht .status { border-radius: 6px; font-size: .68rem; font-weight: 500; padding: 4px 10px; }
.zacht th, .zacht main th { font-size: .68rem; font-weight: 500; color: #6B6357; }
.tabs a, .zacht .tabs a { font-size: .74rem; font-weight: 500; }

/* Invoer */
.zacht input, .zacht select, .zacht textarea, .auth-card input, input, select, textarea { border-radius: 6px; border-color: #CFC9BD; background: #FFFFFF; }
.auth-card input { min-height: 48px; }

/* Kaarten: wit, dunne rand, ronde hoeken, geen zware schaduw */
.zacht .card, .zacht .stat, .zacht .rk-kaart, .zacht .tegel, .zacht .kaart, .zacht .school, .zacht .klas-kaart, .zacht .rapport-klas, .zacht .snel a, .zacht .empty,
.zacht .voortgang-kaart, .zacht .table-wrap, .zacht .slo-blok, .zacht .bulk-balk, .zacht .klascode, .zacht .blok, .zacht .les-row, .auth-card {
  border: 1px solid #E4DFD5; border-radius: 16px; box-shadow: none; background: #FFFFFF; }
.zacht a.les-row:hover { box-shadow: var(--zacht-schaduw-hover); border-color: #CFC9BD; }
.zacht .les-row.op-slot { background: #EFEBE3; border-color: transparent; }
.zacht .doelen { background: #E8EEFC; border: 0; border-radius: 16px; }
.zacht .tip { border-radius: 12px; }

/* Zijbalk */
.zacht .side { background: #FFFFFF; border-right: 1px solid #E4DFD5; }
.zacht .side nav a { border-radius: 8px; font-family: "Inter", system-ui, sans-serif; font-weight: 600; text-transform: none; letter-spacing: 0; }
.zacht .side nav a[aria-current="page"] { background: #E8EEFC; color: #0E0C09; }
.zacht .side nav a[aria-current="page"] .ic { color: #1D4ED8; }
.zacht .nav-kop { font-size: .66rem; font-weight: 500; color: #6B6357; }
.zacht .side-cta { border-color: #1D4ED8; background: #E8EEFC; border-radius: 12px; }
.zacht .side-cta .ic { color: #1D4ED8; }
.zacht .avatar { background: #E8EEFC; color: #1D4ED8; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; }

/* Statussen en voortgang */
.zacht .st-nieuw { background: #1D4ED8; color: #FFFFFF; }
.zacht .st-bezig { background: #E8EEFC; color: #1D4ED8; }
.zacht .st-klaar { background: #DFF3E6; color: #146C36; }
.zacht .balk span { background: #1D4ED8; }
.zacht .tabs a.active { border-color: #1D4ED8; color: #0E0C09; }

/* Logo */
.dr-logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; white-space: nowrap; }
.dr-merk { width: 34px; height: 34px; flex: none; }
.dr-woord { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 25px; letter-spacing: -.035em; }
.dr-digi { color: #0E0C09; } .dr-route { color: #1D4ED8; }
.rapport-head .dr-logo .dr-woord { font-size: 22px; }
@media print { .rapport-head .dr-logo { display: inline-flex !important; } }
@media (max-width: 600px) { .rapport-head .dr-logo { display: none; } }

/* Leerling: welkomstblok in routeblauw (het platform blijft licht) */
.held { background: #1D4ED8; color: #FFFFFF; border-radius: 16px; }
.zacht .held h1 { color: #FFFFFF; font-size: 48px; letter-spacing: -.03em; line-height: 1.02; }
.zacht .held p { color: #FFFFFF; }
.zacht .held-klas { background: rgba(255, 255, 255, .16); color: #FFFFFF; border-radius: 6px; font-size: .68rem; }
.zacht .held-knop { background: #FFFFFF; color: #1D4ED8; border-radius: 6px; font-size: .78rem; font-weight: 500; }
.zacht .held-knop:hover { color: #1D4ED8; }
.held-merk { background: none; }
.held-merk .dr-merk { width: 120px; height: 120px; }
.reis-stap { background: #F5F2EC; border-radius: 12px; }
.reis-stap.af { background: #DFF3E6; }

/* Inloggen: formulier op papier, rechts het blauwe routepaneel */
.dr-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.dr-auth-links { display: flex; flex-direction: column; padding: 40px 6vw; background: #F5F2EC; }
.dr-auth-links .logo { align-self: flex-start; }
.dr-auth-links .auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.dr-auth .auth-card { max-width: 440px; width: 100%; background: transparent; border: 0; padding: 0; }
.dr-auth .auth-card h1 { font-size: 44px; letter-spacing: -.03em; margin-bottom: 8px; }
.dr-auth .auth-card .lead { color: #6B6357; }
.dr-auth .auth-foot { margin: 0; font-size: .66rem; color: #6B6357; }
.dr-auth .auth-foot a { color: #1D4ED8; }
.dr-routepaneel { background: #1D4ED8; color: #FFFFFF; padding: 12vh 6vw; display: flex; flex-direction: column; justify-content: center; border: 0; }
.dr-routepaneel h2 { color: #FFFFFF; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 36px; }
.dr-route-lijst { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 30px; position: relative; }
.dr-route-lijst li { display: flex; align-items: center; gap: 22px; font-family: "DMMono", "DM Mono", monospace; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; position: relative; }
.dr-route-lijst li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; width: 4px; height: 26px; background: #FFFFFF; border-radius: 2px; }
.dr-halte { flex: none; width: 32px; height: 14px; border-radius: 7px; background: #FFFFFF; }
.dr-halte.open { height: 32px; border-radius: 50%; background: transparent; border: 4px solid #FFFFFF; }
.dr-halte.eind { height: 32px; border-radius: 50%; }
.dr-routepaneel p { color: #FFFFFF; font-size: 17px; max-width: 34em; margin: 0; }
@media (max-width: 860px) {
  .dr-auth { grid-template-columns: 1fr; }
  .dr-routepaneel { display: none; }
  .dr-auth-links { padding: 24px 20px; min-height: 100vh; }
  .dr-auth .auth-card h1 { font-size: 36px; }
}

/* Presentatie-knoppen en kleine resten in PJT-stijl */
.zacht .kd-code { color: #1D4ED8; background: #E8EEFC; border-radius: 4px; }
.zacht .gevaar-zone summary { font-family: "DMMono", "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
/* Oranje alleen voor de > (en AI-lijnen via de modulekleur) */
.doelen li::before, .eyebrow::before, .sub::before { color: var(--pijl, #E8420A); }

/* DM Mono-hoofdletters alleen voor korte labels boven velden. Antwoordopties, keuzevakjes en
   oefeningen zijn ook <label>, maar dat is leestekst: gewoon Inter, normale hoofdletters. */
label.optie, .zacht label.optie, .zacht main label.optie,
label.koppel-rij, .zacht main label.koppel-rij,
label.exit-optie, .zacht main label.exit-optie,
label.soort-optie, .zacht main label.soort-optie,
label.check, .zacht label.check, .zacht main label.check,
label.geen, .zacht main label.geen,
label.nm-fb-label, .zacht main label.nm-fb-label,
.zacht main label:has(> input[type="radio"]), .zacht main label:has(> input[type="checkbox"]),
.zacht label:has(> input[type="checkbox"]) {
  font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: normal; font-size: 1rem; font-weight: 400;
}
.zacht main label.optie .mono { font-family: "DMMono", "DM Mono", ui-monospace, monospace; letter-spacing: 0; }

/* Mono-hoofdletters alleen voor de kleinste kopjes (eyebrow, navigatiekop, veldlabel, tabelkop).
   Statussen, deadlines, tabs, terug-links en knoppen: gewoon Inter, rustiger en leesbaarder. */
.status, .zacht .status, .zacht main .status, .tag, .chip,
.les-due, .zacht .les-due, .zacht main .les-due, .deadline, .zacht .deadline,
.back, .zacht .back, .zacht main .back, .tabs a, .zacht .tabs a,
.held-klas, .zacht .held-klas, .zacht main .held-klas, .zacht .held-knop, .zacht main .held-knop,
.btn, .zacht .btn, .zacht main .btn, .auth-card .btn, .side-help, .meer, td.actions button.link,
.side nav a, .zacht .side nav a {
  font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0;
}
.btn, .zacht .btn, .zacht main .btn, .auth-card .btn { font-weight: 600; font-size: .9rem; }
.les-due, .zacht .les-due, .zacht main .les-due { font-size: 13px; font-weight: 600; }
.tabs a, .zacht .tabs a, .side nav a, .zacht .side nav a { font-size: .9rem; font-weight: 500; }
.back, .zacht .back, .zacht main .back, .meer, .side-help { font-size: .85rem; font-weight: 500; }
/* Zelfde specificiteit als de oude .zacht main :is(...)-regel (incl. ".stat span"), dus deze wint */
.zacht main :is(.status, .les-due, .back, .held-klas, .held-knop, .btn, .stat span.x-geen, label.optie, label.check, label.koppel-rij, label.exit-optie, label.soort-optie, label.geen, label.nm-fb-label, label:has(> input[type="radio"]), label:has(> input[type="checkbox"])) {
  font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0;
}
.zacht main .held-klas, .zacht .held-klas { font-size: 13px; font-weight: 600; padding: 4px 12px; }
/* Lange teksten nooit in mono-hoofdletters: lestitels in de voortgangstabel, leerlijnkoppen, jaarthema's, tegellabels */
.zacht main :is(th.rot, th.rot span, th.rot a, .slo-matrix th, .stat span, .stat span.x-geen, .jaarthema, .gevaar-zone summary) {
  font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0;
}
.zacht main :is(th.rot span, .slo-matrix th, .stat span, .stat span.x-geen) { font-weight: 600; font-size: .8rem; }
.auth-foot, .zacht .auth-foot { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: .85rem; }

/* Python en SQL in Digiroute */
.py-wrap textarea.code { tab-size: 4; min-height: 260px; }
iframe.py-uitvoer { width: 100%; height: 260px; min-height: 160px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; flex: none; }
.py-knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.py-knoppen .hint { color: var(--muted); font-size: .8rem; }
.py-knoppen .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.py-invoer { margin-top: 8px; font-size: .9rem; }
.py-invoer summary { cursor: pointer; color: var(--ink-2, #44403c); font-weight: 500; }
.py-invoer textarea { width: 100%; margin-top: 6px; font-family: Consolas, "Courier New", monospace; font-size: .86rem; }
.py-knoppen [data-py-stop][hidden] { display: none; }
.py-samenvatting { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.py-wrap textarea.code { white-space: pre; overflow-x: auto; overflow-wrap: normal; }

/* Blokken programmeren (Blockly + eigen speelveld) */
.code-wrap.blok-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.blokken-werkveld { height: 440px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: #fbfaf8; }
canvas.blokken-speelveld { width: 100%; max-width: 400px; aspect-ratio: 4 / 3; height: auto; display: block; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; cursor: pointer; touch-action: manipulation; }
canvas.blokken-speelveld:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; }
.blok-vlag .ic { color: #4ade80; }
.blok-wrap [data-blok-stop][hidden] { display: none; }
.blok-groot { margin-left: auto; font: inherit; font-size: .75rem; text-transform: none; letter-spacing: 0; background: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 10px; cursor: pointer; color: var(--ink, #1c1917); min-height: 28px; }
.blok-groot:hover { background: #f5f4f1; }
.blok-wrap.vol { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 16px; background: #fff; grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw); align-items: stretch; }
.blok-wrap.vol .blokken-werkveld { height: calc(100dvh - 64px); }
.blok-wrap.vol canvas.blokken-speelveld { max-width: none; }
body.blok-vol-open { overflow: hidden; }
@media (max-width: 760px) { .blokken-werkveld { height: 400px; } .blok-podium { order: -1; } .blok-wrap.vol { grid-template-columns: minmax(0, 1fr); overflow: auto; } .blok-wrap.vol .blokken-werkveld { height: 60dvh; } }
