@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: var(--text-sm) / var(--lh-sm) var(--font-sans); color: var(--color-text); background: var(--color-bg); font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--color-text-muted); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- primitives ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-sm); padding: 0 var(--s-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: var(--color-surface-raised); cursor: pointer; white-space: nowrap; font-weight: 500; }
.btn:hover { background: var(--color-row-hover); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn--danger { color: var(--color-danger); }
.btn--danger:hover { background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--lg { height: var(--h-md); padding: 0 var(--s-4); }
.input, .select, .textarea { width: 100%; min-height: var(--h-sm); padding: var(--s-1) var(--s-2); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface-raised); }
.textarea { min-height: 5rem; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.field { display: grid; gap: var(--s-1); }
.field > label, .label { font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: 600; color: var(--color-text-muted); }
.field-error { color: var(--color-danger); font-size: var(--text-xs); line-height: var(--lh-xs); }
.kbd { font: var(--text-xs) / var(--lh-xs) var(--font-mono); padding: 0 var(--s-1); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); color: var(--color-text-muted); }

.badge { display: inline-flex; align-items: center; height: 1.25rem; padding: 0 var(--s-2); border-radius: 999px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.badge--prospect { background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); }
.badge--actief { background: var(--color-success-subtle); color: var(--color-on-success-subtle); }
.badge--gepauzeerd { background: var(--color-warning-subtle); color: var(--color-on-warning-subtle); }
.badge--vertrokken { background: var(--color-surface-sunken); color: var(--color-text-muted); }
.badge--nieuw { background: var(--color-success-subtle); color: var(--color-on-success-subtle); }
.badge--duplicaat { background: var(--color-warning-subtle); color: var(--color-on-warning-subtle); }
.badge--fout { background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); }
.tag { display: inline-flex; align-items: center; height: 1.25rem; padding: 0 var(--s-2); border-radius: var(--radius-sm); background: var(--color-surface-sunken); font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }

/* ---------- app-indeling ---------- */
.app { display: grid; grid-template-rows: auto 1fr; height: 100vh; }
.topbar { display: flex; align-items: center; gap: var(--s-3); height: var(--h-lg); padding: 0 var(--s-4); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.topbar h1 { font-size: var(--text-md); line-height: var(--lh-md); font-weight: 700; margin-right: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); min-height: 0; }
.pane { min-height: 0; display: flex; flex-direction: column; background: var(--color-surface); }
.listpane { border-right: 1px solid var(--color-border); }

.searchbar { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-3) var(--s-4) var(--s-2); }
.searchbar .input { height: var(--h-md); font-size: var(--text-md); }
.searchwrap { position: relative; flex: 1; }
.searchwrap .kbd { position: absolute; right: var(--s-3); top: 50%; transform: translateY(-50%); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0 var(--s-4) var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-1); height: 1.75rem; padding: 0 var(--s-3); border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-surface-raised); cursor: pointer; font-size: var(--text-xs); font-weight: 500; }
.chip:hover { background: var(--color-row-hover); }
.chip[aria-pressed="true"] { background: var(--color-primary-subtle); border-color: var(--color-primary); color: var(--color-on-primary-subtle); }
.chip .count { color: var(--color-text-muted); }
.chip[aria-pressed="true"] .count { color: inherit; }
.chip--filter { background: var(--color-warning-subtle); border-color: var(--color-warning); color: var(--color-on-warning-subtle); }
.resultmeta { display: flex; gap: var(--s-2); align-items: center; min-height: var(--h-sm); padding: 0 var(--s-4); color: var(--color-text-muted); font-size: var(--text-xs); }

.bulkbar { display: flex; align-items: center; gap: var(--s-2); margin: 0 var(--s-4) var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--radius-md); background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); }
.bulkbar strong { margin-right: auto; }

