/* btd dashboard · kern
   Huisstijl uit het btd.agency brand book v1.0 (btd-wp/brand/brand-book.md): zwart, wit, #f4f4f4, Manrope voor titels,
   Inter voor de rest, pil-knoppen, cobalt voor focus en nieuw, teal voor live en klant. Dit bestand bevat alles wat
   op elke pagina hetzelfde is; per onderdeel staat de rest in pages/*.css.

   Eén schaal voor alles:
   - letters: 13 (mono kopje) · 14 (meta) · 15 (bediening) · 16 (tekst) · 18 · 20 (kaarttitel) · 24 · 32 (paginatitel, groot getal) · 40 (heldgetal)
   - ruimte: 4 · 8 · 12 · 16 · 24 · 32 · 48
   - radius: 8 (klein) · 12 (veld, inzet) · 16 (blok in een kaart) · 20 (kaart) · pil */

/* ---------- 1. Tokens ---------- */
:root {
  --canvas-light: #ffffff; --canvas-dark: #000000;
  --surface-soft: #f4f4f4; --surface-card: #ffffff; --surface-elevated: #16181a; --surface-sunk: #ececee;
  --ink: #191c1f; --charcoal: #3a3d40; --mute: #505a63; --stone: #8d969e; --faint: #c9c9cd;
  --on-dark: #ffffff; --on-dark-mute: rgba(255, 255, 255, .7); --on-dark-faint: rgba(255, 255, 255, .14);
  --hairline-light: #e2e2e7; --hairline-strong: #191c1f;
  --primary: #494fdf; --on-primary: #ffffff;
  --accent-teal: #00a87e; --accent-warn: #e08a00; --accent-danger: #e23b4a;
  --tint-cobalt: #eef0ff; --tint-teal: #e4f6ef; --tint-warm: #fff3df;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 9999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23191c1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --sidebar-w: 248px;
  --page-max: 1240px;
  --gutter: 32px;
  --card-pad: 24px;
}
@media (max-width: 760px) { :root { --gutter: 16px; --card-pad: 16px; } }

/* ---------- 2. Basis ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; font: 400 16px/1.55 var(--font-body); color: var(--ink); background: var(--surface-soft);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--primary); accent-color: var(--primary);
}
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); transition: text-decoration-color .18s var(--ease); }
a:hover { text-decoration-color: currentColor; }
a, button, summary, label, select { -webkit-tap-highlight-color: transparent; }
p { margin: 0; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); text-wrap: balance; hyphens: manual; overflow-wrap: anywhere; }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
/* Een tekst-summary zonder eigen vorm krijgt één uitklapteken, in Chrome en Safari gelijk (wat een eigen teken heeft, staat hier buiten) */
details:not(.explain, .lead-row-more, .card-more, .card-later, .toolbar-more, .template, .person, .label-add, .plan-block, .value-fold, .today-alert) > summary:not([class]):not(:has(.plan-chevron))::after {
  content: ""; display: inline-block; width: 11px; height: 8px; margin-left: 8px; vertical-align: middle; background: var(--chevron) no-repeat center / 11px 8px; transform: rotate(-90deg); transition: transform .18s var(--ease); }
details:not(.explain, .lead-row-more, .card-more, .card-later, .toolbar-more, .template, .person, .label-add, .plan-block, .value-fold, .today-alert)[open] > summary:not([class]):not(:has(.plan-chevron))::after { transform: none; }
code { font: 500 14px/1.4 var(--font-mono); padding: 1px 6px; border-radius: var(--r-xs); background: var(--surface-soft); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }

/* Tekst-hulpjes */
.eyebrow { margin: 0 0 4px; font: 500 13px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.muted { color: var(--mute); }
.small, .meta, .help, .caption { font-size: 14px; }
.meta { display: block; margin-top: 2px; color: var(--mute); }
.help { color: var(--mute); }
.caption { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.late { color: var(--ink); font-weight: 600; }
.trend { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-teal); }
.trend[data-trend="down"] { color: var(--accent-danger); }
.danger-link { color: var(--accent-danger) !important; }
.link-muted { color: var(--mute); font-size: 15px; }

/* ---------- 3. Schil: zijbalk (laptop), balk en tabbalk (iPhone), menu "Meer" ---------- */
.app { min-height: 100vh; }
.app-main { min-width: 0; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 32px var(--gutter) 72px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-inline { width: 1em; height: 1em; margin-left: .15em; vertical-align: -.14em; stroke-width: 2; } /* pijl, extern of sluiten in een link of knop */
.back .icon-inline, .icon-inline:first-child { margin-left: 0; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-w); display: flex; flex-direction: column; gap: 16px;
  padding: calc(20px + env(safe-area-inset-top)) 14px 16px; background: var(--canvas-dark); color: var(--on-dark-mute); overflow: hidden; }
.sidebar-brand { display: inline-flex; align-items: center; padding: 4px 10px 8px; color: var(--on-dark); text-decoration: none; }
.sidebar-brand .logo { width: 89px; height: 24px; }
.sidebar-tools { display: grid; gap: 8px; }
.sidebar-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--on-dark-faint); border-radius: var(--r-full);
  background: transparent; color: var(--on-dark-mute); font: 500 15px/1 var(--font-body); cursor: pointer; transition: border-color .18s var(--ease), color .18s var(--ease); }
.sidebar-search:hover { border-color: rgba(255, 255, 255, .4); color: var(--on-dark); }
.sidebar-search kbd { margin-left: auto; padding: 2px 7px; border: 1px solid var(--on-dark-faint); border-radius: var(--r-xs); font: 600 13px/1.2 var(--font-body); color: var(--on-dark-mute); }
.btn.sidebar-add { height: 40px; font-size: 15px; background: var(--canvas-light); color: var(--canvas-dark); }
.btn.sidebar-add:hover { background: var(--faint); }
/* alleen het menu scrolt; zoeken, Lead toevoegen, Meldingen en het account blijven altijd in beeld */
/* Lopende timer (Uren): wat loopt en hoe lang, met Stop */
.side-timer { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px 0 12px; border: 1px solid var(--accent-teal); border-radius: var(--r-full); }
.side-timer a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font: 500 15px/1 var(--font-body); }
.side-timer .icon { width: 18px; height: 18px; color: var(--accent-teal); }
.side-timer-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-timer .num { margin-left: auto; color: var(--on-dark-mute); font-variant-numeric: tabular-nums; }
.side-timer form { margin: 0; }
.side-timer button { height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-full); background: var(--canvas-light); color: var(--ink); font: 600 14px/1 var(--font-body); cursor: pointer; }
.bar-button.bar-timer { width: auto; min-width: max-content; border-radius: var(--r-full); padding: 0 12px; border-color: var(--accent-teal); color: var(--on-dark); font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; text-decoration: none; }
.side-nav { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 2px; margin: 4px -6px 0 0; padding: 0 6px 0 0; list-style: none;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .24) transparent; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r-md); color: var(--on-dark-mute);
  font: 500 16px/1.2 var(--font-body); text-decoration: none; transition: background .18s var(--ease), color .18s var(--ease); }
