/* Huisstijl Al Amana (brandbook 2026). Lettertype: Figtree als vrij alternatief voor Gordita.
   Heb je een webfontlicentie voor Gordita? Zet de .woff2-bestanden in /fonts en pas --font aan. */
@font-face { font-family: "Figtree"; src: url(fonts/figtree-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --font: "Gordita", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Primair (paars) */
  --plum-50: #f4eaee; --plum-100: #e8d5dc; --plum: #8c2e51; --plum-700: #541c31;
  /* Secundair (rood), tertiair (blauw), accent (groen), zand */
  --red-50: #fbeaea; --red: #d73131; --red-700: #811d1d;
  --blue-50: #e6f3f8; --blue: #0485b9; --blue-700: #02506f;
  --green-50: #f4f7e9; --green-100: #e9f0d3; --green: #92b323; --green-700: #586b15;
  --sand-50: #fcfaf5; --sand-100: #faf6ee; --creme: #f7f0e3; --sand-200: #eadfc4;

  --ink: #2a2025; --ink-2: #4f4249; --muted: #75666d;
  --paper: var(--creme); --surface: #fff; --line: #e6dcd6; --line-soft: #efe8e1;

  /* Signaalkleuren voor status (functioneel, afgeleid van de merkkleuren) */
  --groen: var(--green-700); --groen-lamp: #92b323; --groen-bg: var(--green-100);
  --oranje: #934a00;         --oranje-lamp: #f39a1e; --oranje-bg: #fdecd4;
  --rood: var(--red-700);    --rood-lamp: #d73131;  --rood-bg: var(--red-50);
  --grijs: #6b5f57;          --grijs-bg: #efe9e0;

  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --nav-w: 264px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--plum); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--plum-700); }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Tegelstrook uit de huisstijl */
.tiles { display: flex; height: var(--tile, 40px); overflow: hidden; }
.tiles i { flex: 0 0 var(--tile, 40px); height: var(--tile, 40px); background-size: cover; }
.t1 { background-image: url(brand/tiles/toevertrouwd.png); } .t2 { background-image: url(brand/tiles/respect.png); }
.t3 { background-image: url(brand/tiles/saamhorigheid.png); } .t4 { background-image: url(brand/tiles/ihsan.png); }
.t5 { background-image: url(brand/tiles/moed.png); }