/* ---------- tabel ---------- */
.tablewrap { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--color-border); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.grid col.c-chk { width: 2.5rem; } .grid col.c-name { width: 26%; } .grid col.c-contact { width: 18%; } .grid col.c-city { width: 13%; }
.grid col.c-status { width: 7.5rem; } .grid col.c-tags { width: 18%; } .grid col.c-upd { width: 7rem; }
.grid thead th { position: sticky; top: 0; z-index: 1; height: var(--h-md); padding: 0 var(--s-2); background: var(--color-surface-sunken); border-bottom: 1px solid var(--color-border-strong); text-align: left; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
.grid th .sort { display: inline-flex; align-items: center; gap: var(--s-1); width: 100%; height: var(--h-sm); padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; text-align: left; color: inherit; }
.grid th .sort:hover { color: var(--color-text); }
.grid th .arrow { display: inline-block; width: 0.75rem; text-align: center; color: var(--color-text-muted); }
.grid th[aria-sort="ascending"] .sort, .grid th[aria-sort="descending"] .sort { color: var(--color-text); }
.grid th[aria-sort="ascending"] .arrow, .grid th[aria-sort="descending"] .arrow { color: var(--color-primary); }
.grid td { height: var(--h-md); padding: 0 var(--s-2); border-bottom: 1px solid var(--color-border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover { background: var(--color-row-hover); }
.grid tbody tr:focus-visible { outline-offset: -2px; }
.grid tbody tr[aria-selected="true"] { background: var(--color-row-selected); }
.grid tbody tr.is-checked { background: var(--color-row-selected); }
.grid .chk input { width: 1rem; height: 1rem; margin: 0; opacity: 0; cursor: pointer; }
.grid tr:hover .chk input, .grid tr:focus-within .chk input, .grid tr.is-checked .chk input, .grid.has-selection .chk input, .grid .chk input:focus-visible { opacity: 1; }
.grid .name { font-weight: 600; }
.grid .tags { display: flex; gap: var(--s-1); overflow: hidden; }
.grid td.num { text-align: right; }

.empty { padding: var(--s-8) var(--s-4); text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.empty p { margin: 0; }
.more { padding: var(--s-3); text-align: center; }

/* ---------- klantkaart ---------- */
.card { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.card-empty { margin: auto; padding: var(--s-8); text-align: center; color: var(--color-text-muted); max-width: 28rem; }
.card-head { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3); }
.card-head h2 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: 700; }
.card-head h2:focus { outline: none; }
.card-head h2:focus-visible { outline: 2px solid var(--color-focus); }
.card-head .sub { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-1); color: var(--color-text-muted); }
.card-head .actions { margin-left: auto; display: flex; gap: var(--s-2); }
.deleted-note { margin: 0 var(--s-4) var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-md); background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); display: flex; gap: var(--s-2); align-items: center; justify-content: space-between; }
[role="tablist"] { display: flex; gap: var(--s-1); padding: 0 var(--s-4); border-bottom: 1px solid var(--color-border); overflow-x: auto; }
[role="tab"] { height: var(--h-md); padding: 0 var(--s-3); border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
[role="tab"]:hover { color: var(--color-text); }
[role="tab"][aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-primary); }
[role="tab"] .count { margin-left: var(--s-1); font-size: var(--text-xs); color: var(--color-text-muted); }
[role="tabpanel"] { flex: 1; min-height: 0; overflow: auto; padding: var(--s-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-4); }
.inline-form { display: grid; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised); margin-bottom: var(--s-4); }
.inline-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--s-3); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.item { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); padding: var(--s-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised); }
.item .meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.item .diff { grid-column: 1 / -1; }
.item p { margin: 0; white-space: pre-wrap; grid-column: 1 / -1; }
.mini { width: 100%; border-collapse: collapse; }
.mini th, .mini td { padding: var(--s-2); border-bottom: 1px solid var(--color-border); text-align: left; }
.mini th { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; }
.mini td.num, .mini th.num { text-align: right; }
.diff { margin: var(--s-1) 0 0; padding: 0; list-style: none; font-size: var(--text-xs); }
.diff del { color: var(--color-danger); } .diff ins { color: var(--color-success); text-decoration: none; }
.tagedit { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; }
.tagedit .tag button { border: 0; background: none; padding: 0 0 0 var(--s-1); cursor: pointer; color: inherit; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: var(--s-6); transform: translateX(-50%); display: grid; gap: var(--s-2); z-index: 50; }
.toast { display: flex; align-items: center; gap: var(--s-3); min-width: 20rem; padding: var(--s-3) var(--s-4); border-radius: var(--radius-md); background: var(--color-text); color: var(--color-surface); box-shadow: var(--shadow-3); }
.toast .btn { background: transparent; color: inherit; border-color: currentColor; }
.toast .timer { margin-left: auto; font-size: var(--text-xs); opacity: 0.8; }
.toast--error { background: var(--color-danger); color: var(--color-on-primary); }