.side-link:hover { background: var(--on-dark-faint); color: var(--on-dark); }
.side-link.active { background: var(--canvas-light); color: var(--ink); }
.side-sub { list-style: none; display: grid; gap: 1px; margin: 4px 0 8px; padding: 0 0 0 44px; }
.side-sub a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 4px 10px; border-radius: var(--r-sm);
  color: var(--on-dark-mute); font: 500 15px/1.25 var(--font-body); text-decoration: none; }
.side-sub a:hover { color: var(--on-dark); background: var(--on-dark-faint); }
.side-sub a.active { color: var(--on-dark); background: rgba(255, 255, 255, .1); }
.side-sub .side-count { font-size: 13px; color: var(--on-dark-mute); font-variant-numeric: tabular-nums; }
.side-more-label { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 4px 0 0; padding: 0 10px; border-radius: var(--r-sm); font: 500 13px/1.4 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); cursor: pointer; list-style: none; }
.side-more-label::-webkit-details-marker { display: none; }
.side-more-label::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s var(--ease); }
.side-more[open] > .side-more-label::after { margin-top: 3px; transform: rotate(-135deg); }
.side-more-label:hover { color: var(--on-dark); }
.side-more > .side-sub { margin: 0; padding: 0; }
.sidebar-foot { flex-shrink: 0; margin-top: auto; display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--on-dark-faint); }
.side-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: transparent;
  color: var(--on-dark-mute); font: 500 15px/1.2 var(--font-body); text-align: left; cursor: pointer; text-decoration: none; }
.side-button:hover, .side-button[aria-expanded="true"], .side-button.active { background: var(--on-dark-faint); color: var(--on-dark); }
.side-button .avatar { width: 28px; height: 28px; font-size: 13px; }
.side-button .side-account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notify-count { min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: var(--r-full); background: var(--primary); color: var(--on-dark);
  font: 600 13px/20px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }
.notify-count[data-urgent="true"] { background: var(--accent-danger); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--canvas-light); color: var(--ink); font-size: 14px; font-weight: 600; }

/* Uitklappanelen (meldingen, account) */
.popover { position: fixed; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(72vh, 600px); overflow-y: auto; padding: 8px;
  background: var(--surface-card); color: var(--ink); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(25, 28, 31, .16); }
.js .popover:not(.open) { display: none; }
.popover a, .popover button.menu-item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-md); background: none; color: var(--ink);
  font: 500 15px/1.35 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.popover a:hover, .popover button.menu-item:hover, .popover a.active { background: var(--surface-soft); }
.popover hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--hairline-light); }
.popover form { margin: 0; }
.menu-head { padding: 10px 12px 8px; }
.menu-head strong { display: block; font-weight: 600; }
.menu-head span { display: block; font-size: 14px; color: var(--mute); overflow-wrap: anywhere; }
.nav-subhead { display: block; padding: 8px 12px 2px; font: 500 13px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.nav-subhead .count { margin-left: 4px; }
.nav-desc { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--mute); }
.notify-item { display: grid !important; gap: 2px; }
.notify-item[data-tone] > span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.notify-item[data-tone="bad"] > span:first-child::before { background: var(--accent-danger); }
.notify-item[data-tone="warn"] > span:first-child::before { background: var(--accent-warn); }
.notify-empty { padding: 10px 12px; color: var(--mute); font-size: 15px; }

/* Balk bovenaan en tabbalk onderin: alleen op smalle schermen */
.mobilebar, .tabbar, .section-tabs { display: none; }
.mobilebar { position: sticky; top: 0; z-index: 30; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  min-height: 56px; background: var(--canvas-dark); color: var(--on-dark); view-transition-name: mobilebar; }
.mobilebar .brand { display: inline-flex; color: var(--on-dark); margin-right: auto; }
.mobilebar .brand .logo { width: 80px; height: 22px; }
.bar-button { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--on-dark-faint); border-radius: 50%;
  background: transparent; color: var(--on-dark); cursor: pointer; text-decoration: none; }
.bar-button:hover, .bar-button[aria-expanded="true"] { border-color: var(--canvas-light); }
.bar-button .notify-count { position: absolute; top: -6px; right: -6px; margin: 0; }
.bar-button.add { width: auto; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center; border: 0; background: var(--canvas-light); color: var(--canvas-dark); border-radius: var(--r-full); font: 600 15px/1 var(--font-body); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--surface-card); border-top: 1px solid var(--hairline-light); -webkit-user-select: none; user-select: none; view-transition-name: tabbar; }
.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 50px; padding: 6px 0 4px; border: 0; background: none; color: var(--mute);
  font: 500 13px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.tabbar .icon { width: 24px; height: 24px; }
.tabbar a.active, .tabbar button.active, .tabbar button[aria-expanded="true"] { color: var(--ink); }
.tabbar a.active .icon, .tabbar button.active .icon { stroke-width: 2.3; }

/* Tabbladen van het onderdeel (iPhone; op de laptop staan ze in de zijbalk) */
.section-tabs { gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 0 var(--gutter); scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--hairline-light); border-radius: var(--r-full);
  background: var(--surface-card); color: var(--charcoal); font: 500 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; }
.section-tabs a.active { background: var(--canvas-dark); border-color: var(--canvas-dark); color: var(--on-dark); }
.section-tabs .more-tab { color: var(--mute); border-style: dashed; }

/* Menu "Meer" op de iPhone: alle onderdelen en instellingen in een vel van onderen */
.sheet { width: 100%; max-width: 560px; max-height: calc(100dvh - env(safe-area-inset-top) - 24px); margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--surface-card); color: var(--ink); overflow-y: auto; }
.sheet::backdrop { background: rgba(25, 28, 31, .45); }
.sheet-inner { display: grid; gap: 18px; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-section { display: grid; gap: 4px; }
.sheet-section > a.sheet-title { display: flex; align-items: center; gap: 10px; font: 500 18px/1.3 var(--font-display); color: var(--ink); text-decoration: none; padding: 6px 0; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--hairline-light); border-radius: var(--r-full); color: var(--charcoal); font-size: 15px; font-weight: 500; text-decoration: none; }
.sheet-links a.active { background: var(--canvas-dark); border-color: var(--canvas-dark); color: var(--on-dark); }

