/* Anker — design system
   Axxes-look (oranje accent, witte navigatie met onderlijn, oranje accentmarkering op sectiekaarten)
   met een frissere, Apple-achtige basis: systeemtypografie, zachte diepte, ruime witruimte. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);

  --accent: #e2582a;          /* Axxes oranje */
  --accent-hover: #c94a1f;
  --accent-soft: #fdf0ea;
  --accent-ring: rgba(226, 88, 42, 0.28);

  --green: #30b852;
  --green-soft: #e9f8ed;
  --orange: #ff9f0a;
  --orange-soft: #fff4e2;
  --red: #ff3b30;
  --red-soft: #ffecea;
  --gray: #c7c7cc;
  --blue: #0a84ff;
  --blue-soft: #e8f2ff;
  --purple: #8e5cf0;
  --purple-soft: #f2ecfe;

  --gap-v: 26px;              /* verticale ruimte tussen kaarten op een pagina */
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.035), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.045);
  --shadow-l: 0 12px 40px rgba(0, 0, 0, 0.12);

  --topbar: rgba(255, 255, 255, 0.82);
  --ev-contrib: #3a5f8f; --ev-accel: #0b5cc0; --ev-stand: #5b2fc0;
  --warn-bg: #fff7e6; --gold-soft: #fff4d1; --gold-ink: #8a5a00; --teal-soft: #e3f6f3; --teal-ink: #0d6e66;
  --demo: #6d3fd1; --demo-soft: #f1ebff; --demo-ink: #4b25a3;
  --fill: rgba(0, 0, 0, 0.06);        /* neutrale vulling (segmented, chips) */
  --fill-strong: rgba(0, 0, 0, 0.1);  /* hover op een gevulde knop of rij */
  /* inkt op een zachte kleurvlak (pills, labels, delta's): één tint per kleur, in donker lichter voor contrast */
  --green-ink: #1e7d37; --orange-ink: #a8640a; --red-ink: #c4271d; --blue-ink: #0b62c4; --purple-ink: #6a3dc9;
  --focus-ring: 0 0 0 3px var(--accent-ring);
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* Donkere modus: volgt het systeem, tenzij expliciet 'licht' of 'donker' gekozen (data-theme op <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0f0f11;
  --surface: #1c1c1f;
  --surface-2: #232327;
  --text: #f2f2f5;
  --text-2: #d0d0d6;
  --muted: #a0a0a8;
  --faint: #6f6f78;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #f0683a;
  --accent-hover: #ff8a5f;
  --accent-soft: rgba(240, 104, 58, 0.16);
  --accent-ring: rgba(240, 104, 58, 0.4);
  --green-soft: rgba(48, 184, 82, 0.16);
  --orange-soft: rgba(255, 159, 10, 0.16);
  --red-soft: rgba(255, 69, 58, 0.17);
  --blue-soft: rgba(10, 132, 255, 0.18);
  --purple-soft: rgba(142, 92, 240, 0.2);
  --gray: #48484f;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-l: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.6);
  --topbar: rgba(22, 22, 25, 0.82);
  --ev-contrib: #9db8dc; --ev-accel: #6fb0ff; --ev-stand: #b99bff;
  --warn-bg: rgba(255, 159, 10, 0.1); --gold-soft: rgba(245, 184, 0, 0.18); --gold-ink: #f5c84c; --teal-soft: rgba(45, 212, 191, 0.16); --teal-ink: #5eead4;
  --demo: #a684ff; --demo-soft: rgba(166, 132, 255, 0.16); --demo-ink: #cbb8ff;
  --fill: rgba(255, 255, 255, 0.08);
  --fill-strong: rgba(255, 255, 255, 0.14);
  --green-ink: #5fd77f; --orange-ink: #ffb74a; --red-ink: #ff6b61; --blue-ink: #6fb0ff; --purple-ink: #b99bff;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11;
  --surface: #1c1c1f;
  --surface-2: #232327;
  --text: #f2f2f5;
  --text-2: #d0d0d6;
  --muted: #a0a0a8;
  --faint: #6f6f78;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #f0683a;
  --accent-hover: #ff8a5f;
  --accent-soft: rgba(240, 104, 58, 0.16);
  --accent-ring: rgba(240, 104, 58, 0.4);
  --green-soft: rgba(48, 184, 82, 0.16);
  --orange-soft: rgba(255, 159, 10, 0.16);
  --red-soft: rgba(255, 69, 58, 0.17);
  --blue-soft: rgba(10, 132, 255, 0.18);
  --purple-soft: rgba(142, 92, 240, 0.2);
  --gray: #48484f;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-l: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.6);
  --topbar: rgba(22, 22, 25, 0.82);
  --ev-contrib: #9db8dc; --ev-accel: #6fb0ff; --ev-stand: #b99bff;
  --warn-bg: rgba(255, 159, 10, 0.1); --gold-soft: rgba(245, 184, 0, 0.18); --gold-ink: #f5c84c; --teal-soft: rgba(45, 212, 191, 0.16); --teal-ink: #5eead4;
  --demo: #a684ff; --demo-soft: rgba(166, 132, 255, 0.16); --demo-ink: #cbb8ff;
  --fill: rgba(255, 255, 255, 0.08);
  --fill-strong: rgba(255, 255, 255, 0.14);
  --green-ink: #5fd77f; --orange-ink: #ffb74a; --red-ink: #ff6b61; --blue-ink: #6fb0ff; --purple-ink: #b99bff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.47 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a.link, span.link { color: var(--accent); }   /* span: een 'link' binnen een kaart die zelf al een link is */
a.link:hover, a:hover > .card-head span.link, a:focus-visible > .card-head span.link { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.022em; }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 21px; font-weight: 650; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ navigatie */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1360px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-divider { width: 1px; height: 26px; background: var(--line-strong); }
.brand-app { display: inline-flex; align-items: center; gap: 8px; }
/* app-icoon in dezelfde rustige stijl als de navigatie: vlak oranje, kleine radius, geen zware schaduw */
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff;
  background: var(--accent);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.login-card .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.login-card .brand-mark svg { width: 21px; height: 21px; }
.login-card .brand-name { font-size: 21px; }

.nav { display: flex; gap: 2px; height: 100%; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 0 13px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a .nav-ic { width: 15px; height: 15px; color: var(--accent); }
.nav a .nav-ic.plain { color: currentColor; }   /* roer, verrekijker: in de tekstkleur; anker en vuurtoren houden hun kleur */
.nav a.active { color: var(--text); }
.nav { position: relative; }
.nav a.active::after {      /* zonder JavaScript: vast lijntje */
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
}
/* met JavaScript: één lijntje dat van het vorige naar het nieuwe item glijdt */
.nav.ink-on a.active::after { display: none; }
.nav-ink { position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--accent);
  pointer-events: none; width: 0; opacity: 0; will-change: transform, width; }
.nav-ink.moving { transition: transform .38s cubic-bezier(.2, .8, .2, 1), width .38s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
@media (prefers-reduced-motion: reduce) { .nav-ink.moving { transition: none; } }
.nav .count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.search {
  position: relative; width: 260px; flex-shrink: 0;
}
.search input {
  width: 100%; height: 34px; border-radius: 17px; border: 0;
  background: var(--fill); padding: 0 40px 0 34px; font: inherit; font-size: 14px;
}
.search input:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 3px var(--accent-ring); }
.search > svg { position: absolute; left: 12px; top: 10px; width: 14px; height: 14px; color: var(--muted); }
/* Consultants zit in het zoekveld: icoon rechts opent de lijst; op een consultantspagina licht het veld op */
/* Icoon rechts in het zoekveld: schuift bij hover/focus uit tot een pil "Alle consultants" (groeit naar links) */
.search-all { position: absolute; right: 4px; top: 4px; height: 26px; min-width: 26px; padding: 0 5px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 0; color: var(--muted); white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, gap .25s cubic-bezier(.2, .8, .2, 1), padding .25s cubic-bezier(.2, .8, .2, 1); }
.search-all .ic { width: 16px; height: 16px; flex: none; }
.search-all .sa-label { max-width: 0; overflow: hidden; opacity: 0; font-size: 12.5px; font-weight: 600;
  transition: max-width .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; order: -1; }
.search-all:hover, .search-all:focus-visible { background: var(--surface); color: var(--accent); outline: none; gap: 6px; padding: 0 10px 0 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line); }
.search-all:hover .sa-label, .search-all:focus-visible .sa-label { max-width: 130px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .search-all, .search-all .sa-label { transition: none; } }
.search.here input { box-shadow: inset 0 0 0 1px var(--accent-ring); }
.search.here .search-all { color: var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }
.search-results {
  position: absolute; top: 40px; left: 0; right: -80px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-l); overflow: hidden; z-index: 60;
}
.search-results a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; }
.search-results a:hover, .search-results a.kb { background: var(--fill); }
.search-results .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search-results .sr-head { padding: 10px 14px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint); }
.search-results .sr-n { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.search-results .sr-all { justify-content: flex-start; color: var(--accent); font-size: 13px; border-top: 1px solid var(--line); }
.search-home { padding-bottom: 6px; }
.search-home a { padding: 8px 14px; }

.settings-link {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); flex-shrink: 0; transition: background .15s, color .15s;
}
.settings-link:hover { background: var(--fill); color: var(--text); }
.settings-link.active { background: var(--accent-soft); color: var(--accent); }
.settings-link svg { width: 20px; height: 20px; }
.settings-link .count {
  position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.settings-head { margin-bottom: 22px; }
.settings-head .eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.subnav a {
  position: relative; padding: 9px 14px 11px; font-size: 14px; font-weight: 500; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.subnav a:hover { color: var(--text); }
.subnav a.on { color: var(--text); }
.subnav a svg { width: 16px; height: 16px; flex: none; color: var(--faint); transition: color .15s; }
.subnav a:hover svg { color: var(--text-2); }
.subnav a.on svg { color: var(--accent); }
.subnav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.subnav .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.readonly-note { margin-top: 12px; }
.user-menu { position: relative; flex-shrink: 0; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu {
  position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 6px; z-index: 60;
}
.user-menu .menu a, .user-menu .menu .who { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.user-menu .menu a:hover { background: var(--fill); }
.user-menu .menu .who { color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }

.devbar {
  background: #1d1d1f; color: #f5f5f7; font-size: 12px; line-height: 1.35; text-align: center; padding: 3px 12px;
}
.devbar b { color: #ffb38f; }

/* ------------------------------------------------------------ layout */

.page { max-width: 1360px; margin: 0 auto; padding: 32px 28px 80px; }
.page-narrow { max-width: 1080px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 680px; }
.page-head .head-filter { align-self: flex-start; }   /* league-keuze rechtsboven in de kop (Ankers, Vuurtoren) */
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: var(--gap-v) 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
@media (max-width: 1100px) { .grid-main, .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ kaarten */

.card {
  background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow);
  padding: 22px 24px;
}
.card.flush { padding: 0; overflow: hidden; }
.card.section {
  /* geen harde toplijn meer: een zachte, warme gloed bovenaan plus een accentpil bij de titel */
  background:
    radial-gradient(120% 90px at 0 0, rgba(226, 88, 42, 0.055), transparent 70%),
    var(--surface);
}
.card.section > .card-head h2::before, .card.section > .card-head h3::before {
  content: ""; flex: none; width: 4px; height: 0.95em; border-radius: 4px;
  background: linear-gradient(180deg, #f07444, var(--accent));
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card.flush .card-head { padding: 18px 22px 0; }
.empty { color: var(--muted); padding: 22px; text-align: center; background: var(--surface-2); border-radius: var(--radius); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* Lege staat: overal hetzelfde stille icoon (groen vinkje als 'alles in orde') */
.empty::before { content: ""; width: 26px; height: 26px; background: var(--faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13.5 6.5 6h11L20 13.5V18a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18z'/%3E%3Cpath d='M4 13.5h4.5l1 2h5l1-2H20'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13.5 6.5 6h11L20 13.5V18a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18z'/%3E%3Cpath d='M4 13.5h4.5l1 2h5l1-2H20'/%3E%3C/svg%3E") center / contain no-repeat; }
.empty[hidden] { display: none; }
.empty.ok::before { background: var(--green); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.3 2.8 2.8 5.2-5.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.3 2.8 2.8 5.2-5.6'/%3E%3C/svg%3E"); }
.empty .btn { margin-top: 4px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: var(--gap-v); }
.kpi { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 18px 20px; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .value { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
/* Aanklikbare tegel: de hele kaart is de link, met een pijltje dat bij hover verschijnt. */
.kpi-link { display: block; position: relative; color: inherit; text-decoration: none; cursor: pointer;
  transition: box-shadow .15s, transform .15s; }
.kpi-link::after { content: "→"; position: absolute; top: 16px; right: 18px; color: var(--faint); font-size: 15px;
  transition: color .15s, transform .15s; }
.kpi-link:hover { box-shadow: var(--shadow), 0 0 0 1px var(--accent-ring); transform: translateY(-1px); }
.kpi-link:hover::after { color: var(--accent); transform: translateX(2px); }
.kpi-link:focus-visible { outline: none; box-shadow: var(--shadow), 0 0 0 3px var(--accent-ring); }
.kpi.accent .value { color: var(--accent); }
.kpi.tone { position: relative; overflow: hidden; }
.kpi.tone::before {        /* zachte kleurgloed rechtsboven */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(140px 110px at 100% 0, var(--tone-soft), transparent 75%);
}
.kpi.tone > * { position: relative; }
.kpi.tone.R { --tone: var(--red); --tone-ink: var(--red-ink); --tone-soft: rgba(255, 59, 48, 0.13); }
.kpi.tone.O { --tone: var(--orange); --tone-ink: var(--orange-ink); --tone-soft: rgba(255, 159, 10, 0.16); }
.kpi.tone .label { color: var(--tone-ink); font-weight: 600; }
.kpi.tone .label .dot { box-shadow: 0 0 0 4px var(--tone-soft); }
.kpi.tone .value { display: flex; align-items: baseline; gap: 8px; }
.kpi.tone .value .of { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--tone-ink);
  background: var(--tone-soft); padding: 2px 8px; border-radius: 999px; transform: translateY(-6px); }
.kpi .meter { height: 6px; border-radius: 6px; background: var(--fill); margin: 8px 0 8px; overflow: hidden; }
.kpi .meter span { display: block; height: 100%; border-radius: 6px; background: var(--tone, var(--accent)); }

/* melding met 'ongedaan maken' (kwartaaloverleg) */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 32px));
  background: rgba(29, 29, 31, 0.94); color: #f5f5f7; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 14px; padding: 10px 10px 10px 16px; font-size: 14px; box-shadow: var(--shadow-l);
  animation: toast-in .22s ease-out; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.toast .msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.err { background: rgba(160, 20, 10, 0.95); }
.toast button { flex: none; border: 0; border-radius: 9px; padding: 6px 12px; font: inherit; font-weight: 600;
  background: rgba(255, 255, 255, 0.14); color: #ffb38f; cursor: pointer; }
.toast button:hover { background: rgba(255, 255, 255, 0.22); }
.toast kbd { font: 11px var(--font); color: #a1a1a6; margin-left: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ knoppen & formulieren */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--fill); color: var(--text); }
.btn-ghost:hover { background: var(--fill-strong); }
.btn-plain { background: none; color: var(--accent); padding: 0 6px; height: auto; }
.btn-plain:hover { text-decoration: underline; }
.btn-danger { background: var(--red-soft); color: var(--red-ink); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 14px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 16px; border-radius: 22px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.input, select.input, textarea.input {
  width: 100%; min-height: 36px; padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 14px; color: var(--text);
}
textarea.input { min-height: 80px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input.code { font-family: var(--mono); font-size: 12.5px; min-height: 260px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.segmented {
  display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; flex-wrap: wrap;
}
.segmented a, .segmented button {
  border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 5px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.segmented a.on, .segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
/* eigen leagues: klein oranje bolletje, met een scheiding naar de andere leagues */
.segmented a.mine::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-right: 6px; vertical-align: 2px; }
.segmented a.sep { margin-left: 9px; position: relative; }
.segmented a.sep::after { content: ""; position: absolute; left: -6px; top: 22%; bottom: 22%; width: 1px; background: var(--line-strong); }

.quarter-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-s); padding: 3px; border: 1px solid var(--line); }
.quarter-nav a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.quarter-nav a:hover { background: var(--fill); color: var(--text); }
.quarter-nav span { font-weight: 600; font-size: 14px; padding: 0 8px; min-width: 76px; text-align: center; }

/* ------------------------------------------------------------ tabellen */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  white-space: nowrap; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table th.c, .table td.c { text-align: center; }
.table .name { font-weight: 600; }
.table .sub { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------ kleuren / chips */

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--gray); flex-shrink: 0; vertical-align: middle; }
.dot.G { background: var(--green); } .dot.O { background: var(--orange); } .dot.R { background: var(--red); }
.dot.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gray); }
.dot.lg { width: 16px; height: 16px; }
.dot.sm { width: 9px; height: 9px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--text-2);
}
.pill.G { background: var(--green-soft); color: var(--green-ink); }
.pill.O { background: var(--orange-soft); color: var(--orange-ink); }
.pill.R { background: var(--red-soft); color: var(--red-ink); }
.pill.hoog { background: var(--red-soft); color: var(--red-ink); }
.pill.middel { background: var(--orange-soft); color: var(--orange-ink); }
.pill.laag { background: var(--blue-soft); color: var(--blue-ink); }
.pill.accent { background: var(--accent-soft); color: var(--accent-hover); }
.pill.purple { background: var(--purple-soft); color: var(--purple-ink); }
.pill.blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill.gray { background: var(--fill); color: var(--muted); }
.pill.actief { background: var(--green-soft); color: var(--green-ink); }
.pill.vertrekkend { background: var(--orange-soft); color: var(--orange-ink); }
.pill.uit_dienst { background: var(--fill); color: var(--muted); }
/* Jaarevaluatie (ordinaal, bewust los van de risicokleuren) en hiPo */
.pill.ev { height: 20px; padding: 0 8px; font-size: 11.5px; letter-spacing: 0; }
.pill.ev.improvement { background: var(--fill); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill.ev.contributor { background: var(--blue-soft); color: var(--ev-contrib); }
.pill.ev.accelerator { background: var(--blue-soft); color: var(--ev-accel); }
.pill.ev.standout { background: var(--purple-soft); color: var(--ev-stand); box-shadow: inset 0 0 0 1px rgba(91, 47, 192, 0.25); }
.pill.hipo { height: 20px; padding: 0 8px; font-size: 11.5px; background: var(--gold-soft); color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px rgba(214, 158, 0, 0.35); }
.badges { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; margin-left: 6px; }
.eval-history { display: flex; flex-direction: column; }
.eval-year { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.eval-year:last-child { border-bottom: 0; }
.eval-year .y { font-weight: 700; width: 44px; font-variant-numeric: tabular-nums; }
.eval-year .small { margin-left: auto; }
.avatar.hipo-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #f5b800; }

.sev-bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--gray); flex-shrink: 0; }
.sev-bar.hoog { background: var(--red); } .sev-bar.middel { background: var(--orange); } .sev-bar.laag { background: var(--blue); }

/* Kleurkiezer G/O/R */
.picker { display: inline-flex; gap: 5px; align-items: center; }
.picker button {
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--c-soft); box-shadow: inset 0 0 0 1.5px var(--c-line);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.picker button:hover { transform: scale(1.12); }
.picker button[data-c="G"] { --c: var(--green); --c-soft: var(--green-soft); --c-line: rgba(48, 184, 82, .35); }
.picker button[data-c="O"] { --c: var(--orange); --c-soft: var(--orange-soft); --c-line: rgba(255, 159, 10, .4); }
.picker button[data-c="R"] { --c: var(--red); --c-soft: var(--red-soft); --c-line: rgba(255, 59, 48, .35); }
.picker button.on { background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.picker.sm button { width: 18px; height: 18px; }
.picker.sm { gap: 4px; }
/* voorgestelde algemene kleur (afgeleid uit de drivers): zacht pulserende ring */
.picker button.suggest {
  background: color-mix(in srgb, var(--c) 38%, var(--surface));
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sug);
  animation: suggest-pulse 1.8s ease-in-out infinite;
}
.picker button.suggest[data-c=G] { --sug: rgba(48, 184, 82, 0.5); }
.picker button.suggest[data-c=O] { --sug: rgba(255, 159, 10, 0.55); }
.picker button.suggest[data-c=R] { --sug: rgba(255, 59, 48, 0.5); }
@keyframes suggest-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sug); }
  50% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sug), 0 0 14px 4px var(--sug); }
}
@media (prefers-reduced-motion: reduce) { .picker button.suggest { animation: none; } }
.picker .ghost { width: 6px; height: 6px; border-radius: 50%; margin-left: 2px; }
.picker .ghost.G { background: var(--green); } .picker .ghost.O { background: var(--orange); } .picker .ghost.R { background: var(--red); }
.picker.htmx-request { opacity: .45; pointer-events: none; }
.picker.readonly button { cursor: default; }
.picker.readonly button:hover { transform: none; }
.picker.readonly button:not(.on) { opacity: .5; }
.picker button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

.history { display: inline-flex; gap: 4px; align-items: center; }
.hist-q { gap: 2px; }
.hq { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 3px 1px; border-radius: 7px; cursor: default; }
.hq:hover, .hq:focus-visible { background: var(--fill); outline: none; }
.hq-l { font-size: 10px; line-height: 1; color: var(--faint); font-weight: 600; letter-spacing: 0; }
.hq-l sup { font-size: 8px; vertical-align: 2px; margin-left: 1px; }

#tip {
  position: fixed; z-index: 100; min-width: 190px; max-width: 260px; pointer-events: none;
  background: rgba(29, 29, 31, 0.96); color: #f5f5f7; border-radius: 12px; padding: 10px 12px;
  box-shadow: var(--shadow-l); font-size: 12.5px; line-height: 1.35;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#tip .tip-title { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: #fff; }
#tip .tip-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
#tip .tip-row b { font-weight: 600; }
#tip .tip-v { margin-left: auto; color: #c7c7cc; }
#tip .dot.none { box-shadow: inset 0 0 0 1.5px #636366; }
#tip .tip-text { display: block; margin: 0 0 6px; color: #e5e5ea; }
#tip .tip-text b { color: #fff; }
#tip .sev-dot { width: 8px; height: 8px; border-radius: 50%; background: #8e8e93; flex-shrink: 0; }
#tip .sev-dot.hoog { background: #ff453a; } #tip .sev-dot.middel { background: #ff9f0a; } #tip .sev-dot.laag { background: #64d2ff; }
.pill.has-tip { cursor: help; }
.pill.has-tip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* Afwijking algemene kleur vs drivers */
.overall-cell.warn { background: var(--warn-bg) !important; box-shadow: inset 0 0 0 1px rgba(232, 137, 12, 0.35); }
/* Niet in lijn: klein icoon naast de bolletjes (zelfde regel, dus geen extra hoogte) */
.overall-line { display: flex; align-items: center; gap: 6px; }
.mm { display: inline-flex; margin: 0 0 0 4px; }
/* afgerond vierkantje (geen cirkel), zodat het niet op een vierde kleur lijkt */
.mm-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px;
  cursor: pointer; transition: background .15s, color .15s; }
.mm-badge .ic { width: 14px; height: 14px; }
.mm-badge.open { background: rgba(232, 137, 12, 0.16); color: var(--orange-ink); }
.mm-badge.open:hover, .mm-badge.open:focus-visible { background: #e8890c; color: #fff; outline: none; }
.mm-badge.ok { background: transparent; color: var(--green); }
.mm-badge.ok:hover, .mm-badge.ok:focus-visible { background: var(--fill); outline: none; }
span.mm-badge { cursor: help; }
tr.meet-row.mismatch td:first-child { box-shadow: inset 3px 0 0 #e8890c; }

#tip .tip-foot { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #a1a1a6; font-size: 11.5px; }

/* Tijdlijn op profiel */
/* overflow-x: auto clipt ook verticaal: rondom ruimte (en negatieve marge) zodat hover-lift en focusring niet afgesneden worden. */
.timeline { display: flex; gap: 6px; overflow-x: auto; padding: 4px 4px 8px; margin: -4px -4px -4px; }
.tl-q { flex: 0 0 auto; min-width: 66px; text-align: center; border-radius: 12px; padding: 10px 6px 8px; background: var(--surface-2); border: 1px solid var(--line); }
.tl-q.current { border-color: var(--accent); background: var(--accent-soft); }
.tl-q .ql { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tl-q .main { margin: 7px auto 6px; width: 22px; height: 22px; }
.tl-q .drv { display: flex; justify-content: center; gap: 3px; }

/* Avatar */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-grid; place-items: center; font-weight: 600; font-size: 13.5px; flex-shrink: 0; letter-spacing: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.xl { width: 96px; height: 96px; font-size: 34px; }
.avatar.gray { background: var(--fill-strong); color: var(--muted); }

/* Profielkop */
.profile-head { display: flex; gap: 24px; align-items: center; }
.profile-head .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.profile-head .meta b { color: var(--text); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fact.wide { grid-column: span 2; }
.fact .v .inline-val { max-width: 100%; text-align: left; }
.fact .v .inline-val span { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.fact .v { font-weight: 600; margin-top: 2px; }

/* Lijsten (notities, signalen, acties) */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }
.list-item .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.list-item .text { white-space: pre-wrap; margin-top: 3px; color: var(--text-2); font-size: 14px; }
.list-item .actions { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }

/* Overleg-raster */
.meet-row td { padding-top: 9px; padding-bottom: 9px; }
.meet-row .person { display: flex; align-items: center; gap: 10px; min-width: 220px; border-radius: 10px;
  margin: -4px -6px; padding: 4px 6px; transition: background .12s; }
.meet-row a.person:hover { background: var(--fill); }
.meet-row a.person:hover .name { color: var(--accent); }
.meet-row .person .name { transition: color .12s; }
.meet-row .person .sub { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; }
.meet-row.done td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.meet-row.leaving td { opacity: .6; }
.meet-notes td { background: var(--surface-2); padding: 14px 20px 18px 60px; }
.signal-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.progress { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; display: flex; }
.progress span { display: block; height: 100%; }
.progress .G { background: var(--green); } .progress .O { background: var(--orange); } .progress .R { background: var(--red); }
.progress .done { background: var(--accent); }

.lift { display: flex; align-items: center; gap: 8px; }
.lift .bar { width: 90px; height: 6px; background: var(--fill); border-radius: 3px; position: relative; overflow: hidden; }
.lift .bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.lift .bar.weak span { background: var(--gray); }

.code-block { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; overflow-x: auto; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; background: var(--green-soft); color: var(--green-ink); }
.flash.error { background: var(--red-soft); color: var(--red-ink); }
.flash.info { background: var(--blue-soft); color: var(--blue-ink); }

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; background: var(--fill);
  border-radius: var(--radius); margin-bottom: 22px; font-size: 14px; color: var(--text-2);
}
.banner b { color: var(--text); }
.banner > .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.ic-lg { width: 20px; height: 20px; }

/* Watchlist: compact / details en prioriteitsscore */
.wl[data-view="compact"] .wl-details, .wl[data-view="details"] .wl-compact { display: none; }
.pill.score { cursor: help; font-variant-numeric: tabular-nums; }
.pill.score.laag { background: var(--fill); color: var(--text-2); }
.pill.score.middel { background: var(--orange-soft); color: var(--orange-ink); }
.pill.score.hoog { background: var(--accent-soft); color: var(--accent-hover); }
.pill.score.zeer-hoog { background: var(--red); color: #fff; }
.score-help { font-size: 13px; color: var(--muted); cursor: help; display: inline-flex; align-items: center; gap: 6px; }
.score-help .i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center;
  font: italic 700 11px Georgia, serif; }
.filter-bar { margin-bottom: 18px; gap: 12px; align-items: center; }
.filter-bar .segmented a, .filter-bar .segmented button { height: 32px; display: inline-flex; align-items: center; }
/* Paginatabs: navigatie tussen onderdelen van een pagina (los van de filters eronder). */
/* Lijn als inset-schaduw (geen rand + negatieve marge): zo ontstaat er geen verticale overloop en dus geen scrollbalk. */
.page-tabs { display: flex; gap: 24px; margin: 4px 0 18px; box-shadow: inset 0 -1px 0 var(--line);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px 12px;
  font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.page-tabs a:hover { color: var(--text); }
.page-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.page-tabs .count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 12px; font-weight: 600;
  display: inline-grid; place-items: center; background: var(--fill); color: var(--muted); }
.page-tabs a.on .count { background: var(--accent-soft); color: var(--accent-hover); }
/* filterbalk: zoekveld en keuzelijsten met dezelfde hoogte en stijl */
.input.filter-select { min-width: 0; width: auto; height: 36px; border-radius: 10px; font-size: 14px; font-weight: 500;
  background-color: var(--surface); border: 0; box-shadow: var(--shadow-s), 0 0 0 1px var(--line); }
.input.filter-select:focus { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
select.input { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.search-field { position: relative; display: inline-flex; align-items: center; }
.search-field svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.search-field .input { padding-left: 33px; width: 260px; font-weight: 400; }
@media (max-width: 720px) { .search-field, .search-field .input { width: 100%; } }
.score-help:hover, .score-help:focus-visible { color: var(--text); outline: none; }

/* Grafieken (inzichten) */
.chart-plot { position: relative; min-height: 220px; }
.chart-plot svg { display: block; overflow: visible; }
.chart-plot svg:focus { outline: none; }
.chart-plot svg:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 8px; }
.chart-plot .bar { transition: opacity .12s; }
.chart-plot svg:hover .bar:not(.on) { opacity: .55; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -6px 0 10px; font-size: 13px; color: var(--text-2); }
.chart-legend:empty { display: none; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.chart-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.chart-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px; background: var(--surface); border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-l); padding: 10px 12px; font-size: 12.5px;
}
.chart-tip-title { font-weight: 700; margin-bottom: 6px; }
.chart-tip-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--text-2); }
.chart-tip-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip-extra { justify-content: space-between; color: var(--muted); }
.chart-tip-extra:first-of-type { }
.chart-tip-row + .chart-tip-extra { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.chart-tip-extra + .chart-tip-extra { margin-top: 0; padding-top: 2px; border-top: 0; }
.chart-details { margin-top: 10px; }
.chart-details summary { cursor: pointer; font-size: 13px; color: var(--accent); width: max-content; }
.chart-details .table { margin-top: 8px; font-variant-numeric: tabular-nums; }
.chart-details .table td, .chart-details .table th { padding: 6px 10px; }
.delta { font-weight: 600; }
.delta.bad { color: var(--red-ink); } .delta.good { color: var(--green-ink); } .delta.flat { color: var(--muted); }

/* Bevestigingsvenster */
.dialog {
  border: 0; border-radius: var(--radius-l); padding: 26px 28px; width: min(560px, calc(100vw - 32px));
  box-shadow: var(--shadow-l); color: var(--text);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 20% -10%, var(--accent-soft) 0%, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-l); padding: 40px 36px; text-align: center; }
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.login-card h1 { font-size: 26px; margin-bottom: 8px; }
.login-card p { color: var(--muted); margin-bottom: 26px; }
.ms-btn { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  font: inherit; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.ms-btn:hover { background: var(--surface-2); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { opacity: 1; }
.htmx-swapping { opacity: 0; transition: opacity .2s ease-out; }

.popover {
  position: absolute; right: 0; top: 36px; z-index: 20; width: 320px; gap: 8px; padding: 16px;
  box-shadow: var(--shadow-l); text-align: left;
}
details.pop > summary::-webkit-details-marker { display: none; }
a:focus-visible, summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 8px; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }

@media (max-width: 860px) {
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .search { display: none; }
  .page { padding: 22px 16px 60px; }
  .brand-divider, .brand-name, .hide-sm { display: none; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .brand-logo { height: 26px; }
  .nav a { padding: 0 9px; font-size: 13.5px; }
  .nav { mask-image: linear-gradient(to right, #000 85%, transparent); -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); }
  h1 { font-size: 26px; }
  .kpi .value { font-size: 28px; }
  .card { padding: 18px; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .avatar.xl { width: 64px; height: 64px; font-size: 22px; }
  .list-item { flex-wrap: wrap; }
  .list-item .actions { width: 100%; padding-left: 16px; flex-wrap: wrap; }
  .popover { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; }
  .page-head { margin-bottom: 18px; }
}
.meet-row.flash-undo td { animation: flash-undo 1.2s ease-out; }
@keyframes flash-undo { from { background: var(--accent-soft); } }

/* ------------------------------------------------------------ inline wijzigen */
.inline { display: inline-flex; align-items: center; vertical-align: middle; }
.inline form { display: inline-flex; margin: 0; }
.inline-val {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; color: inherit;
  padding: 3px 7px; margin: -3px 0; border-radius: 8px; cursor: text; text-align: left; white-space: nowrap;
  transition: background .15s;
}
.meta-edit .inline-val { font-weight: 600; color: var(--text); }
.inline-val svg { width: 13px; height: 13px; flex: none; color: var(--faint); opacity: 0; transition: opacity .15s; }
.inline-val:hover, .inline-val:focus-visible { background: var(--fill); outline: none; }
.inline-val:hover svg, .inline-val:focus-visible svg { opacity: 1; }
.inline-val.empty-val span { color: var(--faint); }
.input.input-sm { height: 30px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; width: auto; min-width: 150px; }
.meta-edit { display: inline-flex; align-items: center; gap: 6px; }
.inline.htmx-request { opacity: .55; }
.inline.saved { animation: saved-flash 1.2s ease-out; border-radius: 8px; }
@keyframes saved-flash { from { background: var(--green-soft); box-shadow: 0 0 0 4px var(--green-soft); } }

.switch { position: relative; width: 38px; height: 22px; border-radius: 11px; border: 0; padding: 0; cursor: pointer;
  background: var(--line-strong); transition: background .2s; flex: none; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform .2s; }
.switch.on { background: #f5b800; }
.switch.on .knob { transform: translateX(16px); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.user-edit { width: 300px; text-align: left; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 6px; font-weight: 400; }
.check-grid label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); }

/* evolutie op het overzicht */
.trend-list { display: flex; flex-direction: column; }
.trend-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 64px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.trend-row:first-child { border-top: 0; }
.trend-row { border-radius: 10px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; cursor: help; }
.trend-row:hover, .trend-row:focus-visible { background: var(--fill); outline: none; }
.t-label { font-size: 13.5px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.3; }
.t-val { text-align: right; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.t-delta { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.t-delta.bad { color: var(--red-ink); } .t-delta.good { color: var(--green-ink); }
.spark { overflow: visible; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: transparent; }
.spark circle.last { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.spark circle:not(.last):hover { fill: var(--accent-ring); }
.t-bars { display: flex; flex-direction: column; gap: 4px; }
.t-bars span { height: 6px; border-radius: 6px; background: var(--gray); display: block; }
.t-bars span.now { background: var(--accent); }

/* kerncijfers bij Inzichten */
.ins-tile { cursor: help; transition: box-shadow .15s, transform .15s; position: relative; }
.ins-tile:hover, .ins-tile:focus-visible { box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); outline: none; transform: translateY(-1px); }
.ins-tile .label { gap: 5px; }
.i-hint { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.3px solid var(--faint); color: var(--faint);
  display: inline-grid; place-items: center; font: italic 700 10px Georgia, serif; opacity: .7; }
.ins-tile:hover .i-hint { color: var(--text-2); border-color: var(--text-2); opacity: 1; }
.ins-spark { margin-bottom: 8px; flex: none; }
.kpi.accent .meter span { background: var(--accent); }
.color-split { display: flex; gap: 18px; }
.color-split .cs { display: flex; align-items: baseline; gap: 4px; }
.color-split .cs b { font-weight: 700; }
.color-split .cs small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.color-split .cs.G b { color: var(--green-ink); } .color-split .cs.O b { color: var(--orange-ink); } .color-split .cs.R b { color: var(--red-ink); }
.stackbar { display: flex; gap: 2px; height: 8px; border-radius: 8px; overflow: hidden; margin: 10px 0 8px; background: var(--fill); }
.stackbar span { display: block; height: 100%; }
.stackbar .G { background: var(--green); } .stackbar .O { background: var(--orange); } .stackbar .R { background: var(--red); }

/* ------------------------------------------------------------ gesprekken */
.talk-form { display: flex; flex-direction: column; gap: 14px; padding: 18px; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.rte { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong); overflow: hidden; }
.rte:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-ring); }
.rte-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rte-bar button { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text-2); min-width: 30px; height: 28px;
  padding: 0 7px; border-radius: 7px; cursor: pointer; }
.rte-bar button:hover { background: var(--fill); color: var(--text); }
.rte-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
/* standaard ruimer, en in hoogte te vergroten via de greep rechtsonder */
.rte-body { height: 300px; min-height: 160px; max-height: 80vh; overflow: auto; padding: 14px 16px; outline: none;
  font-size: 14.5px; line-height: 1.55; }
.rte-body:empty::before { content: attr(data-placeholder); color: var(--faint); }
.rte-body h1, .rte-view h1 { font-size: 22px; margin: 10px 0 6px; } .rte-body h2, .rte-view h2 { font-size: 18px; margin: 10px 0 6px; }
.rte-body h3, .rte-view h3 { font-size: 16px; margin: 8px 0 4px; } .rte-body h4, .rte-view h4 { font-size: 14px; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.rte-body p, .rte-view p { margin: 0 0 6px; } .rte-body ul, .rte-view ul { margin: 4px 0 8px; padding-left: 22px; }
.rte-body mark, .rte-view mark { background: var(--gold-soft); color: inherit; border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -2px 0 #f5b800; }
.rte-view mark::before { content: "📌 "; font-size: 11px; }
.impact { display: flex; flex-direction: column; gap: 6px; }
.impact-row { display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 10px; transition: background .2s; }
.impact-row.hinted { background: var(--accent-soft); }
.impact-name { width: 130px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.hint-chip { font-size: 10.5px; font-weight: 600; color: var(--accent-hover); background: var(--surface); border-radius: 6px; padding: 1px 6px; }
.impact-scale { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; }
.impact-scale .iv { position: relative; }
.impact-scale input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.impact-scale span { display: grid; place-items: center; min-width: 40px; height: 28px; border-radius: 8px; font-size: 12px; color: var(--muted); }
.impact-scale input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }
.impact-scale input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 700; }
.impact-scale .iv-2 input:checked + span, .impact-scale .iv-1 input:checked + span { color: var(--red-ink); background: var(--red-soft); }
.impact-scale .iv1 input:checked + span, .impact-scale .iv2 input:checked + span { color: var(--green-ink); background: var(--green-soft); }
/* Inzichten: vertrekkers per kwartaal */
.leavers td { white-space: nowrap; }
.leavers thead th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.leavers .est { display: inline-block; width: 10px; text-align: left; color: var(--faint); cursor: help; }
.leavers .faint-row td { color: var(--faint); }
.leavers .faint-row b { font-weight: 500; }
.leavers-planned td { background: var(--orange-soft); }
.leavers tfoot td { border-top: 1px solid var(--line-strong); padding-top: 12px; padding-bottom: 14px; }
.leavers-colors { display: inline-flex; gap: 12px; font-variant-numeric: tabular-nums; }
.leavers-colors span { display: inline-flex; align-items: center; gap: 5px; }
.th-tip { cursor: help; border-bottom: 1px dotted var(--line-strong); }
.leavers .grp-start { border-left: 1px solid var(--line); padding-left: 16px; }
.leavers-group th { padding-top: 6px; padding-bottom: 0; border-bottom: 0; }
.leavers-group th.grp { text-align: left; font-size: 11px; color: var(--faint); border-left: 1px solid var(--line); padding-left: 16px; }
.leavers td.missed { color: var(--red-ink); font-weight: 600; }
.rel-table th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; text-transform: none; letter-spacing: 0;
  font-size: 14px; color: var(--text); }
.rel-table th[scope="row"] a:hover { color: var(--accent); }
.rel-table td { white-space: nowrap; }
.rel-cell { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rel-cell b { min-width: 38px; text-align: right; }
.rel-bar { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.rel-bar i { display: block; height: 100%; border-radius: 4px; }
.rel-bar.radar i, .rc.radar-key { background: var(--accent); }
.rel-bar.hit i, .rc.hit-key { background: var(--blue); }
.rel-table .rel-thin > * { opacity: .45; }
.rel-table .rel-total th, .rel-table .rel-total td { border-top: 1px solid var(--line-strong); }
.missed-btn { border: 0; background: var(--red-soft); color: var(--red-ink); font: inherit; font-weight: 600; padding: 2px 8px;
  border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.missed-btn:hover { background: color-mix(in srgb, var(--red) 22%, var(--surface)); }
.missed-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.missed-btn .chev-s { display: inline-block; transition: transform .15s; }
.missed-btn[aria-expanded="true"] .chev-s { transform: rotate(90deg); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.leavers tr.missed-detail > td { white-space: normal; background: var(--surface-2); padding: 14px 22px 16px; }
.missed-list { display: grid; gap: 8px; }
.missed-item { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.3fr) minmax(260px, 2fr); gap: 6px 20px;
  align-items: start; background: var(--surface); border-radius: 10px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); }
.mi-who { display: flex; flex-direction: column; gap: 2px; }
.mi-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 3px; }
.mi-drivers { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mi-drivers span { display: inline-flex; align-items: center; gap: 4px; }
.mi-reasons { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.mi-reasons .pill { white-space: normal; height: auto; min-height: 22px; padding: 2px 9px; }
.mi-gap { grid-column: 1 / -1; color: var(--orange-ink); background: var(--orange-soft); border-radius: 8px; padding: 6px 10px; }
@media (max-width: 900px) { .missed-item { grid-template-columns: 1fr; } }
.rc { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.rc.both { background: var(--green); } .rc.color_only { background: var(--purple, #8e5ce6); }
.rc.signal_only { background: var(--blue, #2a78d6); } .rc.missed { background: var(--red); }
.radar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 4px 22px 10px; }
.radar-legend > span { display: inline-flex; align-items: center; cursor: help; }
.radar-cell { display: inline-flex; align-items: center; gap: 8px; }
.radar-bar { display: inline-flex; width: 48px; height: 8px; gap: 2px; }
.radar-bar .rc { height: 8px; width: auto; margin: 0; border-radius: 2px; }

/* Voorstellen: uitleg met voorbeelden */
.explain { margin: 0 0 20px; }
.explain > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; font-weight: 600;
  font-size: 15px; padding: 4px 0 12px; }
.explain > summary::-webkit-details-marker { display: none; }
.explain .chev-s { display: inline-block; color: var(--faint); transition: transform .15s; font-size: 18px; line-height: 1; }
.explain[open] .chev-s { transform: rotate(90deg); }
.explain-grid { gap: 16px; }
.explain-card { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.explain-card h3 { color: var(--text); }
.explain-kicker { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.explain-kicker .mono { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.explain-card blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 10px 10px 0; color: var(--text); font-style: italic; }
.explain-card dl { display: grid; grid-template-columns: 128px 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.explain-card dt { color: var(--muted); font-weight: 500; }
.explain-card dd { margin: 0; }
.explain-ask { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .explain-card dl { grid-template-columns: 1fr; gap: 2px; } .explain-card dd { margin-bottom: 6px; } }

/* Overzicht: heatmap drivers × league (één tint, licht → donker) */
.heatmap { border-collapse: separate; border-spacing: 4px; font-size: 13px; margin: -4px; width: calc(100% + 8px);
  table-layout: fixed; }
.heatmap thead th:first-child { width: 92px; }
.heatmap th { font-weight: 500; color: var(--muted); font-size: 12px; text-align: center; padding: 0 0 2px; }
.heatmap th[scope="row"] { text-align: left; font-weight: 600; color: var(--text-2); font-size: 13px; white-space: nowrap; padding-right: 4px; }
.heatmap th[scope="row"] a:hover { color: var(--accent); }
.heatmap td { padding: 0; }
.hm-cell { display: grid; place-items: center; height: 32px; border-radius: 6px; font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--text); background: var(--fill); cursor: help; }
.hm-cell.l0 { background: var(--fill); color: var(--muted); font-weight: 500; }
.hm-cell.l1 { background: color-mix(in srgb, var(--red) 14%, var(--surface)); }
.hm-cell.l2 { background: color-mix(in srgb, var(--red) 26%, var(--surface)); }
.hm-cell.l3 { background: color-mix(in srgb, var(--red) 40%, var(--surface)); }
.hm-cell.l4 { background: color-mix(in srgb, var(--red) 56%, var(--surface)); }
.hm-cell.thin { opacity: .45; }
.hm-cell.none { color: var(--faint); background: none; cursor: default; }
.hm-total th, .hm-total .hm-cell { border-top: 0; }
.hm-total th[scope="row"] { color: var(--muted); font-weight: 500; }
.hm-total td .hm-cell { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.hm-scale { display: flex; align-items: center; gap: 3px; margin-top: 12px; }
.hm-scale .hm-cell { width: 22px; height: 10px; border-radius: 3px; cursor: default; }
.hm-scale span { margin: 0 4px; }
/* compact naast 'Dreigen af te drijven' */
.heatmap.compact { border-spacing: 3px; margin: -3px; width: calc(100% + 6px); table-layout: fixed; }
.heatmap.compact thead th:first-child { width: 88px; }
.heatmap.compact th { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heatmap.compact th[scope="row"] { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.heatmap.compact .hm-cell { height: 30px; font-size: 12px; border-radius: 5px; }
.heatmap.compact .hm-sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--faint); line-height: 1.2; font-variant-numeric: tabular-nums; }
.heatmap.compact th[scope="row"] { line-height: 1.2; }
.heatmap.compact + .hm-scale { flex-wrap: wrap; row-gap: 4px; margin-top: 10px; }
.heatmap.compact + .hm-scale .hm-cell { width: 16px; height: 8px; }

/* Sterren op de watchlist */
.star-colors { display: inline-flex; align-items: center; gap: 4px; }
.star-colors .dot:first-child { margin-right: 3px; }
.star-tips { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.star-tip { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.star-tip:nth-child(2) { border-top: 0; }
.star-tip-text { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); }
.talk-list { display: flex; flex-direction: column; gap: 4px; }
.talk { border-top: 1px solid var(--line); }
.talk:first-child { border-top: 0; }
.talk-tools { margin: -6px 0 4px; }
.talk-head { display: flex; align-items: center; gap: 10px; padding: 12px 8px; margin: 0 -8px; border-radius: 10px;
  cursor: pointer; list-style: none; min-width: 0; }
.talk-head::-webkit-details-marker { display: none; }
.talk-head:hover { background: var(--fill); }
.talk-head .chev { width: 12px; height: 12px; flex: none; color: var(--faint); transition: transform .15s; }
.talk[open] .talk-head .chev { transform: rotate(90deg); }
.talk-date { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.talk-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.talk-snippet { color: var(--muted); }
.talk[open] .talk-snippet { display: none; }
.talk-badges { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.pin-count { color: var(--gold-ink); background: var(--gold-soft); }
.talk-detail { padding: 2px 0 14px 22px; }
/* Opengeklapt: kop, verslag en knoppen vormen één kaart. */
.talk[open] { border-top-color: transparent; background: var(--surface-2); border-radius: 12px; box-shadow: 0 0 0 1px var(--line);
  margin: 6px 0; }
.talk[open] + .talk { border-top-color: transparent; }
.talk[open] .talk-head { margin: 0; padding: 12px 14px; border-radius: 12px 12px 0 0; }
.talk[open] .talk-detail { padding: 0 14px 0 36px; }
.talk-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 8px 0 10px;
  border-top: 1px solid var(--line); }
.talk-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.talk-actions form { display: contents; }
.talk-actions .btn svg { width: 14px; height: 14px; }
.talk:target .talk-head, .talk.flash .talk-head { background: var(--accent-soft); }
@media (max-width: 720px) { .talk-head { flex-wrap: wrap; } .talk-sum { flex-basis: 100%; order: 5; } }
.talk-body { font-size: 14px; color: var(--text-2); }
.btn-plain.small { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.imp { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.imp.neg { color: var(--red-ink); background: var(--red-soft); } .imp.pos { color: var(--green-ink); background: var(--green-soft); }
.imp.sens { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-ink); background: var(--orange-soft); }
.imp.sens svg { width: 12px; height: 12px; }
/* Gesprekken: waarschuwing bij gevoelige gegevens (GDPR) */
.sens-warn { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .28); transition: box-shadow .2s; }
.sens-warn.insist { box-shadow: inset 0 0 0 2px var(--orange); }
.sens-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
.sens-head svg { width: 16px; height: 16px; color: var(--orange); align-self: center; }
.sens-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.sens-list li { font-size: 13px; }
.sens-list p { margin: 2px 0 0; }
.sens-words { color: var(--orange-ink); font-weight: 500; }
.sens-confirm { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 159, 10, .25); }
.sens-warn.compact { margin: 0 0 12px; padding: 10px 12px; }
.sens-warn.compact .sens-head { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .sens-warn { transition: none; } }
/* in het kwartaaloverleg */
.talk-flag { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; cursor: help; }
.talk-flag.neg { color: var(--red-ink); background: var(--red-soft); } .talk-flag.pos { color: var(--green-ink); background: var(--green-soft); }
.talk-digest { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--line); }
.td-item { padding: 6px 0; border-top: 1px solid var(--line); } .td-item:first-of-type { border-top: 0; }
.td-item .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pin { font-size: 13px; margin-top: 3px; }
/* kwartaaloverleg: filter op nog aan te vullen lijnen */
#meet-table:not([data-rows="all"]) tr.meet-row:not(.keep) { display: none; }
#meet-table:not([data-rows="all"]) tr.meet-row:not(.keep) + tr.meet-notes { display: none; }
.count-chip { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; margin-left: 4px; }
.count-chip:empty { display: none; }
/* status als keuzemenu in het statuslabel zelf */
.status-menu { position: relative; }
.status-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.status-menu summary::-webkit-details-marker { display: none; }
.status-menu summary svg { width: 11px; height: 11px; opacity: .7; }
.status-menu summary:hover { filter: brightness(.97); box-shadow: 0 0 0 1px currentColor inset; }
.status-menu .menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); z-index: 60;
  border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 6px; }
.status-menu .menu form { margin: 0; }
.status-menu .menu-label { font-size: 11.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px 4px; }
.status-menu .menu button { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; align-items: center; width: 100%;
  text-align: left; border: 0; background: none; font: inherit; font-size: 14px; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.status-menu .menu button small { grid-column: 2; font-size: 12px; color: var(--muted); }
.status-menu .menu button:hover { background: var(--fill); }
.status-menu .menu button.danger { color: var(--red-ink); }

/* snelle acties per rij (consultantlijst) */
.quick-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 13px; border: 0; cursor: pointer;
  background: var(--fill); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 500; }
.quick-btn:hover { background: var(--accent-soft); color: var(--accent-hover); }
.row-quick { opacity: .55; transition: opacity .15s; }
tr:hover .row-quick, .row-quick:focus-within { opacity: 1; }
.quick-actions { gap: 6px; }
.rte-grip { height: 14px; cursor: ns-resize; display: grid; place-items: center; border-top: 1px solid var(--line);
  background: var(--surface-2); touch-action: none; }
.rte-grip::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.rte-grip:hover::before, .rte-grip.dragging::before { background: var(--accent); }
.impact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 14px; }
.nav .count.soft { background: var(--fill); color: var(--text-2); }
.nav a.active .count.soft { background: var(--accent-soft); color: var(--accent-hover); }
#meet-table:not(.show-leaving) tr.meet-row.leaving,
#meet-table:not(.show-leaving) tr.meet-row.leaving + tr.meet-notes { display: none; }
.toggle-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer;
  padding: 6px 12px; border-radius: 10px; background: var(--fill); }
.toggle-chip input { accent-color: var(--accent); margin: 0; }
.count-chip.soft { background: var(--line-strong); color: var(--text-2); }

/* Inzichten: mijn gesprekken */
.impact-mini { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.impact-mini div { display: grid; grid-template-columns: 1fr 44px 44px; align-items: center; }
.impact-mini b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.impact-mini .neg { color: var(--red-ink); } .impact-mini .pos { color: var(--green-ink); }
.kind-bars { display: grid; gap: 7px; }
.kind-bars div { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 10px; font-size: 13.5px; }
.kind-bars .kb { height: 8px; border-radius: 8px; background: var(--fill); overflow: hidden; }
.kind-bars .kb span { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.kind-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.count-chip.warn { background: var(--orange); }
.meet-pick { gap: 10px; align-self: flex-end; }
.meet-pick .filter-select { min-width: 170px; }
.meet-filters { align-items: center; }
.progress-box { width: 220px; }
@media (max-width: 720px) { .progress-box { width: 100%; } }

/* release-overzicht (subtiel in Instellingen) */
.subnav a.subnav-quiet { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
.subnav .ver { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 16px; }
@media (max-width: 760px) { .release-grid { grid-template-columns: 1fr; } }
.release h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.release ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.release li + li { margin-top: 3px; }
.rel-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; }
.rel-tag.new { background: var(--accent-soft); color: var(--accent-hover); }
.rel-tag.fix { background: var(--green-soft); color: var(--green-ink); }

/* ------------------------------------------------------------ donkere modus: details */
:root[data-theme="dark"] .brand-logo { filter: invert(1) hue-rotate(180deg) brightness(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: invert(1) hue-rotate(180deg) brightness(1.05); } }

/* ------------------------------------------------------------ weergave en mobiel menu */
.theme-pick { padding: 6px 12px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); }
.theme-seg button { width: 34px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.theme-seg button:hover { color: var(--text); }
.theme-seg button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.theme-seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--text);
  cursor: pointer; place-items: center; flex-shrink: 0; }
.menu-toggle:hover { background: var(--fill); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle path { transition: transform .2s, opacity .2s; transform-origin: center; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 16px 18px; box-shadow: var(--shadow-l);
  max-height: calc(100vh - 64px); overflow: auto; }
.mobile-menu nav { display: grid; gap: 2px; margin-top: 10px; }
.mobile-menu nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px;
  font-size: 16px; font-weight: 500; color: var(--text); }
.mobile-menu nav a:hover { background: var(--fill); }
.mobile-menu nav a .ic { width: 20px; height: 20px; color: var(--muted); }
.mobile-menu nav a.active .ic { color: var(--accent); }
.mobile-menu nav a .count { margin-left: auto; }
.mobile-menu nav a.active { background: var(--accent-soft); color: var(--accent-hover); }
.mobile-menu .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px;
  font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.mobile-menu .count.soft { background: var(--fill); color: var(--text-2); }
.mobile-search { display: flex !important; width: 100%; }
.mobile-search input { width: 100%; }
@media (max-width: 860px) {
  .nav, .settings-link { display: none; }
  .menu-toggle { display: grid; margin-left: auto; }
  .brand-name { display: inline; }
  .topbar-inner .search:not(.mobile-search) { display: none; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
.confirm-dialog { max-width: 440px; }
.confirm-dialog h2 { font-size: 18px; }

/* sorteerbare kolommen: subtiel pijltje */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--text); }
th.sortable::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: 0;
  transition: opacity .15s, transform .15s; }
th.sortable:hover::after { opacity: .3; }
th.sorted-asc::after, th.sorted-desc::after { opacity: .75; }
th.sorted-desc::after { transform: rotate(180deg); }
th.sorted-asc, th.sorted-desc { color: var(--text); }
th.sortable:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--accent); }

/* snelknoppen op het overzicht: één hoofdknop, de rest rustig */
.quick-actions { gap: 4px 14px; align-items: center; }
.btn-start { gap: 7px; padding-left: 14px; }
.btn-start svg { width: 13px; height: 13px; fill: currentColor; }

/* Kenmerken op het profiel: toevoegen */
.obs-add { margin-top: 10px; }
.obs-add summary { list-style: none; display: inline-flex; width: auto; cursor: pointer; }
.obs-add summary::-webkit-details-marker { display: none; }
.obs-add[open] summary { color: var(--muted); }

/* Rondleiding */
.user-menu .menu .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px;
  border-radius: 8px; font: inherit; font-size: 14px; color: inherit; background: none; border: 0; cursor: pointer; }
.user-menu .menu .menu-item:hover { background: var(--fill); }
.user-menu .menu .menu-item svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.user-menu .menu .menu-item:hover svg { stroke: var(--text); }
.user-menu .menu .menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.user-menu .menu .menu-item.logout { color: var(--muted); }
.user-menu .menu .menu-item.logout:hover { color: var(--red-ink); background: var(--red-soft); }
.user-menu .menu .menu-item.logout:hover svg { stroke: var(--red); }
.tour { position: fixed; inset: 0; z-index: 1000; opacity: 0; transition: opacity .25s ease; }
/* Welkom: rustige tekstlink naar 'Waarom Anker?', los van de knoppen eronder. */
.tour-why { display: inline-block; margin: -8px auto 22px; border: 0; background: none; padding: 2px 4px; border-radius: 6px;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.tour-why:hover { text-decoration-color: currentColor; }
.tour-why:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.tour.on { opacity: 1; }
.tour-spot { position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px var(--accent-ring), 0 0 0 9999px rgba(10, 10, 14, 0.5);
  transition: left .4s cubic-bezier(.2, .8, .2, 1), top .4s cubic-bezier(.2, .8, .2, 1), width .4s cubic-bezier(.2, .8, .2, 1), height .4s cubic-bezier(.2, .8, .2, 1);
  animation: tour-pulse 2.4s ease-in-out infinite; }
@keyframes tour-pulse { 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 11px transparent, 0 0 0 9999px rgba(10, 10, 14, 0.5); } }
.tour.centered .tour-spot { animation: none; box-shadow: 0 0 0 9999px rgba(10, 10, 14, 0.5); }
.tour-pop { position: fixed; background: var(--surface); color: var(--text); border-radius: 18px; padding: 20px 20px 14px;
  box-shadow: var(--shadow-l), 0 0 0 1px var(--line);
  transition: left .4s cubic-bezier(.2, .8, .2, 1), top .4s cubic-bezier(.2, .8, .2, 1); }
.tour-pop.swap .tour-body { animation: tour-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } }
.tour-caret { position: absolute; width: 14px; height: 14px; background: var(--surface); transform: translate(-50%, 0) rotate(45deg);
  border-radius: 3px; display: none; }
.tour-caret.top { display: block; top: -6px; }
.tour-caret.bottom { display: block; bottom: -6px; }
.tour-caret.right { display: block; right: -6px; left: auto; transform: rotate(45deg); }
.tour-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tour-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); }
.tour-icon svg { width: 20px; height: 20px; }
.tour-step { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.tour-pop h2 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.01em; }
.tour-pop p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.tour-foot { display: flex; align-items: center; gap: 6px; }
.tour-foot .spacer { flex: 1; }
.tour-foot [data-t=prev] { width: 32px; padding: 0; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .3s ease, background .3s ease; }
.tour-dots i.done { background: var(--accent-ring); }
.tour-dots i.on { width: 18px; background: var(--accent); }
/* Welkom en slot: groter kaartje met een kleine illustratie bovenaan */
.tour-pop.is-hero { padding: 0 24px 16px; overflow: hidden; text-align: center; }
.tour-pop.is-hero p { margin-bottom: 20px; }
.tour-pop.is-hero h2 { font-size: 20px; }
.tour-pop.is-hero .tour-foot .spacer:first-of-type { display: none; }
.tour-pop.is-hero [data-t=skip] { color: var(--muted); }
.tour-pop.is-hero [data-t=skip]:hover { color: var(--text); }
.tour-pop.is-hero .tour-foot { justify-content: space-between; gap: 12px; margin: 0 -24px; padding: 14px 24px 0;
  border-top: 1px solid var(--line); }
.tour-pop.is-hero .tour-dots { display: none; }
.tour-hero { margin: 0 -24px 18px; padding: 30px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 70%); }
.tour-hero-mark { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-hover)); box-shadow: 0 8px 22px var(--accent-ring);
  animation: tour-float 4s ease-in-out infinite; }
.tour-hero-mark svg { width: 32px; height: 32px; stroke-width: 2.1; }
.tour-hero.done { background: radial-gradient(120% 90% at 50% 0%, var(--green-soft), transparent 70%); }
.tour-hero.done .tour-hero-mark { background: var(--green); box-shadow: 0 8px 22px rgba(48, 184, 82, .3); }
@keyframes tour-float { 50% { transform: translateY(-3px); } }
.tour-hero-dots { display: flex; gap: 8px; }
.tour-hero-dots .dot { width: 10px; height: 10px; animation: tour-dot .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.tour-hero-dots .dot:nth-child(2) { animation-delay: .08s; }
.tour-hero-dots .dot:nth-child(3) { animation-delay: .16s; }
.tour-hero-dots .dot:nth-child(4) { animation-delay: .24s; }
@keyframes tour-dot { from { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) {
  .tour, .tour-spot, .tour-pop, .tour-dots i { transition: none; }
  .tour-spot, .tour-hero-mark, .tour-hero-dots .dot, .tour-pop.swap .tour-body { animation: none; }
}

/* Lijniconen (icon()-helper) */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
/* Verwijderen: overal dezelfde stille prullenbak, rood bij hover */
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--faint); cursor: pointer; transition: background .15s, color .15s; vertical-align: middle; }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--fill); color: var(--text); outline: none; }
.icon-btn.danger:hover, .icon-btn.danger:focus-visible { background: var(--red-soft); color: var(--red-ink); }
.switch.green.on { background: var(--green); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.status-dot.on { color: var(--text); }
.status-dot.on::before { background: var(--green); }
.list-item.proposal { display: block; padding: 18px 0; }
.list-item.proposal:first-child { padding-top: 4px; }
/* Gebruikersmenu: subtiele link naar het release-overzicht onderaan */
.user-menu .menu .menu-version { display: block; padding: 6px 12px 4px; margin-top: 2px; font-size: 11.5px; color: var(--faint);
  border-radius: 6px; text-align: center; }
.user-menu .menu .menu-version:hover { color: var(--muted); background: none; text-decoration: underline; }

/* Actiestatus: Open · Bezig · Klaar als één schakelaar; de huidige krijgt een gekleurd bolletje */
.status-seg { flex-wrap: nowrap; }
.status-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font-size: 12.5px; color: var(--muted); }
.status-seg button:hover:not(.on) { color: var(--text); }
.status-seg button.on { color: var(--text); cursor: default; }
.status-seg button.on::before, .status-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }
.status-seg button.bezig.on::before, .status-label.bezig::before { background: var(--blue); }
.status-seg button.klaar.on::before, .status-label.klaar::before { background: var(--green); }
.status-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
/* Klaar: altijd groen met een vinkje, zodat afvinken uitnodigt; actief = groene vulling. */
.status-seg button.klaar { color: var(--green-ink); font-weight: 600; }
.status-seg button.klaar .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.status-seg button.klaar:hover:not(.on) { color: var(--green-ink); background: var(--green-soft); }
.status-seg button.klaar.on { background: var(--green); color: #fff; }
.status-seg button.klaar.on::before, .status-label.klaar::before { display: none; }
.status-label.klaar { color: var(--green-ink); font-weight: 600; }
.status-label.klaar .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.list-item .actions { display: flex; align-items: center; gap: 6px; }

/* Kwartaaloverleg: de in te vullen kolommen (algemeen + 4 drivers) als één zachte band, zodat ze loskomen van de rest */
:root { --fill-band: rgba(10, 132, 255, 0.035); --fill-band-line: rgba(10, 132, 255, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fill-band: rgba(100, 170, 255, 0.05); --fill-band-line: rgba(100, 170, 255, 0.16); } }
:root[data-theme="dark"] { --fill-band: rgba(100, 170, 255, 0.05); --fill-band-line: rgba(100, 170, 255, 0.16); }
#meet-table .fill-col { background-image: linear-gradient(var(--fill-band), var(--fill-band)); }   /* tint bovenop rij-hover */
#meet-table .fill-first { box-shadow: inset 1px 0 0 var(--fill-band-line); }
#meet-table .fill-last { box-shadow: inset -1px 0 0 var(--fill-band-line); }
#meet-table .fill-overall { border-right: 1px dashed var(--fill-band-line); }     /* algemeen | drivers */
#meet-table thead th.fill-col { color: var(--text-2); }
#meet-table .overall-cell.warn { box-shadow: inset 0 0 0 1px rgba(232, 137, 12, 0.35); }

/* Exits: horizontale balken, scores, 4-puntsschaal en antwoorden */
.exit-grid { align-items: start; }
.ex-bars { display: grid; gap: 10px; }
.ex-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) 40px auto; align-items: center; gap: 12px; font-size: 13.5px; }
.ex-bar .lbl { min-width: 0; line-height: 1.3; }
.ex-bar .lbl small { display: block; font-size: 11.5px; color: var(--faint); }
.ex-bar .track { height: 8px; border-radius: 8px; background: var(--fill); overflow: hidden; }
.ex-bar .fill { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.ex-bar .fill.G { background: var(--green); } .ex-bar .fill.O { background: var(--orange); } .ex-bar .fill.R { background: var(--red); }
.ex-bar .fill.neutral { background: var(--text-2); opacity: .45; }
.ex-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.ex-bar .dot { width: 10px; height: 10px; }
.score-pill { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-pill.G { background: var(--green-soft); color: var(--green-ink); }
.score-pill.O { background: var(--orange-soft); color: var(--orange-ink); }
.score-pill.R { background: var(--red-soft); color: var(--red-ink); }
.score-pill.none { color: var(--faint); }
.click-row { cursor: pointer; }
.link-quiet { color: inherit; text-decoration: none; }
.link-quiet:hover { color: var(--accent); }
.ex-answers { display: flex; flex-direction: column; }
.ex-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.ex-row:last-child { border-bottom: 0; }
.ex-row .q { color: var(--text-2); }
.ex-row .v { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; text-align: right; }
.ex-row .v.chips { flex-wrap: wrap; gap: 6px; }
.ex-scale { display: inline-flex; gap: 3px; }
.ex-scale i { width: 14px; height: 8px; border-radius: 3px; background: var(--fill); }
.ex-scale i.on { background: var(--muted); }
.ex-scale i.on.s3, .ex-scale i.on.s4 { background: var(--accent); }
.ex-scale-lbl { min-width: 150px; font-size: 13px; color: var(--muted); text-align: left; }
.ex-scale-lbl.agree { color: var(--text); font-weight: 500; }
.ex-quote { margin: 12px 0 4px; padding: 12px 16px; border-left: 3px solid var(--line-strong); background: var(--surface-2);
  border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.ex-quote .q { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; white-space: normal; }
@media (max-width: 760px) {
  .exit-grid { grid-template-columns: minmax(0, 1fr); }
  .ex-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ex-row .v { justify-content: flex-start; }
}

/* Profiel: teller met open acties op de avatar, Mijn acties bovenaan het menu */
.user-menu summary { position: relative; }
.avatar-count { position: absolute; top: -8px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; box-shadow: 0 0 0 2px var(--surface); }
.user-menu .menu .menu-item .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-hover); }
.user-menu .menu .menu-item.current { color: var(--accent-hover); }

/* Grafieken: categoriepalet (gevalideerd op CVD en contrast, vaste volgorde), met eigen stappen voor donker */
:root { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; } }
:root[data-theme="dark"] { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; }
.exit-evo .chart-card h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.exit-evo { gap: 28px; }
@media (max-width: 900px) { .exit-evo { grid-template-columns: minmax(0, 1fr); } }