/* ---------- dialoog / import-wizard ---------- */
dialog { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-3); width: min(64rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
dialog::backdrop { background: var(--color-overlay); }
.dlg { display: grid; grid-template-rows: auto auto 1fr auto; max-height: calc(100vh - 2rem); }
.dlg-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--color-border); }
.dlg-head h2 { font-size: var(--text-lg); line-height: var(--lh-lg); margin-right: auto; }
.dlg-body { overflow: auto; padding: var(--s-4) var(--s-6); min-height: 16rem; }
.dlg-foot { display: flex; gap: var(--s-2); justify-content: flex-end; align-items: center; padding: var(--s-3) var(--s-6); border-top: 1px solid var(--color-border); }
.dlg-foot .hint { margin-right: auto; color: var(--color-text-muted); }
.stepper { display: flex; gap: var(--s-2); margin: 0; padding: var(--s-3) var(--s-6); list-style: none; border-bottom: 1px solid var(--color-border); background: var(--color-surface-sunken); counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: var(--s-2); color: var(--color-text-muted); font-weight: 500; counter-increment: step; }
.stepper li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--color-border-strong); font-size: var(--text-xs); }
.stepper li + li::after { order: -1; content: ""; width: var(--s-6); height: 1px; background: var(--color-border-strong); }
.stepper li[aria-current="step"] { color: var(--color-text); }
.stepper li[aria-current="step"]::before { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.stepper li.done::before { content: "✓"; background: var(--color-success-subtle); border-color: var(--color-success); color: var(--color-on-success-subtle); }
.drop { display: grid; place-items: center; gap: var(--s-3); padding: var(--s-12) var(--s-6); border: 2px dashed var(--color-border-strong); border-radius: var(--radius-lg); text-align: center; }
.drop.is-over { border-color: var(--color-primary); background: var(--color-primary-subtle); }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.preview { overflow: auto; max-height: 22rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.preview table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.preview th, .preview td { padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--color-border); text-align: left; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.preview th { position: sticky; top: 0; background: var(--color-surface-sunken); font-size: var(--text-xs); }
.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-bottom: var(--s-4); }
.explain > div { padding: var(--s-3); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-raised); }
.explain p { margin: var(--s-1) 0 0; font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--color-text-muted); }
.bignum { display: grid; gap: var(--s-1); width: 100%; padding: var(--s-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface-raised); text-align: left; cursor: pointer; }
.bignum:hover { border-color: var(--color-primary); }
.bignum strong { font-size: var(--text-xl); line-height: var(--lh-xl); }
.bignum[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); }
.sum { margin: var(--s-2) 0 var(--s-4); }
.callout { padding: var(--s-3) var(--s-4); border-radius: var(--radius-md); background: var(--color-success-subtle); color: var(--color-on-success-subtle); margin-bottom: var(--s-4); }
.callout--warn { background: var(--color-warning-subtle); color: var(--color-on-warning-subtle); }

/* ---------- login ---------- */
.login { display: grid; place-items: center; min-height: 100vh; padding: var(--s-4); }
.login form { display: grid; gap: var(--s-4); width: min(24rem, 100%); padding: var(--s-6); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-2); }
.login h1 { font-size: var(--text-xl); line-height: var(--lh-xl); }
.login-logo { display: flex; }
.login-logo svg { width: 40px; height: 40px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .cardpane { border-top: 1px solid var(--color-border); }
  .explain { grid-template-columns: 1fr; }
}

/* =========================================================
   Sfeerlaag: "Inkt & papier". Alleen tokens, geen ruwe waarden.
   ========================================================= */
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.01em; }
.btn { border-radius: 999px; }
.btn--primary { box-shadow: var(--shadow-1); }
.input, .select, .textarea { border-radius: var(--radius-sm); }
.toast { background: var(--color-toast); color: var(--color-on-toast); border-radius: 999px; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-6); }
.toast--error { background: var(--color-danger); color: var(--color-on-primary); }

/* Kleurtonen voor avatars en tags */
.hue-0 { --h: 25; } .hue-1 { --h: 55; } .hue-2 { --h: 90; } .hue-3 { --h: 140; } .hue-4 { --h: 170; }
.hue-5 { --h: 200; } .hue-6 { --h: 235; } .hue-7 { --h: 270; } .hue-8 { --h: 305; } .hue-9 { --h: 345; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: oklch(var(--hue-bg-l) var(--hue-bg-c) var(--h, 270)); color: oklch(var(--hue-fg-l) var(--hue-fg-c) var(--h, 270));
  font: 700 var(--text-xs) / 1 var(--font-display); letter-spacing: 0.02em; }
.avatar--lg { width: var(--h-xl); height: var(--h-xl); font-size: var(--text-xl); border-radius: var(--radius-lg); }
.tag[class*="hue-"] { background: oklch(var(--hue-bg-l) var(--hue-bg-c) var(--h)); color: oklch(var(--hue-fg-l) var(--hue-fg-c) var(--h)); font-weight: 600; border-radius: 999px; }

/* Topbalk */
.topbar { height: var(--h-xl); padding: 0 var(--s-6); gap: var(--s-3); background: var(--color-surface); }
.brand { display: flex; align-items: center; gap: var(--s-3); margin-right: auto; }
.brand svg { flex: none; }
.brand h1 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: 800; }
.brand .greet { display: block; font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--color-text-muted); font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; }
.logo-mark { color: var(--color-text); } .logo-mark .logo-dot { fill: var(--color-accent-strong); }