@media (min-width: 1025px) {
  .app.has-shell { padding-left: var(--sidebar-w); }
}
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .mobilebar { display: flex; }
  .tabbar { display: grid; }
  .section-tabs { display: flex; }
  .wrap { padding: 20px var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
  .popover { top: calc(64px + env(safe-area-inset-top)) !important; right: 12px !important; left: auto !important; bottom: auto !important; }
}

/* ---------- 4. Paginakop ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; padding: 0; background: none; border: 0; }
.page-head > div:first-child { flex: 1 1 360px; min-width: 0; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: 32px; }
.page-head p { margin-top: 8px; }
.page-head p.muted { max-width: 64ch; font-size: 16px; }
.page-head .page-links { margin-top: 12px; }
.head-actions, .page-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.head-actions form, .page-head-side form { margin: 0; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--ink); }
.streak { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--accent-teal); border-radius: var(--r-full); font-size: 15px; font-weight: 600; }
.streak::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); }
@media (max-width: 760px) {
  .page-head { margin-bottom: 16px; align-items: stretch; }
  .page-head h1, .form-panel h1, .detail h1 { font-size: 24px; }
}

/* ---------- 5. Vlakken: kaart, paneel, tegel en raster ---------- */
.panel, .tile, .notice, .stat, .table-wrap, .empty, .lead, .column {
  background: var(--surface-card); border: 1px solid var(--hairline-light); border-radius: var(--r-xl); }
.panel, .tile { padding: var(--card-pad); }
.panel { margin-bottom: 16px; }
.bento > .panel, .grid-2 > .panel, .panel-stack > .panel, .detail-main > .panel, .detail-side > .panel, .campaign-grid > .panel { margin-bottom: 0; }
.panel h2, .tile h2 { margin: 0; }
.panel > h2:first-child, .panel > .eyebrow + h2 { margin-bottom: 12px; }
.panel > h2 + *, .panel > .section-head + * { margin-top: 12px; }
.panel h3 { margin: 20px 0 8px; }
.panel.compact, .tile.compact { padding: 16px 20px; }
.panel p, .panel li, .panel dd, .tile p, .meta { overflow-wrap: break-word; } /* break-word: lange woorden breken, cellen en knoppen houden hun breedte */
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-head, .panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tile-head > div, .panel-head > div { flex: 1 1 220px; min-width: 0; }
.tile-head a, .panel-head a { font-size: 15px; font-weight: 500; white-space: nowrap; }
.panel-head { margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-head-side { justify-content: flex-end; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 12px; }
.tile-title { margin: 0; font: 500 20px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; font-variant-numeric: tabular-nums; }
.tile.hero .tile-title { font-size: 32px; line-height: 1.15; }
.tile-body { max-width: 60ch; color: var(--mute); font-size: 15px; line-height: 1.55; }
.tile-body strong { color: var(--ink); font-weight: 600; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tile > .list-rows, .tile > .scroll-x { margin-top: 4px; }
a.tile-link { color: inherit; text-decoration: none; transition: border-color .18s var(--ease); }
a.tile-link:hover { border-color: var(--hairline-strong); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.bento > * { min-width: 0; }
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: 1 / -1; }
.bento.compact { gap: 12px; }
.bento.compact .tile { padding: 16px 20px; gap: 2px; }
.bento.compact .tile-title { font-size: 24px; }
.bento.compact .tile-body { font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.panel-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.span-2 { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .bento, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.span-2 { grid-column: auto; }
  .tile.hero .tile-title { font-size: 24px; }
}

/* Inzet: een rustig vlak onderin een tegel voor een ring, kaartje of balk */
.inset { position: relative; display: grid; place-items: center; gap: 12px; margin-top: auto; padding: 20px; border-radius: var(--r-lg); background: var(--surface-soft); overflow: hidden; }
.inset.cobalt { background: var(--tint-cobalt); }
.inset.teal { background: var(--tint-teal); }
.inset.warm { background: var(--tint-warm); }
.inset .ring { width: 140px; height: 140px; }
.inset-card { width: min(100%, 300px); padding: 18px 20px; display: grid; justify-items: center; gap: 6px; background: var(--surface-card); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); text-align: center; }
.inset-card .big { font: 500 32px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inset-card .big small { font-size: 16px; letter-spacing: 0; color: var(--mute); margin-left: 4px; }
.inset-card .caption { color: var(--mute); }
.inset-card .title { font: 500 18px/1.3 var(--font-display); }

/* Detailpagina: hoofdkolom en zijkolom */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 16px; min-width: 0; align-content: start; }
.detail-main > *, .detail-side > *, .stack > * { min-width: 0; }
.detail-side > .panel { padding: var(--card-pad); }
.detail-side > .panel > h2:first-child { margin: 0 0 12px; font: 500 13px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.detail-hero .links { margin-top: 12px; }
.subtitle { margin-top: 4px; color: var(--mute); }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.contact dt { color: var(--mute); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
blockquote { margin: 0; padding: 14px 16px; background: var(--surface-soft); border-radius: var(--r-md); }
.posttext { max-width: 72ch; overflow-wrap: anywhere; }
.meta-line { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hairline-light); font-size: 14px; color: var(--mute); }
@media (min-width: 1101px) { .detail-side { position: sticky; top: 24px; } }
@media (max-width: 1100px) { .detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; gap: 0; } .contact dd { margin-bottom: 10px; } }

/* ---------- 6. Bediening ---------- */
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--canvas-light); border: 1px solid var(--hairline-light); border-radius: var(--r-md);
  height: 44px; padding: 0 14px; transition: border-color .18s var(--ease); max-width: 100%; }
