/* ============================================================
   aigewijs — stijl
   Concept: voorlichting zoals verkeersbebording. Marine-inkt voor
   gezag, signaalgeel voor waarschuwing, één kleur groen voor "doen".
   ============================================================ */
:root {
  --paper: #edf0f4;
  --surface: #ffffff;
  --ink: #0e1b2c;
  --ink-2: #44546a;
  --ink-3: #6a7a90;
  --line: #d3dae3;
  --signal: #ffd21f;
  --signal-soft: #fff4bf;
  --danger: #c8102e;
  --danger-soft: #fde8eb;
  --safe: #0b7a68;
  --safe-soft: #e0f3ef;
  --link: #0a4bd8;
  --rail: #0e1b2c;
  --rail-ink: #dfe6f0;
  --rail-dim: #8fa0b8;
  --sans: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a111d; --surface: #121b2c; --ink: #e8edf5; --ink-2: #b3c0d3; --ink-3: #8394ab; --line: #26334a;
    --signal-soft: #3a3210; --danger: #ff6b81; --danger-soft: #3a1620; --safe: #44d1b9; --safe-soft: #0f2e2a; --link: #8db4ff;
    --rail: #070d17; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a111d; --surface: #121b2c; --ink: #e8edf5; --ink-2: #b3c0d3; --ink-3: #8394ab; --line: #26334a;
  --signal-soft: #3a3210; --danger: #ff6b81; --danger-soft: #3a1620; --safe: #44d1b9; --safe-soft: #0f2e2a; --link: #8db4ff;
  --rail: #070d17; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: #0e1b2c; padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ─── Merk ───────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--signal); color: #0e1b2c; font-size: 17px; letter-spacing: -0.04em; }

/* ─── Knoppen en formulieren ─────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.15); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: #0e1b2c; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-safe { background: var(--safe); border-color: var(--safe); color: #fff; }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.btn-block { width: 100%; }

.field { margin: 0 0 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 4px 0 18px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.msg { min-height: 24px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--safe); }

/* ─── Inlogscherm ────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { background: var(--rail); color: var(--rail-ink); padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 280px; height: 280px; background: repeating-linear-gradient(-45deg, var(--signal) 0 18px, #0e1b2c 18px 36px); transform: rotate(0deg); opacity: .95; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.auth-side .brand { color: #fff; }
.auth-side h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; color: #fff; max-width: 14ch; }
.auth-side p { font-family: var(--serif); font-size: 19px; line-height: 1.6; max-width: 34em; margin: 0 0 14px; color: var(--rail-ink); }
.auth-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 15px; max-width: 30em; }
.auth-facts li { padding-left: 22px; position: relative; }
.auth-facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--signal); transform: rotate(45deg); }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-card .lead { color: var(--ink-2); margin: 0 0 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.tabs button { min-height: 44px; border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { border-left: 6px solid var(--signal); background: var(--signal-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 20px; font-size: 15px; }
.auth-foot { margin-top: 28px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px 36px; gap: 22px; }
  .auth-side p, .auth-facts { display: none; }
  .auth-side h1 { font-size: 32px; max-width: none; margin-bottom: 0; }
  .auth-side::after { width: 120px; height: 120px; right: -30px; bottom: -30px; }
}

/* ─── Applicatie-shell ───────────────────────────────── */
.shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 18px; }
.rail .brand { color: #fff; }
.rail-search { position: relative; }
.rail-search input { width: 100%; min-height: 42px; border-radius: 8px; border: 2px solid #26364f; background: #0a1424; color: #fff; padding: 8px 12px; }
.rail-search input::placeholder { color: var(--rail-dim); }
.nav-group h3 { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--rail-dim); letter-spacing: .01em; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--rail-ink); text-decoration: none; font-size: 15px; line-height: 1.3; }
.nav-link:hover { background: #17263d; }
.nav-link[aria-current="page"] { background: var(--signal); color: #0e1b2c; font-weight: 700; }
.nav-link .tick { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #3a4c68; flex: none; }
.nav-link .tick.done { background: var(--safe); border-color: var(--safe); position: relative; }
.nav-link .tick.done::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.nav-link[aria-current="page"] .tick { border-color: #0e1b2c; }
.rail-foot { margin-top: auto; border-top: 1px solid #22314a; padding-top: 16px; font-size: 14px; }
.progress { height: 8px; background: #1d2c45; border-radius: 4px; overflow: hidden; margin: 6px 0 12px; }
.progress > span { display: block; height: 100%; background: var(--signal); }
.rail-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-user a, .rail-user button { color: var(--rail-ink); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 4px 0; font-size: 14px; }

.topbar { display: none; }
.main { padding: clamp(20px, 4vw, 56px); min-width: 0; }
.banner { padding: 12px clamp(20px, 4vw, 56px); font-weight: 600; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.banner.info { background: #dbe8ff; color: #0e1b2c; }
.banner.warning { background: var(--signal); color: #0e1b2c; }
.banner.danger { background: var(--danger); color: #fff; }
.banner button { background: none; border: 2px solid currentColor; color: inherit; border-radius: 6px; padding: 2px 10px; cursor: pointer; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 360px; background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: 10px; z-index: 50; border-left: 6px solid var(--signal); }
.toast button { margin-top: 10px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: min(88vw, 340px); z-index: 40; transform: translateX(-100%); transition: transform .2s ease; height: 100dvh; }
  .rail.open { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 10, 20, .55); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--rail); color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar .brand { color: #fff; font-size: 19px; }
  .topbar .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .topbar button { background: var(--signal); color: #0e1b2c; border: 0; border-radius: 8px; min-height: 40px; padding: 0 14px; font-weight: 700; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } * { animation: none !important; } }

/* ─── Pagina's ───────────────────────────────────────── */
.page { max-width: 46rem; }
.page.wide { max-width: 68rem; }
.crumb { font-size: 14px; color: var(--ink-3); margin: 0 0 10px; }
.crumb a { color: inherit; }
h1.title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 14px; }
.deck { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; }
.prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.72; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--sans); font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 1.9em 0 .55em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .note { font-size: 15px; color: var(--ink-3); font-style: italic; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; }
.prose ol.steps li { counter-increment: s; position: relative; padding: 0 0 0 48px; margin-bottom: 1em; min-height: 34px; }
.prose ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 800 16px var(--sans); }

.meters { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 30px; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.meter { display: grid; gap: 6px; }
.meter b { font-size: 14px; }
.meter .segs { display: flex; gap: 4px; }
.meter .seg { width: 34px; height: 10px; background: var(--line); border-radius: 2px; }
.meter[data-level="1"] .seg.on { background: #7aa95c; }
.meter[data-level="2"] .seg.on { background: #e1b400; }
.meter[data-level="3"] .seg.on { background: #ee7a1c; }
.meter[data-level="4"] .seg.on { background: var(--danger); }
.meter span.lvl { font-size: 14px; color: var(--ink-2); }

.callout { margin: 32px 0; padding: 20px 22px; border-radius: 0 var(--r) var(--r) 0; }
.callout h2 { font-family: var(--sans); font-size: 19px; margin: 0 0 10px; letter-spacing: -0.01em; }
.callout p, .callout li { font-family: var(--serif); font-size: 17.5px; line-height: 1.6; }
.callout p:last-child { margin-bottom: 0; }
.callout.case { background: var(--signal-soft); border-left: 8px solid var(--signal); }
.callout.act { background: var(--safe-soft); border-left: 8px solid var(--safe); }
.callout.act ul { margin: 0; padding-left: 1.2em; }
.callout.act li { margin-bottom: .5em; }

.related { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font-size: 16px; margin: 0 0 10px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; background: var(--surface); }
.related a:hover { border-color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.markrow { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.updated { font-size: 14px; color: var(--ink-3); margin: -14px 0 22px; }

/* ─── Start ──────────────────────────────────────────── */
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: .98; letter-spacing: -0.045em; margin: 0 0 18px; max-width: 17ch; }
.hero .deck { max-width: 38em; }
.demo { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; margin: 34px 0 10px; overflow: hidden; max-width: 46rem; }
.demo-head { background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-body { padding: 18px 18px 8px; }
.demo-q { font-weight: 700; margin: 0 0 12px; }
.claim { display: block; width: 100%; text-align: left; border: 2px solid var(--line); background: var(--paper); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; cursor: pointer; font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.claim:hover { border-color: var(--ink); }
.claim .verdict { display: block; font-family: var(--sans); font-size: 15px; font-weight: 700; margin-top: 8px; }
.claim.true { border-color: var(--safe); background: var(--safe-soft); }
.claim.false { border-color: var(--danger); background: var(--danger-soft); }
.claim.true .verdict { color: var(--safe); }
.claim.false .verdict { color: var(--danger); }
.demo-foot { padding: 4px 18px 18px; color: var(--ink-2); font-size: 15px; min-height: 48px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 44px 0 0; border-top: 2px solid var(--ink); }
.tile { padding: 22px 22px 22px 0; text-decoration: none; color: inherit; display: block; border-bottom: 1px solid var(--line); }
.tile + .tile { padding-left: 22px; }
.tile h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--ink-2); font-family: var(--serif); }
.tile:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--signal); }
@media (max-width: 700px) { .tile, .tile + .tile { padding-left: 0; } }

/* ─── Overzichtspagina's en gevarenkaart ─────────────── */
.toplist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toplist li { border-bottom: 1px solid var(--line); }
.toplist a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 4px; text-decoration: none; color: inherit; align-items: start; }
.toplist a:hover, .toplist li.hl a { background: var(--surface); }
.toplist h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.toplist p { grid-column: 1; margin: 0; font-family: var(--serif); color: var(--ink-2); }
.toplist .rt { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 14px; color: var(--ink-3); display: grid; gap: 6px; justify-items: end; }
.pin { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--ink); color: var(--paper); font: 800 14px var(--sans); flex: none; }
.read-tag { color: var(--safe); font-weight: 700; }

.matrix-wrap { margin: 8px 0 34px; max-width: 40rem; }
.matrix-grid { display: grid; grid-template-columns: 28px repeat(4, 1fr); grid-template-rows: repeat(4, minmax(78px, 1fr)) 28px; gap: 3px; }
.mx-cell { border-radius: 4px; padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; align-content: center; justify-content: center; }
.mx-cell[data-s="2"], .mx-cell[data-s="3"] { background: #f4efc9; }
.mx-cell[data-s="4"] { background: #f7e08d; }
.mx-cell[data-s="5"] { background: #fbcb6b; }
.mx-cell[data-s="6"] { background: #f7a65a; }
.mx-cell[data-s="7"] { background: #ee7766; }
.mx-cell[data-s="8"] { background: #d9403f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mx-cell[data-s] { filter: brightness(.82); }
}
.mx-cell .pin { text-decoration: none; transition: transform .12s ease; }
.mx-cell .pin:hover, .mx-cell .pin.hl { transform: scale(1.3); background: #fff; color: #0e1b2c; box-shadow: 0 0 0 3px #0e1b2c; }
.mx-axis-y, .mx-axis-x { font-size: 13px; color: var(--ink-2); font-weight: 700; display: grid; place-items: center; }
.mx-axis-y { writing-mode: vertical-rl; transform: rotate(180deg); grid-column: 1; grid-row: 1 / span 4; }
.mx-axis-x { grid-row: 5; grid-column: 2 / span 4; }
.mx-note { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; max-width: 40rem; }

/* ─── Quiz ───────────────────────────────────────────── */
.quiz { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(18px, 3vw, 30px); max-width: 46rem; }
.quiz-meta { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; }
.quiz h2 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -0.015em; }
.opt { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); margin: 0 0 10px; cursor: pointer; font-family: var(--serif); font-size: 17.5px; }
.opt:hover:not([disabled]) { border-color: var(--ink); }
.opt.right { border-color: var(--safe); background: var(--safe-soft); }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.quiz-exp { margin: 14px 0 0; padding: 14px 16px; border-left: 6px solid var(--signal); background: var(--signal-soft); border-radius: 0 8px 8px 0; font-family: var(--serif); }
.score { font-size: clamp(48px, 9vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 6px 0; }

/* ─── Woordenlijst, bronnen, zoeken ──────────────────── */
.glossary dt { font-weight: 800; font-size: 18px; margin-top: 22px; scroll-margin-top: 20px; }
.glossary dd { margin: 4px 0 0; font-family: var(--serif); font-size: 17.5px; color: var(--ink-2); max-width: 40rem; }
.glossary dt:target { background: var(--signal); display: inline-block; padding: 0 6px; }
.srcgroup { margin-top: 30px; }
.srcgroup h2 { font-size: 20px; margin: 0 0 8px; }
.srclist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.srclist li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.srclist a { font-weight: 700; }
.srclist p { margin: 2px 0 0; color: var(--ink-2); font-family: var(--serif); }
.results { list-style: none; padding: 0; margin: 20px 0 0; border-top: 2px solid var(--ink); }
.results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 800; font-size: 19px; }
.results .sec { font-size: 13px; color: var(--ink-3); display: block; }
.results p { margin: 4px 0 0; font-family: var(--serif); color: var(--ink-2); }
.searchbar { display: flex; gap: 10px; max-width: 34rem; }

/* ─── Account en beheer ──────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 0 0 22px; }
.panel h2 { font-size: 19px; margin: 0 0 14px; letter-spacing: -0.01em; }
.panel p { margin: 0 0 12px; color: var(--ink-2); }
.panel.danger { border: 2px solid var(--danger); }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--line); }
.status-pill.good { background: var(--safe-soft); color: var(--safe); }
.status-pill.bad { background: var(--danger-soft); color: var(--danger); }
.status-pill.warn { background: var(--signal-soft); color: var(--ink); }
.qr { background: #fff; padding: 12px; display: inline-block; border-radius: 8px; margin: 8px 0; }
.qr img, .qr canvas { display: block; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--paper); padding: 8px 12px; border-radius: 6px; word-break: break-all; display: inline-block; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--signal); border-radius: 6px; padding: 14px 16px; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: 14px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-height: 460px; overflow-y: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl th { position: sticky; top: 0; background: var(--paper); font-size: 13px; z-index: 1; }
.tbl td.wrap { white-space: normal; min-width: 220px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.keybox code { font: 700 17px ui-monospace, Menlo, Consolas, monospace; background: var(--paper); padding: 8px 12px; border-radius: 6px; letter-spacing: .04em; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin: 0; flex: 1 1 200px; }
.empty { padding: 24px; color: var(--ink-3); text-align: center; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0 } .kv dt { margin-top: 10px; } }
@media print { .rail, .topbar, .markrow, .pager, .banner { display: none !important; } .shell { display: block; } body { background: #fff; } }

/* hulpklassen (CSP laat geen inline style toe) */
.full { min-height: 100vh; }
.brand-mb { margin-bottom: 28px; }
.mt { margin-top: 18px; }
.mb0 { margin-bottom: 0; }
.msg:empty { min-height: 0; margin: 0; }