/* Kerncijfers */
.app { grid-template-rows: auto auto 1fr; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-3) var(--s-6); background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.kpi { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 var(--s-3); padding: var(--s-2) var(--s-4); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface-raised); text-align: left; cursor: pointer; box-shadow: var(--shadow-1); }
.kpi:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.kpi[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); }
.kpi .ico { grid-row: span 2; display: grid; place-items: center; width: var(--h-md); height: var(--h-md); border-radius: var(--radius-md); font-size: var(--text-lg);
  background: oklch(var(--hue-bg-l) var(--hue-bg-c) var(--h)); color: oklch(var(--hue-fg-l) var(--hue-fg-c) var(--h)); }
.kpi strong { font: 800 var(--text-xl) / var(--lh-xl) var(--font-display); }
.kpi span.l { font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--color-text-muted); }
.kpi[aria-pressed="true"] span.l { color: inherit; }

/* Lijst */
.listpane { background: var(--color-surface); }
.searchbar { padding: var(--s-4) var(--s-4) var(--s-2); }
.searchbar .input { height: var(--h-lg); padding-left: var(--s-12); border-radius: 999px; background: var(--color-surface-raised); box-shadow: var(--shadow-1); }
.searchwrap .lens { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.searchwrap .kbd { right: var(--s-4); }
.chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.grid thead th { background: var(--color-surface); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.6875rem; }
.grid td { height: var(--h-lg); }
.grid tbody tr { position: relative; }
.grid tbody tr td:first-child { box-shadow: inset 3px 0 0 transparent; }
.grid tbody tr:hover td:first-child, .grid tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 var(--color-accent-strong); }
.grid .namecell { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.grid .namecell span { overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--text-xs); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status--prospect { color: var(--color-primary); } .status--actief { color: var(--color-success); }
.status--gepauzeerd { color: var(--color-warning); } .status--vertrokken { color: var(--color-text-muted); }
.bulkbar { border-radius: 999px; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); background: var(--color-toast); color: var(--color-on-toast); box-shadow: var(--shadow-2); }
.bulkbar .btn { background: transparent; color: inherit; border-color: currentColor; }
.bulkbar .select, .bulkbar .input { width: auto; min-width: 9rem; background: var(--color-surface-raised); color: var(--color-text); border-radius: 999px; }
.empty .art, .card-empty .art { color: var(--color-primary); }

/* Klantkaart */
.cardpane { background: var(--color-surface-sunken); }
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-2) var(--s-4); align-items: start; margin: var(--s-4); padding: var(--s-4); border-radius: var(--radius-lg);
  background: var(--color-surface-raised); box-shadow: var(--shadow-1); border: 1px solid var(--color-border); }