textarea { height: auto; min-height: 96px; padding: 12px 14px; width: 100%; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 38px; background: var(--canvas-light) var(--chevron) no-repeat right 16px center / 11px 8px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; }
input[type="file"] { height: auto; padding: 8px 12px; }
input[type="file"]::file-selector-button { height: 30px; margin-right: 12px; padding: 0 14px; font: inherit; font-weight: 500; color: var(--ink); background: var(--surface-soft); border: 0; border-radius: var(--r-full); cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::placeholder { color: var(--mute); opacity: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: var(--r-full); border: 1px solid transparent;
  background: var(--canvas-dark); color: var(--on-dark); font: 600 15px/1 var(--font-body); letter-spacing: .2px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.btn:hover { background: var(--surface-elevated); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.btn.secondary { background: var(--surface-card); color: var(--ink); border-color: var(--hairline-strong); }
.btn.secondary:hover { background: var(--ink); color: var(--on-dark); }
.btn.compact { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.danger { background: var(--surface-card); color: var(--accent-danger); border-color: var(--accent-danger); }
.btn.danger:hover { background: var(--accent-danger); color: var(--on-dark); }
button.link, .link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
button.link:hover, .link:hover { text-decoration-color: currentColor; }
.btn-long { display: inline; } .btn-short { display: none; }

.form-panel { max-width: 880px; }
.form-panel h1, .detail h1 { font-size: 32px; }
.form-panel .eyebrow, .detail .eyebrow { margin-bottom: 6px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 20px; }
.form .form-section { grid-column: 1 / -1; margin: 16px 0 0; }
.form .form-section:first-of-type { margin-top: 0; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label, .value-grid label, .activity-fields label, .plan-field label { font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent-danger); }
.field.wide, .form .actions { grid-column: 1 / -1; }
.check-field label { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.check-field input, .field input[type="checkbox"], .field input[type="radio"] { width: 18px; } /* anders maakt .field input het vinkje 100% breed */
.errors { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink); }
.errors::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-danger); flex: none; transform: translateY(-1px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.actions a { display: inline-flex; gap: 6px; }
.stack { display: grid; gap: 10px; }
.stack select, .stack input:not([type="checkbox"]):not([type="radio"]), .stack textarea { width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.inline-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .inline-form select { height: 38px; border-radius: var(--r-full); }
.inline-form input[type="file"] { flex: 1 1 200px; min-width: 0; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.value-grid label { display: grid; gap: 6px; }
.value-grid input { width: 100%; height: 40px; }
.value-grid .wide { grid-column: 1 / -1; }
.value-hint { padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-soft); font-size: 15px; }
.value-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dupe-hint { margin-top: 4px; font-size: 14px; color: var(--charcoal); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--hairline-light); border-radius: var(--r-full); font-size: 16px; font-weight: 500; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper input { width: 64px; padding: 0 6px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn { width: 44px; height: 44px; border: 1px solid var(--hairline-light); border-radius: var(--r-full); background: var(--canvas-light); color: var(--ink); font: 500 18px/1 var(--font-body); cursor: pointer; }
.stepper-btn:hover { border-color: var(--ink); }
.upload { margin-top: 12px; }
@media (max-width: 760px) { .form, .value-grid { grid-template-columns: 1fr; } }

/* Tabs en snelfilters: dezelfde pil */
.tabs, .quick { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs { margin-bottom: 16px; }
.tab, .quick-chip, .sort-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid transparent;
  background: none; color: var(--charcoal); font: 500 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.tab:has(.count), .quick-chip:has(.count) { padding-right: 8px; }
.tab:hover, .quick-chip:hover, .sort-link:hover { background: var(--surface-card); border-color: var(--hairline-light); color: var(--ink); }
.tab.active, .tab[aria-selected="true"], .quick-chip.active, .sort-link.active { background: var(--canvas-dark); border-color: var(--canvas-dark); color: var(--on-dark); }
.count { min-width: 24px; padding: 0 7px; border-radius: var(--r-full); background: var(--surface-card); border: 1px solid var(--hairline-light); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.tab.active .count, .tab[aria-selected="true"] .count, .quick-chip.active .count { background: rgba(255, 255, 255, .16); border-color: transparent; color: var(--on-dark); }
.sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 12px; }
@media (max-width: 760px) {
  /* op de iPhone één rij die horizontaal scrolt, in plaats van vijf regels knoppen boven de lijst */
  .tabs, .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 0 var(--gutter); }
  .quick { margin-bottom: 0; }
  .tabs::-webkit-scrollbar, .quick::-webkit-scrollbar { display: none; }
  .tab, .quick-chip { flex: none; }
}

/* Werkbalk boven een lijst: snelfilters, zoeken, keuzes */
.toolbar { display: grid; gap: 10px; margin: 0 0 16px; }
.toolbar-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 10px 12px; background: var(--surface-card); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); }
.toolbar-form input[type="search"] { flex: 1 1 220px; height: 38px; border-radius: var(--r-full); padding-left: 16px; font-size: 15px; }
.toolbar-form label { display: grid; gap: 2px; font-size: 13px; font-weight: 600; color: var(--mute); }
.toolbar-form select { height: 38px; border-radius: var(--r-full); font-size: 15px; font-weight: 500; }
.toolbar-summary { font-size: 15px; color: var(--charcoal); }
.toolbar-summary strong { color: var(--ink); }
/* Op de iPhone staan de keuzelijsten achter "Filters" (_toolbar.html); het zoekveld blijft. Het script in de werkbalk klapt
   hem in; zonder script staat alles open. Op de laptop is er geen knop. */
.toolbar-more { flex: 0 1 auto; min-width: 0; }
.toolbar-more-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.toolbar-more > summary { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--hairline-light); border-radius: var(--r-full);
  background: var(--surface-card); color: var(--ink); font: 500 15px/1 var(--font-body); white-space: nowrap; list-style: none; }
.toolbar-more > summary::after { content: ""; width: 11px; height: 8px; background: var(--chevron) no-repeat center / 11px 8px; transition: transform .18s var(--ease); }
.toolbar-more[open] > summary::after { transform: rotate(180deg); }
@media (min-width: 761px) { .toolbar-more > summary { display: none; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { height: 38px; border-radius: var(--r-full); }
.filters input[type="search"] { min-width: 240px; padding-left: 16px; }
@media (max-width: 760px) {
  .toolbar-form label { flex: 1 1 45%; } .toolbar-form select { width: 100%; }
  .toolbar-form:has(.toolbar-more) input[type="search"] { flex: 1 1 0; min-width: 0; }
  .toolbar-more { flex: none; }
  .toolbar-more > summary { padding: 0 12px; }
  .toolbar-more[open] { flex: 1 1 100%; }
  .toolbar-more[open] > .toolbar-more-body { padding-top: 8px; }
  .filters > * { flex: 1 1 160px; } .filters input[type="search"] { min-width: 0; flex-basis: 100%; }
}

/* Labels, chips, status */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); background: var(--surface-soft); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.chip.shopify, .chip.wordpress, .chip.anders { background: var(--surface-card); border: 1px solid var(--hairline-light); }
.chip.confidence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; border: 1px solid var(--stone); box-sizing: border-box; }
.chip.confidence-hoog::before { background: var(--ink); border-color: var(--ink); }
.chip.confidence-middel::before { background: var(--stone); border-color: var(--stone); }
.tint-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); background: var(--surface-soft); color: var(--charcoal); font: 600 13px/1 var(--font-body); letter-spacing: .2px; white-space: nowrap; }
.tint-pill[data-tone="warm"] { background: var(--tint-warm); color: var(--accent-warn); }
.tint-pill[data-tone="good"] { background: var(--tint-teal); color: var(--accent-teal); }
.tint-pill[data-tone="cobalt"] { background: var(--tint-cobalt); color: var(--primary); }
.tint-pill[data-tone="bad"] { background: var(--surface-soft); color: var(--accent-danger); }
/* Kans (_kans.html): stippen voor de kans op een deal, met de toon van de lead */
.kans { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 12px 0 8px; border-radius: var(--r-full); background: var(--surface-soft); font: 600 13px/1 var(--font-body); letter-spacing: .2px; color: var(--charcoal); white-space: nowrap; }
.kans-dots { display: inline-flex; gap: 4px; }
.kans-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.kans-dots i.on { background: var(--charcoal); }
.kans[data-tone="warm"] { background: var(--tint-warm); color: var(--accent-warn); }
.kans[data-tone="warm"] .kans-dots i.on { background: var(--accent-warn); }
.kans[data-tone="cobalt"] { background: var(--tint-cobalt); color: var(--primary); }
.kans[data-tone="cobalt"] .kans-dots i.on { background: var(--primary); }
.kans-line { margin-bottom: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.status-dot[data-status="nieuw"] { background: var(--primary); }
.status-dot[data-status="klant"] { background: var(--accent-teal); }
.status-dot[data-status="afgewezen"], .status-dot[data-status="niet_relevant"] { background: var(--stone); }
.status-dot[data-status="netwerk"] { background: var(--accent-warn); }
.state, .status-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.state { font-size: 14px; font-weight: 600; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-sizing: border-box; }
.state[data-state="late"]::before, .state[data-state="uncollectible"]::before { background: var(--accent-danger); }
.state[data-state="accepted"]::before { background: var(--primary); } /* geaccepteerd: nu factureren */
.state[data-state="billed"]::before, .state[data-state="paid"]::before { background: var(--accent-teal); }
.state[data-state="draft"]::before, .state[data-state="scheduled"]::before { background: transparent; border: 1px solid var(--stone); }
.state[data-state="rejected"]::before, .state[data-state="archived"]::before { background: var(--stone); }
.plan-state { display: inline-flex; align-items: center; gap: 6px; }
.plan-state:is([data-state="good"], [data-state="warn"], [data-state="bad"])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent-teal); }
.plan-state[data-state="warn"]::before { background: var(--accent-warn) !important; }
.plan-state[data-state="bad"]::before { background: var(--accent-danger) !important; }
.plan-state:is([data-state="good"], [data-state="warn"], [data-state="bad"]) { color: var(--ink); font-weight: 500; }
.status-select { position: relative; display: inline-flex; align-items: center; --dot: var(--ink); }
.status-select::before { content: ""; position: absolute; left: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); pointer-events: none; }
.status-select select { height: 38px; padding-left: 30px; border-radius: var(--r-full); font-size: 15px; font-weight: 600; }
.status-select[data-status="nieuw"] { --dot: var(--primary); }
.status-select[data-status="klant"] { --dot: var(--accent-teal); }
.status-select[data-status="afgewezen"], .status-select[data-status="niet_relevant"] { --dot: var(--stone); }
.status-select[data-status="netwerk"] { --dot: var(--accent-warn); }
.stack .status-select, .stack .status-select select { width: 100%; }
.schedule-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-full); background: var(--tint-teal); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.schedule-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); }
.schedule-chip[data-state="warn"] { background: var(--tint-warm); } .schedule-chip[data-state="warn"]::before { background: var(--accent-warn); }
.schedule-chip[data-state="bad"] { background: var(--surface-soft); } .schedule-chip[data-state="bad"]::before { background: var(--accent-danger); }
.schedule-chip strong { font-weight: 700; }
.schedule-chip.stretch { background: var(--surface-soft); }
.schedule-chip.stretch[data-state="good"]::before { background: var(--charcoal); }
.check-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); }
.check-mark svg { width: 20px; height: 20px; fill: none; stroke: var(--canvas-light); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.check-mark[data-tone="good"] { background: var(--accent-teal); }
.check-mark[data-tone="cobalt"] { background: var(--primary); }
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--charcoal); font-weight: 500; }
.live .dot { animation: live-pulse 2.4s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 168, 126, .5); } 60% { box-shadow: 0 0 0 7px rgba(0, 168, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 168, 126, 0); } }