.insights-head { margin-bottom: 28px; }
.insights-head .eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
/* Inzichten: tabs zoals de rest van de app (oranje lijntje onderaan, 2px), maar groter met icoon en korte uitleg */
.tab-cards { display: flex; gap: 6px; margin-top: 12px; border-bottom: 1px solid var(--line-strong); }
.tab-cards a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 20px 14px 12px;
  border-radius: 12px 12px 0 0; color: var(--text-2); transition: background .15s, color .15s; }
.tab-cards a:hover:not(.on) { background: var(--fill); }
.tab-cards a.on { color: var(--text); }
.tab-cards a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); }
.tab-cards b { display: block; font-size: 15.5px; font-weight: 600; color: inherit; }
.tab-cards small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.tc-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--fill); color: var(--muted); transition: background .15s, color .15s; }
.tc-icon .ic { width: 19px; height: 19px; }
.tab-cards a.on .tc-icon { background: var(--accent-soft); color: var(--accent); }
.tab-cards a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); }
@media (max-width: 640px) { .tab-cards a { flex: 1; padding-right: 12px; } .tab-cards small { display: none; } }

/* Easter egg achter het anker-icoon: een anker zakt in een nachtblauwe zee en verankert de consultants */
.brand-mark[data-anchor-egg] { cursor: pointer; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.brand-mark[data-anchor-egg]:hover { transform: rotate(-12deg) translateY(1px); }
.brand-mark[data-anchor-egg]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
body.egg-open { overflow: hidden; }
.egg { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center;
  background: #040b16; opacity: 0; transition: opacity .5s ease; color: #f4f7fb; }
.egg.on { opacity: 1; }
.egg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 52%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 11, 22, 0), rgba(4, 11, 22, 0.78) 55%, rgba(4, 11, 22, 0.92)); }
.egg-sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.egg-surface { animation: egg-surface 9s ease-in-out infinite alternate; }
@keyframes egg-surface { to { transform: translateX(-60px); } }
/* Subtiele signatuur: Axxes-logo linksboven in wit, verschijnt samen met de tekst. */
.egg-logo { position: absolute; z-index: 1; top: max(3vh, 20px); left: max(3vw, 20px); height: 26px; width: auto;
  filter: brightness(0) invert(1); opacity: 0; transition: opacity 1.2s ease .6s; pointer-events: none; user-select: none; }