.hero h2 { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: 800; }
.hero h2:focus { outline: none; } .hero h2:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hero .sub { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: center; margin-top: var(--s-1); color: var(--color-text-muted); }
.hero .actions { display: flex; gap: var(--s-2); }
.hero .quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-1); }
.hero .stat { padding: var(--s-2) var(--s-3); border-radius: var(--radius-md); background: var(--color-surface-sunken); }
.hero .stat strong { display: block; font: 800 var(--text-md) / var(--lh-md) var(--font-display); }
.hero .stat span { font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--color-text-muted); }
a.btn { text-decoration: none; }
.cardpane [role="tablist"] { margin: 0 var(--s-4); padding: var(--s-1); gap: var(--s-1); border: 0; border-radius: 999px; background: var(--color-surface-raised); box-shadow: var(--shadow-1); }
.cardpane [role="tab"] { height: var(--h-sm); border: 0; border-radius: 999px; }
.cardpane [role="tab"][aria-selected="true"] { background: var(--color-primary); color: var(--color-on-primary); }
.cardpane [role="tab"][aria-selected="true"] .count { color: inherit; }
.item, .inline-form { border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.items .item { border-left: 3px solid var(--color-accent-strong); }
.card-empty { display: grid; justify-items: center; gap: var(--s-3); }
.card-empty h2 { font-size: var(--text-lg); line-height: var(--lh-lg); color: var(--color-text); }
.deleted-note { border-radius: var(--radius-md); }

/* Wizard */
dialog { border-radius: var(--radius-lg); }
.drop { background: var(--color-surface-sunken); }
.stepper li[aria-current="step"]::before { box-shadow: 0 0 0 4px var(--color-primary-subtle); }
.bignum strong { font-family: var(--font-display); font-size: var(--text-2xl); line-height: var(--lh-2xl); }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip .dot[class*="hue-"] { background: oklch(var(--hue-fg-l) var(--hue-fg-c) var(--h)); }
.chip[aria-pressed="true"] .dot { background: currentColor; }
.tabpanel-like { flex: 1; min-height: 0; overflow: auto; }
.card-body { padding: 0 var(--s-4) var(--s-4); }
.card-body form { padding: var(--s-4); border-radius: var(--radius-lg); background: var(--color-surface-raised); border: 1px solid var(--color-border); }
.drop .art { color: var(--color-primary); }
.grid th .sort { text-transform: inherit; letter-spacing: inherit; font-size: inherit; }
a.btn { color: var(--color-text); }

/* ---------- navigatie en menu's ---------- */
.app { grid-template-rows: auto 1fr; }
.skip { position: absolute; left: var(--s-4); top: -10rem; z-index: 60; padding: var(--s-2) var(--s-4); border-radius: 999px; background: var(--color-primary); color: var(--color-on-primary); }
.skip:focus { top: var(--s-2); }
.topbar { gap: var(--s-6); }
.brand { margin-right: 0; }
.brandname { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: 800; font-family: var(--font-display); }
.mainnav { flex: 1; }
.mainnav ul { display: flex; gap: var(--s-1); margin: 0; padding: var(--s-1); list-style: none; width: max-content; border-radius: 999px; background: var(--color-surface-sunken); border: 1px solid var(--color-border); }
.mainnav a { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-sm); padding: 0 var(--s-4); border-radius: 999px; color: var(--color-text-muted); text-decoration: none; font-weight: 600; }
.mainnav a:hover { color: var(--color-text); background: var(--color-surface-raised); }
.mainnav a[aria-current="page"] { background: var(--color-surface-raised); color: var(--color-text); box-shadow: var(--shadow-1); }
.mainnav a[aria-current="page"] svg { color: var(--color-accent); }
.mainnav .count { padding: 0 var(--s-2); border-radius: 999px; background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); font-size: var(--text-xs); line-height: var(--lh-xs); }
.topactions { display: flex; align-items: center; gap: var(--s-2); }
.usermenu { position: relative; margin-left: var(--s-2); }
.userbtn { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-md); padding: 0 var(--s-3) 0 var(--s-1); border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-raised); cursor: pointer; font-weight: 600; }
.userbtn:hover { border-color: var(--color-border-strong); }
.userbtn[aria-expanded="true"] { border-color: var(--color-primary); }
.userbtn .caret { color: var(--color-text-muted); font-size: var(--text-xs); }
.menu { position: absolute; right: 0; top: calc(100% + var(--s-2)); z-index: 40; min-width: 15rem; padding: var(--s-2); border-radius: var(--radius-md); background: var(--color-surface-raised); border: 1px solid var(--color-border); box-shadow: var(--shadow-3); }
.menu-head { margin: 0; padding: var(--s-2) var(--s-3); color: var(--color-text-muted); font-size: var(--text-xs); }
.menu hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--s-1) 0; }
.menu-item { display: block; width: 100%; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--radius-sm); background: none; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--color-row-hover); }
.menu-item--danger { color: var(--color-danger); }

.customers { display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.customers > .split { min-height: 0; }
.chips { flex-direction: column; gap: var(--s-2); }
.chipgroup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.chiplabel { width: 3.5rem; flex: none; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.chiplink { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); }
.chip .dot[class*="status--"] { background: currentColor; }
.chip[aria-pressed="true"] .dot { background: currentColor; color: inherit; }

.page { overflow: auto; padding: var(--s-6); display: grid; align-content: start; gap: var(--s-4); }
.page > * { width: min(64rem, 100%); margin-inline: auto; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.pagehead h2 { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: 800; }
.pagehead h2:focus { outline: none; }
.pagehead p { margin: var(--s-1) 0 0; max-width: 40rem; }
.panel { padding: var(--s-4); border-radius: var(--radius-lg); background: var(--color-surface-raised); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); }
.panel h3 { font-size: var(--text-md); line-height: var(--lh-md); margin-bottom: var(--s-2); text-transform: capitalize; }
.feed { display: grid; gap: var(--s-4); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-3) 0; border-top: 1px solid var(--color-border); }
.feed-item:first-child { border-top: 0; }
.feed-item p { margin: 0; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--color-primary); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rowactions { display: flex; gap: var(--s-2); justify-content: flex-end; flex-wrap: wrap; }
.rowactions .input { width: 12rem; }
@media (max-width: 1200px) { .brand .greet { display: none; } .uname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .mainnav a { padding: 0 var(--s-3); } }