/* ---------- 7. Gegevens: lijsten, tabellen, cijfers, balkjes ---------- */
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hairline-light); }
.list-rows li:first-child { border-top: 0; padding-top: 0; }
.list-rows li.is-current { font-weight: 600; }
h2 + .list-rows, .tile-title + .list-rows, .panel-head + .list-rows { margin-top: 4px; }
.row-side { display: grid; justify-items: end; gap: 2px; flex: none; }
.row-side form { margin: 0; }
.row-side .link { font-size: 14px; color: var(--mute); }
.notes { list-style: none; padding: 0; margin: 16px 0 0; }
.notes li { border-top: 1px solid var(--hairline-light); padding: 16px 0; overflow-wrap: break-word; }
.notes li:last-child { padding-bottom: 0; }
.notes li.event p:last-child { color: var(--mute); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--mute); padding: 10px 16px; border-bottom: 1px solid var(--hairline-light); white-space: nowrap; }
.data td { padding: 12px 16px; border-bottom: 1px solid var(--hairline-light); vertical-align: top; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: #fafafb; }
.data tfoot td { border-top: 1px solid var(--hairline-strong); border-bottom: 0; font-weight: 600; }
.data .num { text-align: right; }
.data form { margin: 0; justify-content: flex-end; }
.data tr.is-today td { background: var(--surface-soft); }
.panel .data th:first-child, .panel .data td:first-child { padding-left: 0; }
.panel .data th:last-child, .panel .data td:last-child { padding-right: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.stat { padding: 20px 22px; }
.stat dt { font: 500 13px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.stat dt a { text-decoration: none; } .stat dt a:hover { text-decoration: underline; }
.stat dd { margin: 0; }
.stat .stat-value { margin-top: 6px; font: 500 32px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .stat-of { font-size: 16px; color: var(--mute); letter-spacing: 0; }
.stat .stat-note { margin-top: 6px; font-size: 14px; color: var(--mute); }
.plan-meter { height: 6px; margin-top: 12px; border-radius: var(--r-full); background: var(--surface-soft); overflow: hidden; }
.stat .plan-meter { margin-top: 12px; } /* wint van .stat dd */
.plan-meter span { display: block; height: 100%; border-radius: var(--r-full); background: var(--ink); }
.plan-meter[data-state="good"] span { background: var(--accent-teal); }
.plan-meter[data-state="warn"] span { background: var(--accent-warn); }
.plan-meter[data-state="bad"] span { background: var(--accent-danger); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } .list-rows li { flex-wrap: wrap; } }
.share-track { display: block; height: 6px; border-radius: var(--r-full); background: var(--surface-soft); }
.share-fill { display: block; height: 100%; border-radius: var(--r-full); background: var(--primary); }
.chart-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline-light); font-size: 14px; color: var(--mute); }
.key { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 10px; border-radius: var(--r-xs); vertical-align: middle; }
.key:first-child { margin-left: 0; }
.key.actual { background: var(--primary); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--charcoal); }
.legend .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.legend.prev .swatch { background: var(--faint); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; font-size: 15px; }