.egg.told .egg-logo { opacity: .5; }
@media (max-width: 700px) { .egg-logo { height: 20px; } }
.egg-copy { position: relative; z-index: 1; width: min(640px, calc(100% - 32px)); margin-bottom: max(6vh, 32px); text-align: center; }
.egg-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.egg.told .egg-copy > * { opacity: 1; transform: none; }
.egg.told .egg-copy > :nth-child(2) { transition-delay: .12s; }
.egg.told .egg-copy > :nth-child(3) { transition-delay: .28s; }
.egg.told .egg-copy > :nth-child(4) { transition-delay: .4s; }
.egg.told .egg-copy > :nth-child(5) { transition-delay: .58s; }
.egg.told .egg-copy > :nth-child(6) { transition-delay: .72s; }
.egg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #ff9a6e; }
.egg-copy h2 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 14px 0 18px; color: #fff; text-wrap: balance; }
.egg-copy p { font-size: 15.5px; line-height: 1.65; color: rgba(226, 234, 244, 0.72); margin: 0 auto 10px; max-width: 560px; text-wrap: pretty; }
.egg-stats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin: 24px 0 26px; }
.egg-stats > a, .egg-stats > div { display: flex; flex-direction: column; align-items: center; gap: 5px; color: inherit; text-decoration: none;
  padding: 6px 10px; border-radius: 12px; transition: background .2s, transform .2s; }
.egg-stats > a:hover, .egg-stats > a:focus-visible { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); outline: none; }
.egg-stats > a:hover span, .egg-stats > a:focus-visible span { color: #fff; }
.egg-stats b { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1; }
.egg-stats span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(226, 234, 244, 0.55); white-space: nowrap; transition: color .2s; }
.egg-stats .egg-sep { width: 1px; height: 38px; background: rgba(226, 234, 244, 0.18); }
.egg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.egg-star { width: 9px; height: 9px; background: #fff4d6; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px #fff4d6); }
.egg-close { font: inherit; font-size: 14px; font-weight: 500; color: #fff; padding: 11px 24px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, color .2s, border-color .2s; }
.egg-close:hover, .egg-close:focus-visible { background: #fff; color: #0a1d33; border-color: #fff; outline: none; }
@media (prefers-reduced-motion: reduce) { .egg-surface { animation: none; } .egg, .egg-copy > *, .egg-logo, .egg-stats > a { transition: none; } }
@media (max-width: 700px) { .egg-copy p { font-size: 14px; } .egg-copy p:first-of-type { display: none; }
  .egg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; margin: 16px 0 18px; }
  .egg-stats b { font-size: 26px; } .egg-stats .egg-sep { display: none; }
  .egg-stats > a, .egg-stats > div { padding: 4px 8px; } }

/* Sneltoetsen: overzicht (? of gebruikersmenu) en kleine melding na 'g' */
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  font: 600 12px/1 var(--mono, ui-monospace, monospace); color: var(--text); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 0 var(--line-strong); }
.kbd-dialog { width: min(720px, calc(100% - 32px)); }
.kbd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kbd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.kbd-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.kbd-grid dl { margin: 6px 0 0; display: flex; flex-direction: column; gap: 7px; }
.kbd-grid dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.kbd-grid dt { display: inline-flex; align-items: center; gap: 4px; }
.kbd-grid dd { margin: 0; font-size: 14px; color: var(--text-2); }
.kbd-then { font-size: 11px; color: var(--faint); }
.kbd-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.kbd-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; transform: translate(-50%, 12px); opacity: 0;
  pointer-events: none; padding: 9px 14px; border-radius: 12px; font-size: 13px; color: var(--text);
  background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: opacity .15s, transform .15s; }
.kbd-toast.on { opacity: 1; transform: translate(-50%, 0); }
.menu-kbd { margin-left: auto; }
@media (max-width: 640px) { .kbd-grid { grid-template-columns: 1fr; } }
@media (hover: none) { [data-shortcuts] { display: none; } }   /* aanraakschermen hebben geen toetsenbord */

/* ------------------------------------------------------------ lettertype en tekstgrootte (Instellingen → Weergave)
   IBM Plex Sans, zelf gehost (geen verzoeken naar Google). data-size op <html> wordt vóór het tekenen gezet. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root { --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; --font-display: var(--font); }
/* Groter: de hele app schaalt mee (zoals inzoomen in de browser), zodat verhoudingen en uitlijning kloppen. */
:root[data-size="groter"] { zoom: 1.07; }
:root[data-size="groot"] { zoom: 1.14; }

.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.look-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.look-card:hover { border-color: var(--faint); }
.look-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.look-card.on::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 12px/20px var(--font); text-align: center; }
.look-card .look-aa { font-size: 15px; line-height: 1.2; font-weight: 600; }
.look-card .look-name { font-weight: 600; font-size: 14px; }
.look-card .look-why { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.look-card svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.look-card.on svg { color: var(--accent); }
.league-order { list-style: none; margin: 0; padding: 0; max-width: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.league-order li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: var(--surface); }
.league-order li + li { border-top: 1px solid var(--line); }
.league-order .lo-n { width: 18px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.league-order .lo-name { font-weight: 600; }
.league-order .lo-btns { margin-left: auto; display: flex; gap: 4px; }
.league-order .icon-btn:disabled { opacity: .3; cursor: default; }

/* Gebruikersmenu: naam met rol als label, e-mail op één regel */
.user-menu .menu .who { padding: 10px 12px 12px; }
.user-menu .menu .who-line { display: flex; align-items: center; gap: 8px; }
.user-menu .menu .who-line b { color: var(--text); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .menu .role-pill { flex: none; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--fill); color: var(--text-2); }
.user-menu .menu .who-mail { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-pick .theme-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.theme-pick .theme-label .ic { width: 17px; height: 17px; color: var(--muted); }

/* ------------------------------------------------------------ inschattingsvermogen (bovenaan Inzichten) */
.card.judge { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 32px; padding: 22px 24px; margin-bottom: var(--gap-v); }
.judge .eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 7px; }
.judge-num { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.judge-num > b { font-family: var(--font-display); font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.judge-num.unsure > b { color: var(--faint); }
.judge-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.judge-band { font-weight: 600; }
.judge-band.sterk { background: var(--green-soft); color: var(--green-ink); }
.judge-band.goed { background: var(--green-soft); color: var(--green-ink); }
.judge-band.zwak { background: var(--orange-soft); color: var(--orange-ink); }
.judge-band.meer-ruis-dan-signaal { background: var(--red-soft); color: var(--red-ink); }
.judge-num.unsure .judge-band { background: var(--fill); color: var(--muted); }
.judge-scale { position: relative; height: 34px; margin: 16px 0 4px; max-width: 460px; }
.js-track { position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red-soft) 0 33.3%, var(--orange-soft) 33.3% 46.7%, var(--green-soft) 46.7% 60%, color-mix(in srgb, var(--green-soft), #34c759 30%) 60% 100%); }
.js-mark { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.js-tick, .js-lbl { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.js-tick { top: 9px; }
.js-tick:last-of-type { transform: translateX(-100%); }
.js-lbl { top: 21px; color: var(--muted); }
.judge-line { margin: 10px 0 0; }
.judge-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.judge-trend { display: flex; flex-direction: column; gap: 4px; }
.judge-spark { width: 100%; max-width: 260px; height: 48px; }
.judge-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.judge-stats > div { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.judge-stats dt { font-size: 12px; color: var(--muted); }
.judge-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.judge-stats dd small { font-size: 12px; font-weight: 500; color: var(--muted); }
.judge-more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.judge-more summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.judge-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 14px 0; }
.judge-lists h3 { font-size: 14px; margin-bottom: 6px; }
.judge-lists ul { margin: 0; padding-left: 18px; font-size: 13.5px; max-height: 260px; overflow: auto; }
.judge-lists li { margin: 3px 0; }
.judge-lists .dot { width: 7px; height: 7px; margin: 0 3px 0 2px; vertical-align: 1px; }
.judge-how ul { padding-left: 18px; }
@media (max-width: 860px) { .card.judge, .judge-lists { grid-template-columns: 1fr; } }

/* Kwartaaloverleg: zoeken naar een persoon. Tijdens het zoeken gaan filters en de vertrekkers-schakelaar opzij. */
.meet-search .input { width: 240px; padding-right: 34px; }
/* Sneltoets f zichtbaar in elk zoekveld op naam (zie shortcuts.js: [data-page-search]). */
.page-search { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.page-search:has(> .priv-search) { width: 100%; max-width: 420px; }
@media (max-width: 720px) { .page-search:has(> .bh-q, > .wl-search, > .lg-q) { width: 100%; } }
.has-kbd > .input { padding-right: 34px; }
.page-search-kbd { position: absolute; right: 10px; font: 600 11px/1 inherit; color: var(--faint); padding: 3px 6px; border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line-strong); pointer-events: none; transition: opacity .15s; }
.has-kbd > .input:focus + .page-search-kbd, .has-kbd > .input:not(:placeholder-shown) + .page-search-kbd { opacity: 0; }
@media (hover: none) { .page-search-kbd { display: none; } }
.meet-search-result { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.meet-search-result b { color: var(--text); }
#meet-table.searching tr.meet-row:not(.hit), #meet-table.searching tr.meet-row:not(.hit) + tr.meet-notes { display: none !important; }
#meet-table.searching tr.meet-row.hit { display: table-row !important; }
#meet-table.searching tr.meet-row.hit + tr.meet-notes { display: table-row !important; }
@media (max-width: 720px) { .meet-search .input { width: 100%; } }
.meet-search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.45); cursor: pointer; }
.meet-search input::-webkit-search-cancel-button:hover { filter: grayscale(1) opacity(.8); }

/* ------------------------------------------------------------ beweging
   Subtiel en kort: de inhoud schuift zacht binnen, meters en grafieken bouwen op, uitklappers openen vloeiend.
   Alles valt weg bij 'minder beweging' (systeeminstelling). Het tellen van de kerncijfers zit in motion.js. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root) { animation: vt-out .14s ease-in both; }
::view-transition-new(root) { animation: none; }
::view-transition-group(topbar) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.page > * { animation: rise .42s cubic-bezier(.2, .8, .2, 1) backwards; }
.page > :nth-child(2) { animation-delay: .04s; }
.page > :nth-child(3) { animation-delay: .08s; }
.page > :nth-child(4) { animation-delay: .12s; }
.page > :nth-child(5) { animation-delay: .16s; }
.page > :nth-child(n+6) { animation-delay: .2s; }
.kpis > * { animation: rise .42s cubic-bezier(.2, .8, .2, 1) backwards; }
.kpis > :nth-child(2) { animation-delay: .1s; }
.kpis > :nth-child(3) { animation-delay: .14s; }
.kpis > :nth-child(4) { animation-delay: .18s; }
.kpis > :nth-child(n+5) { animation-delay: .22s; }

@keyframes grow-x { from { transform: scaleX(0); } }
.kpi .meter span { transform-origin: left; animation: grow-x .7s cubic-bezier(.2, .8, .2, 1) .2s backwards; }
@keyframes slide-in { from { left: 33.3%; opacity: 0; } }
.js-mark { animation: slide-in .8s cubic-bezier(.2, .8, .2, 1) .25s backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.judge-spark path { stroke-dasharray: 1; animation: draw .9s cubic-bezier(.4, 0, .2, 1) .2s backwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.spark circle.last, .chart-plot .intro .end { transform-box: fill-box; transform-origin: center; animation: pop .3s cubic-bezier(.2, .8, .2, 1) .9s backwards; }

/* grafieken (charts.js): lijnen tekenen zich, kolommen groeien vanaf de basislijn, zodra de grafiek in beeld komt */
.chart-plot .intro .line { stroke-dasharray: 1; animation: draw .9s cubic-bezier(.4, 0, .2, 1) backwards; }
.chart-plot .intro .area { animation: fade .6s ease .3s backwards; }
.chart-plot .intro .bar { transform-box: fill-box; transform-origin: bottom; animation: grow-y .5s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) backwards; }
.chart-plot .intro .end { animation-delay: .8s; }
.chart-plot .intro:not(.play) * { animation-play-state: paused; }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes fade { from { opacity: 0; } }

/* uitklappers met inhoud (geen menu's of popovers: die mogen niet afgeknipt worden) */
:root { interpolate-size: allow-keywords; }
details:is(.explain, .judge-more, .chart-details, .talk, .json-details)::details-content {
  height: 0; overflow: clip; transition: height .28s cubic-bezier(.2, .8, .2, 1), content-visibility .28s allow-discrete; }
details:is(.explain, .judge-more, .chart-details, .talk, .json-details)[open]::details-content { height: auto; }

.btn:active:not([disabled]) { transform: scale(.97); }
.btn { transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; }
.card.judge, .kpi { transition: box-shadow .2s, transform .2s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after, ::details-content { animation: none !important; transition-duration: 0s !important; }
}

/* Foutpagina (error.html) */
.err-mark { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); animation: err-sway 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
.err-mark svg { width: 30px; height: 30px; }
@keyframes err-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.err-code { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.err-card p.err-ref { margin: 22px 0 0; font-size: 12.5px; color: var(--faint); }
.err-ref code { font: 600 12.5px/1 ui-monospace, monospace; color: var(--text-2); background: var(--fill); padding: 3px 6px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .err-mark { animation: none; } }
.anon-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }
.anon-note svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }

/* Instellingen → Privacy */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.priv-years .look-card { cursor: pointer; }
.priv-years .look-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.priv-years .look-card:has(input:checked)::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 12px/20px var(--font); text-align: center; }
.priv-years .look-card:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.priv-check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.priv-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.priv-search { width: 100%; max-width: 420px; }
.priv-results { margin-top: 10px; max-width: 640px; }
.priv-results .btn svg { width: 14px; height: 14px; }
.priv-soon { margin-top: 10px; }
.priv-log td { padding-top: 8px; padding-bottom: 8px; }
#meet-table.no-rows thead { display: none; }
/* Overzicht › Dreigen af te drijven: league onder de naam (spaart een kolom), volgende stap op max. 2 regels */
.prio-league { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
td.prio-step { min-width: 180px; max-width: 260px; }
.prio-step-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 1180px) { .prio-step { display: none; } }
.prio-step-tip { display: block; cursor: help; border-radius: 6px; }
.prio-step-tip:hover .prio-step-text, .prio-step-tip:focus-visible .prio-step-text { color: var(--text); }
.prio-act { margin-top: 6px; }
.prio-signals { width: 1%; max-width: 220px; }
td.prio-signals .signal-chips { max-width: 220px; }
td.prio-signals .pill { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 22px; }

/* Actieknop (overzicht en watchlist): één herkenbare vorm. Zachte accentpil met een plus in een cirkel;
   bij hover vult hij zich en draait de plus een kwartslag. */
.act-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 4px; border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: var(--accent-soft); color: var(--accent);
  font: 600 12.5px/1 var(--font); cursor: pointer; white-space: nowrap; list-style: none; user-select: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s; }
.act-btn::-webkit-details-marker { display: none; }
.act-btn svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.6;
  flex: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .15s, color .15s; }
.act-btn:hover, details[open] > .act-btn { background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.act-btn:hover svg, details[open] > .act-btn svg { background: #fff; color: var(--accent); transform: rotate(90deg); }
details[open] > .act-btn svg { transform: rotate(45deg); }
.act-btn:active { transform: scale(.96); }
.act-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* Label Team Captain (badge in lijsten en op de fiche, aan/uit op de fiche) */
.pill.captain { height: 20px; padding: 0 8px; gap: 4px; font-size: 11.5px; background: var(--teal-soft); color: var(--teal-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal-ink) 30%, transparent); }
.pill.captain svg { width: 12px; height: 12px; }
.captain-form { display: inline-flex; margin: 0; }
.captain-form button { font: inherit; cursor: pointer; border: 0; }
.pill.captain.captain-on { height: 24px; padding: 0 6px 0 9px; font-size: 12.5px; font-weight: 600; }
.captain-n { font-weight: 500; opacity: .8; }
.captain-x { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%;
  font-size: 13px; line-height: 1; opacity: .55; transition: opacity .15s, background .15s; }
.captain-on:hover .captain-x, .captain-on:focus-visible .captain-x { opacity: 1; background: color-mix(in srgb, var(--teal-ink) 18%, transparent); }
.pill.captain-add { height: 24px; padding: 0 10px; font-size: 12.5px; font-weight: 500; background: none; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong); border-style: dashed; transition: color .15s, box-shadow .15s, background .15s; }
.pill.captain-add:hover, .pill.captain-add:focus-visible { color: var(--teal-ink); background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal-ink) 40%, transparent); outline: none; }
/* Mijn acties › Bij mijn Team Captains: één blok per Team Captain. De kop is een getinte band (wie), de acties hangen
   er ingesprongen onder aan een lijn (wat), zodat kop en acties niet op elkaar lijken. */