/* ---------- alleen op telefoon zichtbaar ---------- */
.subline, .backbtn, .fab, .selecttoggle { display: none; }
.nm { display: grid; min-width: 0; }
.nm > span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- telefoon ---------- */
@media (max-width: 760px) {
  body { font-size: var(--text-md); }
  .input, .select, .textarea { font-size: var(--text-md); min-height: var(--h-md); } /* 16px: voorkomt inzoomen op iOS */
  .btn { height: var(--h-md); }
  .app { height: 100dvh; grid-template-rows: auto 1fr; padding-bottom: calc(var(--h-xl) + env(safe-area-inset-bottom)); }

  .topbar { height: var(--h-lg); padding: 0 var(--s-4); gap: var(--s-2); }
  .brand svg { width: 32px; height: 32px; }
  .brandname { font-size: var(--text-md); }
  .topactions .btn { display: none; }
  .userbtn { height: var(--h-md); padding: 0 var(--s-1); }

  /* Hoofdmenu als tabbalk onderin */
  .mainnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: var(--s-1) var(--s-2) calc(var(--s-1) + env(safe-area-inset-bottom));
    background: var(--color-surface-raised); border-top: 1px solid var(--color-border); box-shadow: var(--shadow-2); }
  .mainnav ul { width: 100%; justify-content: space-around; padding: 0; border: 0; background: none; }
  .mainnav li { flex: 1; }
  .mainnav a { flex-direction: column; justify-content: center; gap: 2px; width: 100%; height: var(--h-lg); padding: 0; font-size: 0.6875rem; line-height: 1; border-radius: var(--radius-md); }
  .mainnav a svg { width: 22px; height: 22px; }
  .mainnav a[aria-current="page"] { background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); box-shadow: none; }
  .mainnav .count { display: none; }
  .fab { display: grid; place-items: center; position: fixed; right: var(--s-4); bottom: calc(var(--h-xl) + var(--s-4) + env(safe-area-inset-bottom)); z-index: 31;
    width: 3.5rem; height: 3.5rem; border: 0; border-radius: 50%; background: var(--color-accent); color: var(--color-on-primary); box-shadow: var(--shadow-3); cursor: pointer; }
  .customers.has-card ~ .fab, .page:not([hidden]) ~ .fab { display: none; }

  /* Kerncijfers: horizontaal veegbaar */
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-2) var(--s-4); gap: var(--s-2); scrollbar-width: none; }
  .kpi { flex: 0 0 auto; min-width: 9.5rem; scroll-snap-align: start; padding: var(--s-2) var(--s-3); }
  .kpi .ico { width: var(--h-sm); height: var(--h-sm); }
  .kpi strong { font-size: var(--text-lg); line-height: var(--lh-lg); }
  .kpi span.l { white-space: nowrap; }

  /* Lijst: één kolom, compacte rijen */
  .split { grid-template-columns: 1fr; }
  .customers.has-card .listpane, .customers.has-card .kpis { display: none; }
  .customers:not(.has-card) .cardpane { display: none; }
  .listpane { border-right: 0; }
  .searchbar { padding: var(--s-3) var(--s-4) var(--s-2); }
  .searchwrap .kbd { display: none; }
  .chips { gap: var(--s-1); }
  .chipgroup { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chip { flex: none; height: var(--h-sm); }
  .kbdhint { display: none; }
  .selecttoggle { display: inline-flex; margin-left: auto; height: var(--h-sm); }
  .resultmeta { min-height: var(--h-md); }
  .grid col.c-contact, .grid col.c-city, .grid col.c-tags, .grid col.c-upd { width: 0; }
  .grid col.c-name { width: auto; } .grid col.c-status { width: 6.5rem; } .grid col.c-chk { width: 0; }
  .grid th:nth-child(3), .grid td:nth-child(3), .grid th:nth-child(4), .grid td:nth-child(4),
  .grid th:nth-child(6), .grid td:nth-child(6), .grid th:nth-child(7), .grid td:nth-child(7) { display: none; }
  .grid .chk { padding: 0; }
  .grid.select-mode col.c-chk { width: 2.75rem; } .grid.select-mode .chk { padding: 0 var(--s-2); }
  .grid:not(.select-mode) .chk input { display: none; }
  .grid.select-mode .chk input { opacity: 1; width: 1.25rem; height: 1.25rem; }
  .grid td { height: auto; padding-top: var(--s-2); padding-bottom: var(--s-2); }
  .grid .avatar { width: var(--h-md); height: var(--h-md); font-size: var(--text-sm); }
  .subline { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-text-muted); }
  .bulkbar { position: fixed; left: var(--s-2); right: var(--s-2); bottom: calc(var(--h-xl) + var(--s-2) + env(safe-area-inset-bottom)); z-index: 32; flex-wrap: wrap; border-radius: var(--radius-lg); padding: var(--s-2) var(--s-3); }
  .bulkbar strong { width: 100%; }
  .bulkbar .select, .bulkbar .input { flex: 1; min-width: 0; }

  /* Klantkaart schermvullend */
  .cardpane { min-height: 0; overflow: auto; }
  .card { height: auto; min-height: 100%; }
  .backbtn { display: inline-flex; margin: var(--s-3) var(--s-4) 0; align-self: flex-start; }
  .hero { grid-template-columns: auto 1fr; margin: var(--s-3) var(--s-4); }
  .hero .avatar--lg { width: var(--h-lg); height: var(--h-lg); font-size: var(--text-lg); }
  .hero .actions { grid-column: 1 / -1; }
  .hero .actions .btn--ghost { display: none; }
  .hero .quick a.btn { flex: 1 1 100%; justify-content: center; }
  .hero .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .stat strong { font-size: var(--text-sm); }
  .cardpane [role="tablist"] { margin: 0 var(--s-4); border-radius: var(--radius-md); scrollbar-width: none; }
  .cardpane [role="tab"] { flex: none; }
  [role="tabpanel"] { overflow: visible; padding: var(--s-4); }
  .form-grid { grid-template-columns: 1fr; }
  .panel, [role="tabpanel"] { overflow-x: auto; }
  .card-body { padding: 0 var(--s-4) var(--s-4); }

  /* Pagina's */
  .page { padding: var(--s-4); }
  .pagehead { flex-direction: column; align-items: stretch; }
  .pagehead h2 { font-size: var(--text-xl); line-height: var(--lh-xl); }
  .rowactions { justify-content: flex-start; }
  .feed-item { grid-template-columns: auto 1fr; }
  .feed-item time { grid-column: 2; }

  /* Dialogen schermvullend */
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .dlg { max-height: 100dvh; height: 100dvh; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: var(--s-4); padding-right: var(--s-4); }
  .dlg-foot { flex-wrap: wrap; padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); }
  .dlg-foot .hint { width: 100%; }
  .stepper { padding: var(--s-2) var(--s-4); overflow-x: auto; }
  .stepper li + li::after { width: var(--s-3); }
  .mapgrid { grid-template-columns: 1fr 1fr; }
  .drop { padding: var(--s-8) var(--s-4); }

  .toasts { left: var(--s-2); right: var(--s-2); transform: none; bottom: calc(var(--h-xl) + var(--s-12) + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; }
}
/* Grid-kinderen mogen smaller worden dan hun inhoud (voorkomt uitzoomen op telefoon) */
.app, .customers { grid-template-columns: minmax(0, 1fr); }
.customers > *, .split > *, .pane, .chips, .chipgroup { min-width: 0; }
@media (max-width: 760px) {
  .chips { display: grid; grid-template-columns: minmax(0, 1fr); }
  .chipgroup { max-width: 100%; }
}
.page { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .stepper { overflow: visible; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: var(--text-sm); }
  .stepper li + li::after { display: none; }
}
@media (max-width: 760px) {
  .mini thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mini, .mini tbody, .mini tr { display: block; width: 100%; }
  .mini tr { padding: var(--s-2) 0; border-bottom: 1px solid var(--color-border); }
  .mini td { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-1) 0; border: 0; text-align: right; }
  .mini td.num { text-align: right; }
  .mini td::before { content: attr(data-label); flex: none; color: var(--color-text-muted); font-size: var(--text-xs); text-align: left; }
  .mini td:not([data-label])::before, .mini td[data-label=""]::before { content: none; }
  .mini td .select { width: auto; }
  .rowactions { justify-content: flex-end; }
}
@media (max-width: 760px) {
  /* Lijst als rijen-met-kaartjes: grid per rij i.p.v. tabelkolommen */
  .grid, .grid tbody { display: block; width: 100%; }
  .grid colgroup, .grid thead { display: none; }
  .grid tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--color-border); }
  .grid tbody td { display: block; height: auto; border: 0; }
  .grid tbody td.chk { padding: 0; }
  .grid.select-mode tbody td.chk { padding: 0 0 0 var(--s-4); }
  .grid td.name { min-width: 0; padding-left: var(--s-4); }
  .grid td:nth-child(5) { white-space: nowrap; padding-right: var(--s-4); }
  .hero .stat span { display: block; }
}
@media (max-width: 760px) {
  .bulkbar:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .bulkbar strong { grid-column: 1 / -1; }
  .bulkbar .select, .bulkbar .input { width: 100%; }
  .bulkbar .btn { justify-content: center; }
  .customers:has(.bulkbar:not([hidden])) ~ .fab { display: none; }
}

