    :root {
      --ink: #0f1729;
      --ink-soft: #1e293b;
      --muted: #64748b;
      --line: #e2e8f0;
      --line-strong: #cbd5e1;
      --bg: #f5f7fb;
      --surface: #ffffff;
      --surface-alt: #f8fafc;
      /* Primair = violet uit het Formator-logo (was generiek blauw) */
      --primary: #6d28d9;
      --primary-hover: #5b21b6;
      --primary-soft: #ede9fe;
      --accent: #0891b2;
      /* Merkpalet — afgeleid uit logo-formator (oranje → paars → cyaan) */
      --brand-orange: #ff6c4f;
      --brand-amber: #ffbe4a;
      --brand-purple: #994eee;
      --brand-cyan: #3dc5ee;
      --brand-gradient: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-purple) 55%, var(--brand-cyan) 100%);
      /* Statuskleur-tripletten (fg / soft-bg / line) — additief (F3, Luna §3) */
      --danger: #b91c1c;
      --danger-soft: #fee2e2;
      --danger-line: #fca5a5;
      --danger-strong: #991b1b;
      --success: #15803d;
      --success-soft: #dcfce7;
      --success-line: #bbf7d0;
      --warn: #a16207;
      --warn-soft: #fef9c3;
      --warn-line: #fffbeb;
      /* Strakkere radii — subtieler, professioneler (Luna, compact & dicht) */
      --radius: 8px;
      --radius-sm: 5px;
      --radius-pill: 999px;
      --radius-focus: 4px;
      /* Spacing-schaal op 4px-basis (F3, Luna §2; compacter afgesteld:
         de mid-stappen een tik dichter zodat verticaal ritme strakker
         wordt zonder benauwd te ogen) */
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 20px;
      --space-6: 28px;
      --space-7: 40px;
      --gap: var(--space-3);
      /* Typografieschaal (F3, Luna §2) */
      --fs-xs: 11.5px;
      --fs-sm: 13px;
      --fs-md: 13.5px;
      --fs-base: 15px;
      --fs-lg: 17px;
      --fs-xl: 22px;
      --fs-2xl: 32px;
      --fw-medium: 500;
      --fw-semibold: 600;
      --fw-bold: 700;
      /* Paginabreedte: header, role-nav, breadcrumb én main zijn allemaal
         hieraan gekoppeld, dus ze blijven automatisch uitgelijnd. Verbreed
         van 1040 → 1200 zodat data-dichte schermen (formatie-bord, tabellen)
         op grote monitors de ruimte benutten i.p.v. smal "geboxed" te staan.
         Formulieren blijven leesbaar smal via eigen max-width (Eva/Luna F6). */
      --container: 1200px;
      --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.06);
      --shadow: 0 2px 8px rgba(15, 23, 41, 0.08);
      --shadow-lg: 0 8px 24px rgba(15, 23, 41, 0.12);
      --header-h: 57px;
      --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
              "Helvetica Neue", Arial, sans-serif;
      --font-display: "Inter", var(--font);
    }
    body { font-feature-settings: "cv11", "ss01"; letter-spacing: -0.01em; }
    h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
    * { box-sizing: border-box; }
    html { color-scheme: light; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    a {
      color: var(--primary);
      text-decoration: none;
    }
    a:hover { text-decoration: underline; }
    :focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
      border-radius: var(--radius-focus);
    }
    hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

    /* Header ---------------------------------------------------------- */
    .site-header {
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
      padding: 12px 24px;
      position: sticky;
      top: 0;
      z-index: 10;
    }
    /* Merk-accentstrip: logo-verloop oranje → paars → cyaan */
    .site-header::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 3px;
      background: var(--brand-gradient);
    }
    .site-header-inner {
      max-width: var(--container);
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: var(--gap);
    }
    .brand {
      display: inline-flex;
      align-items: center;
      color: var(--ink);
      text-decoration: none;
    }
    .brand:hover { text-decoration: none; opacity: .85; }
    .brand img {
      height: 32px;
      width: auto;
      display: block;
    }
    .brand-text {
      font-weight: 700;
      font-size: 17px;
      letter-spacing: -0.01em;
      margin-left: 10px;
    }
    @media (max-width: 480px) {
      .brand img { height: 28px; }
      .brand-text { display: none; }
    }
    .spacer { flex: 1; }
    .user-chip {
      color: var(--muted);
      font-size: 13px;
    }
    .user-chip strong { color: var(--ink); }

    /* Mobile-header wrap-fix (Iris #1 / Nova #4, UI-23) ----------------- */
    /* Onder 720px: header items flex-wrap met smaller gaps; user-chip
       toont alleen username (geen rol-suffix). Onder 480px: wachtwoord-
       link en chip-rol verborgen, alleen logo + uitloggen-knop. */
    @media (max-width: 720px) {
      .site-header { padding: 10px 14px; }
      .site-header-inner { gap: 8px; flex-wrap: wrap; }
      .user-chip { font-size: 12px; }
      .user-chip strong + * { display: none; }
    }
    @media (max-width: 480px) {
      .user-chip { display: none; }
      .site-header .link-btn { display: none; }
      .site-header button.secondary { padding: 6px 10px; font-size: 13px; }
    }

    main {
      max-width: var(--container);
      margin: 0 auto;
      padding: 20px 24px 48px;
    }

    /* Typography ------------------------------------------------------ */
    h1 {
      font-size: 24px;
      font-weight: 700;
      margin: 0 0 6px;
      letter-spacing: -0.015em;
      line-height: 1.2;
    }
    h2 {
      font-size: 16px;
      font-weight: 600;
      margin: 22px 0 8px;
      color: var(--ink);
      line-height: 1.3;
    }
    p { margin: 0 0 10px; }
    small, .muted { color: var(--muted); font-size: 13px; }

    /* Forms ----------------------------------------------------------- */
    form p { margin: 0 0 12px; }
    label {
      display: block;
      font-weight: 600;
      margin-bottom: 4px;
      font-size: 13px;
      color: var(--ink-soft);
    }
    input[type="text"], input[type="email"], input[type="number"],
    input[type="password"], input[type="date"], textarea, select {
      width: 100%;
      max-width: 440px;
      padding: 7px 11px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-sm);
      background: var(--surface);
      font: inherit;
      color: inherit;
      transition: border-color .15s, box-shadow .15s;
    }
    input:focus, textarea:focus, select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-soft);
    }
    .helptext, .form-row small {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 4px;
    }
    ul.errorlist {
      list-style: none;
      padding: 0;
      margin: 4px 0 0;
      color: var(--danger);
      font-size: 13px;
    }

    /* Checkbox-groups (zoals DayCheckboxField) als pill-chips */
    form ul:not(.errorlist):not(.clean) {
      list-style: none;
      padding: 0;
      margin: 4px 0 0;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    form ul:not(.errorlist):not(.clean) li {
      margin: 0;
    }
    form ul:not(.errorlist):not(.clean) li label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-pill);
      background: var(--surface);
      cursor: pointer;
      user-select: none;
      font-size: 14px;
      transition: background .15s, border-color .15s, color .15s;
    }
    form ul:not(.errorlist):not(.clean) li label:hover {
      border-color: var(--primary);
      color: var(--primary);
    }
    form ul:not(.errorlist):not(.clean) li input[type="checkbox"] {
      width: auto;
      margin: 0;
      accent-color: var(--primary);
    }

    /* Checkbox-keuzevelden (CheckboxSelectMultiple) als toggle-chips.
       Django 5.2 rendert deze als <div class="choice-chips"> > <div> >
       <label><input> tekst</label> — niet als <ul>. We leggen de chip-stijl
       dus op die structuur en gebruiken :has() voor de geselecteerde staat,
       zodat dagen/groepen één horizontale rij chips worden i.p.v. een lange
       verticale checkbox-lijst (Eva/Luna F6, P1.3). */
    .choice-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 4px;
    }
    .choice-chips > div { margin: 0; }
    .choice-chips label {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin: 0;
      padding: 6px 13px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-pill);
      background: var(--surface);
      color: var(--ink);
      font-size: 14px;
      font-weight: var(--fw-medium);
      cursor: pointer;
      user-select: none;
      transition: background .15s, border-color .15s, color .15s;
    }
    .choice-chips label:hover {
      border-color: var(--primary);
      color: var(--primary);
    }
    .choice-chips input[type="checkbox"] {
      width: auto;
      margin: 0;
      accent-color: var(--primary);
    }
    .choice-chips label:has(input:checked) {
      border-color: var(--primary);
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: var(--fw-semibold);
    }
    .choice-chips label:has(input:focus-visible) {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    /* Fieldset-styling voor groepen extra vragen */
    form fieldset {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      margin: 10px 0;
    }
    form fieldset legend {
      font-weight: 600;
      padding: 0 6px;
      color: var(--ink-soft);
    }

    /* Form-layout-partial (_form_layout.html) ------------------------- */
    .form-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-width: 560px;
    }
    .form-row { display: flex; flex-direction: column; gap: 4px; }
    .form-row label { margin-bottom: 0; }
    .form-row .req { color: var(--danger); font-weight: 700; }
    .form-row.has-error input,
    .form-row.has-error textarea,
    .form-row.has-error select {
      border-color: var(--danger);
      box-shadow: 0 0 0 3px var(--danger-soft);
    }
    .form-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
      flex-wrap: wrap;
    }
    .form-actions__primary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .form-actions__danger { margin-left: auto; }
    .form-actions__danger form { display: inline; }

    /* Buttons --------------------------------------------------------- */
    button, .btn {
      display: inline-block;
      background: var(--primary);
      color: #fff;
      border: 0;
      padding: 8px 15px;
      border-radius: var(--radius-sm);
      font: inherit;
      font-weight: 600;
      font-size: 13.5px;
      cursor: pointer;
      transition: background .15s, transform .05s, box-shadow .15s;
      box-shadow: var(--shadow-sm);
    }
    button:hover, .btn:hover {
      background: var(--primary-hover);
      text-decoration: none;
      color: #fff;
    }
    button:active, .btn:active { transform: translateY(1px); }
    button.secondary, .btn.secondary {
      background: var(--surface);
      color: var(--ink);
      border: 1px solid var(--line-strong);
    }
    button.secondary:hover, .btn.secondary:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--surface);
    }
    .danger-btn {
      background: var(--danger);
      color: #fff;
    }
    .danger-btn:hover { background: var(--danger-strong); color: #fff; }
    .link-btn {
      background: transparent;
      border: 0;
      padding: 0;
      color: var(--primary);
      font-weight: 500;
      text-decoration: none;
      box-shadow: none;
      font-size: inherit;
    }
    .link-btn:hover { text-decoration: underline; background: transparent; color: var(--primary-hover); }
    /* Destructieve link-knoppen ("verwijder") rusten neutraal-grijs en
       kleuren pas rood bij hover/focus. Voorkomt een muur van rode tekst
       op data-dichte schermen zoals het formatie-bord (Eva/Luna F6, P1.2). */
    .link-btn.danger { color: var(--muted); }
    .link-btn.danger:hover,
    .link-btn.danger:focus-visible { color: var(--danger); }

    /* Tables ---------------------------------------------------------- */
    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    th, td {
      text-align: left;
      padding: 6px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 13.5px;
      vertical-align: middle;
      line-height: 1.35;
    }
    tr:last-child td { border-bottom: 0; }
    th {
      background: var(--surface-alt);
      font-weight: 600;
      color: var(--ink-soft);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      border-bottom: 1px solid var(--line-strong);
      padding-top: 7px;
      padding-bottom: 7px;
    }
    tbody tr td { background: var(--surface); }
    tbody tr:hover td { background: var(--primary-soft); }
    td .muted { font-size: 12px; }
    /* Right-align numerieke cellen via .num-class */
    th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

    /* Lists ----------------------------------------------------------- */
    ul.clean {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    ul.clean li {
      padding: 8px 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      margin-bottom: 5px;
      box-shadow: var(--shadow-sm);
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .row-actions { margin-left: auto; font-size: 13px; color: var(--muted); }
    .row-actions a { color: var(--primary); }

    /* Callouts -------------------------------------------------------- */
    .callout {
      padding: 11px 14px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--surface);
      margin: 12px 0;
      box-shadow: var(--shadow-sm);
    }
    .callout.success { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
    .callout.danger  { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
    .callout.warn    { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn); }

    /* Hero (login + home anoniem) ------------------------------------- */
    .hero {
      text-align: center;
      padding: 56px 16px 32px;
    }
    .hero img.hero-logo {
      max-width: 320px;
      width: 80%;
      height: auto;
      display: block;
      margin: 0 auto 24px;
    }
    /* Login-variant: smaller padding + smaller logo */
    .hero--login { padding: 32px 16px 8px; }
    .hero--login img.hero-logo { max-width: 200px; }
    .hero .tagline {
      color: var(--muted);
      font-size: 17px;
      max-width: 520px;
      margin: 0 auto 24px;
    }
    .hero h1 {
      font-size: 32px;
      letter-spacing: -0.02em;
      margin-bottom: 12px;
      background: var(--brand-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .hero .row { justify-content: center; }
    @media (max-width: 600px) {
      .hero { padding: 32px 16px 16px; }
      .hero h1 { font-size: 26px; }
      .hero img.hero-logo { max-width: 240px; }
    }

    /* Auth (login, Intra-stijl — Nova 2026-06-12) --------------------- */
    /* Eén gecentreerde witte kaart die zweeft op een zachte ambient-
       achtergrond. login.html maakt site-header + role-nav leeg, dus
       geen app-shell — deze stage vult het volledige venster. */
    .auth-stage {
      --auth-radius: 22px;
      /* Paginavullend: breek uit de 1040px-`main`-kolom zodat de ambient
         het hele venster vult (niet "boxed"). overflow-y voor korte
         schermen waar kaart + footer niet passen. */
      position: fixed;
      inset: 0;
      overflow-y: auto;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* Verticaal centreren via auto-marges (zie .auth-card/.auth-footer)
         i.p.v. justify-content:center — die snijdt de bovenkant af bij een
         kaart hoger dan het venster. Met auto-marges klemt het netjes naar
         boven en blijft alles scrollbaar. */
      justify-content: flex-start;
      gap: var(--space-5);
      padding: var(--space-6) var(--space-4);
      /* Zachte ambient: bijna-wit/crème met een lavendel-gloed linksboven
         en een roze-gloed rechtsonder. Gedesatureerd en rustig — niet de
         felle --brand-gradient. */
      background:
        radial-gradient(120% 120% at 12% 8%, rgba(157, 124, 240, 0.16) 0%, rgba(157, 124, 240, 0) 42%),
        radial-gradient(120% 120% at 88% 92%, rgba(244, 144, 196, 0.16) 0%, rgba(244, 144, 196, 0) 45%),
        linear-gradient(180deg, #fbfaff 0%, #fdf8fb 100%);
    }

    /* Zwevende witte kaart, horizontaal + verticaal gecentreerd. */
    .auth-card {
      width: 100%;
      max-width: 480px;
      margin-top: auto;
      background: var(--surface);
      border: 1px solid rgba(226, 232, 240, 0.7);
      border-radius: var(--auth-radius);
      box-shadow: var(--shadow-lg);
      padding: var(--space-7) var(--space-6);
      text-align: center;
    }
    @media (max-width: 540px) {
      .auth-card { padding: var(--space-6) var(--space-5); }
    }

    .auth-card__head {
      margin-bottom: var(--space-6);
    }
    /* Logo + woordmerk, ruim formaat, met marge eronder. */
    .auth-card__logo {
      width: 100%;
      max-width: 240px;
      height: auto;
      display: block;
      margin: 0 auto var(--space-5);
    }
    /* Vette, bijna-zwarte kop — niet de paarse gradient-titel. */
    .auth-card__title {
      font-size: 27px;
      font-weight: var(--fw-bold);
      color: var(--ink);
      margin: 0 0 var(--space-2);
    }
    /* Paarse pay-off, AA-leesbaar op wit (--primary = #6d28d9). */
    .auth-card__payoff {
      font-size: var(--fs-base);
      font-weight: var(--fw-medium);
      color: var(--primary);
      line-height: 1.45;
      margin: 0;
    }

    /* Footer onder de kaart, gecentreerd, klein en grijs. */
    .auth-footer {
      margin: 0 0 auto;
      text-align: center;
      font-size: var(--fs-sm);
      color: var(--muted);
    }

    /* Forms binnen de kaart: labels links uitlijnen voor leesbaarheid. */
    .auth-form { margin: 0; text-align: left; }
    .auth-form .form-grid { max-width: none; }
    .auth-form input[type="email"],
    .auth-form input[type="password"] { max-width: none; }

    .auth-actions {
      margin-top: var(--space-4);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-3);
    }
    .auth-btn--block { display: block; width: 100%; text-align: center; }

    /* SSO-blok bovenaan: prominente gradient pill-knop (à la Intra). */
    .auth-sso { margin-bottom: var(--space-2); }
    .auth-sso__hint { text-align: center; margin: var(--space-2) 0 0; }
    .auth-btn--mls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-2);
      background: linear-gradient(90deg, var(--brand-purple) 0%, #d4459e 100%);
      color: #fff;
      border: 0;
      padding: 12px 18px;
      border-radius: var(--radius-pill);
      font-weight: var(--fw-semibold);
      font-size: var(--fs-base);
      box-shadow: 0 6px 16px rgba(153, 78, 238, 0.32);
    }
    .auth-btn--mls:hover {
      background: linear-gradient(90deg, var(--brand-purple) 0%, #d4459e 100%);
      color: #fff;
      box-shadow: 0 8px 20px rgba(153, 78, 238, 0.42);
    }
    .auth-btn--mls__arrow {
      font-size: var(--fs-lg);
      line-height: 1;
      transition: transform .15s;
    }
    .auth-btn--mls:hover .auth-btn--mls__arrow { transform: translateX(3px); }

    /* "of"-scheiding tussen methoden */
    .auth-sep {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      margin: var(--space-5) 0;
      color: var(--muted);
      font-size: var(--fs-sm);
    }
    .auth-sep::before,
    .auth-sep::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--line);
    }
    .auth-sep span { white-space: nowrap; }

    .auth-magic__title {
      font-size: var(--fs-base);
      font-weight: var(--fw-semibold);
      margin: 0 0 var(--space-1);
    }

    /* Badges ---------------------------------------------------------- */
    .badge {
      display: inline-block;
      padding: 2px 8px;
      background: var(--primary-soft);
      color: var(--primary);
      border-radius: var(--radius-pill);
      font-size: 11.5px;
      font-weight: 600;
      vertical-align: middle;
    }
    .badge.warn { background: var(--warn-soft); color: var(--warn); }

    /* Status-badge (status_badge templatetag) — pill met statustokens;
       was inline-style + hardcoded hex (F4). kind ∈ neutral/success/
       warn/danger/primary. */
    .status-badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: var(--radius-pill);
      font-size: 0.85em;
      font-weight: var(--fw-semibold);
      vertical-align: middle;
      background: var(--line);
      color: var(--ink-soft);
    }
    .status-badge--neutral { background: var(--line);          color: var(--ink-soft); }
    .status-badge--success { background: var(--success-soft);  color: var(--success); }
    .status-badge--warn    { background: var(--warn-soft);     color: var(--warn); }
    .status-badge--danger  { background: var(--danger-soft);   color: var(--danger); }
    .status-badge--primary { background: var(--primary-soft);  color: var(--primary); }

    /* Inline form (logout etc) --------------------------------------- */
    form.inline { display: inline; margin: 0; }

    /* Spacing helpers ------------------------------------------------ */
    .row { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }

    /* Board (drag-drop) ---------------------------------------------- */
    .board {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 12px;
    }
    @media (max-width: 820px) { .board { grid-template-columns: 1fr; } }

    .panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 12px 14px;
      box-shadow: var(--shadow-sm);
    }
    .panel h2 { margin-top: 0; }

    .card-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin: 8px 0 10px;
    }
    .card {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 8px 11px;
      background: var(--surface-alt);
      transition: box-shadow .12s, transform .08s, border-color .12s;
    }
    .card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }
    .card-actions {
      margin: 6px 0 0;
      font-size: 12.5px;
      color: var(--muted);
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .card-actions a, .card-actions .link-btn { font-size: 12.5px; }

    /* Draggable states */
    .lk-card {
      cursor: grab;
      user-select: none;
    }
    .lk-card:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow);
    }
    .lk-card.dragging {
      opacity: 0.55;
      transform: rotate(-1.5deg);
    }
    .lk-card.is-assigned { opacity: 0.7; }

    .groep-slot.dragover {
      border-color: var(--primary);
      background: var(--primary-soft);
      box-shadow: var(--shadow);
    }
    .groep-slot.is-empty .empty-hint { font-style: italic; }
    .groep-slot.is-filled { border-color: var(--success); }
    .groep-slot .slot-inner {
      margin-top: 6px;
      padding: 8px 10px;
      background: var(--surface);
      border: 1px dashed var(--line-strong);
      border-radius: var(--radius-sm);
    }
    .groep-slot.is-filled .slot-inner {
      border-style: solid;
      border-color: var(--success);
      background: var(--success-soft);
    }
    .unassign {
      font-size: 16px !important;
      line-height: 1;
      padding: 0 4px !important;
      margin-left: 6px;
      border-radius: var(--radius-pill) !important;
    }

    /* Groep-grid met dagen --------------------------------------------- */
    .groep-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin: 6px 0 8px;
    }
    .groep-card { border-left: 3px solid var(--line-strong); }
    .groep-card.groep-complete { border-left-color: var(--success); }
    .day-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px;
      margin: 8px 0 4px;
    }
    .day-cell {
      position: relative;
      padding: 8px 8px 8px 8px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-sm);
      background: var(--surface);
      min-height: 52px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      transition: background .12s, border-color .12s, box-shadow .12s;
    }
    .day-cell.empty {
      background: repeating-linear-gradient(
        45deg,
        var(--surface-alt),
        var(--surface-alt) 6px,
        var(--surface) 6px,
        var(--surface) 12px
      );
      border-style: dashed;
    }
    .day-cell.filled {
      border-color: var(--success);
      background: var(--success-soft);
      cursor: grab;
    }
    .day-cell.filled:active { cursor: grabbing; }
    .day-cell.dragging { opacity: 0.55; }
    .day-cell.dragover {
      border-color: var(--primary);
      background: var(--primary-soft);
      box-shadow: var(--shadow);
    }
    .day-cell .day-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--muted);
      letter-spacing: 0.05em;
    }
    .day-cell.filled .day-label { color: var(--success); }
    .day-cell .day-name {
      font-size: 13px;
      font-weight: 600;
      line-height: 1.2;
      word-break: break-word;
    }
    .day-cell .unassign {
      position: absolute;
      top: 4px;
      right: 4px;
      font-size: 14px !important;
      width: 18px;
      height: 18px;
      line-height: 1;
      padding: 0 !important;
      margin: 0 !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Kompas (voortgangsstrip) ---------------------------------------- */
    .kompas {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: stretch;
      padding: 8px 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      margin: 12px 0;
    }
    .kompas-step {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: var(--radius-pill);
      background: var(--surface-alt);
      font-size: 13px;
      color: var(--muted);
      border: 1px solid var(--line);
    }
    .kompas-step.done {
      background: var(--success-soft);
      border-color: var(--success-line);
      color: var(--success);
    }
    .kompas-step .kompas-num {
      width: 20px;
      height: 20px;
      border-radius: var(--radius-pill);
      background: var(--line);
      color: var(--ink);
      font-size: 11px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .kompas-step.done .kompas-num {
      background: var(--success);
      color: #fff;
    }
    .kompas-cta {
      margin-left: auto;
      align-self: center;
      font-weight: 600;
      color: var(--primary);
      font-size: 13.5px;
    }
    .kompas-cta.klaar { color: var(--success); }

    /* KPI-strip ------------------------------------------------------- */
    .kpis {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: 8px 0 14px;
    }
    @media (max-width: 600px) { .kpis { grid-template-columns: 1fr; } }
    .kpi {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 9px 13px;
      box-shadow: var(--shadow-sm);
    }
    .kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
    .kpi-value { font-size: 21px; font-weight: 700; line-height: 1.1; margin-top: 1px; }
    .kpi.warn .kpi-value { color: var(--warn); }
    .kpi.ok .kpi-value { color: var(--success); }

    /* Iconen (ui_extras {% icon %}) — Lucide-stijl inline SVG ---------- */
    .icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }

    /* Empty-state ----------------------------------------------------- */
    .empty-state {
      border: 1.5px dashed var(--line-strong);
      border-radius: var(--radius);
      padding: 22px 18px;
      text-align: center;
      color: var(--muted);
      background: var(--surface-alt);
    }
    /* Consistent icoon boven elke lege staat (gemaskeerd SVG → kleurt mee,
       zonder elke template aan te raken). Inbox-symbool, gedempt. */
    .empty-state::before {
      content: "";
      display: block;
      width: 30px;
      height: 30px;
      margin: 0 auto 10px;
      background: var(--line-strong);
      -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M22%2012h-6l-2%203h-4l-2-3H2%27%2F%3E%3Cpath%20d%3D%27M5.45%205.11%202%2012v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6l-3.45-6.89A2%202%200%200%200%2016.76%204H7.24a2%202%200%200%200-1.79%201.11z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M22%2012h-6l-2%203h-4l-2-3H2%27%2F%3E%3Cpath%20d%3D%27M5.45%205.11%202%2012v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6l-3.45-6.89A2%202%200%200%200%2016.76%204H7.24a2%202%200%200%200-1.79%201.11z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    }
    .empty-state strong { color: var(--ink); font-size: 14px; display: block; margin-bottom: 4px; }
    .empty-state .btn { margin-top: 8px; }

    /* Reason-popover op gevulde cel ----------------------------------- */
    .day-cell.filled { position: relative; }
    .reason-popover {
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--ink);
      color: #fff;
      padding: 8px 10px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      line-height: 1.45;
      width: max-content;
      max-width: 240px;
      text-align: left;
      box-shadow: var(--shadow-lg);
      z-index: 5;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity .12s;
    }
    .reason-popover::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: var(--ink);
    }
    .reason-popover .score {
      font-weight: 700;
      color: var(--success-line);
      margin-bottom: 4px;
      display: block;
    }
    .reason-popover ul { margin: 0; padding-left: 14px; }
    .reason-popover li { margin: 0 0 2px; }
    .day-cell.filled:hover .reason-popover,
    .day-cell.filled:focus-within .reason-popover {
      opacity: 1;
      visibility: visible;
    }

    /* ExtraWerk-badge op leerkracht-kaart ----------------------------- */
    .badge.badge-extrawerk {
      background: var(--warn-soft);
      color: var(--warn);
      margin-right: 4px;
    }
    .badge.badge-extrawerk .link-btn {
      color: var(--warn);
      margin-left: 4px;
      font-weight: 700;
    }

    /* Werkdruksignalen ------------------------------------------------- */
    .loadbar {
      height: 6px;
      border-radius: var(--radius-pill);
      background: var(--line);
      overflow: hidden;
      margin: 6px 0 4px;
    }
    .loadbar span {
      display: block;
      height: 100%;
      background: var(--success);
      border-radius: inherit;
    }
    .loadbar-warn span { background: var(--warn); }
    .loadbar-danger span { background: var(--danger); }
    tr.werkdruk-warn td { background: var(--warn-line); }
    tr.werkdruk-danger td { background: var(--danger-soft); }

    /* Ronde-detail header + sectie-nav (UI-6, 2026-06-01) --------------- */
    .ronde-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .ronde-nav {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .ronde-nav a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-pill);
      background: var(--surface);
      color: var(--ink);
      font-size: 13px;
      font-weight: 500;
      text-decoration: none;
      transition: border-color .15s, color .15s;
    }
    .ronde-nav a:hover { border-color: var(--primary); color: var(--primary); }
    .ronde-nav .pill {
      background: var(--surface-alt);
      color: var(--muted);
      padding: 1px 8px;
      border-radius: var(--radius-pill);
      font-size: 11.5px;
      font-weight: 700;
    }
    .ronde-nav .pill.warn { background: var(--warn-soft); color: var(--warn); }
    .ronde-cta {
      position: sticky;
      /* Quinn M1: top onder site-header (var(--header-h)) — voorkomt overlap */
      top: var(--header-h);
      z-index: 9;
      background: var(--bg);
      padding: 10px 0;
      margin-bottom: 18px;
      border-bottom: 1px solid var(--line);
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .ronde-cta form.inline { margin: 0; }

    /* Mobile-fallback Wijzig-link op cards (UI-7) ----------------------- */
    .card-edit {
      display: inline-block;
      margin-top: 6px;
      font-size: 12px;
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
    }
    .card-edit:hover { text-decoration: underline; }
    /* Op desktop: alleen tonen op hover/focus om bord-rust te bewaren */
    @media (hover: hover) and (pointer: fine) {
      .card-edit { opacity: 0; transition: opacity .15s; }
      .card:hover .card-edit,
      .card:focus-within .card-edit { opacity: 1; }
    }

    /* Toast-systeem (Nova #7, UI-11 2026-06-01) ------------------------ */
    #toast-host {
      position: fixed;
      right: 16px;
      bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 9999;
      pointer-events: none;
    }
    .toast {
      pointer-events: auto;
      background: var(--ink);
      color: #fff;
      padding: 10px 16px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-lg);
      font-size: 13.5px;
      font-weight: 500;
      max-width: 360px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .22s, transform .22s;
    }
    .toast--show { opacity: 1; transform: translateY(0); }
    .toast--success { background: var(--success); }
    .toast--danger  { background: var(--danger); }
    .toast--warn    { background: var(--warn); }

    /* Status-pagina's (dank / al ingevuld / token ongeldig) ------------- */
    .status-page {
      max-width: 480px;
      margin: 40px auto;
      text-align: center;
      padding: 32px 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .status-logo { max-width: 120px; margin-bottom: 16px; opacity: 0.9; }
    .status-icon {
      width: 64px;
      height: 64px;
      margin: 0 auto 16px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      line-height: 1;
    }
    .status-icon--success { background: var(--success-soft); color: var(--success); }
    .status-icon--info    { background: var(--primary-soft); color: var(--primary); }
    .status-icon--locked  { background: #f1f5f9; color: var(--muted); font-size: 28px; }
    .status-page h1 { font-size: 22px; margin: 0 0 8px; }
    .status-lead { font-size: 16px; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }

    /* Publieke formulier-pagina's (Iris #7, UI-14) ---------------------- */
    .public-form {
      max-width: 560px;
      margin: 24px auto;
      padding: 28px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .public-form--wide { max-width: 720px; }
    .public-form__hero {
      text-align: center;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }
    .public-form__logo {
      max-width: 100px;
      margin-bottom: 8px;
      display: inline-block;
    }
    .public-form__hero h1 { margin: 0 0 4px; font-size: 22px; }
    .public-form__hero p { margin: 0; font-size: 14px; }

    /* Utility-classes (Nova #8 cleanup, 2026-06-01; getokeniseerd F3) --- */
    .mt-0 { margin-top: 0 !important; }
    .mt-1 { margin-top: var(--space-1) !important; }
    .mt-2 { margin-top: var(--space-3) !important; }
    .mt-3 { margin-top: var(--space-5) !important; }
    .mb-0 { margin-bottom: 0 !important; }
    .mb-1 { margin-bottom: var(--space-1) !important; }
    .mb-2 { margin-bottom: var(--space-3) !important; }
    .ml-2 { margin-left: var(--space-3) !important; }
    .no-m { margin: 0 !important; }
    .my-1 { margin: var(--space-1) 0 !important; }
    .my-tight { margin: 2px 0 !important; }
    .text-xs { font-size: 12px !important; }
    .text-sm { font-size: var(--fs-sm) !important; }
    .d-inline { display: inline !important; }
    .panel--soft { background: var(--surface-alt); }
    /* Layout-helper: rij met uiteengetrokken einden (vervangt inline
       style="justify-content: space-between") */
    .row--between { justify-content: space-between; }

    /* Filterbalk boven lijsten (was inline style in stage/overview) ---- */
    .board-filters { margin-bottom: var(--space-3); }
    .board-filters input[type="search"] { max-width: 320px; }

    /* Breadcrumbs (Iris #10, UI-16) ----------------------------------- */
    .breadcrumb {
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      font-size: 13px;
    }
    .breadcrumb__inner {
      max-width: var(--container);
      margin: 0 auto;
      padding: 8px 24px;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
      color: var(--muted);
    }
    .breadcrumb a {
      color: var(--muted);
      text-decoration: none;
    }
    .breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
    .breadcrumb__sep { color: var(--line-strong); margin: 0 4px; user-select: none; }
    .breadcrumb__current { color: var(--ink); font-weight: 500; }

    /* Rol-navbalk / focusmenu (F2) ------------------------------------ */
    .role-nav {
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
    }
    .role-nav__inner {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 24px;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }
    .role-nav__link {
      display: inline-flex;
      align-items: center;
      padding: 11px 12px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      border-bottom: 2px solid transparent;
    }
    .role-nav__link:hover {
      color: var(--primary);
      text-decoration: none;
      border-bottom-color: var(--primary-soft);
    }
    .role-nav__hint { color: var(--line-strong); font-weight: 400; margin-left: 4px; }
    .role-nav__spacer { flex: 1; }
    .role-nav__link--noodluik { color: var(--line-strong); font-size: 13px; }
    .role-nav__link--noodluik:hover { color: var(--danger); border-bottom-color: var(--danger-soft); }
    @media (max-width: 720px) {
      .role-nav__inner { padding: 0 14px; gap: 0; }
      .role-nav__link { padding: 10px 10px; }
      .role-nav__spacer { flex-basis: 100%; height: 0; }
    }

    /* Tabel-wrap voor horizontal scroll op mobile (Quinn M2, UI-20) ----
       Belangrijk: op desktop GEEN overflow-x, anders breekt position:
       sticky op de thead. Alleen op mobile (<860px) scrollen we
       horizontaal — sticky-thead is dan toch niet nuttig. */
    .table-wrap { margin-bottom: 16px; }
    .table-wrap > table { margin-bottom: 0; }
    @media (max-width: 860px) {
      .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius);
      }
    }

    /* Tabular-nums op KPI/pills/kompas (Nova #3, UI-21) ----------------- */
    .kpi-value,
    .ronde-nav .pill,
    .kompas-num,
    .badge {
      font-variant-numeric: tabular-nums;
    }

    /* Conflict-marker in preview-popover (Nova #2, UI-24) -------------- */
    .reason-popover .conflict { color: var(--danger-line); }

    /* Back-to-top FAB (Iris #4, UI-26) --------------------------------- */
    .back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 50%;
      background: var(--ink);
      color: #fff;
      font-size: 18px;
      font-weight: 700;
      line-height: 1;
      box-shadow: var(--shadow-lg);
      z-index: 999;
      cursor: pointer;
      transition: opacity .2s, transform .15s;
    }
    .back-to-top:hover { background: var(--ink-soft); transform: translateY(-2px); }
    .back-to-top[hidden] { display: none; }
    @media (max-width: 480px) {
      .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
    }

    /* Home rolspecifieke quick-link cards (Iris #3, UI-28) ------------- */
    .home-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
      margin-top: 16px;
    }
    .home-card {
      display: flex;
      flex-direction: column;
      gap: 3px;
      padding: 14px 15px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      color: var(--ink);
      text-decoration: none;
      transition: border-color .15s, transform .12s, box-shadow .15s;
    }
    .home-card:hover {
      border-color: var(--primary);
      transform: translateY(-1px);
      box-shadow: var(--shadow);
      text-decoration: none;
      color: var(--ink);
    }
    /* Gekleurde icoon-badge bovenin de quicklink-kaart. */
    .home-card__icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      margin-bottom: 8px;
      border-radius: var(--radius);
      background: var(--primary-soft);
      color: var(--primary);
    }
    .home-card--warn .home-card__icon { background: var(--warn-soft); color: var(--warn); }
    .home-card strong { font-size: 15px; font-weight: 600; }
    .home-card .muted { font-size: 13px; }
    .home-card--warn {
      border-color: var(--warn);
      background: var(--warn-soft);
    }
    .home-card--warn strong { color: var(--warn); }
    /* Gebundelde ingang (bv. "Mijn school"): kaart zonder hover-lift,
       met meerdere taaklinks eronder. */
    .home-card--group { cursor: default; }
    .home-card--group:hover {
      border-color: var(--line);
      transform: none;
      box-shadow: var(--shadow-sm);
    }
    .home-card__links {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
      margin-top: 8px;
      font-size: 14px;
    }
    .home-card__links a { font-weight: 500; }

    /* Print (formatie/print.html) — was inline <style> (F3) ----------- */
    @media print {
      .site-header, .no-print { display: none !important; }
      main { padding: 0 !important; }
      body { background: #fff !important; }
      table { box-shadow: none !important; }
      .print-grid td { font-size: 12px; }
    }
    .print-grid td.empty { color: var(--muted); font-style: italic; }
    .print-grid td.filled { background: var(--success-soft); }