.tc-group { border: 1px solid color-mix(in srgb, var(--teal-ink) 22%, transparent); border-radius: 14px; overflow: hidden; margin-top: 14px; }
.tc-group:first-of-type { margin-top: 0; }
.tc-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--teal-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--teal-ink) 18%, transparent); }
.tc-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--teal-ink); color: var(--surface); }
.tc-avatar svg { width: 17px; height: 17px; }
.tc-who { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.tc-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.tc-who .name { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.tc-who .name:hover { color: var(--accent); }
.tc-head .pill { background: var(--surface); }
.tc-head .pill.R { background: var(--red-soft); }
.tc-list { margin: 4px 16px 4px 31px; padding-left: 17px; border-left: 2px solid color-mix(in srgb, var(--teal-ink) 22%, transparent); }
.tc-list .list-item { padding: 10px 0; }
.tc-list .list-item .avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.tc-list .list-item .title { font-size: 14.5px; }

/* ---------------------------------------------------------------- demomodus */
.demobar { background: #1d1d1f; color: #f5f5f7; font-size: 12px; line-height: 1.35; text-align: center; padding: 3px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); }          /* zelfde balk als .devbar, eigen kleur voor het label */
.demobar b { color: #c4adff; }
.demobar form { display: inline; margin: 0 0 0 8px; }
.demobar button { font: inherit; font-weight: 600; color: #c4adff; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.demobar button:hover { color: #fff; }
.demo-state { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--fill); margin-bottom: 16px; }
.demo-state.on { background: var(--demo-soft); color: var(--demo-ink); }
.demo-state .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint, #999); flex: none; }
.demo-state.on .dot { background: var(--demo); box-shadow: 0 0 0 4px var(--demo-soft); }
.demo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.demo-facts div { padding: 10px 12px; border-radius: 10px; background: var(--fill); }
.demo-facts b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.demo-list { margin: 6px 0 0 18px; display: grid; gap: 4px; }
.subnav .count.demo-on { background: var(--demo); color: #fff; }

/* ---------------------------------------------------------------- Team Captain (beperkt overzicht) */
.tc-person .title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-person .actions { align-self: center; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tc-signals { display: grid; gap: 8px; margin-top: 10px; }
.tc-signal { display: flex; gap: 10px; font-size: 13.5px; }
.tc-next { margin-top: 2px; padding: 8px 12px; border-radius: 10px; background: var(--fill); font-size: 13.5px; }
.tc-next .eyebrow { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.late { color: var(--red-ink); font-weight: 600; }

/* ---------------------------------------------------------------- Ankers: de positieve kant */
.anchor-levels { margin-bottom: var(--gap-v); }
.al-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.al-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--green-soft); color: var(--green); }
.al-icon svg { width: 24px; height: 24px; }
.al-value { font-size: 20px; letter-spacing: -.01em; }
.al-value b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-right: 4px; }
.al-value .of { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; }
/* Inzichten: wanneer het kantelt */
.kt-card { margin-bottom: var(--gap-v); }
.kt-lead { font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin: -4px 0 16px; max-width: 760px; text-wrap: pretty; }
.kt-lead b { color: var(--text); }
.kt-foot { margin-top: 12px; }
.kt-years { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 190px; }
.kt-year { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.kt-val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kt-bar { position: relative; flex: 1; width: 100%; max-width: 64px; display: flex; align-items: flex-end; }
.kt-bar i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--orange) 55%, var(--surface)); }
.kt-year.high .kt-bar i { background: var(--red); } .kt-year.low .kt-bar i { background: var(--green); }
.kt-year.none .kt-val { color: var(--faint); }
.kt-avg { position: absolute; left: -6px; right: -6px; height: 0; border-top: 1.5px dashed var(--muted); }
.kt-lbl { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kt-rows { display: flex; flex-direction: column; gap: 9px; }
.kt-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.kt-name { color: var(--text-2); }
.kt-track { height: 10px; border-radius: 5px; background: var(--fill); overflow: hidden; }
.kt-track i { display: block; height: 100%; border-radius: 5px; background: var(--green); }
.kt-track i.o { background: var(--orange); }
.kt-num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kt-num small { display: block; font-size: 10.5px; font-weight: 400; color: var(--faint); line-height: 1.1; }
.kt-big { display: flex; align-items: center; gap: 14px; margin: -2px 0 16px; }
.kt-big > b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--green-ink); }
.kt-big > span { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 720px) { .kt-years { gap: 4px; height: 160px; } .kt-lbl { font-size: 10.5px; } .kt-row { grid-template-columns: 96px 1fr 40px; } }

/* Ankers: het anker met wie verankerd is (harbor.js) */
.harbor { margin: 4px 0 18px;
  /* groen zoals het anker op het Overzicht (.lh-anchor): het anker, de touwen, de banden en de zones */
  --hb: var(--green); --hb-deep: color-mix(in srgb, var(--green) 70%, var(--text)); }
.harbor svg { display: block; width: 100%; overflow: visible; }
.harbor figcaption { text-align: center; margin-top: 6px; }
.hb-glow-in { stop-color: var(--hb); stop-opacity: .1; }
.hb-glow-out { stop-color: var(--hb); stop-opacity: 0; }
.hb-orbit { fill: none; stroke: color-mix(in srgb, var(--hb) 22%, transparent); stroke-dasharray: 2 5; }
/* zones: hoe dichter bij het anker, hoe warmer de band, dikker het touw en voller het bolletje */
.hb-band { stroke: none; }
.hb-band.z0 { fill: color-mix(in srgb, var(--hb) 11%, var(--surface)); }
.hb-band.z1 { fill: color-mix(in srgb, var(--hb) 7%, var(--surface)); }
.hb-band.z2 { fill: color-mix(in srgb, var(--hb) 4%, var(--surface)); }
.hb-band.z3 { fill: color-mix(in srgb, var(--hb) 2%, var(--surface)); }
.hb-zone rect { fill: var(--surface); stroke: color-mix(in srgb, var(--hb) 45%, transparent); stroke-width: 1; }
.hb-zone text { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--hb-deep); }
.hb-zone.z0 rect { fill: var(--hb-deep); stroke: var(--hb-deep); }
.hb-zone.z0 text { fill: #fff; }
.hb-anchor { fill: none; stroke: var(--hb-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  animation: hb-sway 7s ease-in-out infinite alternate; }
@keyframes hb-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.hb-rope { fill: none; stroke: var(--hb); stroke-width: .7; opacity: .16; transition: opacity .2s, stroke-width .2s; }
.hb-rope.z0 { stroke-width: 1.3; opacity: .3; } .hb-rope.z1 { stroke-width: 1; opacity: .22; }
.hb-rope.z3 { stroke-width: .6; opacity: .12; }
.hb-rope.hot { opacity: .95; stroke-width: 1.6; }
.hb-hit { fill: transparent; }
.hb-dot { fill: var(--green); stroke: var(--surface); stroke-width: 2; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.hb-name { font-size: 12px; font-weight: 500; fill: var(--text-2); transition: fill .2s; }
.hb-person.z0 .hb-name { fill: var(--text); font-weight: 600; }
.hb-person.z2 .hb-dot { fill: color-mix(in srgb, var(--green) 75%, var(--surface)); }
.hb-person.z3 .hb-dot { fill: color-mix(in srgb, var(--green) 55%, var(--surface)); }
.hb-person.z3 .hb-name { fill: var(--muted); }
.hb-person, .hb-ropes, .hb-zone { transition: opacity .2s; }
.harbor.focus .hb-person:not(.on) { opacity: .3; }
.harbor.focus .hb-rope:not(.hot) { opacity: .06; }
.hb-person { cursor: pointer; outline: none; }
.hb-person:hover .hb-name, .hb-person:focus-visible .hb-name { fill: var(--hb-deep); }
.hb-person:hover .hb-dot, .hb-person:focus-visible .hb-dot { transform: scale(1.35); }
/* aankomst: anker zakt, touwen schieten uit, bolletjes verschijnen één voor één */
.harbor.arrive .hb-drop { transform: translateY(-18px); opacity: 0; transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.harbor.arrive .hb-rope { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease var(--d, 0s), opacity .2s, stroke-width .2s; }
.harbor.arrive .hb-person { opacity: 0; transition: opacity .5s ease var(--d, 0s); }
.harbor.arrived .hb-drop { transform: none; opacity: 1; }
.harbor.arrived .hb-rope { stroke-dashoffset: 0; }
.harbor.arrived .hb-person { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hb-anchor { animation: none; } }
.level-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--fill); }
.level-bar .lv, .lv-dot { background: var(--faint); }
.level-bar .lv.verankerd, .lv-dot.verankerd { background: var(--green); }
.level-bar .lv.aandacht, .lv-dot.aandacht { background: var(--orange); }
.level-bar .lv.drift, .lv-dot.drift { background: var(--red); }
.level-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.level-legend b { color: var(--text); font-weight: 600; margin-left: 2px; }
.lv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.m-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); align-self: flex-start; }
.m-icon svg { width: 17px; height: 17px; }
.m-icon.soft { background: var(--fill); color: var(--muted); }
.moment.verjaardag .m-icon { background: var(--purple-soft); color: var(--purple); }
.moment.patroon .m-icon, .moment.reeks .m-icon { background: var(--green-soft); color: var(--green); }
.moment .body .small { margin-top: 2px; }
.m-actions { display: flex; gap: 6px; flex-shrink: 0; align-self: center; }
.m-actions form { display: contents; }
.m-hide { color: var(--faint); padding-inline: 8px; }
.m-hide:hover { color: var(--text); }
.moments-hidden { margin-top: 12px; }
.m-actions .btn svg, .anchor-card .btn svg { width: 14px; height: 14px; }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pattern-grid .empty { grid-column: 1 / -1; }
.pattern-person { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  color: inherit; text-decoration: none; transition: background .15s; }
.pattern-person:hover { background: var(--fill); }
.pp-body { display: flex; flex-direction: column; min-width: 0; }
.pp-body > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buddy-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.buddy-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.buddy-option input { margin-top: 3px; accent-color: var(--accent); }
.buddy-option span { display: flex; flex-direction: column; }
/* Fiche: wat houdt deze persoon hier? */
.anchor-card .ap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.ap { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ap .m-icon { width: 28px; height: 28px; border-radius: 9px; background: var(--green-soft); color: var(--green); }
.ap .m-icon svg { width: 15px; height: 15px; }
.ap b { display: block; font-size: 13.5px; font-weight: 600; }
.ap span.small { display: block; }
.level-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.level-pill.verankerd { background: var(--green-soft); color: var(--green-ink); }
.level-pill.aandacht { background: var(--orange-soft); color: var(--orange-ink); }
.level-pill.drift { background: var(--red-soft); color: var(--red-ink); }
.pattern-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); }
.anchor-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.recog-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.recog-list li { display: flex; gap: 8px; align-items: baseline; }
.recog-list .heart { color: var(--accent); }
.recog-list .heart svg { width: 13px; height: 13px; vertical-align: -2px; }
/* Overzicht: verankering bovenaan */
.anchor-hero { display: block; position: relative; color: inherit; transition: box-shadow .2s; }
.anchor-hero .hero-link { display: block; color: inherit; text-decoration: none; }
.anchor-hero .hero-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* hele kaart klikbaar */
.anchor-hero .al-main { flex: 1; min-width: 0; }
.al-total { position: relative; z-index: 1; flex-shrink: 0; text-align: right; color: inherit; text-decoration: none;
  padding: 6px 0 6px 20px; border-left: 1px solid var(--line, rgba(0, 0, 0, .08)); }
.al-total .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.al-total .value { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.al-total .sub { font-size: 12.5px; color: var(--muted); }
.al-total:hover .label { color: var(--accent); }
@media (max-width: 720px) { .anchor-hero .al-head { flex-wrap: wrap; }
  .al-total { flex-basis: 100%; text-align: left; border-left: 0; padding: 10px 0 0 58px; } }
.anchor-hero:hover { box-shadow: var(--shadow-hover, 0 6px 20px rgba(0, 0, 0, .08)); }
.anchor-hero .al-head { margin-bottom: 12px; }
@media (max-width: 720px) { .m-actions { flex-direction: column; } .al-value b { font-size: 26px; } }
.cheer-card { margin-top: var(--gap-v); }
.cheer-card h2 svg { width: 18px; height: 18px; color: var(--accent); }
/* Inzichten: wat houdt mensen hier? (verschil t.o.v. nul: groen = meer blijvers, grijs = minder) */

.pattern-person { align-items: flex-start; }
.lift { position: relative; flex: 1; height: 10px; }
.lift-v { width: 64px; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lift-v.pos { color: var(--green-ink); } .lift-v.neg { color: var(--muted); }
.pattern-person[hidden] { display: none; }
.section-title { font-size: 17px; font-weight: 600; margin: 4px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.section-title .small { font-weight: 400; }
.field[hidden] { display: none !important; }
/* Overzicht rustiger: KPI's zonder gloed of pill, erkennen-namen in gewone inkt, bovenste rij even hoog */
.kpi.tone::before { content: none; }
.kpi.tone .label { color: var(--muted); font-weight: 500; }
.kpi.tone .label .dot { box-shadow: none; }
.kpi.tone .value .of { background: none; padding: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.grid-main:has(> .hero-moments) { align-items: stretch; }
.anchor-hero { display: flex; flex-direction: column; }
.anchor-hero .level-bar { margin-top: auto; }
/* Overzicht: verankering per league of team. Kolommen: naam + aantal · balk (enkel ingeschat) · % · evolutie · niet ingeschat.
   De stippellijn door alle balken staat op het gemiddelde (--avg). Rijen liggen boven de kaartlink, zodat ze zelf klikbaar zijn. */
.al-split { --cols: minmax(96px, 168px) minmax(0, 1fr) 46px 84px 34px; display: grid; gap: 2px; margin: 6px 0 14px; }
.al-split-head, .al-split-row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 14px; }
.al-split-head { font-size: 11.5px; padding: 0 8px 2px; }
.al-split-head > span:nth-child(n+3) { text-align: right; }
.al-split-row { position: relative; z-index: 1; padding: 6px 8px; border-radius: 9px; font-size: 13.5px; color: var(--text-2);
  text-decoration: none; transition: background .15s; }
.al-split-row:hover, .al-split-row:focus-visible { background: var(--fill); outline: none; }
.al-split-row.total { color: var(--text); font-weight: 600; padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }
.al-split-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.al-split-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-split-name .n { font-size: 12px; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.al-bar { position: relative; display: block; }
.anchor-hero .al-split .level-bar.sm { margin-top: 0; height: 9px; border-radius: 5px; gap: 2px; background: none; }
.al-split-row.total .level-bar.sm { height: 12px; border-radius: 6px; }
.al-split .level-bar .lv { border-radius: 3px; transition: filter .15s; }
.al-split-row:hover .level-bar .lv { filter: saturate(1.15) brightness(1.04); }
.al-split-row .al-bar::after { content: ""; position: absolute; left: var(--avg); top: -7px; bottom: -7px; width: 0;
  border-left: 1.5px dashed color-mix(in srgb, var(--text) 38%, transparent); pointer-events: none; }
.al-split-row.total .al-bar::after { display: none; }
.al-avg-label { position: absolute; left: var(--avg); transform: translateX(-50%); bottom: 0; white-space: nowrap; }
.al-bar-empty { font-size: 12px; color: var(--faint); }
.al-split-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.al-split-pct.above { color: var(--green-ink); }
.al-split-pct.below { color: color-mix(in srgb, var(--orange) 80%, var(--text)); }
.al-delta { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.al-delta small { font-size: 10px; margin-left: 1px; }
.al-delta.up { color: var(--green-ink); } .al-delta.down { color: var(--red-ink); }
.al-unrated { text-align: right; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.al-foot { margin: 6px 8px 0; }
@media (max-width: 720px) { .al-split { --cols: minmax(80px, 110px) minmax(0, 1fr) 40px 50px; }
  .al-unrated, .al-split-head > span:last-child { display: none; } }
.moment-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 6px; }
.moment-filter .chip { font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 0; background: var(--fill); color: var(--muted); cursor: pointer; }
.moment-filter .chip b { font-weight: 600; color: var(--text); margin-left: 2px; }
.moment-filter .chip.on { background: var(--text); color: var(--surface); }
.moment-filter .chip.on b { color: inherit; }
.list-item.moment[hidden] { display: none; }
.kpi.tone .value .of { transform: none; }

/* Overzicht: tegel Vuurtoren. Een lichtbundel vanuit de toren zwaait traag over de tegel zolang er iemand in beeld is. */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 95deg; }
.kpi-lighthouse { overflow: hidden; isolation: isolate; }
.kpi-lighthouse .kpi-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--orange) 16%, var(--surface)); color: color-mix(in srgb, var(--orange) 70%, var(--text)); }
.kpi-lighthouse .kpi-ic svg { width: 17px; height: 17px; }
.kpi-lighthouse.lit::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--beam) at 33px 31px, transparent 0deg,
    color-mix(in srgb, var(--orange) 18%, transparent) 10deg, transparent 26deg, transparent 360deg);
  animation: beam-sweep 7s ease-in-out infinite alternate; }
.kpi-lighthouse.lit .kpi-ic { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent); }
@keyframes beam-sweep { from { --beam: 70deg; } to { --beam: 150deg; } }
@media (prefers-reduced-motion: reduce) { .kpi-lighthouse.lit::before { animation: none; } }

/* Overzicht: Vuurtoren, Rood en Oranje als één kaart. De bundel hangt aan de groep en zwaait over alle drie;
   de tegels erin zijn vlak, gescheiden door een haarlijn, en lichten bij hover zacht op i.p.v. te liften. */
.kpis:has(> .kpi-lh-group) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr); }
.kpi-lh-group { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  animation: rise .42s cubic-bezier(.2, .8, .2, 1) backwards; }
.kpi-lh-group::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 7%, transparent), transparent 70%); }
.kpi-lh-group.lit::before {
  background: conic-gradient(from var(--beam) at 33px 31px, transparent 0deg,
    color-mix(in srgb, var(--orange) 16%, transparent) 6deg, transparent 18deg, transparent 360deg),
    linear-gradient(90deg, color-mix(in srgb, var(--orange) 7%, transparent), transparent 70%);
  animation: beam-sweep 9s ease-in-out infinite alternate; }
.kpi-lh-group > .kpi { background: transparent; box-shadow: none; border-radius: 0; animation: none;
  overflow: visible; isolation: auto; }