/* ---------- beweging: alleen transform en opacity ---------- */
@keyframes kb-enter { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
@keyframes kb-exit { to { opacity: 0; transform: translateY(var(--rise-exit)); } }
@keyframes kb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kb-pop { from { opacity: 0; transform: scale(0.96) translateY(calc(var(--rise) * -0.5)); } to { opacity: 1; transform: none; } }
.btn, .chip, .kpi, .fab, .userbtn, .bignum, .mainnav a { transition: transform var(--dur-micro) var(--ease-out); }
.btn:hover:not(:disabled), .chip:hover, .fab:hover { transform: scale(var(--hover-scale)); }
.btn:active:not(:disabled), .chip:active, .fab:active, .userbtn:active, .mainnav a:active { transform: scale(var(--press)); }
.kpi:hover, .bignum:hover { transform: translateY(var(--lift)); }
.kpi:active, .bignum:active { transform: scale(var(--press)); }
.toast { animation: kb-enter var(--dur-enter) var(--ease-out) both; }
.toast.is-leaving { animation: kb-exit var(--dur-exit) var(--ease-out) both; }
dialog[open] { animation: kb-enter var(--dur-enter) var(--ease-out) both; }
dialog[open]::backdrop { animation: kb-fade var(--dur-enter) var(--ease-out) both; }
.menu:not([hidden]) { animation: kb-pop var(--dur-micro) var(--ease-out) both; transform-origin: top right; }
.hero, .card-empty, .pagehead, .panel, .bulkbar:not([hidden]) { animation: kb-enter var(--dur-enter) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  /* Alleen opacity, geen beweging */
  .btn, .chip, .kpi, .fab, .userbtn, .bignum, .mainnav a { transition: none; }
  .btn:hover:not(:disabled), .chip:hover, .fab:hover, .kpi:hover, .bignum:hover,
  .btn:active:not(:disabled), .chip:active, .fab:active, .userbtn:active, .mainnav a:active, .kpi:active, .bignum:active { transform: none; }
  .toast, dialog[open], .menu:not([hidden]), .hero, .card-empty, .pagehead, .panel, .bulkbar:not([hidden]) { animation-name: kb-fade; }
  .toast.is-leaving { animation: kb-fade var(--dur-exit) var(--ease-out) reverse both; }
}

/* ---------- raakvlakken >= 44px op telefoon (UX-poort) ---------- */
@media (max-width: 760px) {
  .btn, .chip, .input, .select, .userbtn, .skip, .cardpane [role="tab"], .menu-item { min-height: var(--h-touch); }
  .btn, .chip { height: auto; }
  .userbtn { min-width: var(--h-touch); }
  .tagedit .tag { min-height: var(--h-sm); }
  .tagedit .tag button { min-width: var(--h-touch); min-height: var(--h-touch); margin: calc((var(--h-touch) - var(--h-sm)) / -2) calc(var(--s-2) * -1) calc((var(--h-touch) - var(--h-sm)) / -2) 0; }
  .grid input[type="checkbox"] { width: 1.5rem; height: 1.5rem; }
  .grid.select-mode td.chk { min-width: var(--h-touch); }
}

/* ---------- opvolging ---------- */
.due { display: inline-flex; align-items: center; height: 1.25rem; padding: 0 var(--s-2); border-radius: 999px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.due--late { background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); }
.due--today { background: var(--color-warning-subtle); color: var(--color-on-warning-subtle); }
.due--later { background: var(--color-surface-sunken); color: var(--color-text-muted); font-weight: 600; }
.chip .due-dot--late { background: var(--color-danger); }
.chip .due-dot--today { background: var(--color-warning); }
.subline .due { margin-left: var(--s-1); vertical-align: middle; }
.next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3);
  padding: var(--s-3); border-radius: var(--radius-md); background: var(--color-accent-subtle); color: var(--color-on-accent-subtle); }