/* Gedeelde SVG-onderdelen: ring, sparkline, trechter */
.ring { width: 140px; height: 140px; }
.ring-small { width: 88px; height: 88px; }
.ring-track { fill: none; stroke: var(--surface-soft); stroke-width: 11; }
.ring-fill { fill: none; stroke: var(--primary); stroke-width: 11; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; }
.ring-fill.done, .ring-fill[data-state="good"] { stroke: var(--accent-teal); }
.ring-fill[data-state="warn"] { stroke: var(--accent-warn); }
.ring-fill[data-state="bad"] { stroke: var(--accent-danger); }
.ring-tick { fill: var(--canvas-light); stroke: var(--faint); stroke-width: 1; }
.ring-tick.reached { fill: var(--primary); stroke: var(--primary); }
.ring-value { fill: var(--ink); font: 500 26px/1 var(--font-display); text-anchor: middle; letter-spacing: -.02em; }
.ring-label { fill: var(--mute); font: 500 12px/1 var(--font-body); text-anchor: middle; letter-spacing: .2px; }
.ring-note { max-width: 24ch; font-size: 14px; color: var(--mute); text-align: center; }
.ring-block { display: grid; justify-items: center; gap: 8px; }
.spark { width: 100%; height: 44px; overflow: visible; }
.spark-area { fill: rgba(73, 79, 223, .1); stroke: none; }
.spark-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-last { fill: var(--primary); }
/* eindpunt (_sparkline.html): een lijntje van lengte nul met ronde kap en vaste lijndikte blijft een rondje, ook als de grafiek uitrekt */
.spark .spark-end { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-days { display: flex; justify-content: space-between; margin-top: 2px; font-size: 14px; color: var(--mute); }
/* Grafiek plan tegen werkelijk: _plan_line.html (Cijfers) en _burnup.html (projectpagina). Wat alleen Cijfers heeft
   (stretch, vandaag, gat) staat in cijfers.css, de labels van de burn-up in werk.css. */
.plan-line-wrap { margin-top: auto; padding-top: 12px; }
.plan-line { display: block; width: 100%; height: auto; overflow: visible; }
.pl-grid, .pl-base { stroke: var(--hairline-light); stroke-width: 1; }
.pl-base { stroke: var(--faint); }
.pl-grid-label, .pl-label { fill: var(--mute); font: 500 13px var(--font-mono); }
.pl-plan { fill: none; stroke: var(--stone); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.pl-area { fill: var(--tint-cobalt); }
.pl-actual { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw .8s var(--ease) forwards; }
.pl-dot { fill: var(--primary); stroke: var(--surface-card); stroke-width: 3; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.funnel-step { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; align-items: center; gap: 12px; }
.funnel-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.funnel-bar-wrap { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.funnel-bar { display: block; height: 20px; min-width: 6px; border-radius: var(--r-xs); background: var(--ink); }
.funnel-bar[data-status="nieuw"] { background: var(--primary); }
.funnel-bar[data-status="benaderd"] { background: #3b3fc0; }
.funnel-bar[data-status="in_gesprek"] { background: #2f3aa0; }
.funnel-bar[data-status="offerte"] { background: #212a72; }
.funnel-bar[data-status="klant"] { background: var(--accent-teal); }
.funnel-count { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--charcoal); }
.funnel-step-pct { font-size: 14px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.panel.compact .funnel { gap: 4px; margin-top: 6px; }
.panel.compact .funnel-bar { height: 14px; }
@media (max-width: 620px) { .funnel-step { grid-template-columns: minmax(0, 1fr) auto; } .funnel-bar-wrap { grid-column: 1 / -1; grid-row: 2; } }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Tijdlijn van notities en activiteiten, berichttemplates, contactpersonen, documenten */
.timeline-edit { margin-top: 6px; }
/* Lange lijsten (tijdlijn, activiteiten, offertes, facturen)
   De eerste 5 staan open, de rest in details.list-more achter "Alle N tonen" (bij open: "Minder tonen"). Het uitklapteken
   komt uit core (een summary zonder class). De tweede lijst gaat verder waar de eerste ophield: met een lijn boven de eerste regel. */
.list-more { margin-top: 16px; border-top: 1px solid var(--hairline-light); }
.list-rows + .list-more { margin-top: 4px; } /* een lijstregel heeft zelf al 12px onder */
.list-more > summary { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.list-more-open { display: none; }
.list-more[open] .list-more-closed { display: none; }
.list-more[open] .list-more-open { display: inline; }
details.list-more > .notes, details.list-more > .list-rows { margin: 8px 0 0; }
details.list-more > .notes > li:first-child { padding-top: 16px; border-top: 1px solid var(--hairline-light); }
details.list-more > .list-rows > li:first-child { padding-top: 12px; border-top: 1px solid var(--hairline-light); }

.timeline-edit > summary { width: max-content; font-size: 14px; color: var(--mute); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.timeline-edit[open] > summary { margin-bottom: 10px; }
.timeline-edit-actions { justify-content: flex-start; gap: 8px 16px; }
.activity-form { display: grid; gap: 10px; justify-items: start; }
.activity-form textarea { min-height: 72px; }
.activity-fields { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.activity-fields label { display: grid; gap: 6px; flex: 1 1 150px; }
.activity-fields select, .activity-fields input { width: 100%; height: 40px; }
.person-tabs { margin-bottom: 12px; }
.templates { display: grid; gap: 8px; }
.template { border: 1px solid var(--hairline-light); border-radius: var(--r-md); }
.template summary, .person summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.template summary { padding: 12px 16px; }
.template > :not(summary) { margin: 0 16px 12px; }
.template-name { font-weight: 500; }
.template-subject { font-size: 15px; }
.template-body { width: calc(100% - 32px); min-height: 160px; font-size: 15px; background: var(--surface-soft); }
.template-actions { justify-content: flex-start; }
.person { width: 100%; }
.person-edit { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; flex: none; }
.person[open] .person-edit { visibility: hidden; }
.person-form { margin-top: 14px; }
.person-add { margin: 12px 0 0; }
.person-add summary { display: inline-flex; }
.person-add[open] summary { display: none; }
.plan-chevron { width: 11px; height: 8px; flex: none; background: var(--chevron) no-repeat center / 11px 8px; transform: rotate(-90deg); transition: transform .18s var(--ease); }
details[open] > summary .plan-chevron { transform: none; }
.findings { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.feed-url { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-url input { flex: 1 1 260px; min-width: 0; font-size: 14px; }
/* Documenten en tech-check (_documents.html, _tech_check.html) op de lead- en contactpagina */
.panel.documents-panel, .panel.tech-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.panel.documents-panel > *, .panel.tech-panel > * { margin: 0; }
.panel.documents-panel > h2:first-child, .panel.tech-panel > h2:first-child { margin: 0; }
.documents li > span { min-width: 0; }
.documents li > span .meta { overflow-wrap: break-word; }
.documents li > form { flex: none; margin: 0; }
.documents li > form .link { white-space: nowrap; }
.document-form { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.file-pick { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; cursor: pointer; } /* het browserveld is onzichtbaar, de pilknop en de naam zijn van ons */
.file-pick input[type="file"] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.file-pick .btn { flex: none; }
.file-pick:has(input:focus-visible) .btn { outline: 2px solid var(--primary); outline-offset: 2px; }
.file-name { min-width: 0; font-size: 14px; color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:empty { display: none; }
.tech-panel .tech-facts { font-size: 15px; }
.explain { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline-light); font-size: 15px; color: var(--charcoal); }
.explain summary { display: inline-flex; align-items: center; width: max-content; min-height: 40px; font-weight: 500; color: var(--mute); }
.explain summary::-webkit-details-marker { display: none; }
.explain summary::after { content: ""; width: 11px; height: 8px; margin-left: 8px; background: var(--chevron) no-repeat center / 11px 8px; transform: rotate(-90deg); transition: transform .18s var(--ease); }
.explain[open] > summary::after { transform: none; }
.explain p { max-width: 64ch; margin-top: 8px; }
.more { margin-top: 8px; }
.more > summary { list-style: none; }
.more[open] > summary { margin-bottom: 16px; }

/* ---------- 8. Meldingen, lege staat, vensters ---------- */
.flash { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; background: var(--surface-card); border: 1px solid var(--hairline-light); border-radius: var(--r-lg); }
.flash::before, .dot { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); flex: none; }
.flash.error::before { background: var(--accent-danger); }
.flash.info::before { background: var(--ink); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; padding: 16px 20px; background: var(--canvas-dark); color: var(--on-dark-mute); border-radius: var(--r-xl); }
.banner-text { flex: 1 1 380px; display: flex; align-items: baseline; gap: 12px; }
.banner-text .dot { background: var(--accent-danger); transform: translateY(-1px); }
.banner strong { color: var(--on-dark); font-weight: 600; }
.banner .btn { height: 36px; background: var(--canvas-light); color: var(--canvas-dark); font-size: 14px; }
.banner .btn:hover { background: var(--faint); }
.notice { padding: 20px 24px; margin-bottom: 16px; }
.notice h2 { margin: 0 0 6px; }
.notice p { max-width: 72ch; }
.notice-line { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 15px; font-weight: 500; }
.notice-line .status-dot { background: var(--accent-warn); }
.empty { padding: 48px 24px; text-align: center; color: var(--mute); }
.column-empty { padding: 16px 8px; font-size: 15px; color: var(--mute); text-align: center; }
.toast { position: fixed; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; width: max-content; max-width: min(560px, calc(100% - 32px)); margin-inline: auto;
  padding: 12px 20px; border-radius: var(--r-full); background: var(--canvas-dark); color: var(--on-dark); font-weight: 500; }
@media (min-width: 1025px) { .has-shell ~ .toast, body:has(.has-shell) .toast { left: var(--sidebar-w); } } /* midden van de inhoud, niet van het venster */
@media (max-width: 1024px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.toast-action { margin-left: 12px; padding: 0; border: 0; background: none; color: var(--on-dark); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast-action[hidden] { display: none; }
.pull-hint { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 50%; z-index: 50; padding: 6px 14px; border-radius: var(--r-full); background: var(--canvas-dark); color: var(--on-dark);
  font-size: 14px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.pull-hint.show { opacity: 1; transform: translate(-50%, 0); }
dialog { color: var(--ink); }
dialog:not(.spotlight):not(.sheet) { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px); }

/* Zoeken: venster met live resultaten */
.spotlight { width: min(100% - 32px, 640px); margin: 10vh auto auto; padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface-card); overflow: hidden; }
.spotlight::backdrop { background: rgba(25, 28, 31, .5); backdrop-filter: blur(4px); }
.spotlight-box { margin: 0; }
.spotlight-field { display: flex; align-items: center; gap: 12px; padding: 4px 18px 4px 20px; color: var(--stone); }
.spotlight-field svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; }
.spotlight-field input { flex: 1; min-width: 0; height: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; font: 400 18px/1 var(--font-body); color: var(--ink); }
.spotlight-field input:focus { outline: none; border: 0; }
.spotlight-hint { flex: none; padding: 3px 7px; border: 1px solid var(--hairline-light); border-radius: var(--r-xs); font: 600 13px/1 var(--font-body); color: var(--mute); }
.spotlight-results { max-height: min(56vh, 480px); overflow-y: auto; border-top: 1px solid var(--hairline-light); }
.spotlight-results:empty { display: none; }
.spotlight-group { padding: 8px 8px 4px; }
.spotlight-group + .spotlight-group { border-top: 1px solid var(--hairline-light); }
.spotlight-group .eyebrow { margin: 4px 10px 6px; }
.spotlight-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.spotlight-item strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-item span { grid-column: 1; font-size: 14px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-item::after { content: "↵"; grid-column: 2; grid-row: 1 / span 2; font-size: 13px; color: var(--faint); opacity: 0; }
.spotlight-item:hover, .spotlight-item.active { background: var(--surface-soft); }
.spotlight-item.active::after { opacity: 1; }
.spotlight-item.more span { color: var(--primary); font-weight: 600; }
.spotlight-empty { padding: 16px 20px; font-size: 15px; color: var(--mute); }
.spotlight-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 8px 18px; border-top: 1px solid var(--hairline-light); background: var(--surface-soft); font-size: 14px; color: var(--mute); }
.spotlight-foot kbd { display: inline-block; min-width: 18px; margin-right: 4px; padding: 1px 5px; border: 1px solid var(--hairline-light); border-radius: var(--r-xs); background: var(--surface-card); font: 600 13px/1.4 var(--font-body); color: var(--charcoal); text-align: center; }
.spotlight-foot-right { margin-left: auto; }
.search-groups { display: grid; gap: 12px; }
.search-group .list-rows li { padding: 8px 0; }
@media (max-width: 760px) {
  .spotlight { width: calc(100% - 24px); margin: calc(env(safe-area-inset-top) + 8px) auto auto; }
  .spotlight-hint, .spotlight-foot { display: none; }
  .spotlight-field input { font-size: 16px; height: 48px; }
  .spotlight-results { max-height: calc(var(--viewport-h, 100dvh) - env(safe-area-inset-top) - 96px); }
}

/* Viermoment na een gewonnen deal */
.celebrate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(10, 11, 13, .74); backdrop-filter: blur(6px); animation: fade-in .3s var(--ease) both; }
.celebrate-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate-card { position: relative; width: 100%; max-width: 480px; padding: 32px 28px 24px; border-radius: var(--r-xl); background: var(--surface-card); text-align: center; animation: pop-in .5s .1s cubic-bezier(.16, 1, .3, 1) both; }
.celebrate-title { margin: 6px 0 0; font: 500 32px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.celebrate-amount { margin: 14px 0 0; font: 500 40px/1 var(--font-display); letter-spacing: -.03em; color: var(--accent-teal); font-variant-numeric: tabular-nums; }
.celebrate-sub { margin: 6px 0 0; color: var(--mute); font-size: 15px; }
.celebrate-progress { position: relative; height: 14px; margin: 24px 0 0; border-radius: var(--r-full); background: var(--surface-soft); overflow: hidden; }
.celebrate-was { position: absolute; inset: 0 auto 0 0; background: var(--faint); }
.celebrate-now { position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); min-width: 8px; background: var(--accent-teal); transform-origin: left center; animation: bar-grow 1.1s .7s var(--ease) both; }
.celebrate-scale { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.celebrate-scale strong { color: var(--ink); }
.celebrate-body { margin: 16px auto 0; max-width: 36ch; color: var(--charcoal); font-size: 16px; line-height: 1.5; }
.celebrate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.celebrate .eyebrow { color: var(--accent-teal); }
body.celebrating { overflow: hidden; }

/* ---------- 9. Inloggen en tweestaps ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--canvas-dark); }
.auth .wrap { display: flex; flex-direction: column; width: 100%; max-width: 400px; padding: 0; }
.auth-logo { order: -1; display: flex; justify-content: center; margin-bottom: 32px; color: var(--on-dark); }
.auth-logo .logo { width: 104px; height: 28px; }
.login { background: var(--canvas-light); border-radius: var(--r-xl); padding: 32px 28px 28px; }
.login h1 { margin-bottom: 6px; }
.login .eyebrow { margin-bottom: 8px; }
.login > p { color: var(--mute); margin-bottom: 24px; }
.login > p:last-child { margin-bottom: 0; }
.login .errors { margin-bottom: 16px; color: var(--ink); }
.login label { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.login label input { font-weight: 400; }
.login input { width: 100%; height: 48px; font-size: 16px; }
.login .btn { width: 100%; height: 48px; margin-top: 8px; }
.twofactor .qr { display: flex; justify-content: center; margin: 0 0 12px; }
.twofactor .qr svg { width: 200px; height: 200px; }
.manual-key { margin-bottom: 20px; font-size: 15px; color: var(--mute); }
.manual-key code, .recovery-codes code { font: 500 16px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--ink); background: none; padding: 0; }
.manual-key code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-soft); overflow-wrap: anywhere; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 0 20px; padding: 16px; border-radius: var(--r-md); background: var(--surface-soft); }
.twofactor-logout { margin-top: 16px; text-align: center; font-size: 15px; }
.twofactor-logout button.link { color: var(--mute); }
.login-message { max-width: 72ch; }
#login-panel .actions { margin-top: 20px; }
/* Een melding (te veel codes, opnieuw koppelen, herstelcode gebruikt) als strook boven in de kaart, onder het logo */
.auth .flash { margin: 0; padding: 16px 28px; border: 0; border-bottom: 1px solid var(--hairline-light); border-radius: 0; background: var(--canvas-light); font-size: 15px; }
.auth .flash:first-child { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.auth .wrap:has(> .flash) > .login { border-top-left-radius: 0; border-top-right-radius: 0; }
/* Herstelcodes binnen de schil (na het koppelen of vanuit Account) */
.app .login { max-width: 480px; border: 1px solid var(--hairline-light); }
.vnc { margin-top: 20px; }
.vnc iframe { display: block; width: 100%; aspect-ratio: 1280 / 1000; border: 1px solid var(--hairline-light); border-radius: var(--r-md); background: var(--canvas-dark); }

/* ---------- 10. iPhone en beweging ---------- */
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; } /* iOS zoomt in op velden kleiner dan 16px */
  .btn { min-height: 44px; }
  .tab, .quick-chip { min-height: 40px; }
  /* tikvlakken van minstens 40px: velden in regels en werkbalken, losse links in koppen, knoplinks */
  .inline-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .inline-form select,
  .toolbar-form input[type="search"], .toolbar-form select, .status-select select { height: 44px; }
  .tile-head a, .panel-head a, button.link, .timeline-edit > summary,
  .page-links a, .toolbar-summary a, .pagination a, .notice-line a { display: inline-flex; align-items: center; min-height: 40px; }
  .timeline-edit > summary { padding-block: 8px; line-height: 24px; }
  .documents button.link, .documents li > span > a { display: inline-flex; align-items: center; min-height: 40px; }
}
/* iPhone: het mono kopje van de paginakop valt weg als de tabbladen van het onderdeel al zeggen waar je bent */
@media (max-width: 1024px) { main:has(> .section-tabs) .page-head > div:first-child > .eyebrow { display: none; } }
/* een sprong naar een anker valt niet onder de zwarte balk boven */
@media (max-width: 1024px) { [id] { scroll-margin-top: 72px; } }
@media (max-width: 360px) { .btn { height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; white-space: normal; } .num { white-space: normal; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