.kpi-lh-group > .kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-lh-group > .kpi::before { content: none; }
.kpi-lh-group > .kpi-link:hover { box-shadow: none; transform: none; background: color-mix(in srgb, var(--orange) 5%, transparent); }
.kpi-lh-group > .kpi-link:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-ring); }
.kpi-lh-group.lit .kpi-lighthouse .kpi-ic { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent); }
@media (prefers-reduced-motion: reduce) { .kpi-lh-group.lit::before { animation: none; } }
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-lh-group { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi-lh-group { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi-lh-group > .kpi-lighthouse { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .kpi-lh-group > .tone.R { border-left: 0; }
}

/* Vuurtoren: tabs op de schaal van Ankers, en een rij voor wie enkel door de kleur in beeld is */
.page-tabs .lv-tab .lv-dot { margin-right: 7px; }
.sev-bar.color-only { background: repeating-linear-gradient(180deg, var(--orange) 0 4px, transparent 4px 7px); }

/* Verankerd, toch in beeld: klein groen anker naast de naam */
.anchored-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 6px;
  vertical-align: -3px; background: var(--green-soft); color: var(--green); flex-shrink: 0; }
.anchored-mark svg { width: 12px; height: 12px; }

/* Vuurtoren-pagina: kop met de vuurtoren, de lichtbundel en wie in beeld is als bootjes op zee */

.lh-scene { margin: 0; }
.lh-scene svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.lh-sky-top { stop-color: color-mix(in srgb, var(--orange) 5%, var(--surface)); }
.lh-sky-low { stop-color: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.lh-sea-top { stop-color: color-mix(in srgb, #2f6fb5 16%, var(--surface)); }
.lh-sea-low { stop-color: color-mix(in srgb, #2f6fb5 30%, var(--surface)); }
.lh-ray-in { stop-color: var(--orange); stop-opacity: .42; }
.lh-ray-out { stop-color: var(--orange); stop-opacity: 0; }
.lh-horizon { stroke: color-mix(in srgb, #2f6fb5 30%, transparent); stroke-width: 1; }
.lh-wave { fill: none; stroke: color-mix(in srgb, #2f6fb5 28%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.lh-beam { mix-blend-mode: multiply; }
.lh-rock { fill: color-mix(in srgb, var(--text) 62%, var(--surface)); }
.lh-body { fill: #f7f4ee; stroke: rgba(40, 36, 30, .55); stroke-width: 1.2; stroke-linejoin: round; }
.lh-stripe { fill: var(--accent); }
.lh-gallery, .lh-roof { fill: #4a4540; }
.lh-lamp { fill: #ffd27a; stroke: color-mix(in srgb, var(--text) 60%, transparent); stroke-width: 1; }
.lh-door { fill: none; stroke: rgba(40, 36, 30, .5); stroke-width: 1.2; }
.lh-halo { animation: lh-halo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lh-halo { 0%, 100% { opacity: .7; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.lh-boat circle { stroke: var(--surface); stroke-width: 1.2; transition: transform .35s ease, filter .35s ease;
  transform-box: fill-box; transform-origin: center; }
.lh-boat.lit circle, .lh-boat:hover circle, .lh-boat:focus-visible circle { transform: scale(1.7);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--orange) 85%, transparent)); }
.lh-boat { outline: none; cursor: pointer; }
.lh-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.lh-legend b { color: var(--text); font-weight: 600; margin-left: 2px; }
:root[data-theme="dark"] .lh-beam { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lh-beam { mix-blend-mode: screen; } }
@media (prefers-reduced-motion: reduce) { .lh-halo { animation: none; } }
@media (max-width: 860px) { .lh-hero { grid-template-columns: 1fr; padding: 20px 18px 14px; } }

/* Navigatie: Vuurtoren. Het icoon zendt licht uit en het aantal pulseert zacht als een baken zolang er iemand in beeld is. */
.nav a.nav-lh .nav-ic { width: 16px; height: 16px; color: color-mix(in srgb, var(--orange) 75%, var(--text)); }
.nav-lh.lit .ic path:last-child { animation: lh-beam 2.8s ease-in-out infinite; }
.nav .nav-lh.lit .count { background: linear-gradient(180deg, #ff8a3d, var(--accent));
  box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 40%, transparent); animation: lh-beacon 2.8s ease-out infinite; }
@keyframes lh-beam { 0%, 100% { opacity: .25; } 45%, 60% { opacity: 1; } }
@keyframes lh-beacon {
  0% { box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%, 100% { box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .nav-lh.lit .ic path:last-child, .nav .nav-lh.lit .count { animation: none; } }
/* Fiche › Tijdlijn: een kwartaal opent dat kwartaaloverleg, gefocust op de persoon */
a.tl-q { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tl-q:hover { border-color: var(--accent); transform: translateY(-1px); }
a.tl-q:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* Vuurtoren-pagina: de rustige kant achter de toren, waar het licht af en toe komt. Anoniem: één bolletje per verankerde persoon. */
.lh-harbor { cursor: pointer; outline: none; }
.lh-calm { fill: none; stroke: color-mix(in srgb, #2f6fb5 22%, transparent); stroke-width: 1.1; stroke-linecap: round; }
.lh-moored circle { fill: var(--green); opacity: .85; animation: lh-bob 4s ease-in-out infinite; transform-box: fill-box;
  transition: opacity .35s ease, filter .35s ease; }
.lh-anchor { fill: none; stroke: color-mix(in srgb, var(--green) 70%, var(--text)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s ease, filter .35s ease; }
.lh-harbor:hover .lh-moored circle, .lh-harbor:focus-visible .lh-moored circle { opacity: 1; }
.lh-harbor:hover .lh-anchor, .lh-harbor:focus-visible .lh-anchor { stroke: var(--green); }
/* ook de haven komt soms in het licht */
.lh-moored circle.lit { opacity: 1; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--orange) 80%, transparent)) brightness(1.25); }
.lh-anchor.lit { stroke: var(--green); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--orange) 75%, transparent)); }
@keyframes lh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@media (prefers-reduced-motion: reduce) { .lh-moored circle { animation: none; } }

/* Vuurtoren en Ankers als spiegelbeeld: zelfde kop, leaguekeuze, kaart met kerncijfer en figuur op volle breedte. */
.lh-card .al-head { margin-bottom: 14px; }
.al-icon.lh-icon { background: color-mix(in srgb, var(--orange) 16%, var(--surface)); color: color-mix(in srgb, var(--orange) 70%, var(--text)); }
.lh-card .lh-scene svg { border-radius: 12px; }
.lh-card .lh-legend { margin-top: 10px; }
/* Vuurtoren: links het verhaal (kerncijfer + dezelfde verdeling als de tabs), rechts de scène die het toont.
   De scène vult de breedte maar blijft laag: de lijst eronder is het werk. */
.lh-card { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr); gap: 16px 32px; align-items: center;
  margin-bottom: 32px; }   /* lucht tussen de kaart en de tabs eronder */
.lh-card .al-head { margin-bottom: 16px; }
.lh-side { min-width: 0; }
.lh-bar { height: 12px; border-radius: 6px; }
.lh-bar .lv { display: block; transition: filter .15s; } .lh-bar .lv:hover { filter: brightness(1.1) saturate(1.15); }
.lh-bar .lv.soft, .lv-dot.soft { background: color-mix(in srgb, var(--green) 55%, var(--surface)); }
.lh-levels { display: grid; gap: 2px; margin-top: 12px; }
.lh-level { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0 4px; padding: 5px 8px; margin: 0 -8px;
  border-radius: 8px; color: var(--text-2); font-size: 13.5px; text-decoration: none; transition: background .15s; }
.lh-level b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.lh-level .faint { margin-left: 8px; font-size: 12px; }
.lh-level:hover { background: var(--fill); }
.lh-level.on { background: var(--fill); color: var(--text); font-weight: 500; }
.lh-level.moored { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 9px; }
.lh-card .lh-scene { min-width: 0; }
.lh-card .lh-legend { display: block; margin-top: 6px; font-size: 12px; }
/* bootjes in de kleur van hun tab */
.lh-boat.drift circle { fill: var(--red); }
.lh-boat.aandacht circle { fill: var(--orange); }
.lh-boat.preventief circle { fill: color-mix(in srgb, var(--green) 55%, var(--surface)); }
@media (max-width: 960px) { .lh-card { grid-template-columns: minmax(0, 1fr); } }
.tab-intro { margin: 2px 0 18px; max-width: 820px; color: var(--text-2); line-height: 1.55; font-size: 14px; }
.tab-intro p { margin: 0; }
/* Ankers: kleine vuurtoren aan de rand van de kaart, met wie daar in het licht staat */
.anchor-levels .al-head > div { flex: 1; min-width: 0; }
.al-lh { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: inherit; text-decoration: none;
  padding: 4px 4px 4px 16px; border-left: 1px solid var(--line); }
.al-lh svg { width: 64px; height: 56px; display: block; overflow: visible; }
.al-lh .al-lh-beam { transform-origin: 46px 17px; animation: al-lh-sweep 5s ease-in-out infinite alternate; }
.al-lh > span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.al-lh .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.al-lh .value { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.al-lh .sub { font-size: 12px; color: var(--muted); }
.al-lh:hover .label, .al-lh:hover .sub { color: var(--accent); }
@keyframes al-lh-sweep { from { transform: rotate(-6deg); } to { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .al-lh .al-lh-beam { animation: none; } }
@media (max-width: 720px) { .anchor-levels .al-head { flex-wrap: wrap; } .al-lh { border-left: 0; padding-left: 0; } }
/* Overzicht: om te erkennen. Naast de verankeringskaart even hoog als die kaart (contain: size laat de rij
   bepalen door de kaart links); wat niet past, verbergt het script en telt het in '+ n meer'. */
.hero-moments { display: flex; flex-direction: column; overflow: hidden; position: relative;
  background: radial-gradient(120% 60% at 100% 0, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--surface); }
@media (min-width: 1101px) { .grid-main > .hero-moments:not(.open) { contain: size; } }
.hm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hm-head h3 { margin: 0; }
.hm-head > div { flex: 1; min-width: 0; }
.hm-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 7%, transparent); }
.hm-ic svg { width: 19px; height: 19px; }
.hm-all { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); }
.hm-all b { font-weight: 700; }
.hm-all:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.hm-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; }
.hm-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: inherit;
  text-decoration: none; transition: background .15s; }
.hm-item[hidden] { display: none; }
@media (min-width: 1101px) { .hm-list.full { justify-content: space-between; } }
.hm-item:hover { background: var(--surface-2); }
.hm-item:hover .hm-name { color: var(--accent); }
.hm-tile { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); }
.hm-tile svg { width: 18px; height: 18px; }
.hm-tile.date { display: flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; box-shadow: inset 0 3px 0 var(--accent); }
.hm-tile.date b { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.hm-item.eerste_jaar .hm-tile.date { box-shadow: inset 0 3px 0 var(--green); }
.hm-item.verjaardag .hm-tile.date { box-shadow: inset 0 3px 0 var(--purple); }
.hm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-name { font-weight: 600; font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.hm-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-when { flex-shrink: 0; font-size: 11.5px; font-weight: 500; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--fill); }
.hm-when.now { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hm-more { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500;
  color: var(--accent); text-decoration: none; text-align: center; }
.hm-more[hidden] { display: none; }
.hm-more:hover { text-decoration: underline; }
button.hm-more { font: inherit; font-size: 13px; font-weight: 500; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.hm-empty { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; padding: 8px 10px; }
.hm-empty svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.hm-all.static { color: var(--muted); background: var(--fill); }
.hero-moments.with-actions .hm-item:hover { background: var(--surface-2); }
.hero-moments.with-actions .hm-name { text-decoration: none; }
.hm-actions { display: flex; gap: 4px; flex-shrink: 0; opacity: .9; }
.hm-actions form { display: contents; }
.hm-actions .btn svg { width: 14px; height: 14px; }
.hero-moments.with-actions .hm-item:not(:hover):not(:focus-within) .hm-actions .btn-primary { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
/* Overzicht voor een Team Captain: links de cijfers, rechts het anker met wie je volgt (zie .harbor.team). */
.tc-eyebrow { display: flex; align-items: center; gap: 7px; }
.tc-eyebrow svg { width: 16px; height: 16px; }
.grid-main.tc-grid { margin-bottom: var(--gap-v); align-items: start; }
.grid-main.tc-grid > .hero-moments.with-actions { contain: none; }
.hero-moments.with-actions .hm-meta { white-space: normal; }
.tc-ship { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); gap: 16px 32px; align-items: center; margin-bottom: 20px; }
.tc-ship .al-icon { background: var(--accent-soft); color: var(--accent); }
.tc-side { min-width: 0; }
.tc-side .level-bar { margin-top: 2px; }
.tc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.tc-stat { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--surface-2); color: var(--text-2); text-decoration: none; font-size: 13.5px; transition: background .15s; }
.tc-stat:hover { background: var(--fill); }
.tc-stat b { color: var(--text); font-weight: 700; font-size: 15px; margin-right: 2px; }
.tc-stat small { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.tc-stat-ic { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--fill); color: var(--muted); }
.tc-stat-ic.lh { background: var(--orange-soft); color: var(--orange); }
.tc-stat-ic.light { background: var(--accent-soft); color: var(--accent); }
.tc-stat-ic svg { width: 16px; height: 16px; }
.tc-scene { margin: 0; min-width: 0; }
@media (max-width: 980px) { .tc-ship { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tc-stats { grid-template-columns: 1fr; } }
.tc-col { display: grid; gap: 20px; min-width: 0; }
.tc-col .tc-person .meta { font-size: 12.5px; }
/* Anker voor een Team Captain (harbor.js, mode team): kleur = laatste kleur, los touw bij oranje/rood,
   gloed = in het licht van de Vuurtoren, sterretje = om te erkennen, de pet = jij. */
.harbor.team { margin: 6px 0 0; }
.hb-person.c-G .hb-dot { fill: var(--green); }
.hb-person.c-O .hb-dot { fill: var(--orange); }
.hb-person.c-R .hb-dot { fill: var(--red); }
.hb-person.c-none .hb-dot { fill: var(--faint); }
.harbor.team .hb-person .hb-name { fill: var(--text); font-weight: 500; }
.hb-rope.loose { stroke-dasharray: .015 .012; }
.hb-lit { fill: color-mix(in srgb, var(--orange) 26%, transparent); stroke: color-mix(in srgb, var(--orange) 55%, transparent); stroke-width: 1;
  animation: hb-lit 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hb-lit { 50% { transform: scale(1.18); opacity: .6; } }
.hb-star { fill: var(--accent); stroke: var(--surface); stroke-width: .8; }
.hb-cap circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.hb-cap path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tc-legend { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.tc-legend i { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.tc-legend .lg-lit { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 30%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 55%, transparent); }
.tc-legend .lg-star { color: var(--accent); font-style: normal; }
.tc-legend .lg-rope { width: 16px; border-top: 1.5px dashed var(--accent); opacity: .6; vertical-align: 3px; }
@media (prefers-reduced-motion: reduce) { .hb-lit { animation: none; } }
/* Vuurtoren: bordje 'Haven · n' boven het anker */
/* haven: havenmuur met havenlicht, en het strand ernaast (toekomstige functie) */
.lh-quay-top { fill: color-mix(in srgb, var(--text) 22%, var(--surface)); }
.lh-quay-side { fill: color-mix(in srgb, var(--text) 38%, var(--surface)); }
.lh-quay-joint { fill: none; stroke: color-mix(in srgb, var(--text) 50%, var(--surface)); stroke-width: .8; }
.lh-bollard { fill: color-mix(in srgb, var(--text) 55%, var(--surface)); }
.lh-pierlight { fill: var(--surface); stroke: color-mix(in srgb, var(--text) 45%, var(--surface)); stroke-width: .8; }
.lh-pierlamp { fill: var(--green); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--green) 70%, transparent)); }
.lh-pierlamp.red { fill: var(--red); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--red) 70%, transparent)); }
.lh-shed { fill: color-mix(in srgb, var(--text) 14%, var(--surface)); }
.lh-shed-roof { fill: color-mix(in srgb, var(--orange) 55%, var(--surface)); }
.lh-pole { fill: none; stroke: color-mix(in srgb, var(--text) 50%, var(--surface)); stroke-width: 1; }
.lh-canopy { fill: color-mix(in srgb, var(--orange) 70%, var(--surface)); }
.lh-harbor:hover .lh-quay-top, .lh-harbor:focus-visible .lh-quay-top { fill: color-mix(in srgb, var(--green) 30%, var(--surface)); }
.lh-sand { fill: color-mix(in srgb, #d9b77a 48%, var(--surface)); }
.lh-foam { fill: none; stroke: color-mix(in srgb, #fff 75%, transparent); stroke-width: 1.6; stroke-linecap: round; }
.lh-dune { fill: none; stroke: color-mix(in srgb, #6f8f3a 60%, var(--surface)); stroke-width: 1; stroke-linecap: round; }
.lh-hut-wall { fill: color-mix(in srgb, #fff 85%, var(--surface)); }
.lh-hut-stripe { fill: color-mix(in srgb, #2f6fb5 60%, var(--surface)); }
.lh-hut.g .lh-hut-stripe { fill: color-mix(in srgb, var(--green) 65%, var(--surface)); }
.lh-hut.o .lh-hut-stripe { fill: color-mix(in srgb, var(--orange) 65%, var(--surface)); }
.lh-hut-roof { fill: color-mix(in srgb, var(--text) 40%, var(--surface)); }

/* ---------------------------------------------------------------- The Beach (de bench) */
.bh-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.bh-eyebrow svg, .kpi .label svg { width: 15px; height: 15px; }
.bh-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi.bh-alert .value { color: var(--red-ink); }
.bh-who { gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.bh-who .name { font-weight: 600; }
.bh-who small { display: block; font-size: 12px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-who:hover .name { color: var(--accent); }
.bh-imp svg { width: 14px; height: 14px; color: var(--orange); vertical-align: -2px; }
.bh-table tr.bh-long td:first-child { box-shadow: inset 3px 0 0 var(--red); }
/* Vertrekkend: lichtgrijs, met een label bij de naam. */
.bh-table tr.bh-leaving td { opacity: .5; }
.bh-table tr.bh-leaving td:first-child { opacity: 1; }
.bh-table tr.bh-leaving td:first-child .avatar, .bh-table tr.bh-leaving td:first-child .name, .bh-table tr.bh-leaving td:first-child small { opacity: .5; }
.bh-leaving-tag { font-size: 11px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; font-weight: 500; }
.bh-dur { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bh-dur.long b { color: var(--red-ink); }
.bh-bar { position: relative; display: inline-block; width: 64px; height: 6px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.bh-bar::after { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1.5px; background: var(--line-strong); } /* de grens */
.bh-bar i { display: block; height: 100%; border-radius: 4px; background: var(--orange); }
.bh-dur.long .bh-bar i { background: var(--red); }
.bh-bar.wide { width: 100%; height: 8px; }
.bh-bar.wide::after { content: none; }
.bh-bar.wide i { background: var(--accent); }
.bh-bar.two { height: 12px; display: flex; flex-direction: column; gap: 2px; background: none; }
.bh-bar.two i { height: 5px; }
.bh-bar.two i.all { background: var(--line-strong); }
.pill.bh-pat.structureel { background: var(--red-soft); color: var(--red-ink); }
.pill.bh-pat.terugkerend { background: var(--orange-soft); color: var(--orange-ink); }
.pill.bh-pat.eenmalig { background: var(--fill); color: var(--muted); }
.bh-unmatched { margin-top: var(--gap-v); box-shadow: none; background: var(--surface-2); }
.bh-unmatched > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.bh-unmatched > summary::-webkit-details-marker { display: none; }
.bh-unmatched > summary h3 { font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.bh-unmatched > summary .small { margin-left: auto; }
.bh-unmatched > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 6px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(-45deg); transition: transform .15s; }
.bh-unmatched[open] > summary::after { transform: rotate(45deg); }
.bh-unmatched[open] > summary { margin-bottom: 10px; }
.bh-unmatched .actions { display: flex; gap: 6px; align-items: center; }
.bh-unmatched select { max-width: 260px; }
.bh-note { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 14px; max-width: 860px; }
.bh-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.bh-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.bh-patrow { display: grid; grid-template-columns: 110px 34px 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bh-patrow b { font-size: 17px; font-variant-numeric: tabular-nums; }
.bh-bars { display: flex; flex-direction: column; gap: 9px; margin: 6px 0 12px; }
.bh-barrow { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; font-size: 13.5px; }
.bh-barrow .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 4px; }
.bh-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 10px; }
.bh-facts > div { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bh-facts b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.bh-facts span { font-size: 12.5px; color: var(--muted); }
.bh-facts .late b { color: var(--red-ink); }
.bh-plan.needs { box-shadow: var(--shadow), inset 3px 0 0 var(--red); }
.bh-decision { align-self: flex-start; padding: 3px; gap: 3px; border-radius: 11px; }
.bh-decision label { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.bh-decision label:hover { color: var(--text); }
.bh-decision label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.bh-decision label.d-draaien::before { background: var(--green); }
.bh-decision label.d-stoppen::before { background: var(--red); }
.bh-decision label.d-oplossing::before { background: var(--blue); }
.bh-decision input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bh-decision label.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.bh-decision label.on.d-draaien { color: var(--green-ink); }
.bh-decision label.on.d-stoppen { color: var(--red-ink); }
.bh-decision label.on.d-oplossing { color: var(--blue-ink); }
.bh-decision label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.bh-decision-field { display: flex; flex-direction: column; gap: 6px; }
.bh-decision-field > .lbl { font-size: 13px; font-weight: 500; color: var(--text-2); }
.bh-stop[hidden] { display: none; }
.bh-lead-form { align-items: center; }
.bh-outcome { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--blue); align-self: center; }
.bh-outcome.aangenomen { background: var(--green); }
.bh-outcome.afgewezen { background: var(--red); }
.bh-outcome.ingetrokken { background: var(--faint); }
.bh-facts-dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.bh-facts-dl dt { color: var(--muted); }
.bh-facts-dl dd { margin: 0; }
.bh-timeline { list-style: none; margin: 4px 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bh-timeline li { position: relative; display: flex; flex-direction: column; font-size: 13.5px; }
.bh-timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.bh-timeline li.cur::before { background: var(--orange); border-color: var(--orange); }
.bh-timeline li.cur a { font-weight: 600; }
.bh-timeline a { color: inherit; text-decoration: none; }
.bh-timeline a:hover { color: var(--accent); }
.bh-setting { gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pre { white-space: pre-wrap; }
@media (max-width: 720px) {
  .bh-barrow { grid-template-columns: 110px 1fr 90px; }
  .bh-lead-form { grid-template-columns: 1fr 1fr !important; }
  .bh-facts-dl { grid-template-columns: 110px 1fr; }
}
.pill.bh-fiche { gap: 4px; text-decoration: none; }
.pill.bh-fiche svg { width: 13px; height: 13px; }
.bh-tabs-side { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; padding-left: 16px; white-space: nowrap; }
.bh-tabs-side .btn svg { width: 15px; height: 15px; }
.bh-history { margin-top: var(--gap-v); }
.bh-history > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.bh-history > summary::-webkit-details-marker { display: none; }
.bh-history > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 auto;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.bh-history[open] > summary::after { transform: rotate(45deg); }
.bh-history > summary .small { margin-left: auto; }
.bh-history[open] > summary { margin-bottom: 12px; }
.bh-history-body { margin: 0 -24px -22px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .bh-tabs-side .small { display: none; } }
/* The Beach op de fiche van een consultant */
.bh-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.bh-card .card-head h2 svg { width: 18px; height: 18px; color: var(--orange); }
.bh-card.live { background: radial-gradient(120% 90px at 0 0, color-mix(in srgb, var(--orange) 9%, transparent), transparent 70%), var(--surface); }
.bh-card.past { margin-bottom: 0 !important; }
.bh-card-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bh-card-facts > div { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bh-card-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bh-card-facts b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; }
.bh-card-facts small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-card-facts span svg { width: 14px; height: 14px; color: var(--orange); }
.bh-card-facts .late, .bh-card-facts b.late { color: var(--red-ink); }
.bh-card-plan.needs { background: var(--red-soft) !important; }
.bh-card-plan.needs span svg { color: var(--red); }
/* The Beach op de fiche: strandtafereel + tijdlijn tot Long beacher */
.bh-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.bh-scene { width: 160px; height: 96px; flex: none; border-radius: 12px; display: block; }
.bh-sky { fill: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.bh-sun { fill: color-mix(in srgb, var(--orange) 70%, var(--surface)); }
.bh-gull { fill: none; stroke: color-mix(in srgb, var(--text) 45%, var(--surface)); stroke-width: 1.1; stroke-linecap: round; }
.bh-sea { fill: color-mix(in srgb, #2f6fb5 26%, var(--surface)); }
.bh-wave { fill: none; stroke: color-mix(in srgb, #fff 70%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.bh-sand { fill: color-mix(in srgb, #d9b77a 50%, var(--surface)); }
.bh-foam { fill: none; stroke: color-mix(in srgb, #fff 80%, transparent); stroke-width: 1.8; stroke-linecap: round; }
.bh-hut-wall { fill: color-mix(in srgb, #fff 88%, var(--surface)); }
.bh-hut-stripe { fill: color-mix(in srgb, #2f6fb5 60%, var(--surface)); }
.bh-hut-roof { fill: color-mix(in srgb, var(--text) 40%, var(--surface)); }
.bh-pole { stroke: color-mix(in srgb, var(--text) 55%, var(--surface)); stroke-width: 1.4; stroke-linecap: round; }
.bh-canopy { fill: var(--orange); }
.bh-towel { fill: color-mix(in srgb, var(--red) 55%, var(--surface)); }
.bh-steps { stroke: color-mix(in srgb, #8a6a35 45%, var(--surface)); stroke-width: 2; stroke-linecap: round; }
.bh-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bh-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bh-hero-top > div { display: flex; flex-direction: column; gap: 2px; }
.bh-hero-top .muted { font-size: 13px; }
.bh-weeks { font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.bh-weeks small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bh-card.long .bh-weeks { color: var(--red-ink); }
.bh-track { position: relative; height: 10px; border-radius: 5px; background: var(--fill); margin: 4px 0 18px; }
.bh-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, #d9b77a 70%, var(--surface)), var(--orange)); }
.bh-fill.over { border-radius: 0 5px 5px 0; background: var(--red); }
.bh-track.long .bh-fill:not(.over) { border-radius: 5px 0 0 5px; }
.bh-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--text) 45%, var(--surface)); border-radius: 1px; }
.bh-mark i { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bh-now { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--orange); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.bh-track.long .bh-now { border-color: var(--red); }
@media (max-width: 640px) { .bh-hero { flex-direction: column; align-items: stretch; } .bh-scene { width: 100%; height: auto; } }
.bh-dec.draaien { color: var(--green-ink); }
.bh-dec.stoppen { color: var(--red-ink); }
.bh-dec.oplossing { color: var(--blue-ink); }
/* Aanpak (rich text: <strong>, <ul>) in een vakje zoals de feiten erboven; één lettergrootte, lijsten compact. */
.bh-card-approach { margin: 10px 0 0; background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; }
.bh-card-approach > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.bh-card-approach > span svg { width: 14px; height: 14px; color: var(--orange); }
.bh-card-approach .rich { font-size: 13.5px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.bh-card-approach .rich strong { color: var(--text); font-weight: 600; }
.bh-card-approach .rich ul { margin: 2px 0 0; padding-left: 18px; }
.bh-card-approach .rich li::marker { color: var(--faint); }
.bh-card-leads { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.bh-card-leads li { display: flex; align-items: center; gap: 8px; }
.bh-card-past { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bh-card.past .bh-card-past { margin-top: 0; padding-top: 0; border-top: 0; }
.bh-card-past ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }

/* The Beach · historiek (momentopnames uit Jira) */
.bh-hist { margin-bottom: var(--gap-v); }
.bh-hist-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.bh-hist-kpis > div { background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.bh-hist-kpis b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.bh-hist-kpis span { font-size: 12.5px; color: var(--muted); }
.bh-trend, .bh-mini { display: flex; align-items: stretch; gap: 2px; height: 180px; padding-top: 4px; border-bottom: 1px solid var(--line); }
.bh-mini { height: 120px; gap: 6px; }
.bh-trend .col, .bh-mini .col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; outline: none; }
.bh-trend .n, .bh-mini .n { font-size: 11px; color: var(--muted); height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-trend .n { opacity: 0; transition: opacity .12s; }
.bh-trend .col.peak .n, .bh-trend .col:hover .n, .bh-trend .col:focus .n { opacity: 1; color: var(--text); }
.bh-trend .bar, .bh-mini .bar { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bh-trend .bar i, .bh-mini .bar i { display: block; width: min(100%, 22px); border-radius: 4px 4px 0 0; background: var(--orange); opacity: .85; transition: opacity .12s; }
.bh-mini .bar i { width: min(100%, 34px); background: var(--accent); }
.bh-trend .col:hover .bar i, .bh-trend .col:focus .bar i { opacity: 1; }
.bh-trend .x, .bh-mini .x { position: absolute; bottom: -20px; font-size: 11px; color: var(--faint); white-space: nowrap; }
.bh-trend { margin-bottom: 26px; }
.bh-mini { margin-bottom: 24px; }
.bh-trend .tip { display: none; position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translateX(-50%); z-index: 5; width: max-content; max-width: 240px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.bh-trend .tip b { display: block; color: var(--text); }
.bh-trend .col:hover .tip, .bh-trend .col:focus .tip { display: block; }
.bh-trend .col:first-child .tip, .bh-trend .col:nth-child(2) .tip { left: 0; transform: none; }
.bh-trend .col:last-child .tip, .bh-trend .col:nth-last-child(2) .tip { left: auto; right: 0; transform: none; }
.bh-table summary { cursor: pointer; margin-top: 4px; }
.bh-table .table { margin-top: 8px; }
.bh-table .table td, .bh-table .table th { padding: 6px 10px; }
.bh-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bh-bar.wide.muted i { background: var(--line-strong); }
.bh-card-past li.approx > span:first-child, .bh-timeline li.approx > span:first-child { color: var(--muted); }
@media (max-width: 640px) { .bh-hist-kpis { grid-template-columns: repeat(2, 1fr); } .bh-trend { height: 140px; } }
/* The Beach › lijst: filters en plan opmaken vanuit de tabel */
.bh-filters .bh-q { width: 240px; max-width: 100%; }
.bh-plan-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bh-plan-cell .icon-btn { width: 26px; height: 26px; }
.bh-plan-cell .icon-btn .ic, .bh-plan-cell .icon-btn svg { width: 15px; height: 15px; }
.bh-todo h2 svg { width: 18px; height: 18px; color: var(--accent); }
a.act-btn { text-decoration: none; }
@media (max-width: 720px) { .bh-filters .bh-q { width: 100%; } }
/* Vuurtoren: het strand is een link naar The Beach */
.lh-beach-link { cursor: pointer; outline: none; }
.lh-beach-link .lh-sand, .lh-beach-link .lh-parasol { transition: fill .25s ease, transform .25s ease; }
.lh-beach-link:hover .lh-sand, .lh-beach-link:focus-visible .lh-sand { fill: color-mix(in srgb, #d9b77a 72%, var(--surface)); }
.lh-beach-link:hover .lh-canopy, .lh-beach-link:focus-visible .lh-canopy { fill: var(--orange); }
.lh-beach-link:focus-visible .lh-foam { stroke: var(--accent); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .lh-beach-link .lh-sand, .lh-beach-link .lh-parasol { transition: none; } }
/* Overzicht: snel naar Vuurtoren, Haven en The Beach (kleine uitsnede van de scène op de Vuurtoren-pagina) */
.quick-map { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; padding: 16px 20px; }
.qm-scene { position: relative; flex: 0 0 min(44%, 460px); margin: 0; border-radius: 14px; overflow: hidden; }
.qm-scene svg { display: block; width: 100%; height: auto; }
.qm-hit { fill: transparent; }
.qm-zone { cursor: pointer; outline: none; transition: opacity .2s ease; }
.quick-map[data-active="lh"] .qm-zone:not([data-zone="lh"]),
.quick-map[data-active="haven"] .qm-zone:not([data-zone="haven"]),
.quick-map[data-active="beach"] .qm-zone:not([data-zone="beach"]) { opacity: .45; }
.qm-zone:focus-visible .qm-hit { stroke: var(--accent); stroke-width: 2; }
.qm-zone[data-zone="haven"]:hover .lh-anchor, .qm-zone[data-zone="haven"]:focus-visible .lh-anchor { stroke: var(--green); }
.qm-zone[data-zone="beach"]:hover .lh-sand, .qm-zone[data-zone="beach"]:focus-visible .lh-sand { fill: color-mix(in srgb, #d9b77a 72%, var(--surface)); }
.qm-zone[data-zone="lh"]:hover .lh-lamp, .qm-zone[data-zone="lh"]:focus-visible .lh-lamp { filter: brightness(1.15); }
.qm-beam { transform-origin: 520px 62px; transform-box: view-box; animation: qm-sweep 7s ease-in-out infinite; }
@keyframes qm-sweep { 0%, 100% { transform: rotate(-4deg); opacity: .75; } 50% { transform: rotate(5deg); opacity: 1; } }
.qm-tip { position: absolute; z-index: 2; max-width: 210px; padding: 8px 11px; border-radius: 12px; pointer-events: none;
  background: var(--surface); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); font-size: 12.5px;
  display: flex; flex-direction: column; gap: 2px; }
.qm-tip[hidden] { display: none; }
.qm-tip b { font-size: 13px; }
.qm-tip-text { font-size: 12px; line-height: 1.35; }
.qm-tip-count { font-weight: 600; color: var(--accent); }
.qm-tip-text { color: var(--muted); }
.qm-tip-go { margin-top: 4px; font-size: 11.5px; color: var(--faint); }
.qm-list { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Elke rij is een kleine tegel in de kleur van het gebied: icoon en uitleg links, rechts het kerncijfer met een visual. */
.qm-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 14px 11px 12px;
  border-radius: 14px; color: inherit; text-decoration: none; border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.qm-item[data-zone="lh"] { --zone: var(--orange); --zone-ink: var(--orange-ink); --zone-soft: var(--orange-soft); }
.qm-item[data-zone="haven"] { --zone: var(--green); --zone-ink: var(--green-ink); --zone-soft: var(--green-soft); }
.qm-item[data-zone="beach"] { --zone: #d9b77a; --zone-ink: #9a7432; --zone-soft: color-mix(in srgb, #d9b77a 26%, var(--surface)); }
.qm-item:hover, .qm-item:focus-visible, .quick-map[data-active="lh"] .qm-item[data-zone="lh"],
.quick-map[data-active="haven"] .qm-item[data-zone="haven"], .quick-map[data-active="beach"] .qm-item[data-zone="beach"] {
  background: color-mix(in srgb, var(--zone-soft) 70%, var(--surface)); border-color: color-mix(in srgb, var(--zone) 28%, transparent); outline: none; }
.qm-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--zone-soft); color: var(--zone-ink);
  transition: transform .2s ease; }
.qm-ic svg { width: 19px; height: 19px; }
.qm-item:hover .qm-ic { transform: scale(1.06) rotate(-4deg); }
.qm-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.qm-name { font-weight: 600; font-size: 14.5px; }
.qm-text { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
/* Het cijfer met de visual: cijfer groot, daaronder de balk of tijdlijn, daaronder één regel uitleg. */
.qm-viz { display: flex; flex-direction: column; gap: 5px; width: 186px; flex-shrink: 0; }
.qm-num { font-size: 12.5px; color: var(--muted); white-space: nowrap; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.qm-num b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.qm-pct { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--zone-ink); background: var(--zone-soft); border-radius: 999px; padding: 2px 7px; }
.qm-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.qm-bar i { display: block; border-radius: 3px; min-width: 3px; }
.qm-bar i.drift { background: var(--red); }
.qm-bar i.aandacht { background: var(--orange); }
.qm-bar i.preventief { background: color-mix(in srgb, var(--orange) 38%, var(--surface)); }
.qm-bar.level-bar.sm { height: 8px; background: var(--fill); }
.qm-bar.level-bar .lv { min-width: 3px; }
.qm-legend { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.qm-legend b { color: var(--text); font-weight: 600; }
.qm-legend .warn { color: var(--red-ink); font-weight: 600; }
.qm-legend em { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 0; background: var(--orange); }
.qm-legend:has(.qm-lg) { white-space: normal; display: flex; flex-wrap: wrap; gap: 0 9px; }   /* Vuurtoren: drie items, liever 2 regels dan afgeknipt */
.qm-legend .qm-lg { white-space: nowrap; }
.qm-legend em.drift { background: var(--red); }
.qm-legend em.preventief { background: color-mix(in srgb, var(--orange) 38%, var(--surface)); }
/* The Beach: tijdlijn in weken; links kort, rechts lang. De streep is de Long beacher-grens. */
.qm-strip { position: relative; display: block; height: 15px; border-radius: 8px; background: var(--fill); overflow: hidden; }
.qm-strip .p { position: absolute; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%); background: var(--zone-ink); opacity: .55;
  box-shadow: 0 0 0 1px var(--surface); }
.qm-strip .p.long { background: var(--orange-ink); opacity: .95; }
.qm-strip .mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed color-mix(in srgb, var(--text) 45%, transparent); }
.qm-arrow { margin-left: 2px; color: var(--faint); transition: transform .15s ease, color .15s ease; }
.qm-item:hover .qm-arrow { transform: translateX(3px); color: var(--zone-ink); }
@media (max-width: 760px) { .quick-map { flex-direction: column; align-items: stretch; } .qm-scene { flex-basis: auto; } }
@media (max-width: 560px) {   /* smal: de visual onder de uitleg, in dezelfde kolom (cellen expliciet, anders schuift de pijl op) */
  .qm-item { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; }
  .qm-ic { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .qm-body { grid-column: 2; grid-row: 1; }
  .qm-viz { grid-column: 2; grid-row: 2; width: auto; max-width: 260px; }
  .qm-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) { .qm-beam { animation: none; } .qm-zone, .qm-item, .qm-arrow, .qm-ic { transition: none; } .qm-item:hover .qm-ic { transform: none; } }
/* Bovenbalk: het menu mag nooit afgeknipt worden. Eerst geeft het zoekveld plaats, dan het Axxes-logo, de icoontjes in
   het menu en de naam Anker. Onder 861px neemt het mobiele menu het over. */
.topbar-inner { gap: 20px; }
.nav { flex: 0 0 auto; }
.nav a { padding: 0 11px; }
.search { width: auto; flex: 0 1 240px; min-width: 40px; margin-left: auto; container-type: inline-size; }
.search-results { left: auto; width: max(calc(100% + 80px), 340px); }
@container (max-width: 150px) {
  .search input { padding-right: 8px; }
  .search input::placeholder { color: transparent; }
  .search-all { display: none; }
}
@media (max-width: 1340px) and (min-width: 861px) {
  .topbar-inner { gap: 16px; padding: 0 20px; }
  .brand-logo, .brand-divider { display: none; }
  .nav a { padding: 0 9px; }
}
@media (max-width: 1100px) and (min-width: 861px) { .nav a .nav-ic { display: none; } }
@media (max-width: 960px) and (min-width: 861px) { .brand-name { display: none; } .nav a { padding: 0 7px; } }
.bh-kpi-btn { all: unset; box-sizing: border-box; cursor: pointer; background: var(--surface-2); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; transition: border-color .12s, background .12s; }
.bh-kpi-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.bh-kpi-btn:focus-visible { outline: 2px solid var(--accent-ring, var(--accent)); outline-offset: 2px; }
.bh-kpi-btn b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.bh-kpi-btn > span { font-size: 12.5px; color: var(--muted); }
.bh-kpi-btn .go { display: block; color: var(--accent); font-weight: 600; margin-top: 2px; }
.bh-rep-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); }
.bh-rep-dialog .list-item { align-items: center; }
.bh-rep-n { font-family: var(--font-display); font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 'Plan vereist': een status (stip + tekst), geen tweede knop naast '+ Plan' */
.bh-need { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--red-ink); white-space: nowrap; }
.bh-need::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.bh-plan-cell:has(.bh-need) { gap: 12px; }
a.bh-need-talk { text-decoration: none; }
/* Plan-kolom: één element per rij. Rustig '+ Plan' als het (nog) niet hoeft; 'Plan vereist' als enige opvallende knop. */
.bh-plan-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 7px; border-radius: 999px; border: 1px dashed var(--line-strong);
  background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .12s, border-color .12s, background .12s; }
.bh-plan-btn svg, .bh-plan-btn .ic { width: 14px; height: 14px; }
.bh-plan-btn:hover, .bh-plan-btn:focus-visible { color: var(--text); border-color: var(--muted); border-style: solid; background: var(--surface-2); }
.bh-plan-btn.need { border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); background: var(--red-soft); color: var(--red-ink); font-weight: 600; }
.bh-plan-btn.need:hover, .bh-plan-btn.need:focus-visible { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }
tr:not(:hover) .bh-plan-btn:not(.need) { opacity: .75; }
/* Patronen: klikbare patroonrijen als filter, compacte lijst (top 5 + 'Toon alle'), twee kolommen */
button.bh-patrow { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 110px 34px 1fr; gap: 10px; align-items: baseline;
  padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border-bottom: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; transition: background .12s; }
button.bh-patrow b { font-size: 17px; font-variant-numeric: tabular-nums; }
button.bh-patrow:hover { background: var(--surface-2); }
button.bh-patrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.bh-patrow[aria-pressed="true"] { background: var(--accent-soft); }
.bh-replist .list-item { align-items: center; padding-top: 9px; padding-bottom: 9px; }
.bh-replist .list-item .pill { flex-shrink: 0; }
.bh-repmore { margin-top: 8px; }
.bh-cols > .stack { gap: 20px; min-width: 0; }

/* Tijdlijn in het profielblok van de fiche */
.profile-tl { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.profile-tl-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
/* Fiche: kruimelpad naar de pagina waar je vandaan kwam */
.crumbs { display: flex; align-items: center; gap: 8px; margin: -6px 0 12px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Fiche ↔ beach-fiche: tabs onder de kop, zodat beide pagina's als één scherm aanvoelen */
.ps-sub { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); }
.ps-sub.long { background: var(--red-soft); color: var(--red-ink); }

/* Kenmerken: laatste waarde per kenmerk, eerdere (andere) waarden uitklapbaar */
.obs-history { margin-top: 10px; }
.obs-history > summary { cursor: pointer; padding: 4px 0; }
.obs-history .obs-table { margin-top: 6px; }
.obs-table tr.obs-old td { color: var(--muted); }
.obs-table { table-layout: fixed; width: 100%; }
.obs-table th:nth-child(1), .obs-table td:nth-child(1) { width: 38%; }
.obs-table th:nth-child(2), .obs-table td:nth-child(2) { width: 24%; }
/* Fiche › Notities: inklapbaar zoals de gesprekken (dicht: kwartaal, soort en begin van de tekst op één regel) */
.note-item { border-top: 1px solid var(--line); }
.note-item:first-child { border-top: 0; }
.note-head { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px 8px;
  margin: 0 -8px; border-radius: 10px; cursor: pointer; list-style: none; }
.note-head::-webkit-details-marker { display: none; }
.note-head:hover { background: var(--fill); }
.note-head .chev { width: 12px; height: 12px; color: var(--faint); transition: transform .15s; align-self: center; }
.note-item[open] .note-head .chev { transform: rotate(90deg); }
.note-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.note-snippet { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item[open] .note-snippet { display: none; }
.note-body { display: flex; gap: 10px; align-items: flex-start; padding: 0 0 12px 22px; }
.note-body .text { flex: 1; min-width: 0; white-space: pre-wrap; color: var(--text-2); font-size: 14px; }
@media (max-width: 720px) { .note-head { grid-template-columns: 12px minmax(0, 1fr); } .note-snippet { grid-column: 2; } }
/* Fiche: tijdlijn met de volledige historiek, horizontaal te scrollen (pijlknoppen, ← →) */
.tl-scroller { position: relative; display: flex; align-items: center; gap: 6px; }
.tl-scroller .timeline { flex: 1; min-width: 0; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: thin; outline: none; }
/* scroll-padding = de binnenmarge van .timeline: anders klikt het laatste kwartaal 4px vóór het einde vast (en blijft de fade staan) */
.tl-scroller .timeline:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); border-radius: 12px; }
.tl-scroller .tl-q { scroll-snap-align: end; }
.tl-scroller.fade-l .timeline { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
.tl-scroller.fade-r .timeline { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
.tl-scroller.fade-l.fade-r .timeline { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.tl-nav { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--fill); color: var(--text); transition: background .15s ease, opacity .15s ease; }
.tl-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-nav:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.tl-nav:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.tl-nav:disabled { opacity: .35; cursor: default; }
.tl-nav[hidden] { display: none; }
/* Inzichten: één league-keuze op een vaste plek (rechts naast 'Inzichten'), zodat niets verspringt tussen de tabs */
.insights-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.insights-league { margin: 0; }
.insights-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.insights-head + .page-head p { min-height: 3.2em; }      /* intro's van 1 of 2 regels: de inhoud eronder start op dezelfde hoogte */

/* Bekijk als (admin bootst een andere gebruiker na): zelfde balk als .demobar, eigen kleur */
.asbar { background: #1d1d1f; color: #f5f5f7; font-size: 12px; line-height: 1.35; text-align: center; padding: 3px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.asbar b { color: #7fd1ff; }
.asbar form { display: inline; margin: 0 0 0 8px; }
.asbar button { font: inherit; font-weight: 600; color: #7fd1ff; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; }
.asbar button:hover { color: #fff; }
.user-menu .menu .as-pick { display: flex; flex-direction: column; gap: 6px; padding: 6px 12px 8px; }
.user-menu .menu .as-pick .theme-label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user-menu .menu .as-pick select { width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card, var(--bg)); color: var(--text); }
.user-menu .menu .menu-item.as-stop { font-weight: 600; }
.user-menu .menu .as-pick .theme-label .ic { width: 17px; height: 17px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------------------------------------------------------------- sub-ankers (fiche, overleg) */
/* Eigen look binnen "Wat houdt … hier?": havenwater (teal), een touw als rand (streepjes), golfjes onderaan. */
.sk-panel { position: relative; margin: 6px 0 14px; padding: 14px 16px 12px; border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--teal-ink) 32%, transparent);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--teal-ink) 12%, transparent) 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(180deg, var(--teal-soft), color-mix(in srgb, var(--teal-soft) 35%, var(--surface)));
  overflow: hidden; }
.sk-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; pointer-events: none; opacity: .5;
  background: radial-gradient(10px 6px at 10px 10px, transparent 6px, color-mix(in srgb, var(--teal-ink) 22%, transparent) 6.5px, transparent 7.5px) 0 0 / 20px 10px repeat-x; }
.sk-panel.standalone { margin: 0; }
.sk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sk-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-ink); }
.sk-eyebrow svg { width: 13px; height: 13px; }
.sk-head h3 { font-size: 15px; font-weight: 600; margin-top: 2px; }
.sk-add { background: var(--surface); }
.sk-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 1.05fr); gap: 12px 18px; align-items: start; }
@media (max-width: 820px) { .sk-body { grid-template-columns: minmax(0, 1fr); } }
.sk-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; align-self: center; padding: 6px 0; }
.sk-diagram { display: block; max-width: 100%; height: auto; overflow: visible; width: calc(var(--vw, 400) * 1px); }
/* Vergroten: het diagram krijgt de volle breedte, de lijst schuift eronder */
.sk-zoom { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--teal-ink) 22%, transparent); background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--teal-ink); cursor: pointer; opacity: .75; transition: opacity .15s, transform .15s, background .15s; }
.sk-zoom:hover, .sk-zoom:focus-visible { opacity: 1; background: var(--surface); transform: scale(1.06); }
.sk-zoom svg { width: 16px; height: 16px; }
.sk-zoom .sk-zoom-out, .sk-zoom.on .sk-zoom-in { display: none; }
.sk-zoom .sk-zoom-in, .sk-zoom.on .sk-zoom-out { display: contents; }
.sk-zoom svg { transition: transform .35s cubic-bezier(.22, .8, .24, 1); }
.sk-zoom:active svg { transform: scale(.85); }
.sk-body.expanded { grid-template-columns: minmax(0, 1fr); }
.sk-body.expanded .sk-diagram { width: min(100%, calc(var(--vw, 400) * 1.8px)); }
.sk-body.expanded .sk-figure { padding: 10px 0 4px; }
.sk-line { stroke: color-mix(in srgb, var(--teal-ink) 55%, transparent); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.sk-line.buddy { stroke: var(--accent); stroke-dasharray: none; opacity: .6; }
.sk-me-ring { fill: none; stroke: color-mix(in srgb, var(--teal-ink) 25%, transparent); stroke-width: 1; stroke-dasharray: 3 3; }
.sk-me { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.sk-me-t { fill: var(--accent); font-size: 13px; font-weight: 700; }
.sk-box { fill: var(--surface); stroke: color-mix(in srgb, var(--teal-ink) 28%, transparent); }
.sk-group.buddy .sk-box { stroke: var(--accent-ring); }
.sk-label { fill: var(--teal-ink); font-size: 11.5px; font-weight: 600; }
.sk-more { fill: var(--muted); font-size: 11px; }
.sk-dot { fill: var(--gray); stroke: var(--surface); stroke-width: 1.5; transition: r .12s; }
.sk-dot.G { fill: var(--green); } .sk-dot.O { fill: var(--orange); } .sk-dot.R { fill: var(--red); }
.sk-dot.none { fill: var(--surface); stroke: var(--gray); }
.sk-dot.gone { fill: var(--gray); stroke: var(--surface); opacity: .55; }
.sk-dot.leaving { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 2 2; }
.sk-strike { stroke: var(--muted); stroke-width: 1.3; pointer-events: none; }
/* Lichting: wie in dezelfde league zit krijgt een ring en staat vooraan; de rest is kleiner en wat lichter */
.sk-same-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; pointer-events: none; }
.sk-dot.other { opacity: .5; }
.sk-diagram a:hover .sk-dot.other, .sk-diagram a:focus .sk-dot.other { opacity: 1; }
.sk-leg-same { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: var(--gray); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--accent); margin: 0 2px; }
.sk-same-n { color: var(--accent-hover); font-weight: 600; }
.sk-diagram a:hover .sk-dot, .sk-diagram a:focus .sk-dot { r: 6.5; }
.sk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.sk-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.sk-leg-gone, .sk-leg-leaving { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sk-leg-gone { background: var(--gray); opacity: .7; }
.sk-leg-leaving { box-shadow: inset 0 0 0 1.5px var(--orange); }
.sk-side { min-width: 0; padding: 4px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal-ink) 14%, transparent); }
.sk-list, .sk-members { list-style: none; margin: 0; padding: 0; }
.sk-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.sk-list .sk-kind { min-width: 68px; text-align: center; }
.sk-list li + li { border-top: 1px dashed color-mix(in srgb, var(--teal-ink) 20%, transparent); }
.sk-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.sk-kind { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em;
  background: var(--surface); color: var(--teal-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal-ink) 25%, transparent); }
.sk-kind.buddy { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.sk-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-ink); margin: 0 0 2px; }
.sk-side .sk-proposals { margin: 0 -14px; padding: 10px 14px 4px; border-top: 1px solid color-mix(in srgb, var(--teal-ink) 14%, transparent);
  background: color-mix(in srgb, var(--orange) 5%, transparent); border-radius: 0 0 12px 12px; }
.sk-side .sk-list:empty + .sk-proposals { border-top: 0; margin-top: 0; }
.sk-decide { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sk-decide .btn { height: 28px; }
.sk-proposal { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.sk-proposal + .sk-proposal { border-top: 1px dashed color-mix(in srgb, var(--orange) 30%, transparent); }
.sk-proposals .btn svg { width: 14px; height: 14px; }
.sk-empty { margin: 2px 0 4px; }
.sk-strain { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 40%, transparent); margin: 0 0 6px; cursor: help; }
.sk-strain-mark svg { width: 13px; height: 13px; color: var(--orange); display: block; }
.sk-members li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.sk-members { max-height: 260px; overflow-y: auto; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.sk-chips:empty { display: none; }
.sk-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 2px 4px 2px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); }
.sk-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.sk-prop-members { margin: 4px 0 0; }
.sk-prop-members .sk-chip a { color: inherit; text-decoration: none; }
.sk-prop-members .sk-chip a:hover { text-decoration: underline; }
.sk-prop-members .sk-chip form { display: contents; }
.sk-prop-members .sk-chip button:hover { color: var(--red, #c0392b); }
.sk-hit { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.sk-hit:hover, .sk-hit:focus-visible { border-color: var(--teal-ink); }
/* Haven: voorgestelde sub-ankers */
#subankers .sk-proposals .sk-kind.voorstel, .card .sk-kind.voorstel { color: var(--orange-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 40%, transparent); }
/* overleg: subtiele markering bij Connectie */
.sk-flag { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; color: var(--teal-ink); background: var(--teal-soft); cursor: help; }
.sk-flag svg { width: 11px; height: 11px; }

/* Mijn team (Team Captain): het anker blijft binnen de kaart; daaronder erkennen · bijpraten · acties, en het team. */
.tc-scene { overflow: hidden; }
.tc-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: var(--gap-v); align-items: stretch; }
.tc-trio-col { min-width: 0; }
.tc-trio .hero-moments { margin: 0; }
.tc-trio > #momenten > .hero-moments { height: 100%; }
.tc-trio .list-item .actions { align-self: center; }
.tc-more { display: inline-block; margin-top: 10px; }
@media (max-width: 1100px) { .tc-trio { grid-template-columns: 1fr 1fr; } .tc-trio > #momenten { grid-column: 1 / -1; } }
@media (max-width: 720px) { .tc-trio { grid-template-columns: 1fr; } }

.tm-team { margin-bottom: var(--gap-v); }
.tm-row { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(150px, 1fr) minmax(170px, 1.1fr) 110px 176px;
  gap: 14px; align-items: center; padding: 12px 6px 12px 12px; border-bottom: 1px solid var(--line); }
.tm-row:last-child { border-bottom: 0; }
.tm-row.lit { box-shadow: inset 3px 0 0 var(--orange); }
.tm-row-head { padding-top: 0; padding-bottom: 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); }
.tm-who { display: flex; gap: 12px; align-items: center; min-width: 0; text-align: left; }
.tm-who-txt { min-width: 0; }
.tm-who .title { font-weight: 600; }
.tm-who .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-lit-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; color: var(--orange-ink); text-decoration: none; }
.tm-lit-link:hover { text-decoration: underline; }
.tm-lit-link svg { width: 13px; height: 13px; }
.tm-cell { min-width: 0; font-size: 13px; }
.tm-cell-label { display: none; }
.tm-talk { display: flex; flex-direction: column; gap: 2px; }
.tm-tone { font-weight: 600; font-size: 13px; }
.tm-tone.neg { color: var(--red-ink); }
.tm-tone.pos { color: var(--green-ink); }
.tm-tone.neu { color: var(--muted); }
.tm-sub { display: block; font-size: 12px; color: var(--muted); }
.tm-sub.stale { color: var(--orange-ink); }
.tm-sub.now { color: var(--accent); font-weight: 600; }
.tm-moment { display: flex; align-items: center; gap: 10px; }
.tm-moment .hm-tile { width: 36px; height: 36px; }
.tm-moment .hm-tile.eerste_jaar { box-shadow: inset 0 3px 0 var(--green); }
.tm-moment .hm-tile.verjaardag { box-shadow: inset 0 3px 0 var(--purple); }
.tm-moment-lbl { display: block; font-weight: 500; }
.tm-act-count { display: inline-flex; gap: 4px; align-items: baseline; padding: 3px 10px; border-radius: 999px; background: var(--fill);
  color: var(--text); text-decoration: none; font-size: 12.5px; }
.tm-act-count:hover { background: var(--accent-soft); }
.tm-act-count.late { background: var(--red-soft); color: var(--red-ink); }
.tm-row .actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 900px) {
  .tm-row-head { display: none; }
  .tm-row { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 4px 14px 12px; }
  .tm-who { grid-column: 1 / -1; }
  .tm-cell-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: var(--faint); margin-bottom: 3px; }
  .tm-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 480px) { .tm-row { grid-template-columns: 1fr; } }
/* Agent voorstellen */
.prop-row { align-items: flex-start; gap: 16px; }
.prop-preview { margin-top: 6px; }
.prop-preview summary { cursor: pointer; color: var(--accent); }
.prop-preview ul { margin: 6px 0 0 18px; display: grid; gap: 2px; }
/* Agent voorstellen: uitleg per tab, in dezelfde taal als de kaarten maar rustiger (geen schaduw, fijne rand) */
.howto { margin: 0 0 18px; }
.howto > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px;
  padding: 2px 0 10px; color: var(--text); }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary svg { width: 15px; height: 15px; color: var(--accent); }
.howto > summary .small { font-weight: 400; }
.howto .chev-s { display: inline-block; color: var(--faint); transition: transform .15s; font-size: 18px; line-height: 1; width: 10px; }
.howto[open] .chev-s { transform: rotate(90deg); }
.howto-grid { display: grid; gap: 14px; }
.howto-grid.n2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.howto-card { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 90px), var(--surface); font-size: 13.5px; }
.howto-card header { display: flex; gap: 12px; align-items: center; }
.howto-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.howto-ic svg { width: 18px; height: 18px; }
.howto-kicker { font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.howto-kicker .mono { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; margin-left: 4px; }
.howto-card h3 { font-size: 15.5px; margin-top: 1px; }
.howto-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px 22px; }
.howto-grid.n2 .howto-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .howto-body { grid-template-columns: minmax(0, 1fr); } }
.howto-what p { margin: 0 0 8px; color: var(--text-2); }
.howto-what blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 10px 10px 0; font-style: italic; color: var(--text); }
.howto-facts { display: grid; gap: 6px; margin: 0; font-size: 13px; }
.howto-facts > div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.howto-facts dt { color: var(--muted); font-weight: 500; }
.howto-facts dd { margin: 0; }
.howto-ask { display: flex; gap: 7px; align-items: flex-start; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line-strong);
  font-size: 13px; color: var(--muted); }
.howto-ask svg { width: 14px; height: 14px; margin-top: 2px; color: var(--accent); flex-shrink: 0; }

/* Patronen: uitleg bovenaan elke tab */
.tab-intro { max-width: 820px; margin: 0 0 14px; }

/* Agent voorstellen: per tab een link naar waar het goedgekeurde terechtkomt */
.prop-goto { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prop-goto > .muted { margin-right: 2px; }

/* Boeien (intern sub-ankers): touw naar de persoon, een rood-witte reddingsboei bij elke groep */
.sk-line { stroke-width: 2; stroke-dasharray: 5 2.5; stroke-linecap: butt; }
.sk-buoy-ring { fill: none; stroke: #e0452c; stroke-width: 4.4; stroke-dasharray: 4.87 4.87; }
.sk-buoy-edge { fill: none; stroke: color-mix(in srgb, #e0452c 70%, var(--text)); stroke-width: .8; }
.sk-buoy-base { fill: none; stroke: #fff; stroke-width: 4.4; }
.sk-buoy { pointer-events: none; }
.sk-eyebrow svg, .sk-flag svg { color: #e0452c; }

/* Buddy-historiek op de fiche: voor wie iemand buddy is of was (met periode) */
.bh-block { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.bh-head { display: flex; align-items: flex-start; gap: 10px; }
.bh-head > div { display: flex; flex-direction: column; gap: 2px; }
.bh-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.bh-list li { display: flex; flex-direction: column; gap: 0; font-size: 13px; line-height: 1.35; padding: 3px 0; }
.bh-list li > a { display: inline-flex; align-items: center; gap: 6px; }
.bh-list li.gone a { color: var(--muted, #888); }
.bh-list li .pill { font-size: 11px; padding: 0 6px; }
.bh-block > .btn-plain { margin-top: 6px; }
.bh-own { margin: 10px 0 0; }
.bh-block .bh-head + .bh-own { margin-top: 8px; }
.bh-block > .bh-own:first-child { margin-top: 0; }
.bh-block:has(> .bh-own:only-child) { padding: 9px 14px; }

/* Buddy-pool (venster) */
.pool-opts { display: grid; gap: 6px; }
.pool-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pool-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pool-opt input { margin-top: 3px; }
.pool-opt > span { display: flex; flex-direction: column; gap: 1px; }
.pool-opt[hidden] { display: none; }
.pool-who { font-weight: 600; }
.pool-list .list-item .meta b { font-weight: 600; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 24px; }
.pool-grid .pool-item .title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pool-grid .pool-item .pill { font-size: 11px; height: 20px; padding: 0 7px; }

/* Afgeleide boeien: Team Captain (uit het HR-bestand) en League Lead (gebruiker, enkel naam) */
.sk-line.captain { stroke: var(--teal-ink); stroke-dasharray: none; opacity: .55; }
.sk-line.league { stroke: var(--muted); stroke-dasharray: 1 4; stroke-linecap: round; }
.sk-group.captain .sk-box { stroke: color-mix(in srgb, var(--teal-ink) 55%, transparent); }
.sk-group.league .sk-box { stroke-dasharray: 3 3; }
.sk-kind.captain { color: var(--teal-ink); background: var(--teal-soft); }
.sk-kind.league { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Ankerpatronen: subtiel 'waarom' per persoon (tooltip op hover of tik); de kaart blijft één link naar de fiche */
.pattern-person { position: relative; }
.pp-link { color: inherit; text-decoration: none; }
.pp-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pp-link:focus-visible { outline: none; }
.pattern-person:has(.pp-link:focus-visible) { box-shadow: 0 0 0 2px var(--accent-ring); }
.pp-why { position: relative; z-index: 1; margin: -4px -6px 0 auto; flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: help; opacity: .45; transition: opacity .15s, background .15s; }
.pp-why svg { width: 15px; height: 15px; }
.pattern-person:hover .pp-why, .pp-why:focus-visible, .pp-why:focus { opacity: 1; }
.pp-why:hover, .pp-why:focus-visible { background: var(--surface); }
@media (hover: none) { .pp-why { opacity: .8; } }
#tip .pp-change { color: #c7c7cc; font-size: 11.5px; padding-top: 0; margin-top: -2px; }
#tip .pp-change.up { color: #7ee2a0; }

/* Diagram boeien: een zachte rand in de achtergrondkleur rond elke naam, zodat een lijn er nooit zichtbaar door loopt.
   De rand is een aparte kopie achter de tekst (niet paint-order op de tekst zelf): Safari tekent die rand letter per
   letter, zodat de rand van elke volgende letter over de vorige valt en de tekst hoekig oogt. */
.sk-halo { fill: none; stroke: color-mix(in srgb, var(--teal-soft) 75%, var(--surface)); stroke-width: 4px; stroke-linejoin: round; }

/* Goed gestart: helemaal groen, maar nog geen twee kwartalen op rij (lichter groen dan verankerd) */
.level-bar .lv.gestart, .lv-dot.gestart { background: color-mix(in srgb, var(--green) 45%, var(--surface)); }
.level-pill.gestart { background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); color: var(--green-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); }

/* Klantgesprekken uit Bullhorn: stappen per klant en subtiele feedback */
.bh-lead .title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bh-lead .title .pill { font-size: 11px; height: 20px; padding: 0 7px; }
.bh-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bh-steps li { font-size: 11.5px; color: var(--muted); padding: 1px 8px; border-radius: 999px; background: var(--bg-soft, color-mix(in srgb, var(--text) 5%, transparent)); white-space: nowrap; }
.bh-steps li span { font-weight: 600; color: var(--text); }
.bh-steps li.geplaatst { background: var(--green-soft, color-mix(in srgb, var(--green) 14%, transparent)); }
.bh-steps li.gesprek span { color: var(--blue, var(--text)); }
.bh-fb { margin: 6px 0 0; font-size: 12.5px; font-style: italic; color: var(--muted); line-height: 1.45; border-left: 2px solid var(--line); padding-left: 8px; }
.bh-fb span { font-style: normal; color: var(--faint); font-size: 11.5px; }
.bh-lead-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 10px; }
.bh-lead-filter { flex-wrap: wrap; }
.bh-talk-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 13px;
  font-weight: 500; color: var(--text-2); background: var(--fill); border: 1px solid transparent; cursor: pointer; }
.bh-talk-toggle svg { width: 14px; height: 14px; }
.bh-talk-toggle:hover { color: var(--text); }
.bh-talk-toggle.on { background: var(--surface); color: var(--blue, var(--accent)); border-color: color-mix(in srgb, var(--blue, var(--accent)) 45%, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.bh-lead-filter button { display: inline-flex; align-items: center; gap: 6px; }
.bh-lead-filter .bh-outcome { width: 8px; height: 8px; }
.bh-leads .bh-lead[hidden] { display: none; }

/* Compacte tooltip (vervangt de browser-tooltip van title-attributen en SVG-titels) */
#tip.plain { min-width: 0; max-width: 280px; padding: 6px 10px; border-radius: 9px; }
#tip.plain .tip-title { margin: 0; font-size: 12.5px; font-weight: 600; }
#tip.plain .tip-text { margin: 1px 0 0; color: #c7c7cc; }
.input.wl-search { width: 230px; }
.page-search:has(> .wl-search) { flex-shrink: 0; }
.input.wl-signal { width: auto; max-width: 240px; padding-right: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
@supports (field-sizing: content) { .input.wl-signal { field-sizing: content; min-width: 140px; } }   /* zo breed als de gekozen waarde */
@media (max-width: 640px) { .input.wl-search { width: 100%; } }
/* Klantgesprekken door de tijd (Inzichten → The Beach) */
.bh-ct .ct-pick { margin: 0 0 10px; }
.bh-ct .bar i { transition: height .35s cubic-bezier(.22, .8, .24, 1); }
.ct-delta { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.ct-delta.up { color: var(--green-ink); } .ct-delta.down { color: var(--red-ink); }
@media (prefers-reduced-motion: reduce) { .bh-ct .bar i { transition: none; } }

/* Opmaakeditor (textarea[data-rich] → static/richtext.js): vet, cursief, onderlijnd */
.rt { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); overflow: hidden; }
.rt.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.rt-bar { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.rt-bar button { width: 30px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--text-2);
  font: inherit; font-size: 14px; cursor: pointer; }
.rt-bar button:hover { background: var(--line); color: var(--text); }
.rt-bar button.on { background: var(--accent-ring); color: var(--accent); }
.rt-edit { min-height: 220px; max-height: 60vh; overflow-y: auto; resize: vertical; padding: 10px 12px;
  font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text); white-space: pre-wrap; outline: none; }
.rt-edit.is-empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
#bh-plan-dlg { width: min(720px, calc(100vw - 32px)); }

/* Instellingen → Log */
.lg-filters { flex-wrap: wrap; }
.lg-filters .lg-q { width: 260px; max-width: 100%; }
.lg-date input { min-width: 0; width: 140px; }
.lg-row { display: grid; grid-template-columns: 130px 120px minmax(0, 1fr) 180px 110px; gap: 12px; align-items: center;
  padding: 10px 22px; }
.lg-head { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 1px solid var(--line); }
.lg-item { border-bottom: 1px solid var(--line); }
.lg-item:last-child { border-bottom: 0; }
.lg-item > summary { list-style: none; cursor: pointer; }
.lg-item > summary::-webkit-details-marker { display: none; }
.lg-item > summary:hover { background: var(--line); }
.lg-item[open] > summary { background: var(--line); }
.lg-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.lg-kind { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: var(--line); color: var(--text-2); white-space: nowrap; }
.lg-kind.k-sync { background: var(--blue-soft); color: var(--blue-ink); }
.lg-kind.k-create { background: var(--green-soft); color: var(--green-ink); }
.lg-kind.k-delete { background: var(--red-soft); color: var(--red-ink); }
.lg-kind.k-export { background: var(--purple-soft); color: var(--purple-ink); }
.lg-detail { padding: 4px 22px 18px 164px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 12px; }
.lg-block { margin-top: 12px; }
.lg-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 6px; }
.lg-kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0; font-size: 13.5px; }
.lg-kv dt { color: var(--muted); }
.lg-kv dd { margin: 0; }
.lg-change { margin-bottom: 12px; }
.lg-change-head { font-size: 13.5px; margin-bottom: 4px; }
.lg-op { font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; margin-right: 4px; background: var(--line); }
.lg-op.op-insert { background: var(--green-soft); color: var(--green-ink); }
.lg-op.op-delete { background: var(--red-soft); color: var(--red-ink); }
.lg-table { font-size: 13px; }
.lg-table td { word-break: break-word; }
.lg-old { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 50%, transparent); }
.lg-new { font-weight: 500; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pager b { padding: 0 4px; }
.pager .link { padding: 0 4px; }
@media (max-width: 860px) {
  .lg-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 16px; }
  .lg-head { display: none; }
  .lg-row > :nth-child(3) { grid-column: 1 / -1; order: -1; white-space: normal; }
  .lg-row > :nth-child(5) { display: none; }
  .lg-detail { padding: 4px 16px 16px; }
}

/* Instellingen → Backup */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.bk-grid .card-head h2 { display: flex; align-items: center; gap: 8px; }
.bk-list { margin: 8px 0 14px; padding-left: 18px; display: grid; gap: 4px; }

/* Consultantfiche: tabs onder de kop (Overzicht · Gesprekken · Interne notities · Achtergrond) */
.fiche-tabs { display: flex; gap: 22px; margin: 4px 0 18px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
.fiche-tabs::-webkit-scrollbar { display: none; }
.fiche-tabs [role=tab], .fiche-tabs a { display: inline-flex; text-decoration: none; align-items: center; gap: 7px; padding: 8px 2px 11px; border: 0; background: none;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 14.5px; white-space: nowrap; cursor: pointer;
  transition: color .15s ease, box-shadow .15s ease; }
.fiche-tabs [role=tab] svg, .fiche-tabs a svg { width: 16px; height: 16px; }
.fiche-tabs [role=tab]:hover, .fiche-tabs a:hover { color: var(--text); }
.fiche-tabs [role=tab][aria-selected=true], .fiche-tabs a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.fiche-tabs [role=tab]:focus-visible, .fiche-tabs a:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--accent), 0 0 0 3px var(--accent-ring); border-radius: 4px; }
.tab-n { font-size: 11.5px; font-weight: 600; min-width: 20px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--line); color: var(--muted); }
.tab-n.hot { background: var(--accent-soft); color: var(--accent); }
.fiche-panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .fiche-tabs [role=tab], .fiche-tabs a { transition: none; } }
/* Kaart Opvolging: acties bij hun signaal ingesprongen; afgehandeld in de historiek */
.now-card .list-item.nested { padding-left: 18px; }
.now-history { margin-top: 10px; }
.now-history > summary { cursor: pointer; padding: 4px 0; }

/* Instellingen: hoofdtabs op één regel (op smalle schermen horizontaal scrollen), Beheer met een tweede rij */
.subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; flex: none; }
/* Tweede niveau onder Instellingen (Beheer, soorten patronen en voorstellen): knoppen in een grijze track,
   zodat het duidelijk een niveau lager is dan de onderlijnde hoofdtabs. */
.tabs-2 { display: flex; width: fit-content; max-width: 100%; gap: 2px; margin-top: 14px; padding: 3px; border-radius: 12px;
  background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.tabs-2::-webkit-scrollbar { display: none; }
.tabs-2 a { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 13px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.tabs-2 a svg { width: 15px; height: 15px; flex: none; color: var(--faint); transition: color .15s; }
.tabs-2 a:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tabs-2 a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tabs-2 a.on svg { color: var(--accent); }
.tabs-2 .count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11.5px; font-weight: 600;
  display: inline-grid; place-items: center; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); }
.tabs-2 a.on .count { background: var(--accent-soft); color: var(--accent-hover); }
.tabs-2 .count.demo-on { background: var(--demo); color: #fff; }
.tabs-2 a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.settings-head + .page-head { margin-top: 4px; }
/* donker: de actieve knop lichter dan de track (een donkere 'surface' zou eruitzien als een gat) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabs-2 a.on { background: rgba(255, 255, 255, 0.13); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
}
:root[data-theme="dark"] .tabs-2 a.on { background: rgba(255, 255, 255, 0.13); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
/* Patronen en Agent voorstellen: algemene titel en uitleg boven de balk, wat bij de tab hoort eronder */
.tabs-2-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 18px; }
.tabs-2-row .tabs-2 { margin-top: 0; }
.tabs-2-action { margin-left: auto; }
.settings-head > .tabs-2-row { margin: 14px 0 0; }
.sig-ignore { color: var(--muted); }
.sig-ignore:hover { color: var(--text); }
/* Release-overzicht zonder details: per versie de samenvatting en de onderwerpen als rij labels */
.rel-compact .release-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.rel-compact .release ul { display: none; }
.rel-compact .release h3 { margin: 0; font-size: 14px; font-weight: 500; color: var(--text-2); }
.rel-compact .release { padding-bottom: 18px; }

/* ------------------------------------------------------------ consistentie (design-verfijning)
   Eén maat voor onderdelen die op meerdere plaatsen apart gedefinieerd waren: paginatabs, telbadges, kleine
   labels (kickers), kleine pillen, focusringen en zwevende vensters. Later in het bestand, dus deze winnen. */

/* Paginatabs: Vuurtoren en The Beach (.page-tabs), de fiche (.fiche-tabs) en Instellingen (.subnav) zijn één familie:
   14.5px halfvet, grijs, actief in tekstkleur met een oranje lijntje van 2px zo breed als het label. */
.page-tabs, .fiche-tabs { gap: 22px; margin: 4px 0 18px; }
.page-tabs a, .fiche-tabs [role=tab], .fiche-tabs a { font-size: 14.5px; font-weight: 600; gap: 7px; padding: 9px 2px 11px; }
.page-tabs a { border-bottom: 0; }
.page-tabs a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.subnav { gap: 22px; }
.subnav a { font-size: 14.5px; font-weight: 600; color: var(--muted); gap: 7px; padding: 9px 2px 11px; }
/* Lijntje als inset-schaduw (zoals .page-tabs): het ::after-lijntje viel weg doordat .subnav horizontaal scrollt
   (overflow knipt alles onder de balk af). De grijze lijn van de balk zelf ook als inset-schaduw, zodat oranje erover ligt. */
.subnav { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.subnav a.on::after { content: none; }
.subnav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.subnav a.subnav-quiet { font-size: 13px; font-weight: 400; }

/* Telbadges in tabs: 20px hoog, zacht grijs; op de actieve tab zacht oranje. (De cijfers in de hoofdnavigatie en bij
   Instellingen blijven vol oranje: dat is een oproep om te kijken, geen telling.) */
.page-tabs .count, .fiche-tabs .tab-n, .tabs-2 .count, .subnav .count, .count-chip, .user-menu .menu .menu-item .count {
  min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 1;
  display: inline-grid; place-items: center; }
.page-tabs .count, .fiche-tabs .tab-n, .tabs-2 .count { background: var(--fill); color: var(--muted); }
.page-tabs a.on .count, .fiche-tabs .tab-n.hot, .tabs-2 a.on .count, .user-menu .menu .menu-item .count { background: var(--accent-soft); color: var(--accent-hover); }
.subnav .count, .count-chip { background: var(--accent); color: #fff; font-weight: 700; }
.count-chip.soft { background: var(--fill); color: var(--text-2); font-weight: 600; }
.count-chip.warn { background: var(--orange); color: #fff; }
.tabs-2 .count.demo-on, .subnav .count.demo-on { background: var(--demo); color: #fff; }

/* Kickers (kleine kopjes in kapitalen boven een blok): overal 11.5px, 700, .06em. De pagina-eyebrow blijft 13px. */
.explain-kicker, .howto-kicker, .sk-eyebrow, .mi-label, .tc-next .eyebrow, .status-menu .menu-label, .search-results .sr-head,
.lg-block h4, .kbd-grid h3, .tm-row-head, .tm-cell-label, .err-code, .egg-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.egg-eyebrow { letter-spacing: .22em; }
/* kolomkoppen buiten .table (Mijn team, Log) in dezelfde maat als .table th */
.tm-row-head, .lg-head { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

/* Kleine pillen die een status of aantal tonen: dezelfde maat als .pill (22px hoog, 12px, halfvet). */
.level-pill, .pattern-chip, .hm-when, .tm-act-count, .hm-all, .lg-kind, .imp, .talk-flag, .ps-sub, .sk-flag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; line-height: 1; }
.hm-all { height: 24px; padding: 0 10px; font-size: 12.5px; }
.talk-flag, .sk-flag { height: 20px; padding: 0 7px; font-size: 11.5px; }
.moment-filter .chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 11px; font-size: 12.5px; }

/* Focus: overal dezelfde oranje ring (binnen een scrollende track als inzet, zodat hij niet afgeknipt wordt). */
button.bh-patrow:focus-visible, .bh-kpi-btn:focus-visible, .sk-hit:focus-visible, .look-card:focus-visible, .moment-filter .chip:focus-visible,
.quick-btn:focus-visible, .bh-plan-btn:focus-visible, .act-btn:focus-visible, .icon-btn:focus-visible, .tl-nav:focus-visible, .missed-btn:focus-visible,
.link-btn:focus-visible, .btn-plain.small:focus-visible, .rte-bar button:focus-visible, .rt-bar button:focus-visible, .theme-seg button:focus-visible,
.segmented a:focus-visible, .segmented button:focus-visible, .search-all:focus-visible, .menu-toggle:focus-visible, .hm-item:focus-visible, .qm-item:focus-visible {
  outline: none; box-shadow: var(--focus-ring); }
.tabs-2 a:focus-visible, .page-tabs a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); border-radius: 6px; }
.page-tabs a.on:focus-visible { box-shadow: inset 0 -2px 0 var(--accent), inset 0 0 0 2px var(--accent-ring); }
.input:focus, .input.filter-select:focus, .rte:focus-within, .rt.focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.input.filter-select:focus { box-shadow: 0 0 0 1px var(--accent), var(--focus-ring); }

/* Zwevende vensters: één witte kaart met haarlijn en diepe schaduw (de donkere tooltip #tip is de uitzondering). */
.dialog { background: var(--surface); }
.qm-tip, .bh-trend .tip, .chart-tip { border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-l); }
.popover, .user-menu .menu, .status-menu .menu, .search-results { box-shadow: 0 0 0 1px var(--line), var(--shadow-l); }

/* Knoppen: de stille variant krijgt bij hover dezelfde vulling als andere gevulde elementen; gevaar leest als rood. */
.btn-ghost { color: var(--text); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 22%, var(--surface)); }
.quick-btn:hover { background: var(--accent-soft); color: var(--accent-hover); }
/* Lege staat: zelfde toon als .fact en .talk-form (zachte vulling met haarlijn). */
.empty { box-shadow: inset 0 0 0 1px var(--line); }

/* Kaartkoppen: een h2 of h3 met uitleg eronder krijgt overal dezelfde afstand. */
.card-head > div > .small, .card-head > div > .muted { display: block; margin-top: 2px; }
.card-head .btn-sm, .card-head .act-btn { flex: none; }

/* Mobiel: de drie kerncijfers in de Vuurtoren-groep en de twee losse tegels krijgen genoeg ruimte voor hun label. */
@media (max-width: 560px) {
  .kpi { padding: 16px 16px; }
  .kpi .value { font-size: 26px; }
  .kpi-lh-group > .kpi-lighthouse .label .kpi-ic { width: 24px; height: 24px; }
}

/* ------------------------------------------------------------ interne notities: labels, in the picture, filter
   Labels in de zachte tinten van de app (achtergrond -soft, tekst -ink), systeemlabels (kwartaal, soort) neutraal. */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 12px;
  font-weight: 600; line-height: 1; white-space: nowrap; background: var(--tag-bg, var(--fill)); color: var(--tag-ink, var(--text-2)); }
.tag-sys { font-weight: 500; background: var(--fill); color: var(--text-2); }
.tag.archived { opacity: .6; font-style: italic; }
.tag-grijs, .chip.tag-grijs { --tag-bg: var(--fill-strong); --tag-ink: var(--text-2); --tag-dot: var(--gray); }
.tag-blauw, .chip.tag-blauw { --tag-bg: var(--blue-soft); --tag-ink: var(--blue-ink); --tag-dot: var(--blue); }
.tag-teal, .chip.tag-teal { --tag-bg: var(--teal-soft); --tag-ink: var(--teal-ink); --tag-dot: var(--teal-ink); }
.tag-groen, .chip.tag-groen { --tag-bg: var(--green-soft); --tag-ink: var(--green-ink); --tag-dot: var(--green); }
.tag-geel, .chip.tag-geel { --tag-bg: var(--gold-soft); --tag-ink: var(--gold-ink); --tag-dot: var(--gold-ink); }
.tag-oranje, .chip.tag-oranje { --tag-bg: var(--orange-soft); --tag-ink: var(--orange-ink); --tag-dot: var(--orange); }
.tag-rood, .chip.tag-rood { --tag-bg: var(--red-soft); --tag-ink: var(--red-ink); --tag-dot: var(--red); }
.tag-paars, .chip.tag-paars { --tag-bg: var(--purple-soft); --tag-ink: var(--purple-ink); --tag-dot: var(--purple); }

/* In the picture: ster-label en een highlight op de hele notitie (lijn links, zachte accentkleur) */
.spot-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; white-space: nowrap; }
.spot-badge svg, .spot-toggle svg, .spot-dot svg, .chip.spot svg, .spot-n svg { width: 12px; height: 12px; fill: currentColor; stroke: currentColor; }
.note-item.spot, .meet-note.spot { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent);
  border-radius: 10px; }
.note-item.spot + .note-item, .note-item + .note-item.spot { border-top-color: transparent; }
.meet-note.spot { padding-left: 12px !important; padding-right: 8px !important; }
.spot-toggle.on { color: var(--accent-hover); background: var(--accent-soft); }
.spot-dot { display: inline-flex; margin-left: 5px; color: var(--accent); vertical-align: -1px; }
.tab-n.spot-n { display: inline-flex; align-items: center; gap: 3px; margin-right: -2px; }

/* Kop van een notitie: labels, auteur en het begin van de tekst; mag over meerdere regels lopen */
.note-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; white-space: normal; }
.note-person { font-weight: 600; color: var(--text); }
.note-person:hover { color: var(--accent); }
.note-author { color: var(--muted); }
.note-head { align-items: center; }
.note-body { flex-direction: column; align-items: stretch; gap: 10px; }
.note-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-tools form { display: inline; margin: 0; }
.note-edit { display: grid; gap: 8px; margin-top: 4px; }
.note-edit[hidden] { display: none; }
.note-tools .btn svg { width: 14px; height: 14px; }
.text.rich ul, .rich ul { margin: 4px 0; padding-left: 20px; white-space: normal; }
.text.rich li, .rich li { white-space: pre-wrap; }

/* Labels kiezen: vinkjes die eruitzien als labels (niet gekozen = vaag, gekozen = vol met een ring) */
.tag-opt { display: inline-flex; cursor: pointer; border-radius: 999px; }
.tag-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tag-opt .tag { opacity: .5; transition: opacity .12s, box-shadow .12s; }
.tag-opt:hover .tag { opacity: .85; }
.tag-opt input:checked + .tag, .tag-opt input:checked + .spot-badge { opacity: 1; box-shadow: 0 0 0 1.5px var(--tag-ink, var(--text-2)); }
.tag-opt input:focus-visible + .tag, .tag-opt input:focus-visible + .spot-badge { box-shadow: var(--focus-ring); }
.spot-opt .spot-badge { background: var(--fill); color: var(--muted); }
.spot-opt input:checked + .spot-badge { background: var(--accent); color: #fff; box-shadow: none; }
.note-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note-pick-label { font-size: 12.5px; color: var(--muted); min-width: 64px; }
.note-pick .link svg { width: 14px; height: 14px; }
.tag-pick { position: relative; }
.tag-pick > summary { list-style: none; }
.tag-pick > summary::-webkit-details-marker { display: none; }
.tag-pick-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(340px, 80vw);
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-l); }
.tag-pick-manage { flex-basis: 100%; margin-top: 4px; }

/* Filteren: chips (fiche: knoppen in de browser; Notities: vinkjes in een formulier) */
.note-filter, .note-facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note-filter { margin: 0 0 12px; }
.note-filter .chip, .note-facet .chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px;
  border: 0; background: var(--fill); color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.note-filter .chip b, .note-facet .chip b { font-weight: 600; color: var(--muted); }
.note-filter .chip:hover, .note-facet .chip:hover { background: var(--fill-strong); }
.note-filter .chip.tagged::before, .note-facet .chip.tagged::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tag-dot); }
.note-filter .chip[aria-pressed="true"], .note-facet .chip.on { background: var(--text); color: var(--surface); }
.note-filter .chip[aria-pressed="true"] b, .note-facet .chip.on b { color: inherit; opacity: .75; }
.note-filter .chip.spot { color: var(--accent-hover); }
.note-filter .chip.spot[aria-pressed="true"], .note-facet .chip.spot.on { background: var(--accent); color: #fff; }
.note-facet .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.note-facet .chip:has(input:focus-visible), .note-filter .chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.note-filter-all { margin-left: auto; }
.note-facets { display: grid; gap: 10px; margin-top: 14px; }
.note-facet .filter-select { width: auto; height: 26px; font-size: 12.5px; }
.note-filter-form .search-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.note-filter-form .search-inline svg { width: 16px; height: 16px; }
.note-filter-form .search-inline .input { min-width: 220px; }
.note-item[hidden] { display: none; }

/* Instellingen → Labels */
.label-form { display: grid; grid-template-columns: minmax(140px, 1fr) 140px minmax(180px, 2fr) auto; gap: 10px; align-items: end; }
.label-form .btn svg { width: 15px; height: 15px; }
.label-rows { display: grid; }
.label-row { display: grid; grid-template-columns: 130px minmax(120px, 1fr) 120px minmax(140px, 1.6fr) 90px auto; gap: 8px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--line); }
.label-row:first-child { border-top: 0; }
.label-row .input { height: 32px; }
.label-btns { display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }
.label-uses { color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) {
  .label-form { grid-template-columns: 1fr 1fr; }
  .label-row { grid-template-columns: 1fr 1fr; }
  .label-row .label-preview, .label-row .label-btns { grid-column: 1 / -1; }
}

/* Opmaakbalk: knop voor een opsomming */
.rt-bar .rt-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; vertical-align: -3px; }
.rt-edit ul { margin: 2px 0; padding-left: 22px; }
.note-form .rt-edit { min-height: 96px; }
.tag-opt .tag { opacity: .62; }
.note-facet select.filter-select { height: 28px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.note-filter [data-f-clear] { color: var(--accent); }

/* ------------------------------------------------------------ interne notities: rustiger opbouw (formulier · filter · lijst) */
/* Nieuwe notitie: dicht één invulregel, open een afgebakend formulier */
.note-compose { margin-bottom: 16px; }
.note-compose-open { display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; text-align: left; cursor: text;
  transition: border-color .15s, color .15s; }
.note-compose-open svg { width: 16px; height: 16px; color: var(--accent); }
.note-compose-open:hover { border-color: var(--accent); color: var(--text-2); }
.note-compose-open:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.note-compose .note-form { display: none; }
.note-compose.open .note-compose-open { display: none; }
.note-compose.open .note-form { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.note-compose .rt { background: var(--surface); }
/* Nieuw gesprek: zelfde kader als een nieuwe notitie */
.talk-compose .talk-form { gap: 14px; padding: 14px; margin-bottom: 0; border-radius: 14px; box-shadow: none; border: 1px solid var(--line); }
.talk-compose ~ .talk-tools { margin: 12px 0 4px; }
.talk-compose ~ .talk-list { margin-top: 14px; }
.note-compose + .note-list { margin-top: 14px; }
.nf-grid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.nf-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nf-manage { margin-left: 4px; }
.nf-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .nf-grid { grid-template-columns: 1fr; gap: 6px; } .nf-grid .nf-label:not(:first-child) { margin-top: 6px; } }

/* Kwartaal: één keuze, als gesegmenteerde knop */
.seg-pick { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--fill); width: fit-content; }
.seg-pick label { display: inline-flex; cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-pick span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--text-2);
  transition: background .12s, color .12s; }
.seg-pick label:hover span { color: var(--text); }
.seg-pick input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.seg-pick input:focus-visible + span { box-shadow: var(--focus-ring); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-pick input:checked + span { background: rgba(255, 255, 255, 0.13); } }
:root[data-theme="dark"] .seg-pick input:checked + span { background: rgba(255, 255, 255, 0.13); }

/* Knoppen bij een notitie (en In the picture in het formulier): allemaal even groot, omlijnd, icoon 14px */
.note-tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; list-style: none; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.note-tool::-webkit-details-marker { display: none; }
.note-tool:hover { background: var(--fill); color: var(--text); }
.note-tool:focus-visible, .spot-check:has(input:focus-visible) { outline: none; box-shadow: var(--focus-ring); }
.note-tool svg { width: 14px; height: 14px; fill: none; stroke: currentColor; flex: none; }
.note-tool.on, .spot-check:has(input:checked) { color: var(--accent-hover); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.note-tool.on svg, .spot-check:has(input:checked) svg { fill: currentColor; }
.spot-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.note-tool-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fill-strong); color: var(--text-2);
  font-size: 11.5px; font-weight: 600; display: inline-grid; place-items: center; }
.tag-pick[open] > .note-tool { background: var(--fill); color: var(--text); }
.note-tools { gap: 8px; padding-top: 2px; }

/* Filterbalk tussen formulier en lijst */
.note-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.note-toolbar .note-filter { margin: 0; flex: 1 1 auto; }
.nt-label { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nt-label svg { width: 14px; height: 14px; }
.nt-select { width: auto; height: 26px; min-height: 0; padding: 0 26px 0 10px; border-radius: 999px; font-size: 12.5px; background-color: var(--fill);
  border-color: transparent; color: var(--text-2); }
.nt-select.on { background-color: var(--text); color: var(--surface); }
.note-filter-info { font-size: 12.5px; color: var(--muted); }
.nt-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }

/* Een notitie: bovenaan labels en wie/wanneer, daaronder het begin van de tekst (dicht) of de volledige tekst (open) */
.note-list .note-item { border-top: 1px solid var(--line); }
.note-list .note-item:first-child { border-top: 0; }
.note-head { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 10px; border-radius: 10px; }
.note-head .chev { margin-top: 4px; }
.note-main { display: grid; gap: 5px; min-width: 0; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; }
.note-by { margin-left: auto; padding-left: 8px; color: var(--muted); white-space: nowrap; }
.note-snippet { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item[open] .note-snippet { display: none; }
.note-body { display: flex; flex-direction: column; gap: 12px; padding: 0 10px 14px 34px; }
.note-body .text { color: var(--text); font-size: 14px; line-height: 1.55; }
.note-item.spot { margin: 6px 0; }
.note-item.spot .note-head:hover { background: transparent; }
@media (max-width: 720px) { .note-head { grid-template-columns: 14px minmax(0, 1fr); } .note-body { padding-left: 24px; } .note-by { margin-left: 0; padding-left: 0; } }
.notes-page-bar { border-top: 0; padding-top: 0; margin-bottom: 4px; }
.note-toolbar select.nt-select.input { height: 28px; min-height: 0; padding: 0 28px 0 11px; font-size: 12.5px; line-height: 1; border-radius: 999px;
  border-color: transparent; background-color: var(--fill); background-position: right 10px center; }
.note-toolbar select.nt-select.input.on { background-color: var(--text); color: var(--surface); }
.note-toolbar .link-btn, .note-toolbar .link { font-size: 13px; font-weight: 500; }
.note-main .note-snippet { grid-column: auto; }    /* oude regel voor smalle schermen plaatste de tekst in een tweede kolom */
/* Uitgelicht (in the picture): met achtergrond en lijn links meer binnenmarge, zodat niets tegen de rand staat */
.note-item.spot .note-head { padding: 14px 18px 10px 18px; gap: 12px; }
.note-item.spot .note-body { padding: 0 18px 16px 44px; }
.meet-note.spot { padding: 10px 14px 10px 16px !important; }
@media (max-width: 720px) { .note-item.spot .note-head { padding: 12px 12px 8px 14px; } .note-item.spot .note-body { padding: 0 12px 14px 38px; } }

/* ------------------------------------------------------------ interne notities: elke notitie een eigen blok, meer contrast */
.note-list { display: grid; gap: 8px; }
.note-list .note-item, .note-list .note-item:first-child { border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s; }
.note-list .note-item + .note-item { border-top: 1px solid var(--line); }
.note-list .note-item:hover { border-color: var(--line-strong); }
.note-list .note-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-s); }
.note-list .note-head, .note-list .note-head:hover { background: transparent; padding: 12px 16px; border-radius: 12px; }
.note-list .note-head:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.note-list .note-item[open] .note-head { padding-bottom: 8px; }
.note-list .note-body { padding: 0 16px 14px 40px; }
.note-list .note-item[open] .note-body { border-top: 0; }
.note-head .chev { color: var(--muted); }
.note-snippet { color: var(--text); font-weight: 400; }      /* zelfde gewicht als de tekst na openklappen */
.note-meta .tag-sys { background: var(--fill-strong); color: var(--text); }
.note-by { color: var(--text-2); }
.note-list .note-item .note-tools { padding-top: 10px; border-top: 1px solid var(--line); }
/* in the picture: dezelfde blokvorm, met accentrand en zachte tint */
.note-list .note-item.spot { margin: 0; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: inset 4px 0 0 var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.note-list .note-item.spot[open] { box-shadow: inset 4px 0 0 var(--accent), var(--shadow-s); }
.note-list .note-item.spot .note-head { padding: 12px 16px 8px 20px; }
.note-list .note-item.spot .note-body { padding: 0 16px 14px 44px; }
.note-list .note-item.spot .note-tools { border-top-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }

/* Scheiding: het notitieveld bovenaan, daaronder de filterbalk als eigen vlak, dan de lijst */
.note-compose { margin-bottom: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.note-toolbar { margin: 18px 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.notes-page-bar { margin: 0 0 12px; padding: 0; border: 0; background: none; }
.note-toolbar select.nt-select.input { background-color: var(--surface); border-color: var(--line-strong); }
.note-filter .chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.note-filter .chip[aria-pressed="true"] { box-shadow: none; }
@media (max-width: 720px) { .note-list .note-head { padding: 10px 12px; } .note-list .note-body { padding: 0 12px 12px 36px; }
  .note-list .note-item.spot .note-head { padding: 10px 12px 8px 16px; } .note-list .note-item.spot .note-body { padding: 0 12px 12px 38px; } }
.note-list .note-head { margin: 0; }        /* oudere regel schoof de kop 8px naar links: kop en tekst lijnen nu uit */
.note-list .note-item.spot .note-body { padding-left: 46px; }
/* Knoppen bij een notitie staan rechts: het labelvenster opent dan naar links, zodat het niet buiten de kaart valt */
.note-tools .tag-pick-pop { left: auto; right: 0; }

/* In the picture: enkel een ster (tooltip en schermlezer zeggen wat het is) */
.spot-star { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.spot-star svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; }
.meet-note .spot-star { vertical-align: -6px; margin-right: 2px; }
.note-tool-icon { width: 32px; padding: 0; justify-content: center; }
.note-tool-icon svg { width: 16px; height: 16px; }
.note-tool-icon:not(.on):not(:has(input:checked)) svg { color: var(--muted); }
.note-tool-icon:hover svg { color: var(--accent); }
.chip.spot b { margin-left: 1px; }

/* ------------------------------------------------------------ pagina Notities: filterkaart en lijst */
.note-filter-form { margin-bottom: 20px; display: grid; gap: 16px; }
.nff-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nff-search { position: relative; flex: 1 1 320px; display: flex; }
.nff-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.nff-search .input { width: 100%; padding-left: 36px; }
.nff-top .filter-select { flex: 0 0 auto; width: auto; min-width: 180px; }
.nff-grid { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.nff-grid .note-facet { gap: 6px; }
.note-facet .chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.note-facet .chip.on { box-shadow: none; }
.note-facet .chip.spot { color: var(--accent-hover); }
.note-facet .chip.spot svg { width: 12px; height: 12px; fill: currentColor; }
.note-facet select.chip-select.input { width: auto; height: 26px; min-height: 0; padding: 0 28px 0 11px; border-radius: 999px; font-size: 12.5px;
  background-color: var(--surface); border-color: var(--line-strong); color: var(--text-2); background-position: right 10px center; }
@media (max-width: 640px) { .nff-grid { grid-template-columns: 1fr; gap: 6px; } .nff-grid .note-facet { margin-bottom: 8px; } }
.notes-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.notes-list-head .muted { color: var(--muted); }
.nlh-clear { margin-left: 10px; font-size: 13px; }
.notes-list-head .link-btn { font-size: 13px; }
.notes-head-side { display: inline-flex; align-items: center; gap: 14px; }

/* Impact per pijler bij een notitie: compact, vier pijlers naast elkaar (op smal scherm twee per rij) */
.imp-pick { display: grid; grid-template-columns: repeat(4, max-content); gap: 6px 16px; align-items: center; }
.imp-pick-row { display: inline-flex; align-items: center; gap: 8px; }
.imp-pick-name { font-size: 12.5px; color: var(--text-2); min-width: 0; }
.impact-scale.sm { padding: 2px; gap: 1px; border-radius: 8px; }
.impact-scale.sm span { min-width: 26px; height: 24px; border-radius: 6px; font-size: 10.5px; letter-spacing: -.5px; }
.impact-scale.sm .iv0 span { font-size: 8px; }
@media (max-width: 900px) { .imp-pick { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 480px) { .imp-pick { grid-template-columns: 1fr; } .imp-pick-row { justify-content: space-between; } }
.imp-pop .tag-pick-pop { width: 300px; display: block; }
.imp-pop .imp-pick { grid-template-columns: 1fr; gap: 6px; }
.imp-pop .imp-pick-row { justify-content: space-between; }
.imp-pop-foot { margin: 10px 0 0; line-height: 1.4; }
.note-meta .imp { font-size: 11.5px; padding: 2px 7px; }
/* Pijler genoemd in de tekst van een nieuwe notitie: zachte accentkleur + 'genoemd' (zoals bij gesprekken) */
.imp-pick-row { padding: 3px 6px; margin: -3px -6px; border-radius: 9px; transition: background .2s; }
.imp-pick-row.hinted { background: var(--accent-soft); }
.imp-pick-row.hinted .imp-pick-name { color: var(--accent-hover); font-weight: 600; }
.imp-pick-name { display: inline-flex; align-items: center; gap: 5px; }
.note-form .imp-pick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hint-dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; background: var(--accent); }
.meta-edit span.inline-val { cursor: default; }          /* beach-fiche: zelfde spatiëring als de bewerkbare velden, niet klikbaar */
.meta-edit span.inline-val:hover { background: transparent; }

/* Recente activiteit (overzicht): icoon per soort, wie deed wat bij wie, een korte samenvatting en de tijd.
   Elke regel is een link naar het item zelf. */
.act-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act-feed li + li { border-top: 1px solid var(--line); }
.af-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; color: inherit; text-decoration: none; }
a.af-item:hover { background: var(--fill); }
a.af-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.af-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.af-ico svg { width: 15px; height: 15px; }
.af-ico.blue { background: var(--blue-soft); color: var(--blue-ink); }
.af-ico.green { background: var(--green-soft); color: var(--green-ink); }
.af-ico.orange { background: var(--orange-soft); color: var(--orange-ink); }
.af-ico.red { background: var(--red-soft); color: var(--red-ink); }
.af-ico.purple { background: var(--purple-soft); color: var(--purple-ink); }
.af-ico.gray { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.af-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.af-line { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.af-line b { color: var(--text); font-weight: 600; }
.af-n { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.af-snip { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-when { font-size: 12px; color: var(--faint); }
.af-go { flex: none; align-self: center; color: var(--faint); font-size: 18px; opacity: 0; transition: opacity .12s; }
a.af-item:hover .af-go { opacity: 1; }
/* Item waarnaar een link verwijst (#note-…, #gesprek-…, bv. vanuit Recente activiteit): even oplichten */
@keyframes target-ring { 0%, 55% { box-shadow: 0 0 0 3px var(--accent-ring); } 100% { box-shadow: 0 0 0 0 transparent; } }
.note-item.is-target, .talk.is-target { animation: target-ring 2.4s ease-out; border-radius: var(--radius); }

/* ---------------------------------------------------------------- notities: weergave (kaarten · compact · kolommen) */
.view-toggle { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); }
.view-toggle button { display: grid; place-items: center; width: 28px; height: 24px; border: 0; border-radius: 7px; background: none;
  color: var(--muted); cursor: pointer; }
.view-toggle button:hover { color: var(--text); }
.view-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.view-toggle button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.view-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.nlh-actions { display: flex; align-items: center; gap: 14px; }

/* Compact: één regel per notitie (labels · tekst · auteur), zonder kaders; open = de volledige tekst eronder */
.note-list[data-view="compact"] { gap: 0; }
.note-list[data-view="compact"] .note-item, .note-list[data-view="compact"] .note-item:first-child {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.note-list[data-view="compact"] .note-item:last-child { border-bottom: 0; }
.note-list[data-view="compact"] .note-item[open] { background: var(--surface-2); border-radius: 10px; }
.note-list[data-view="compact"] .note-item.spot { box-shadow: inset 3px 0 0 var(--accent); }
.note-list[data-view="compact"] .note-head, .note-list[data-view="compact"] .note-item.spot .note-head { padding: 7px 10px; align-items: center; }
.note-list[data-view="compact"] .note-head:hover { background: var(--fill); }
.note-list[data-view="compact"] .note-head .chev { margin-top: 0; }
.note-list[data-view="compact"] .note-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.note-list[data-view="compact"] .note-meta { display: contents; }
.note-list[data-view="compact"] .note-meta > * { flex: none; }
.note-list[data-view="compact"] .note-meta .tag, .note-list[data-view="compact"] .note-meta .imp { font-size: 11px; padding: 1px 6px; }
.note-list[data-view="compact"] .note-snippet { order: 1; flex: 1 1 auto; min-width: 140px; font-weight: 400; font-size: 13.5px; margin-left: 4px; }
.note-list[data-view="compact"] .note-meta .imp:not(.sens) { display: none; }      /* impact: zichtbaar na openklappen */
.note-list[data-view="compact"] .note-main { overflow: hidden; }
.note-list[data-view="compact"] .note-by { order: 2; font-size: 12px; color: var(--muted); margin-left: 8px; }
.note-list[data-view="compact"] .note-item[open] .note-by { margin-left: auto; }
.note-list[data-view="compact"] .note-body, .note-list[data-view="compact"] .note-item.spot .note-body { padding: 2px 12px 12px 34px; }

/* Groepjes in de kop: enkel zichtbaar als kolom in de kolomweergave */
.note-who, .note-labels { display: contents; }
.note-full, .note-cols-head { display: none; }

/* Compact: kleiner en strakker, afwisselend getint */
.note-list[data-view="compact"] .note-item:nth-child(even of .note-item:not([hidden])) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.note-list[data-view="compact"] .note-head .note-snippet { color: var(--text-2); }

/* Kolommen: één rij per notitie, met vaste kolommen (wie · wanneer | consultant | labels | volledige tekst) */
.note-list[data-view="columns"] { --nc: 110px 170px minmax(0, 1fr); --lc: 2; --tc: 3; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.note-list[data-view="columns"][data-person] { --nc: 100px 145px 150px minmax(0, 1fr); --lc: 3; --tc: 4; }
.note-list[data-view="columns"] .note-cols-head { display: grid; grid-template-columns: var(--nc); column-gap: 16px; padding: 8px 14px 8px 40px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted); }
.note-list[data-view="columns"] .note-item, .note-list[data-view="columns"] .note-item:first-child {
  border: 0; border-radius: 0; box-shadow: none; background: var(--surface); }
.note-list[data-view="columns"] .note-item + .note-item { border-top: 1px solid var(--line); }
.note-list[data-view="columns"] .note-item.spot { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.note-list[data-view="columns"] .note-head, .note-list[data-view="columns"] .note-item.spot .note-head {
  grid-template-columns: 14px minmax(0, 1fr); padding: 12px 14px; border-radius: 0; align-items: start; }
.note-list[data-view="columns"] .note-head:hover { background: var(--fill); }
.note-list[data-view="columns"] .note-main { display: grid; grid-template-columns: var(--nc); column-gap: 16px; align-items: start; }
.note-list[data-view="columns"] .note-meta { display: contents; }
.note-list[data-view="columns"] .note-by { grid-column: 1; grid-row: 1; margin: 0; padding: 0; display: flex; flex-direction: column;
  font-size: 12.5px; white-space: normal; line-height: 1.35; }
.note-list[data-view="columns"] .note-by .nb-who { color: var(--text); font-weight: 600; }
.note-list[data-view="columns"] .note-by .nb-sep { display: none; }
.note-list[data-view="columns"] .note-by .nb-date { color: var(--muted); }
.note-list[data-view="columns"] .spot-star { grid-column: 1; grid-row: 2; margin-top: 4px; }
.note-list[data-view="columns"] .note-who { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.35; }
.note-list[data-view="columns"] .note-labels { grid-column: var(--lc); grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.note-list[data-view="columns"] .note-labels .tag, .note-list[data-view="columns"] .note-labels .imp { font-size: 11.5px; }
.note-list[data-view="columns"] .note-snippet { display: none; }
.note-list[data-view="columns"] .note-full { display: block; grid-column: var(--tc); grid-row: 1 / span 2; font-size: 13.5px; line-height: 1.5;
  color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-list[data-view="columns"] .note-full ul { margin: 2px 0; padding-left: 18px; white-space: normal; }
/* Kolommen: niets uit te klappen; de knoppen staan altijd rechts in de rij (icoontjes, normale grootte) */
.note-list[data-view="columns"] .note-item { position: relative; }
.note-list[data-view="columns"] .note-head, .note-list[data-view="columns"] .note-item.spot .note-head,
.note-list[data-view="columns"] .note-item[open] .note-head { grid-template-columns: minmax(0, 1fr); padding: 12px 184px 12px 16px; cursor: default; }
.note-list[data-view="columns"] .note-head .chev { display: none; }
.note-list[data-view="columns"] .note-cols-head { position: relative; padding: 8px 184px 8px 16px; }
.note-list[data-view="columns"] .nch-act { position: absolute; right: 16px; top: 8px; }
.note-list[data-view="columns"] .note-body, .note-list[data-view="columns"] .note-item.spot .note-body {
  position: absolute; top: 8px; right: 12px; padding: 0; }
.note-list[data-view="columns"] .note-body .text { display: none; }
.note-list[data-view="columns"] .note-item .note-tools { padding: 0; border: 0; gap: 4px; flex-wrap: nowrap; }
.note-list[data-view="columns"] .note-tools .spacer { display: none; }
.note-list[data-view="columns"] .note-tool { position: relative; width: 34px; height: 32px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
.note-list[data-view="columns"] .note-tool svg { width: 15px; height: 15px; }
.note-list[data-view="columns"] .note-tool-n { position: absolute; top: -6px; right: -6px; font-size: 10px; min-width: 16px; height: 16px;
  padding: 0 4px; line-height: 16px; background: var(--text-2); color: var(--surface); box-shadow: 0 0 0 2px var(--surface); }
.note-list[data-view="columns"] .note-tools .icon-btn { width: 34px; height: 32px; }
.note-list[data-view="columns"] .note-body { width: 160px; display: flex; justify-content: flex-end; }   /* nooit breder dan de gereserveerde ruimte */
@media (max-width: 760px) {
  .note-list[data-view="columns"] .note-cols-head { display: none; }
  .note-list[data-view="columns"] .note-head, .note-list[data-view="columns"] .note-item[open] .note-head { padding-right: 16px; padding-bottom: 52px; }
  .note-list[data-view="columns"] .note-body { top: auto; bottom: 10px; left: 16px; right: auto; }
  .note-list[data-view="columns"] .note-main, .note-list[data-view="columns"][data-person] .note-main { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .note-list[data-view="columns"] .note-main > *, .note-list[data-view="columns"] .note-meta > * { grid-column: 1 !important; grid-row: auto !important; margin-left: 0 !important; }
}

/* Alles open-/dichtklappen: icoonknop in dezelfde stijl als de weergaveknopjes ernaast */
.expand-toggle { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 9px;
  background: var(--fill); color: var(--muted); cursor: pointer; }
.expand-toggle:hover { color: var(--text); }
.expand-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.expand-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.expand-toggle .et-close, .expand-toggle[aria-expanded="true"] .et-open { display: none; }
.expand-toggle[aria-expanded="true"] .et-close { display: contents; }
.expand-toggle .et-open { display: contents; }
.expand-toggle[hidden] { display: none; }
.nt-actions, .nlh-actions { gap: 8px; }

/* ---------------------------------------------------------------- gesprekken: weergave (kaarten · compact · kolommen) */
.talk-by, .talk-full { display: none; }
.talk-tools .nt-actions { margin-left: auto; }

/* Kaarten: elk gesprek een eigen kaartje (zoals de notities) */
.talk-list[data-view="cards"] { gap: 8px; }
.talk-list[data-view="cards"] .talk, .talk-list[data-view="cards"] .talk:first-of-type { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.talk-list[data-view="cards"] .talk:hover { border-color: var(--line-strong); }
.talk-list[data-view="cards"] .talk[open] { border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-s); }
.talk-list[data-view="cards"] .talk-head, .talk-list[data-view="cards"] .talk[open] .talk-head { margin: 0; padding: 12px 16px; border-radius: 12px; }
.talk-list[data-view="cards"] .talk-head:hover { background: transparent; }
.talk-list[data-view="cards"] .talk[open] .talk-detail { padding: 0 16px 4px 38px; }

/* Compact: één regel per gesprek, strak en afwisselend getint; alles dicht */
.talk-list[data-view="compact"] { gap: 0; }
.talk-list[data-view="compact"] .talk { border-top: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.talk-list[data-view="compact"] .talk:last-child { border-bottom: 0; }
.talk-list[data-view="compact"] .talk:nth-child(even of .talk) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.talk-list[data-view="compact"] .talk-head { margin: 0; padding: 6px 10px; gap: 8px; font-size: 13px; border-radius: 0; }
.talk-list[data-view="compact"] .talk-date { font-weight: 600; font-size: 13px; }
.talk-list[data-view="compact"] .talk-head .pill { font-size: 11px; padding: 1px 7px; }
.talk-list[data-view="compact"] .talk-sum { font-size: 13.5px; }
.talk-list[data-view="compact"] .talk-badges .imp, .talk-list[data-view="compact"] .talk-badges .pill { font-size: 11px; padding: 1px 6px; }
.talk-list[data-view="compact"] .talk[open] { background: var(--surface-2); border-radius: 10px; box-shadow: none; }
.talk-list[data-view="compact"] .talk[open] .talk-detail { padding: 0 12px 0 32px; }

/* Kolommen: één rij per gesprek (wanneer · wie | soort · impact | titel + volledig verslag | acties), niets uit te klappen */
.talk-list[data-view="columns"] { --tc: 118px 170px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.talk-list[data-view="columns"] .talk-cols-head { display: grid; grid-template-columns: var(--tc); column-gap: 16px; position: relative;
  padding: 8px 104px 8px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.talk-list[data-view="columns"] .talk-cols-head .nch-act { position: absolute; right: 16px; top: 8px; }
.talk-list[data-view="columns"] .talk, .talk-list[data-view="columns"] .talk[open] { position: relative; border: 0; border-radius: 0;
  background: var(--surface); box-shadow: none; }
.talk-list[data-view="columns"] .talk + .talk { border-top: 1px solid var(--line); }
.talk-list[data-view="columns"] .talk-head, .talk-list[data-view="columns"] .talk[open] .talk-head {
  display: grid; grid-template-columns: var(--tc); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start; margin: 0;
  padding: 12px 104px 12px 16px; border-radius: 0; cursor: default; }
.talk-list[data-view="columns"] .talk-head:hover { background: var(--fill); }
.talk-list[data-view="columns"] .talk-head .chev, .talk-list[data-view="columns"] .talk-sum { display: none; }
.talk-list[data-view="columns"] .talk-date { grid-column: 1; grid-row: 1; font-size: 13px; }
.talk-list[data-view="columns"] .talk-by { display: block; grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); }
.talk-list[data-view="columns"] .talk-head > .pill { grid-column: 2; grid-row: 1; justify-self: start; }
.talk-list[data-view="columns"] .talk-badges { grid-column: 2; grid-row: 2 / span 2; justify-content: flex-start; }
.talk-list[data-view="columns"] .talk-full { display: block; grid-column: 3; grid-row: 1 / span 3; font-size: 13.5px; line-height: 1.5;
  color: var(--text-2); overflow-wrap: anywhere; }
.talk-list[data-view="columns"] .talk-full .talk-title { display: block; color: var(--text); margin-bottom: 2px; }
.talk-list[data-view="columns"] .talk-full p { margin: 0 0 6px; }
.talk-list[data-view="columns"] .talk-full :is(h1, h2, h3, h4) { font-size: 13.5px; margin: 6px 0 2px; }
.talk-list[data-view="columns"] .talk-full ul { margin: 2px 0 6px; padding-left: 18px; }
.talk-list[data-view="columns"] .talk-detail, .talk-list[data-view="columns"] .talk[open] .talk-detail { position: absolute; top: 8px; right: 12px; padding: 0; }
.talk-list[data-view="columns"] .talk-body, .talk-list[data-view="columns"] .talk-foot > .small { display: none; }
.talk-list[data-view="columns"] .talk-foot { margin: 0; padding: 0; border: 0; }
.talk-list[data-view="columns"] .talk-actions .btn { width: 34px; height: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
.talk-list[data-view="columns"] .talk-actions .icon-btn { width: 34px; height: 32px; }
@media (max-width: 760px) {
  .talk-list[data-view="columns"] .talk-cols-head { display: none; }
  .talk-list[data-view="columns"] .talk-head, .talk-list[data-view="columns"] .talk[open] .talk-head { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 52px; }
  .talk-list[data-view="columns"] .talk-head > * { grid-column: 1 !important; grid-row: auto !important; }
  .talk-list[data-view="columns"] .talk-detail { top: auto; bottom: 10px; left: 16px; right: auto; }
}
.talk-list[data-view] .talk[open] { margin: 0; }

/* Sorteerbare kolomkoppen (notities en gesprekken in de kolomweergave) */
.note-cols-head .sort-h { all: unset; cursor: pointer; color: inherit; border-radius: 4px; }
.note-cols-head .sort-h:hover { color: var(--text); }
.note-cols-head .sort-h:focus-visible { box-shadow: var(--focus-ring); }
.note-cols-head .sort-h.on { color: var(--accent-hover); }
.note-cols-head button.sort-h[aria-sort="descending"]::after { content: " ↓"; }
.note-cols-head button.sort-h[aria-sort="ascending"]::after { content: " ↑"; }
.note-cols-head .sort-i { margin-left: 3px; }
.note-cols-head .sort-reset { margin-left: 8px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.note-cols-head .sort-reset:hover { color: var(--text); }

/* Snelle notitie vanuit het overzicht Notities: hetzelfde formulier als op de fiche, in een venster */
.note-dialog { width: min(680px, calc(100vw - 32px)); }
.note-dialog .note-form { display: grid; gap: 14px; }
.note-dialog h2 { margin: 0; }
.note-dialog .rt { background: var(--surface); }
.note-dialog .qn-err { color: var(--red); margin-top: -8px; }
.page-head > [data-quick-note] { align-self: flex-start; }

/* Notities: filters op één lichte rij (chips en keuzelijsten), scheidingsstreepjes tussen de groepen */
.nff-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.nff-bar .note-facet { gap: 6px; }
.nff-sep { width: 1px; height: 18px; background: var(--line-strong); }
.note-filter-form { gap: 14px; }
.nff-bar select.chip-select.input.on { border-color: var(--accent); color: var(--text); font-weight: 600; background-color: var(--accent-soft, var(--surface)); }
@media (max-width: 640px) { .nff-sep { display: none; } }

/* Overzicht Gesprekken: de consultant bij elk gesprek (kaarten/compact: naast de datum; kolommen: eigen kolom) */
.talk-who { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.talk-who .note-person { font-weight: 600; }
.talk-list[data-view="columns"][data-person] { --tc: 110px 150px 150px minmax(0, 1fr); }
.talk-list[data-view="columns"][data-person] .talk-who { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 0; font-size: 13px; line-height: 1.35; }
.talk-list[data-view="columns"][data-person] .talk-head > .pill { grid-column: 3; }
.talk-list[data-view="columns"][data-person] .talk-badges { grid-column: 3; }
.talk-list[data-view="columns"][data-person] .talk-full { grid-column: 4; }
/* Gesprek in een venster: geen kaart in een kaart */
.talk-dialog { width: min(760px, calc(100vw - 32px)); }
.talk-dialog h2 { margin: 0 0 12px; }
.talk-dialog .talk-form { padding: 0; margin: 0; box-shadow: none; border: 0; background: transparent; }
.talk-dialog .field input[readonly] { background: var(--surface-2); color: var(--muted); }

/* ------------------------------------------------------------ Snel naar, versie 'scene' (partials/quick_map.html)
   Eén geheel: de scène loopt over de volle breedte, de drie banen staan recht onder hun stuk scène.
   De vorige versie (quick_map_classic.html) gebruikt enkel de .qm-* regels hierboven, niet deze .qm2-regels. */
.quick-map.qm2 { display: block; padding: 0; overflow: hidden; }
.qm2-scene { margin: 0; position: relative; }
.qm2-scene svg { display: block; width: 100%; height: auto; }
.qm2-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 26px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface) 55%, transparent)); }
.qm2-beam { transform-origin: 150px 62px; }
.qm2-beachers circle { fill: color-mix(in srgb, #9a7432 80%, var(--surface)); stroke: var(--surface); stroke-width: 1; }
.qm2-beachers circle.long { fill: var(--orange-ink); }
.qm2-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qm2-lane { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 20px 18px; color: inherit; text-decoration: none; position: relative;
  border: 0; border-radius: 0; border-top: 3px solid color-mix(in srgb, var(--zone) 55%, transparent); transition: background .15s ease, border-color .15s ease; }
.qm2-lane + .qm2-lane { box-shadow: inset 1px 0 0 var(--line); }
.qm2-lane:hover, .qm2-lane:focus-visible, .quick-map.qm2[data-active="lh"] .qm2-lane[data-zone="lh"],
.quick-map.qm2[data-active="haven"] .qm2-lane[data-zone="haven"], .quick-map.qm2[data-active="beach"] .qm2-lane[data-zone="beach"] {
  background: linear-gradient(to bottom, var(--zone-soft), transparent 85%); border-top-color: var(--zone); outline: none; }
.qm2-lane:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.qm2-head { display: flex; align-items: center; gap: 10px; }
.qm2-head .qm-ic { width: 32px; height: 32px; border-radius: 10px; }
.qm2-head .qm-arrow { margin-left: auto; }
.qm2-lane:hover .qm-arrow, .quick-map.qm2[data-active="lh"] .qm2-lane[data-zone="lh"] .qm-arrow,
.quick-map.qm2[data-active="haven"] .qm2-lane[data-zone="haven"] .qm-arrow, .quick-map.qm2[data-active="beach"] .qm2-lane[data-zone="beach"] .qm-arrow { transform: translateX(3px); color: var(--zone-ink); }
.qm2-lane .qm-viz { width: auto; }
.qm2-lane .qm-text { margin-top: auto; }
@media (max-width: 760px) {
  .qm2-lanes { grid-template-columns: 1fr; }
  .qm2-lane + .qm2-lane { box-shadow: none; }
}

/* Snel naar verbergen: een oogje rechtsboven op het blok (beide versies); terugzetten via Voorkeuren → Blokken */
.qm-wrap { position: relative; }
.qm-hide { position: absolute; top: 10px; right: 10px; z-index: 3; opacity: .55; transition: opacity .15s ease; }
.qm-wrap:hover .qm-hide, .qm-hide:focus-within { opacity: 1; }
.qm-hide .icon-btn { background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 0 0 1px var(--line); }
@media (hover: none) { .qm-hide { opacity: 1; } }
.block-prefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.block-prefs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.block-prefs li:first-child { border-top: 0; }
.block-prefs li > span:first-child { flex: 1; }

/* Overzicht inrichten (Voorkeuren): staat er nog maar één blok in een rij, dan neemt het de volle breedte */
.grid-main:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1101px) { .grid-main > .hero-moments:only-child { contain: none; } }

/* Voorkeuren → Je overzicht: een schets van het overzicht; elk blok een tegel met schakelaar */
.ov-sketch { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ov-row { display: grid; gap: 10px; }
.ov-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
.ov-stack { display: grid; gap: 10px; }
.ov-tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; align-content: start; gap: 4px 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-s); cursor: pointer;
  transition: opacity .15s ease, background .15s ease, box-shadow .15s ease; }
.ov-tile:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-s); }
.ov-tile.wide { min-height: 76px; }
.ov-tile.slim { min-height: 0; }
.ov-tile.tall { min-height: 100%; }
.ov-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ov-tile:has(.ov-check:focus-visible) { box-shadow: var(--focus-ring); }
.ov-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ov-ic svg { width: 17px; height: 17px; }
.ov-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-body b { font-size: 14px; }
.ov-text { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ov-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; transition: background .15s ease; margin-top: 4px; }
.ov-switch i { position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s ease; }
.ov-state { grid-column: 2 / -1; font-size: 11.5px; font-weight: 600; color: var(--green-ink); }
.ov-tile.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); box-shadow: none; outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; }
.ov-tile.off .ov-ic { background: var(--fill); color: var(--faint); }
.ov-tile.off .ov-body { opacity: .55; }
.ov-tile.off .ov-switch { background: var(--fill-strong); }
.ov-tile.off .ov-switch i { left: 2px; }
.ov-tile.off .ov-state { color: var(--faint); }
.ov-foot { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.ov-foot .link { margin-left: auto; }
@media (max-width: 760px) { .ov-main { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ov-tile, .ov-switch, .ov-switch i { transition: none; } }

/* Overzicht volgens je eigen layout (web/dashboard_layout.py): rijen van zes kolommen; ⅓ = 2, ½ = 3, ⅔ = 4, volledig = 6.
   Elke cel is een 'container', zodat blokken zich aanpassen aan de breedte die je koos. */
.dash-layout { display: grid; gap: var(--gap-v); }                 /* iets meer ademruimte tussen de rijen */
.dash-layout .dl-cell > .stack { gap: var(--gap-v); }             /* en tussen gestapelde kaartjes */
.dl-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap-v) 20px; align-items: start; }
.dl-cell { min-width: 0; container-type: inline-size; }
.dl-cell.w-third { grid-column: span 2; } .dl-cell.w-half { grid-column: span 3; }
.dl-cell.w-twothird { grid-column: span 4; } .dl-cell.w-full { grid-column: span 6; }
.dl-cell > .card, .dl-cell > .qm-wrap > .card, .dl-cell > .kpis, .dl-cell > .stack > .card { margin-bottom: 0; }
/* Om te erkennen: even hoog als de buur in de rij (zoals vroeger naast de verankering); alleen op een rij: eigen hoogte */
.dl-row:has(> .dl-cell > .hero-moments) { align-items: stretch; }
.dl-cell:has(> .hero-moments) { display: flex; flex-direction: column; }
.dl-cell > .hero-moments { flex: 1; }
@media (min-width: 1101px) { .dl-row > .dl-cell:not(:only-child):has(> .hero-moments:not(.open)) { contain: size; } }
.dl-row:has(> .dl-cell > .anchor-hero) > .dl-cell:has(> .anchor-hero) { display: flex; flex-direction: column; }
.dl-cell > .anchor-hero { flex: 1; }
@media (max-width: 1100px) { .dl-row { grid-template-columns: minmax(0, 1fr); } .dl-cell[class*="w-"] { grid-column: 1 / -1; } }
/* Smalle cellen: blokken schikken zich */
@container (max-width: 760px) {
  .qm2-lanes { grid-template-columns: 1fr; }
  .qm2-lane + .qm2-lane { box-shadow: none; }
  .kpis:has(> .kpi-lh-group) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpis .kpi-lh-group { grid-column: 1 / -1; }
}
@container (max-width: 560px) {
  .quick-map:not(.qm2) { flex-direction: column; align-items: stretch; }
  .quick-map:not(.qm2) .qm-scene { flex-basis: auto; }
}

/* ------------------------------------------------------------ Voorkeuren → Je overzicht: de editor */
.le { display: grid; gap: 12px; }
.le.saving { opacity: .7; pointer-events: none; transition: opacity .1s; }
.le-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.le-canvas { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .15s; }
.le-canvas.drop-end { box-shadow: inset 0 0 0 2px var(--accent); }
.le-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.le-cell { min-width: 0; display: grid; gap: 10px; }
.le-cell.w-third { grid-column: span 2; } .le-cell.w-half { grid-column: span 3; }
.le-cell.w-twothird { grid-column: span 4; } .le-cell.w-full { grid-column: span 6; }
.le-tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-s); cursor: grab; transition: box-shadow .15s, opacity .15s, transform .15s; }
.le-tile:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-s); }
.le-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.le-tile.dragging { opacity: .4; transform: scale(.98); }
.le-tile.drop-before::before, .le-tile.drop-after::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--accent); }
.le-tile.drop-before::before { left: -8px; } .le-tile.drop-after::after { right: -8px; }
.le-stack .le-tile.drop-before::before, .le-stack .le-tile.drop-after::after { left: 4px; right: 4px; width: auto; height: 4px; top: auto; bottom: auto; }
.le-stack .le-tile.drop-before::before { top: -8px; } .le-stack .le-tile.drop-after::after { bottom: -8px; }
.le-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.le-grip { color: var(--faint); display: grid; place-items: center; }
.le-grip svg { width: 10px; height: 14px; fill: currentColor; }
.le-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.le-ic svg { width: 15px; height: 15px; }
.le-name { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.le-btn { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.le-btn:hover { background: var(--fill); color: var(--text); }
.le-btn svg { width: 15px; height: 15px; }
.le-bottom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.le-widths { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); }
.le-widths button { min-width: 30px; height: 24px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-grid; place-items: center; }
.le-widths button svg { width: 15px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.le-widths button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-s); }
.le-widths button:hover:not([aria-pressed="true"]) { color: var(--text); }
.le-move { margin-left: auto; display: inline-flex; }
.le-newrow { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.le-newrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.le-newrow span { display: none; }
.le-newrow[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.le-newrow[aria-pressed="true"] span { display: inline; }
.le-opts { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.le-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.le-opt select.input { width: auto; height: 26px; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: 12.5px; }
.le-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line-strong);
  transition: border-color .15s, background .15s; }
.le-tray.drop-tray { border-color: var(--accent); background: var(--accent-soft); }
.le-tray-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.le-tray-label svg { width: 15px; height: 15px; }
.le-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong); color: var(--text-2); font: inherit; font-size: 13px; cursor: grab; }
.le-chip svg { width: 14px; height: 14px; color: var(--muted); }
.le-chip span { color: var(--accent); font-weight: 700; }
.le-chip:hover { box-shadow: 0 0 0 1px var(--accent); }
.le-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .le-row { grid-template-columns: minmax(0, 1fr); } .le-cell[class*="w-"] { grid-column: 1 / -1; } }

/* Extra blokken op het overzicht: The Beach, Laatste gesprekken (lijstjes) en Inzicht (cijfer + staafjes) */
.dash-list .card-head h3, .dash-insight .card-head h3 { display: inline-flex; align-items: center; gap: 8px; }
/* Overzicht: een kaart met een icoon in de titel heeft geen rood accentstreepje meer; enkel titels zonder icoon houden het */
.dash-layout .card.section > .card-head :is(h2, h3):has(svg)::before { content: none; }
.dash-list .card-head h3 svg, .dash-insight .card-head h3 svg { width: 17px; height: 17px; color: var(--accent); }
.dl-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.dl-items li { min-width: 0; }
.dl-items li + li { border-top: 1px solid var(--line); }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; color: inherit; text-decoration: none; border-radius: 8px; }
.dl-item:hover { background: var(--fill); }
.dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dl-main b { font-size: 13.5px; font-weight: 600; }
.dl-snip { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dl-meta .imp { font-size: 11px; padding: 1px 6px; }
.dl-weeks { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; color: var(--text-2); min-width: 34px; text-align: right; }
.dl-weeks.long { color: var(--orange-ink); }
.dash-insight { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.dash-insight:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-m, var(--shadow-s)); }
.di-big { display: flex; flex-direction: column; gap: 2px; }
.di-big b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.di-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 92px; align-items: end; }
.di-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.di-stack { width: 100%; max-width: 26px; min-height: 2px; display: flex; flex-direction: column; border-radius: 4px 4px 2px 2px; overflow: hidden; background: var(--fill); }
.di-stack i { display: block; min-height: 2px; }
.di-stack i.a, .di-legend i.a { background: var(--accent); }
.di-stack i.b, .di-legend i.b { background: color-mix(in srgb, var(--orange) 45%, var(--surface)); }
.di-col small { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.di-legend { display: flex; gap: 14px; }
.di-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.di-kleur .di-stack i.a, .di-kleur .di-legend i.a { background: var(--red); }
.di-kleur .di-stack i.b, .di-kleur .di-legend i.b { background: var(--orange); }
.di-radar .di-stack i.a, .di-radar .di-legend i.a { background: var(--green); }
.di-radar .di-stack i.b, .di-radar .di-legend i.b { background: color-mix(in srgb, var(--text) 22%, var(--surface)); }
.dash-list { min-width: 0; overflow: hidden; }
.dl-item { min-width: 0; }
.dl-main { overflow: hidden; }

/* Vuurtoren › Recent op de radar: wie nieuw in beeld kwam of hoger kwam te staan door een nieuw ontdekt signaal */
.rd-card { margin-bottom: var(--gap-v); }
.rd-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.rd-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.rd-ping { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.rd-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: rd-ping 2.4s ease-out infinite; }
@keyframes rd-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-item { display: grid; grid-template-columns: 92px minmax(150px, 1.1fr) auto minmax(0, 1.6fr); align-items: center; gap: 6px 14px;
  padding: 9px 4px; border-top: 1px solid var(--line); }
.rd-item:first-child { border-top: 0; }
.rd-item[hidden] { display: none; }
.rd-when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-name { font-weight: 600; color: var(--text); text-decoration: none; }
.rd-name:hover { color: var(--accent); }
.rd-kind { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rd-kind.new { background: var(--accent-soft); color: var(--accent-hover); }
.rd-kind.up { background: var(--orange-soft); color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.rd-sigs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.rd-sigs .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-more { margin-top: 6px; }
@media (max-width: 760px) {
  .rd-item { grid-template-columns: minmax(0, 1fr) auto; }
  .rd-when { grid-column: 2; grid-row: 1; text-align: right; }
  .rd-who { grid-column: 1; grid-row: 1; }
  .rd-kind { grid-column: 1 / -1; }
  .rd-sigs { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .rd-ping::after { animation: none; } }

/* Beach-periode: iemand permanent van de beach halen (niet beheerd door Axxes Belgium) */
.bh-hide-card { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.bh-hide-card .body { flex: 1 1 200px; font-size: 13.5px; }
.bh-hide-card .btn svg { width: 15px; height: 15px; }

/* Uitklapbare uitleg in de paginakop (Haven): eerste zin zichtbaar, de rest achter 'Lees meer' */
.intro-more { margin-top: 6px; color: var(--muted); max-width: 680px; }
.intro-more summary { list-style: none; cursor: pointer; }
.intro-more summary::-webkit-details-marker { display: none; }
.intro-more .intro-toggle { color: var(--accent); font-weight: 600; font-size: .95em; white-space: nowrap; }
.intro-more .intro-toggle::after { content: "Lees meer ▾"; }
.intro-more[open] .intro-toggle::after { content: "Minder ▴"; }
.intro-more summary:hover .intro-toggle { text-decoration: underline; }
.intro-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.intro-more p { margin: 6px 0 0; }

/* Haven › Buddy's en koppelingen: tabs met icoon, en de lijst boeien */
.haven-tabs a svg { width: 15px; height: 15px; }
.buoy-list .list-item { align-items: flex-start; gap: 12px; }
.buoy-list .sk-kind { min-width: 68px; text-align: center; margin-top: 2px; }
.buoy-list .meta { line-height: 1.6; }
.buoy-list .meta .pill { font-size: 10.5px; padding: 0 6px; }
/* Team van een Team Captain kiezen (/consultants/{id}/team) */
.tct-bar { margin-bottom: 8px; }
.tct-only { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tct-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 12px; }
.tct-row label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.tct-row label:hover { background: var(--surface-2, rgba(0,0,0,.03)); }
.tct-row.on label { background: var(--accent-soft, rgba(232,76,61,.08)); }
.tct-row[hidden] { display: none; }
.tct-who { display: grid; min-width: 0; flex: 1; }
.tct-who b, .tct-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tct-other { font-size: 11px; white-space: nowrap; }
.tct-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  margin-top: 12px; padding: 12px 0 4px; background: var(--surface); border-top: 1px solid var(--line, rgba(0,0,0,.08)); }

/* Haven: een boei die je net maakte of voorstelde, staat bovenaan en licht even op */
.buoy-item.is-new, .sk-proposal.is-new { animation: buoy-new 2.4s ease-out; border-radius: 10px; }
@keyframes buoy-new { 0%, 35% { background: var(--teal-soft); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .buoy-item.is-new, .sk-proposal.is-new { animation: none; background: var(--teal-soft); } }