.next .label { display: block; font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.next--empty { background: var(--color-surface-sunken); color: var(--color-text); }
.next-actions { display: flex; gap: var(--s-2); }
.exportbtn { margin-left: auto; height: var(--h-sm); }
@media (max-width: 760px) { .exportbtn { display: none; } .next-actions { width: 100%; } .next-actions .btn { flex: 1; justify-content: center; } }
/* Opvolgkolom en filterlabels passend maken */
.grid col.c-upd { width: 9rem; }
.grid col.c-name { width: 24%; } .grid col.c-contact { width: 16%; } .grid col.c-city { width: 12%; } .grid col.c-tags { width: 16%; }
.chiplabel { width: 5rem; }

/* Koppelingen met Cadans en de agenda op de klantkaart */
.koppel { display: grid; gap: var(--s-4); }
.koppel-blok { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--color-border); }
.koppel-blok header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.koppel-blok h3 { font-size: var(--text-md); line-height: var(--lh-md); }
.koppel-lijst { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.koppel-lijst li { display: grid; gap: 2px; }
.koppel-lijst .rij { display: flex; align-items: center; gap: var(--s-2); }
.koppel .pill { padding: 1px var(--s-2); border-radius: 999px; background: var(--color-surface-sunken); color: var(--color-text-muted); font-size: var(--text-xs); line-height: var(--lh-xs); font-weight: 600; }
.koppel .pill--bezig { background: var(--color-primary-subtle); color: var(--color-on-primary-subtle); }
.koppel .pill--review { background: var(--color-accent-subtle); color: var(--color-on-accent-subtle); }
.koppel .pill--klaar { background: var(--color-success-subtle, var(--color-surface-sunken)); color: var(--color-text-muted); }
.koppel-fout { color: var(--color-text-muted); }
