/* nakijken.com — huisstijl
   Rustig, professioneel en onderwijskundig: warm papier, diep inktblauw, rode correctiepen. */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --surface: #ffffff;
  --ink: #18263b;
  --ink-2: #33445c;
  --muted: #66727f;
  --line: #e2ddd2;
  --line-strong: #cfc8b9;
  --brand: #1d4472;
  --brand-2: #2a5a92;
  --brand-soft: #e7eef7;
  --pen: #c3272b;
  --pen-soft: #fbe9e8;
  --ok: #2f7a4b;
  --ok-soft: #e5f2ea;
  --warn: #a8660b;
  --warn-soft: #fbf0dc;
  --gold: #b8892b;

  --c-spelling: #c3272b;
  --c-dt: #7a3fb0;
  --c-interpunctie: #c47a0c;
  --c-grammatica: #1f62b5;
  --c-zinsbouw: #12827a;
  --c-stijl: #6b7280;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(24, 38, 59, .06);
  --shadow: 0 1px 2px rgba(24, 38, 59, .05), 0 6px 20px rgba(24, 38, 59, .07);
  --shadow-lg: 0 20px 50px rgba(24, 38, 59, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
[x-cloak] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .4em; color: var(--ink); line-height: 1.2; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; border-radius: 4px; }

/* ── Logo ─────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo span.tld { color: var(--muted); font-weight: 400; }

/* ── Knoppen & formulieren ────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 600 14px/1 var(--sans); padding: .7rem 1.05rem; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-danger { background: var(--surface); color: var(--pen); border-color: #e9b9b9; }
.btn-danger:hover { background: var(--pen-soft); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.08); }
.btn-lg { padding: .9rem 1.4rem; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: .45rem .7rem; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: .35rem; color: var(--ink-2); }
.field { margin-bottom: 1rem; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font: 15px/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: .62rem .75rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: middle; }
.input-sm { padding: .4rem .55rem !important; font-size: 14px !important; }

.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 14px; border: 1px solid; }
.alert-error { background: var(--pen-soft); border-color: #efc4c4; color: #8c1d20; }
.alert-ok { background: var(--ok-soft); border-color: #bfdcc9; color: #1f5a36; }
.alert-info { background: var(--brand-soft); border-color: #c8d7ea; color: var(--brand); }

/* ── Badges ───────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 600; padding: .22rem .55rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-uploaded { background: #eef0f3; color: #5a6573; }
.badge-busy { background: var(--brand-soft); color: var(--brand); }
.badge-busy::before { animation: pulse 1.2s infinite ease-in-out; }
.badge-graded { background: var(--warn-soft); color: var(--warn); }
.badge-final { background: var(--ok-soft); color: var(--ok); }
.badge-failed { background: var(--pen-soft); color: var(--pen); }
@keyframes pulse { 50% { opacity: .2; } }

/* ═════════════ Publieke pagina's ═════════════ */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.site-nav { display: flex; align-items: center; gap: .4rem; }
.site-nav a.link { color: var(--ink-2); font-weight: 500; padding: .5rem .7rem; border-radius: 8px; }
.site-nav a.link:hover { background: var(--paper-2); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.2rem; }
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--pen); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.1rem; font-size: 13.5px; color: var(--muted); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }

/* Het "nagekeken blad" in de hero */
.sheet { position: relative; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 34px 34px 30px 58px; transform: rotate(1.2deg);
  background-image: linear-gradient(to right, transparent 44px, #f1c9c9 44px, #f1c9c9 45.5px, transparent 45.5px), repeating-linear-gradient(to bottom, transparent 0, transparent 33px, #dfe7f1 33px, #dfe7f1 34px);
  background-position: 0 0, 0 22px; }
.sheet-title { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 14px; line-height: 20px; }
.sheet-line { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 19px; line-height: 34px; color: #233a7a; white-space: nowrap; }
.mark { position: relative; padding: 0 2px; border-bottom: 2.5px solid var(--pen); }
.mark-note { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font: 600 11px/1 var(--sans); color: var(--pen); white-space: nowrap; }
.sheet-grade { position: absolute; right: 18px; bottom: -30px; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--pen); color: var(--pen); display: grid; place-items: center; font: 700 34px/1 var(--serif); transform: rotate(-8deg); background: rgba(255,255,255,.9); }
.sheet-grade small { display: block; font: 600 10px/1 var(--sans); color: var(--pen); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.kicker { font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pen); margin-bottom: .8rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.step-num { font: 700 13px/1 var(--sans); color: var(--brand); background: var(--brand-soft); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand); }
.feature-icon svg { width: 22px; height: 22px; }
.feature p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }

.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #d3e0f0; }
.cta-band .btn-secondary { border-color: transparent; }

.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Inlogpagina's ────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--brand); color: #e3ecf7; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255,255,255,.06) 39px 40px); pointer-events: none; }
.auth-aside .logo { color: #fff; }
.auth-aside .logo span.tld { color: #a9c0dd; }
.auth-quote { font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; color: #fff; max-width: 22em; position: relative; z-index: 1; }
.auth-quote small { display: block; font: 14px var(--sans); color: #a9c0dd; margin-top: 1rem; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.8rem; }
.auth-card .btn { width: 100%; }
.auth-foot { margin-top: 1.5rem; font-size: 14px; color: var(--muted); text-align: center; }

/* ═════════════ Applicatie ═════════════ */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-head { padding: 20px 20px 16px; }
.sidebar-section { padding: 8px 12px; flex: 1; overflow-y: auto; }
.sidebar-label { display: flex; align-items: center; justify-content: space-between; font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; }
.nav-item { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .65rem; border-radius: 8px; border: 0; background: transparent; font: 500 14px/1.3 var(--sans); color: var(--ink-2); cursor: pointer; }
.nav-item:hover { background: var(--paper); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.nav-item .shared { font-size: 11px; color: var(--muted); font-weight: 500; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 14px 16px; }
.credits-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.credits-card .n { font: 700 1.5rem/1 var(--serif); color: var(--ink); }
.credits-card .l { font-size: 12.5px; color: var(--muted); }
.user-row { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 13px/1 var(--sans); flex: none; }
.user-row .who { flex: 1; min-width: 0; }
.user-row .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row .who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 36px 0; }
.crumbs { display: flex; align-items: center; gap: .4rem; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.content { padding: 18px 36px 64px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.85rem; }
.page-head .meta { color: var(--muted); font-size: 14px; margin-top: .3rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.card-head h3 { margin: 0; font-size: 1.05rem; }

.toets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.toets-card { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; width: 100%; cursor: pointer; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; font: inherit; color: inherit; }
.toets-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.toets-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.toets-card .date { font-size: 12.5px; color: var(--muted); }
.toets-stats { display: flex; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.toets-stats div { font-size: 12px; color: var(--muted); }
.toets-stats b { display: block; font: 700 1.25rem/1.1 var(--serif); color: var(--ink); }
.progress { height: 5px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.new-card { display: grid; place-items: center; min-height: 168px; border: 1.5px dashed var(--line-strong); background: transparent; box-shadow: none; color: var(--muted); font-weight: 600; }
.new-card:hover { color: var(--brand); border-color: var(--brand); background: var(--surface); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: .7rem 1rem; border: 0; background: none; font: 600 14px/1 var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 28px; text-align: center; background: var(--surface); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 34px; height: 34px; color: var(--brand); margin-bottom: 8px; }
.dropzone b { display: block; font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--muted); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover td { background: #fbfaf7; }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; }
.grade-pill { display: inline-block; min-width: 42px; text-align: center; font: 700 15px/1 var(--serif); padding: .35rem .5rem; border-radius: 8px; background: var(--paper-2); }
.grade-pill.good { background: var(--ok-soft); color: var(--ok); }
.grade-pill.bad { background: var(--pen-soft); color: var(--pen); }
.bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--brand-soft); border-bottom: 1px solid #cfdcec; font-size: 14px; color: var(--brand); flex-wrap: wrap; }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--line-strong); margin-bottom: 12px; }
.empty h3 { color: var(--ink); }

/* ── Detailweergave leerlingwerk ──────────────────── */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.pages { display: flex; flex-direction: column; gap: 18px; }
.page-wrap { position: relative; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; line-height: 0; }
.page-wrap img { width: 100%; height: auto; display: block; }
.box { position: absolute; border: 2px solid var(--c, var(--pen)); background: color-mix(in srgb, var(--c, var(--pen)) 14%, transparent); border-radius: 3px; cursor: pointer; transition: background .12s, box-shadow .12s; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.box:hover, .box.hl { background: color-mix(in srgb, var(--c, var(--pen)) 32%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--pen)) 25%, transparent); }
.box.ignored { border-style: dashed; opacity: .35; background: transparent; }
.side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 32px); }
.side .card { display: flex; flex-direction: column; min-height: 0; }
.side .scroll { overflow-y: auto; min-height: 0; }
.grade-card { padding: 22px; display: flex; gap: 20px; align-items: center; }
.grade-big { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--pen); color: var(--pen); display: grid; place-items: center; font: 700 2.3rem/1 var(--serif); flex: none; transform: rotate(-6deg); }
.grade-big.good { border-color: var(--ok); color: var(--ok); }
.grade-big.pending { border-color: var(--line-strong); color: var(--muted); font-size: 1.1rem; transform: none; }
.grade-lines { flex: 1; font-size: 13.5px; }
.grade-lines div { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.grade-lines div:last-child { border-bottom: 0; }
.grade-lines b { font-variant-numeric: tabular-nums; }

.err { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.err:hover, .err.hl { background: #fbfaf7; }
.err.ignored .err-body { opacity: .45; }
.err.ignored .err-fout { text-decoration: line-through; }
.err-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-top: 6px; flex: none; }
.err-body { flex: 1; min-width: 0; }
.err-fout { color: var(--pen); font-weight: 600; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--pen) 60%, transparent); }
.err-arrow { color: var(--muted); margin: 0 .3rem; }
.err-correctie { color: var(--ok); font-weight: 600; }
.err-uitleg { font-size: 13px; color: var(--ink-2); margin-top: .2rem; }
.err-cat { font-size: 11.5px; font-weight: 600; color: var(--c); text-transform: capitalize; }
.toggle { font: 600 12px/1 var(--sans); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: .35rem .5rem; cursor: pointer; height: fit-content; white-space: nowrap; }
.toggle:hover { border-color: var(--ink-2); }
.toggle.on { background: var(--paper-2); }
.cat-filter { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font: 600 12px/1 var(--sans); padding: .35rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.off { opacity: .45; }

.q-row { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.q-row:last-child { border-bottom: 0; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-head b { font-family: var(--serif); }
.q-points { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.q-points input { width: 64px; text-align: right; }
.verdict { font: 600 11.5px/1 var(--sans); padding: .25rem .45rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.verdict-goed { background: var(--ok-soft); color: var(--ok); }
.verdict-deels { background: var(--warn-soft); color: var(--warn); }
.verdict-fout, .verdict-ontbreekt { background: var(--pen-soft); color: var(--pen); }
.q-row p { font-size: 13.5px; color: var(--ink-2); margin: .4rem 0 0; }
.transcript { padding: 16px 18px; font-family: var(--serif); font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.final-banner { display: flex; align-items: center; gap: .6rem; padding: 12px 16px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.final-banner svg { width: 18px; height: 18px; }

/* Normering */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.weight { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.weight i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.weight span { flex: 1; font-weight: 600; font-size: 14px; text-transform: capitalize; }
.weight input { width: 80px; text-align: right; }
.model-table td { vertical-align: top; }
.model-table td input, .model-table td textarea { font-size: 14px; }
.model-table textarea { min-height: 60px; }
.model-table tbody tr { cursor: default; }
.model-table tbody tr:hover td { background: transparent; }

/* ── Modals & meldingen ───────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(24, 38, 59, .45); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(2px); }
.modal { width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { padding: 22px 24px 4px; }
.modal-head h2 { font-size: 1.35rem; margin: 0; }
.modal-body { padding: 14px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 14px 24px 22px; }
.cost-box { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; margin-top: .4rem; }
.cost-box b { font-variant-numeric: tabular-nums; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 360px; }
.toast.error { background: var(--pen); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 48px; color: var(--muted); }
.upload-list { margin-top: 12px; font-size: 13.5px; }
.upload-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mobile-top { display: none; }

/* ── Responsief ───────────────────────────────────── */
@media (max-width: 1100px) {
  .review { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .trust, .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .features { grid-template-columns: 1fr; }
  .sheet { margin: 12px 18px 0 6px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a.link { display: none; }
  .cta-band { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .steps, .form-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  table.list th, table.list td { padding: 10px 8px; }
}

/* ── Afdrukken ────────────────────────────────────── */
@media print {
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .mobile-top, .no-print, .toasts, .tabs, .cat-filter, .toggle { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .review { display: block; }
  .side { position: static; max-height: none; display: block; }
  .side .scroll { overflow: visible; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; margin-bottom: 12px; }
  .page-wrap { box-shadow: none; border: 1px solid #ccc; break-after: page; }
  .box { background: transparent !important; border-width: 2px; }
  .err.ignored, .box.ignored { display: none; }
}