/* ------------------------------------------------ Layout */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; gap: 0 8px; }
.nav {
  position: sticky; top: 16px; margin: 16px 0 16px 16px; height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border-radius: var(--r-l); padding: 22px 14px 0; display: flex; flex-direction: column; gap: 2px;
}
.brand { display: block; padding: 2px 10px 22px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand-sub { display: block; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--plum); }
.nav a.item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem;
}
.nav a.item:hover { background: var(--sand-100); }
.nav a.item.active { background: var(--plum-50); color: var(--plum-700); font-weight: 700; }
.nav a.item svg { width: 19px; height: 19px; flex: none; color: var(--plum); }
.nav .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav .group { margin: 18px 12px 4px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.nav .foot { margin: auto -14px 0; padding: 16px 24px 18px; border-top: 1px solid var(--line-soft); font-size: .86rem; }
.nav .foot b { display: block; color: var(--plum-700); }
.nav .foot .tiles { --tile: 36px; margin: 12px -24px -18px; }

.main { min-width: 0; padding: 34px 32px 60px 24px; max-width: 1300px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.page-head .sub { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topbar, .bottombar { display: none; }

/* ------------------------------------------------ Elementen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px;
  border-radius: 999px; border: 2px solid var(--plum); background: var(--surface); color: var(--plum);
  font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--plum-50); }
.btn.primary { background: var(--plum); color: #fff; }
.btn.primary:hover { background: var(--plum-700); border-color: var(--plum-700); }
.btn.danger { color: var(--red-700); border-color: var(--red); }
.btn.danger:hover { background: var(--red-50); }
.btn.ghost { border-color: transparent; background: transparent; padding-inline: 10px; }
.btn.ghost:hover { background: var(--plum-50); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn.sm { min-height: 36px; padding: 5px 14px; font-size: .88rem; border-width: 1.5px; }

.panel { background: var(--surface); border-radius: var(--r-m); }
.panel-pad { padding: 22px 24px; }
.panel + .panel, .section + .section, .panel.section { margin-top: 18px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px 2px 9px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; white-space: nowrap; background: var(--grijs-bg); color: var(--grijs);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.groen { background: var(--groen-bg); color: var(--groen); }
.pill.oranje { background: var(--oranje-bg); color: var(--oranje); }
.pill.rood { background: var(--rood-bg); color: var(--rood); }
.pill.plum { background: var(--plum-50); color: var(--plum-700); }
.tag { display: inline-block; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.tag.f { border-color: var(--plum); color: var(--plum); }

/* Formulieren */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field .req { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=file], input[inputmode], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #d9ccc4; border-radius: var(--r-s); background: #fff;
}
input[type=file] { padding: 9px 10px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: 3px solid var(--plum-100); outline-offset: 0; }
input[readonly] { background: var(--sand-100); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum); }
.hint { font-size: .85rem; color: var(--muted); }
.error-box { background: var(--red-50); color: var(--red-700); border-radius: var(--r-s); padding: 11px 15px; font-weight: 500; }
.ok-box { background: var(--green-100); color: var(--green-700); border-radius: var(--r-s); padding: 11px 15px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.list th { text-align: left; font-weight: 700; color: var(--muted); font-size: .84rem; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--sand-50); }
table.list .title { font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.filters .field { min-width: 160px; flex: 1 1 160px; max-width: 280px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 12px; }

/* ------------------------------------------------ Dashboard: signaalpaneel */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.kpi { background: var(--surface); border-radius: var(--r-m); padding: 16px 20px; text-decoration: none; color: inherit; }
.kpi .n { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--plum-700); font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.kpi.rood .n { color: var(--red); }
.kpi.oranje .n { color: #c46a00; }

.board { background: var(--plum-700); color: #f3e6ea; border-radius: var(--r-l); overflow: hidden; }
.board-in { padding: 22px 24px 16px; overflow-x: auto; }
.board > .tiles { --tile: 44px; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; margin-bottom: 14px; }
.board-head h2 { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: #e3cdd5; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.board table { border-collapse: separate; border-spacing: 0 6px; width: 100%; min-width: 760px; }
.board th { font-weight: 500; font-size: .8rem; color: #d7bcc6; text-align: center; padding: 2px 4px; }
.board th.grp { color: #f3e6ea; font-weight: 700; font-size: .84rem; padding-bottom: 0; }
.board th:first-child, .board td:first-child { text-align: left; }
.board td { padding: 0 4px; }
.board td.loc { padding: 4px 16px 4px 0; min-width: 210px; }
.board td.loc a { color: #fff; text-decoration: none; font-weight: 700; display: block; line-height: 1.25; }
.board td.loc small { color: #c9a8b5; font-size: .78rem; }
.board tr:hover td.loc a { text-decoration: underline; }

.lamp {
  --c: var(--rood-lamp);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-width: 60px; height: 46px; border-radius: 14px; text-decoration: none; color: #fff; font-weight: 800; font-size: .88rem;
  background: radial-gradient(120% 90% at 50% 15%, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 82%, #000) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 16px -5px var(--c);
  position: relative; font-variant-numeric: tabular-nums;
}
.lamp small { font-weight: 500; font-size: .7rem; opacity: .9; }
.lamp.groen { --c: var(--groen-lamp); color: #1f2a05; }
.lamp.oranje { --c: var(--oranje-lamp); color: #2e1700; }
.lamp.rood { --c: var(--rood-lamp); }
.lamp .warn {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #fff; color: var(--red-700); font-size: .72rem; line-height: 20px; box-shadow: 0 0 0 2px var(--plum-700);
}
.lamp:hover { filter: brightness(1.07); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot.groen { background: var(--groen-lamp); } .dot.oranje { background: var(--oranje-lamp); } .dot.rood { background: var(--rood-lamp); }
.board-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: .88rem; color: #e3cdd5; }
.board-mobile { display: none; }

.attention ul { list-style: none; margin: 0; padding: 0; }
.attention li { display: grid; grid-template-columns: 12px 1fr; gap: 4px 12px; align-items: baseline; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); }
.attention li:last-child { border-bottom: 0; }
.attention a { color: var(--ink); font-weight: 700; text-decoration: none; }
.attention a:hover { color: var(--plum); text-decoration: underline; }
.attention .meta { grid-column: 2; font-size: .87rem; color: var(--muted); }
.attention .late { color: var(--red-700); font-weight: 700; }
.attention .more { padding: 12px 24px 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; margin-top: 18px; align-items: start; }
.reg-stats { display: grid; grid-template-columns: 1fr auto; }
.reg-stats > * { padding: 11px 24px; border-bottom: 1px solid var(--line-soft); }
.reg-stats > :nth-last-child(-n+2) { border-bottom: 0; }
.reg-stats a { color: var(--ink); text-decoration: none; }
.reg-stats a:hover { color: var(--plum); }
.reg-stats b { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ Checklist */
.cl-head { display: grid; gap: 14px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--plum-100); background: #fff; text-decoration: none; color: var(--plum-700);
  font-weight: 700; font-size: .9rem; display: inline-flex; gap: 7px; align-items: center;
}
.tab:hover { border-color: var(--plum); }
.tab.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.progress { height: 10px; background: var(--plum-50); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--plum); border-radius: 6px; transition: width .3s; }
.progress-row { display: flex; align-items: center; gap: 14px; }
.progress-row .progress { flex: 1; }

.domain { margin: 30px 0 10px; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.domain::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.cl-item { background: var(--surface); border-radius: var(--r-m); margin-bottom: 10px; position: relative; overflow: hidden; }
.cl-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--line); }
.cl-item.s-groen::before { background: var(--groen-lamp); }
.cl-item.s-oranje::before { background: var(--oranje-lamp); }
.cl-item.s-rood::before { background: var(--rood-lamp); }
.cl-item.s-grijs-done::before { background: #b9aca4; }
.item-top { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; padding: 16px 18px 12px 24px; }
.item-title { font-weight: 700; font-size: 1.03rem; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; font-size: .87rem; color: var(--muted); }
.item-done { font-size: .87rem; color: var(--ink-2); margin-top: 8px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-self: start; }
.seg button {
  min-height: 42px; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.seg button:hover:not(:disabled) { border-color: var(--plum-100); background: var(--sand-50); }
.seg button .dot { width: 10px; height: 10px; }
.seg button .dot:not(.groen):not(.oranje):not(.rood) { background: #b9aca4; }
.seg button.on.groen { background: var(--groen-bg); border-color: var(--groen-lamp); color: var(--groen); }
.seg button.on.oranje { background: var(--oranje-bg); border-color: var(--oranje-lamp); color: var(--oranje); }
.seg button.on.rood { background: var(--rood-bg); border-color: var(--rood-lamp); color: var(--rood); }
.seg button.on.grijs { background: var(--grijs-bg); border-color: #b9aca4; }
.seg button:disabled { cursor: default; opacity: .5; }
.seg button.on:disabled { opacity: 1; }
.item-body { border-top: 1px solid var(--line-soft); padding: 18px 18px 18px 24px; background: var(--sand-50); }
.item-body .actions { margin-top: 14px; }
.item-foot { padding: 0 18px 12px 24px; }

.signoff { margin-top: 28px; }
.done-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--r-m); background: var(--green-100); }
.done-banner svg { width: 28px; height: 28px; color: var(--green-700); flex: none; }
.done-banner h2 { color: var(--green-700); }

.cl-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cl-card { display: grid; gap: 8px; padding: 18px 20px; background: #fff; border-radius: var(--r-m); text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.cl-card:hover { border-color: var(--plum-100); }
.cl-card .t { font-weight: 800; color: var(--plum-700); }

/* Bijlagen */
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.file { width: 136px; border-radius: var(--r-s); background: #fff; overflow: hidden; font-size: .78rem; position: relative; border: 1px solid var(--line); }
.file a.thumb { display: flex; align-items: center; justify-content: center; height: 90px; background: var(--plum-50); color: var(--plum-700); text-decoration: none; font-weight: 800; font-size: .9rem; }
.file img { width: 100%; height: 90px; object-fit: cover; display: block; }
.file .fn { padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.file .fm { padding: 0 8px 7px; color: var(--muted); }
.file button.x { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(84,28,49,.85); color: #fff; cursor: pointer; font-weight: 800; line-height: 1; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Geschiedenis / auditlog */
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 12px 24px; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.history li:last-child { border-bottom: 0; }
.changes { margin: 6px 0 0; font-size: .84rem; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; color: var(--ink-2); }
.changes dt { font-weight: 700; }
.changes dd { margin: 0; overflow-wrap: anywhere; }
.changes del { color: var(--red-700); text-decoration: line-through; }
.changes ins { color: var(--green-700); text-decoration: none; font-weight: 700; }
details.chg summary { color: var(--plum); font-size: .85rem; font-weight: 700; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 14px 24px; }

/* Rollen */
.role-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.role-help { font-size: .86rem; color: var(--muted); margin: 0 0 12px; padding-left: 18px; }
.role-help li { margin-bottom: 3px; }
.status-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; }

/* Inloggen en openbare pagina's */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-side { background: var(--plum-700); color: #f3e6ea; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.login-side .in { padding: 48px 56px; flex: 1; display: flex; flex-direction: column; }
.logo-card { background: #fff; border-radius: var(--r-m); padding: 18px 24px; align-self: flex-start; }
.logo-card img { height: 40px; display: block; }
.login-side h1 { font-size: 3rem; color: #fff; margin-top: auto; padding-top: 48px; }
.login-side p { max-width: 44ch; color: #e3cdd5; font-size: 1.08rem; margin-top: 14px; }
.login-side .tiles { --tile: 72px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-l); padding: 32px; display: grid; gap: 16px; }
.login-card h2 { font-size: 1.6rem; font-weight: 800; }
.sso { display: grid; gap: 10px; }
.sso .btn { width: 100%; min-height: 48px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr img { width: 168px; height: 168px; border-radius: var(--r-s); border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; letter-spacing: .06em; overflow-wrap: anywhere; background: var(--sand-100); padding: 8px 10px; border-radius: 8px; }
input.code { font-size: 1.5rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Meldingen */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--plum-700); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 100; box-shadow: 0 6px 24px rgba(40,10,20,.25); max-width: calc(100vw - 32px); }
.toast.err { background: var(--red-700); }
.modal-bg { position: fixed; inset: 0; background: rgba(42,18,28,.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: var(--r-l); padding: 26px; width: 100%; max-width: 480px; display: grid; gap: 14px; }

.prose { max-width: 75ch; }
.prose dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; margin: 0; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
.prose ol { padding-left: 20px; }

/* ------------------------------------------------ Mobiel */
@media (max-width: 900px) {
  .shell { display: block; }
  .nav {
    position: fixed; inset: 0 auto 0 0; margin: 0; height: 100%; border-radius: 0 var(--r-l) var(--r-l) 0; width: min(300px, 86vw); z-index: 60;
    transform: translateX(-105%); transition: transform .2s ease; box-shadow: 4px 0 30px rgba(40,10,20,.2);
  }
  body.nav-open .nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(42,18,28,.35); z-index: 55; }
  .topbar {
    display: flex; position: sticky; top: 8px; z-index: 40; align-items: center; justify-content: space-between; gap: 10px;
    margin: 8px 10px 0; padding: 10px 12px 10px 18px; background: #fff; border-radius: 999px; box-shadow: 0 4px 18px rgba(84,28,49,.08);
  }
  .topbar .brand { padding: 0; }
  .topbar .brand img { height: 24px; }
  .topbar button { background: none; border: 0; color: var(--plum); padding: 6px; cursor: pointer; border-radius: 50%; }
  .topbar button svg { width: 28px; height: 28px; display: block; }
  .bottombar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .bottombar a svg { width: 22px; height: 22px; }
  .bottombar a.active { color: var(--plum); }
  .main { padding: 20px 12px 100px; }
  h1 { font-size: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .panel-pad { padding: 18px; }
  .board-in { padding: 18px 14px 12px; }
  .board table { display: none; }
  .board-mobile { display: grid; gap: 14px; }
  .board-mobile .row a.name { color: #fff; font-weight: 700; text-decoration: none; display: block; margin-bottom: 6px; line-height: 1.25; }
  .board-mobile .lamps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .board-mobile .lamp { min-width: 0; height: 42px; font-size: .78rem; border-radius: 10px; }
  .board-mobile .lamp small { display: none; }
  .board-mobile .heads { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: .7rem; color: #d7bcc6; text-align: center; }
  .item-top { grid-template-columns: 1fr; padding-left: 20px; }
  .item-body, .item-foot { padding-left: 20px; }
  .seg { justify-content: stretch; display: grid; grid-template-columns: repeat(4, 1fr); }
  .seg button { justify-content: center; padding: 6px 4px; font-size: .8rem; flex-direction: column; gap: 3px; min-height: 54px; border-radius: 16px; }
  table.list.cards thead { display: none; }
  table.list.cards, table.list.cards tbody, table.list.cards tr, table.list.cards td { display: block; width: 100%; }
  table.list.cards tr { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
  table.list.cards td { padding: 1px 0; border: 0; }
  table.list.cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .85rem; }
  table.list.cards td.hide-m { display: none; }
  .filters { padding: 14px 16px; }
  .filters .field { max-width: none; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-side .in { padding: 24px 20px 28px; }
  .login-side h1 { font-size: 2rem; padding-top: 22px; }
  .login-side .tiles { --tile: 44px; }
  .logo-card { padding: 12px 18px; }
  .logo-card img { height: 30px; }
  .login-form { padding: 20px 12px 40px; }
  .login-card { padding: 22px 18px; }
  .role-row { grid-template-columns: 1fr; padding: 10px; border: 1px solid var(--line-soft); border-radius: var(--r-s); }
  .prose dl { grid-template-columns: 1fr; }
  .page-head .actions { width: 100%; }
  .toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .nav, .topbar, .bottombar, .actions, .btn { display: none !important; }
  .shell { display: block; } .main { padding: 0; } body { background: #fff; }
}
