/* Camelot Beleggersclub — Caleb stijl (CAMELOT-DESIGN-SYSTEM-V3.md)
   Navy sidebar #0a1929 · witte cards radius 16px · coral #e28374 als ENIGE accent
   Cormorant Garamond voor display-headings · Inter voor body/UI */

:root {
  --c-ink: #0d1929;
  --c-sidebar: #0a1929;
  --c-accent-red: #e28374;
  --c-accent-hover: #d06b5c;
  --c-peach: #FFE5E0;
  --c-body: #f6f5f3;
  --fg-muted: #7d8186;
  --border-subtle: rgba(13, 23, 41, 0.06);
  --border-default: rgba(13, 23, 41, 0.10);
  --radius-md: 16px;
  --shadow-card: 0 1px 3px rgba(13, 23, 41, 0.05), 0 8px 24px rgba(13, 23, 41, 0.04);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --sidebar-w: 256px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-body);
  background-image:
    radial-gradient(ellipse at 12% -8%, rgba(226, 131, 116, 0.06), transparent 52%),
    radial-gradient(ellipse at 96% 108%, rgba(10, 25, 41, 0.06), transparent 55%);
  background-attachment: fixed;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(13, 23, 41, 0.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13, 23, 41, 0.28); }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--c-ink); }

/* ══ Login ═════════════════════════════════════════ */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #0a1929 url('/login-bg.jpg') center center / cover no-repeat fixed;
  padding: 24px;
  position: relative;
}
.login-screen::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 41, 0.45), rgba(10, 25, 41, 0.30));
  backdrop-filter: blur(1px);
}
.login-screen .login-card { position: relative; z-index: 1; }
.login-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  padding: 48px 44px;
  width: 100%; max-width: 420px;
  text-align: center;
}
.login-crest {
  width: 92px; height: 92px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.login-crest img { width: 100%; height: 100%; object-fit: contain; }
.login-title {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700; line-height: 1.15;
}
.login-title span { color: var(--c-accent-red); }
.login-sub { color: var(--fg-muted); margin: 8px 0 28px; }
.login-card input,
.login-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  margin-bottom: 12px;
  outline: none;
  background: #fff;
  font: inherit;
  color: var(--c-ink);
}
.login-card input:focus,
.login-card select:focus {
  border-color: var(--c-accent-red);
  box-shadow: 0 0 0 3px rgba(226, 131, 116, 0.18);
}
.login-error { color: var(--c-accent-hover); margin-top: 10px; font-size: 13px; }
.login-switch { margin-top: 14px; font-size: 13px; text-align: center; }
.login-switch a { color: var(--c-accent-hover); font-weight: 500; }
.login-switch a:hover { text-decoration: underline; }
.login-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--fg-muted);
  text-align: left; margin: -2px 0 12px;
}
.login-check input { width: auto; margin: 0; }

.cb-btn-primary {
  width: 100%;
  background: var(--c-accent-red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(226, 131, 116, 0.30);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.cb-btn-primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(226, 131, 116, 0.38);
}

/* ══ App-shell ═════════════════════════════════════ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: linear-gradient(180deg, #0e2438 0%, #0a1929 42%, #071220 100%);
  color: rgba(255, 255, 255, 0.7);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sb-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sb-crest {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(226, 196, 141, .35), 0 2px 6px rgba(0, 0, 0, .25);
  display: flex; align-items: center; justify-content: center;
}
.sb-crest img { width: 66%; height: 66%; object-fit: contain; }
.sb-brand-name {
  font-family: var(--font-display);
  color: #fff; font-size: 20px; font-weight: 700; line-height: 1.1;
}
.sb-brand-sub { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.sb-nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.sb-section {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 16px 20px 6px;
}
.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 20px;
  border-left: 3px solid transparent;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sb-item:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.95); }
.sb-item.active {
  color: #fff;
  border-left-color: var(--c-accent-red);
  background: linear-gradient(90deg, rgba(226, 131, 116, 0.16), rgba(255, 255, 255, 0.03) 70%);
}
.sb-ico, .search-ico { display: inline-flex; width: 17px; height: 17px; }
.sb-ext { margin-left: auto; color: rgba(255, 255, 255, 0.35); font-size: 12px; }
.sb-ico svg, .search-ico svg { width: 100%; height: 100%; }

.sb-footer { padding: 16px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sb-addr { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); margin-bottom: 10px; word-break: break-all; }
.sb-logout {
  background: none; border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px; padding: 6px 16px; font-size: 12.5px;
}
.sb-logout:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 12px 32px;
}
.topbar-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1; max-width: 520px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--fg-muted);
}
.topbar-search:focus-within {
  border-color: var(--c-accent-red);
  box-shadow: 0 0 0 3px rgba(226, 131, 116, 0.18);
}
.topbar-search input { flex: 1; border: none; outline: none; background: none; }
.topbar-club { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

.content { padding: 32px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ══ Page header (cb-page-hd patroon) ══════════════ */
.cb-page-greeting { font-size: 14px; color: var(--fg-muted); }
.cb-accent { color: var(--c-accent-red); font-weight: 600; }
.cb-page-h1 {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  margin: 2px 0 22px;
}
.cb-page-h1::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--c-accent-red);
  border-radius: 2px;
  margin-top: 7px;
}
.cb-page-h1 span { color: var(--c-accent-red); }
.greeting-date { color: var(--fg-muted); font-weight: 400; }

/* ══ Cards & grids ═════════════════════════════════ */
.cm-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
/* ══ Dashboard ═════════════════════════════════════ */
.dash-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.dash-hero .cb-page-h1::after { display: none; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-actions a { display: inline-flex; }

.stat-link { text-decoration: none; color: inherit; transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease; }
.stat-link:hover { transform: translateY(-2px); border-color: rgba(226, 131, 116, 0.5); box-shadow: 0 6px 14px rgba(13, 23, 41, 0.07), 0 20px 40px rgba(13, 23, 41, 0.08); }

.source-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.source-chip {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 11px 15px;
  box-shadow: var(--shadow-card);
}
.source-ico {
  width: 32px; height: 32px; min-width: 32px; border-radius: 9px;
  background: rgba(13, 23, 41, 0.05); color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
}
.source-ico svg { width: 16px; height: 16px; }
.source-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.source-label { font-weight: 600; font-size: 13px; }
.source-detail { font-size: 11.5px; color: var(--fg-muted); }
.source-dot { width: 9px; height: 9px; border-radius: 50%; }
.source-dot.ok { background: #4caf7e; box-shadow: 0 0 0 3px rgba(76, 175, 126, 0.16); }
.source-dot.warn { background: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, 0.18); }

.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.dash-grid > * { min-width: 0; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title-row .card-title { margin-bottom: 0; }
.card-link { font-size: 12.5px; font-weight: 500; color: var(--c-accent-hover); }
.card-link:hover { text-decoration: underline; }
.title-count {
  display: inline-block; background: var(--c-accent-red); color: #fff;
  font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; margin-left: 2px;
}
.card-alert { border-color: rgba(226, 131, 116, 0.4); }

/* ══ Persoonlijk dashboard (afgestemd op de ingelogde functie) ══ */
.dash-me { margin-bottom: 28px; }
.dash-me-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--c-sidebar) 0%, #14293f 100%);
  border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.dash-me-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lid-avatar.dash-me-avatar { width: 60px; height: 60px; min-width: 60px; font-size: 24px; border: 2px solid rgba(255, 255, 255, 0.2); background: var(--c-accent-red); color: #fff; }
.dash-me-idtxt { min-width: 0; }
.dash-me-greet { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.dash-me-name { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; }
.dash-me-role { display: inline-block; margin-top: 6px; background: var(--c-accent-red); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 12px; border-radius: 999px; }
.dash-me-role-none { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.dash-me-date { font-size: 13px; color: rgba(255, 255, 255, 0.55); text-transform: capitalize; white-space: nowrap; }

.dash-me-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 720px) { .dash-me-tiles { grid-template-columns: repeat(2, 1fr); } }
.dash-me-tile {
  display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.dash-me-tile:hover { transform: translateY(-2px); border-color: rgba(226, 131, 116, 0.5); box-shadow: 0 6px 14px rgba(13, 23, 41, 0.07), 0 20px 40px rgba(13, 23, 41, 0.08); }
.dash-me-tile-ico { width: 30px; height: 30px; border-radius: 8px; background: rgba(13, 23, 41, 0.05); color: var(--c-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.dash-me-tile-ico svg { width: 16px; height: 16px; }
.dash-me-tile-val { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--c-ink); }
.dash-me-tile-lab { font-size: 13px; font-weight: 600; color: var(--c-ink); }
.dash-me-tile-hint { font-size: 11.5px; color: var(--fg-muted); }
.dash-me-tile.accent { border-color: var(--c-accent-red); background: #fff6f4; }
.dash-me-tile.accent .dash-me-tile-ico { background: var(--c-accent-red); color: #fff; }
.dash-me-tile.accent .dash-me-tile-val { color: var(--c-accent-hover); }

.dash-me-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .dash-me-cols { grid-template-columns: 1fr; } }
.dash-att-list, .dash-wp-list { display: flex; flex-direction: column; }
.dash-att, .dash-wp { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-top: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.dash-att:first-child, .dash-wp:first-child { border-top: none; }
.dash-att:hover, .dash-wp:hover { background: rgba(13, 23, 41, 0.015); }
.dash-att-ico { width: 26px; height: 26px; min-width: 26px; border-radius: 7px; background: var(--c-peach); color: var(--c-accent-hover); display: flex; align-items: center; justify-content: center; }
.dash-att-ico svg { width: 15px; height: 15px; }
.dash-att-body, .dash-wp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-att-title, .dash-wp-title { font-size: 13.5px; font-weight: 500; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-att-meta, .dash-wp-meta { font-size: 11.5px; color: var(--fg-muted); }
.dash-att-cta { font-size: 12px; font-weight: 600; color: var(--c-accent-hover); white-space: nowrap; }
.dash-att-vote { background: rgba(255, 229, 224, 0.4); border-radius: 10px; padding: 10px; border-top: none; margin-bottom: 4px; }
.dash-wp-rols { flex: none; display: flex; gap: 4px; }
.dash-wp-rol { flex: none; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.dash-wp-rol-werker { background: rgba(226, 131, 116, 0.16); color: var(--c-accent-hover); }
.dash-wp-rol-reviewer { background: rgba(74, 52, 112, 0.10); color: #4A3470; }
.dash-empty-txt { font-size: 13px; color: var(--fg-muted); padding: 4px 0; }

.dash-club-tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .dash-club-tiles { grid-template-columns: 1fr; } }
.dash-club-tiles .dash-me-tile-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══ Ledenvragen — CRM ══ */
.vr-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .vr-grid { grid-template-columns: 1fr; } }
.vr-lijst { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vr-rij { display: block; position: relative; background: #fff; border: 1px solid var(--border-subtle); border-left: 4px solid var(--vr-kleur, #7d8186); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; transition: box-shadow .14s, border-color .14s; }
.vr-rij:hover { box-shadow: 0 4px 14px rgba(13, 23, 41, 0.06); }
.vr-rij.sel { border-color: var(--c-accent-red); border-left-color: var(--vr-kleur, #7d8186); box-shadow: 0 0 0 3px rgba(226, 131, 116, .14); }
.vr-rij-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.vr-ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; letter-spacing: .06em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.vr-status { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vr-kleur, #7d8186); background: color-mix(in srgb, var(--vr-kleur, #7d8186) 12%, #fff); padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.vr-rij-onderwerp { font-weight: 600; font-size: 14px; color: var(--c-ink); line-height: 1.35; }
.vr-rij-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.vr-rij-naam { font-size: 12.5px; font-weight: 500; color: #41505f; }
.vr-rij-tijd { font-size: 11.5px; color: var(--fg-muted); margin-left: auto; white-space: nowrap; }
.member-avatar.sm-fallback { width: 22px; height: 22px; min-width: 22px; font-size: 10px; }

.vr-detail { border-top: 3px solid var(--c-accent-red); min-width: 0; }
.vr-leeg { align-self: stretch; }
.vr-det-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vr-det-onderwerp { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--c-ink); line-height: 1.25; margin-top: 4px; }
.vr-det-lid { display: flex; align-items: center; gap: 11px; margin: 12px 0; padding: 10px 12px; background: rgba(13, 23, 41, 0.025); border-radius: 11px; }
.vr-det-lidinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vr-det-naam { font-weight: 600; font-size: 13.5px; color: var(--c-ink); }
a.vr-det-naam:hover { color: var(--c-accent-hover); }
.vr-det-mail { font-size: 12px; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; }
.vr-kanaal { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--fg-muted); background: #fff; border: 1px solid var(--border-default); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.vr-kanaal svg { width: 13px; height: 13px; }
.vr-det-vraag { font-size: 14px; color: var(--c-ink); }

.vr-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 720px) { .vr-controls { grid-template-columns: 1fr; } }
.vr-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .03em; }
.vr-controls select { padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13px; background: #fff; font-weight: 500; }

.vr-acties { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed rgba(13, 23, 41, .12); }
.vr-acties .cb-btn-primary { width: auto; padding: 8px 16px; font-size: 13px; }
.vr-acties .cb-btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.vr-acties .btn-ghost { padding: 7px 14px; font-size: 13px; }
.vr-acties .vr-a-del { margin-left: auto; color: #b0b8c0; }
.vr-acties .vr-a-del:hover { color: #a83a2c; }

.vr-compose { margin-top: 14px; padding: 13px 15px; border: 1px solid var(--border-default); border-left: 3px solid var(--c-accent-red); border-radius: 0 11px 11px 0; background: rgba(255, 229, 224, .28); }
.vr-compose textarea, .vr-compose input { width: 100%; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13.5px; font-family: inherit; background: #fff; resize: vertical; }
.vr-compose textarea:focus, .vr-compose input:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }

.vr-tijdlijn { margin-top: 16px; }
.vr-upd { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border-subtle); }
.vr-upd:first-of-type { border-top: none; }
.vr-upd-ico { width: 28px; height: 28px; min-width: 28px; border-radius: 8px; background: rgba(13, 23, 41, 0.05); color: #4a5666; display: flex; align-items: center; justify-content: center; }
.vr-upd-ico svg { width: 14px; height: 14px; }
.vr-upd-reply .vr-upd-ico { background: var(--c-peach); color: var(--c-accent-hover); }
.vr-upd-taak .vr-upd-ico, .vr-upd-werkpunt .vr-upd-ico { background: rgba(46, 90, 143, 0.10); color: #2e5a8f; }
.vr-upd-body { flex: 1; min-width: 0; }
.vr-upd-meta { font-size: 11px; color: var(--fg-muted); margin-bottom: 2px; }
.vr-upd-txt { font-size: 13.5px; line-height: 1.5; color: var(--c-ink); white-space: pre-wrap; }
.vr-upd-extra { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--fg-muted); }
.vr-upd-link { color: var(--c-accent-hover); font-weight: 500; }
.vr-note-add { display: flex; gap: 8px; margin-top: 12px; align-items: flex-start; }
.vr-note-add textarea { flex: 1; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13.5px; font-family: inherit; resize: vertical; }
.vr-note-add textarea:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }

.vr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
@media (max-width: 800px) { .vr-form-grid { grid-template-columns: 1fr; } }
.vr-form-wide { grid-column: 1 / -1; }
.vr-form-grid input, .vr-form-grid select, .vr-form-grid textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13.5px; font-family: inherit; background: #fff; resize: vertical; }
.vr-form-grid input:focus, .vr-form-grid textarea:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }

.dash-section-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.dash-section-line { flex: 1; height: 1px; background: var(--border-default); }
.dash-section-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-muted); white-space: nowrap; }

.dash-task-list { display: flex; flex-direction: column; }
.dash-task {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--border-subtle);
}
.dash-task:first-child { border-top: none; }
.dash-task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-task-title { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-task-meta { font-size: 12px; color: var(--fg-muted); }
.dash-task:hover .dash-task-title { color: var(--c-accent-hover); }

.functie-list { display: flex; flex-direction: column; }
.functie-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-top: 1px solid var(--border-subtle); font-size: 13px;
}
.functie-row:first-child { border-top: none; }
.functie-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.functie-role { font-size: 11.5px; color: var(--c-accent-hover); font-weight: 500; white-space: nowrap; }
/* Aanwezigheid: compacte chips in de dashboard-hero (enkel de 6 bestuursfuncties) */
.dash-me-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dash-presence { display: flex; align-items: center; gap: 5px; }
.dash-p-chip { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #b23a3a; cursor: default; }
.dash-p-chip.is-online { box-shadow: 0 0 0 2px #2f9e63; }
.dash-p-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dash-p-chip.me { background: var(--c-accent-red); border-color: var(--c-accent-red); }
.dash-p-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: #b23a3a; border: 2px solid #14293f; }
.dash-p-dot.on { background: #2f9e63; }
.dash-p-label { margin-left: 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Komende vergaderingen (dashboard-kaart) */
.dash-meet-list { display: flex; flex-direction: column; }
.dash-meet { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-top: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.dash-meet:first-child { border-top: none; }
.dash-meet:hover { background: rgba(13, 23, 41, 0.015); }
.dash-meet-ico { width: 28px; height: 28px; min-width: 28px; border-radius: 8px; background: var(--c-peach); color: var(--c-accent-hover); display: flex; align-items: center; justify-content: center; }
.dash-meet-ico svg { width: 15px; height: 15px; }
.dash-meet-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-meet-title { font-size: 13.5px; font-weight: 500; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-meet-meta { font-size: 11.5px; color: var(--fg-muted); }
.dash-meet-zoom { font-size: 10.5px; font-weight: 600; background: var(--c-peach); color: var(--c-accent-hover); padding: 2px 9px; border-radius: 99px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-label { font-size: 12px; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.2; }
.stat-card .stat-hint { font-size: 12px; color: var(--fg-muted); }
.stat-ico {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 11px;
  background: rgba(226, 131, 116, 0.13);
  color: var(--c-accent-hover);
  display: flex; align-items: center; justify-content: center;
}
.stat-ico svg { width: 17px; height: 17px; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

.card-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 14px; }

/* ══ Item-lijst ════════════════════════════════════ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.pill-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 999px; padding: 4px; }
.pill-tab {
  border: none; background: none; border-radius: 999px;
  padding: 6px 15px; font-weight: 500; color: var(--fg-muted);
  transition: background 0.14s ease, color 0.14s ease;
}
.pill-tab:hover { color: var(--c-ink); }
.pill-tab.active { background: var(--c-sidebar); color: #fff; box-shadow: 0 2px 6px rgba(13, 23, 41, 0.22); }
.filter-bar select, .filter-bar input[type="date"] {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: 999px; padding: 7px 13px; outline: none; color: var(--c-ink);
}
.filter-bar select:focus, .filter-bar input[type="date"]:focus { border-color: var(--c-accent-red); }
.filter-clear { background: none; border: none; color: var(--c-accent-red); font-weight: 500; }

.result-count { color: var(--fg-muted); font-size: 13px; margin-bottom: 10px; }

.item-list { display: flex; flex-direction: column; gap: 10px; }
.item-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 15px 20px;
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}
.item-row:hover {
  border-color: rgba(226, 131, 116, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 23, 41, 0.06), 0 16px 34px rgba(13, 23, 41, 0.09);
}
.item-ico {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 23, 41, 0.05);
  color: var(--c-ink);
}
.item-ico svg { width: 18px; height: 18px; }
.item-ico.dir-in { background: rgba(226, 131, 116, 0.14); color: var(--c-accent-hover); }
.item-ico.dir-out { background: var(--c-sidebar); color: #fff; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { font-size: 12.5px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-side { text-align: right; min-width: 110px; }
.item-date { font-size: 12.5px; color: var(--fg-muted); }
.badges { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }
.badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; padding: 2px 9px;
  background: rgba(13, 23, 41, 0.06); color: var(--c-ink);
}
.badge.b-in { background: rgba(226, 131, 116, 0.16); color: var(--c-accent-hover); }
.badge.b-out { background: var(--c-sidebar); color: #fff; }
.badge.b-cat { background: var(--c-peach); color: var(--c-accent-hover); }
.badge.b-label { background: rgba(74, 52, 112, 0.09); color: #4A3470; }
.badge.b-actief { background: rgba(87, 169, 126, 0.14); color: #3d7a5c; }

.card-title-sub { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--fg-muted); background: rgba(13, 23, 41, 0.05); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

/* Notities (lid-detail) — huisstijl: warme koraal-accentkaartjes + composer */
.note-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.note-empty { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  color: var(--fg-muted); font-size: 12.5px; line-height: 1.4; padding: 24px 16px;
  border: 1px dashed var(--border-default); border-radius: 14px; background: rgba(226, 131, 116, 0.035); }
.note-empty svg { width: 24px; height: 24px; color: var(--c-accent-red); opacity: .65; }
.note-item { position: relative; padding: 11px 14px 12px 17px; border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #FDF7F5); border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(13, 23, 41, 0.03); }
.note-item::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--c-accent-red); }
.note-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 4px; }
.note-date { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-muted); }
.note-author { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  font-family: var(--font-display); font-style: italic; color: var(--c-accent-hover); }
.note-author::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.note-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; color: var(--c-ink); }
.note-add { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 13px;
  border: 1px solid var(--border-default); background: #fff; transition: border-color .14s ease, box-shadow .14s ease; }
.note-add:focus-within { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, 0.14); }
.note-add textarea { border: none; padding: 2px; resize: vertical; min-height: 40px; font-size: 13.5px; background: none; }
.note-add textarea:focus { outline: none; box-shadow: none; }
.note-add-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.note-add-foot .import-result { margin-top: 0; }

.month-header {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--fg-muted);
  padding: 14px 4px 2px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}
.month-header::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-accent-red);
  margin-right: 9px;
  vertical-align: 2px;
}
.month-header:first-child { padding-top: 0; }
.thread-count {
  display: inline-block;
  background: var(--c-accent-red); color: #fff;
  font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 1px 8px;
  vertical-align: 2px; margin-left: 6px;
}
.year-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }

/* Selectie + bulk-acties */
.item-row.selectable { padding: 0 10px 0 14px; }
.item-row.selectable .item-link {
  display: flex; align-items: center; gap: 16px;
  flex: 1; min-width: 0;
  padding: 15px 6px 15px 12px;
}
.row-check { width: 16px; height: 16px; min-width: 16px; accent-color: var(--c-accent-red); cursor: pointer; }
.row-task {
  background: none; border: 1px solid var(--border-default); border-radius: 999px;
  width: 28px; height: 28px; min-width: 28px;
  color: var(--fg-muted); font-size: 16px; line-height: 1;
}
.row-task:hover { border-color: var(--c-accent-red); color: var(--c-accent-hover); }
.bulk-bar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--c-sidebar); color: #fff;
  border-radius: 999px; padding: 10px 12px 10px 20px;
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 8px 30px rgba(13, 23, 41, 0.35);
  z-index: 60; white-space: nowrap;
}
.bulk-bar span { font-size: 13.5px; font-weight: 500; }
.bulk-btn {
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: none; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 500;
}
.bulk-btn:hover { background: rgba(255, 255, 255, 0.24); }
.bulk-btn.danger { background: var(--c-accent-red); }
.bulk-btn.danger:hover { background: var(--c-accent-hover); }
.quick-task {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  z-index: 59;
  box-shadow: 0 12px 40px rgba(13, 23, 41, 0.25);
}

.badge.b-done { background: rgba(13, 23, 41, 0.08); color: var(--fg-muted); }
.row-hidden { opacity: 0.62; }
.row-hidden:hover { opacity: 1; }
.zicht-bar { margin-top: -6px; margin-bottom: 14px; align-items: center; }
.zicht-hint { font-size: 12.5px; color: var(--fg-muted); }
.zicht-hint a { color: var(--c-accent-hover); font-weight: 500; }
.zicht-hint a:hover { text-decoration: underline; }

.app-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--c-sidebar); color: #fff;
  border-radius: 999px; padding: 11px 14px 11px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 34px rgba(13, 23, 41, 0.32);
  font-size: 13.5px; z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-action {
  background: rgba(255, 255, 255, 0.14); color: #fff; border: none;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600;
}
.toast-action:hover { background: var(--c-accent-red); }

.empty-state {
  text-align: center; padding: 56px 20px; color: var(--fg-muted);
  background: #fff; border: 1px dashed var(--border-default); border-radius: var(--radius-md);
}
.empty-state .empty-title { font-family: var(--font-display); font-size: 21px; color: var(--c-ink); margin-bottom: 6px; }

.load-more { display: block; margin: 18px auto 0; background: none; border: 1px solid var(--border-default); border-radius: 999px; padding: 8px 22px; font-weight: 500; }
.load-more:hover { border-color: var(--c-accent-red); color: var(--c-accent-hover); }

/* ══ Detail ════════════════════════════════════════ */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); font-weight: 500; margin-bottom: 14px; }
.back-link svg { width: 15px; height: 15px; }
.back-link:hover { color: var(--c-accent-hover); }

.detail-header { display: flex; justify-content: space-between; gap: 16px 20px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.detail-header > div:first-child { min-width: 280px; }
.detail-header .lid-card-badges { margin-top: 8px; }
/* backoffice-link-box in de beheer-modal */
.bo-linkbox { display: flex; gap: 8px; margin: 12px 0 4px; }
.bo-linkbox input { flex: 1; padding: 9px 12px; border: 1px solid var(--border-default); border-radius: 8px; font: inherit; font-size: 12.5px; background: var(--surface-2, #faf7f3); color: var(--c-ink); }
.detail-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.done-banner {
  background: rgba(13, 23, 41, 0.05); color: var(--fg-muted);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 9px 14px; font-size: 13px; margin-bottom: 16px;
}

.meta-grid { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13.5px; margin-bottom: 4px; }
.meta-grid dt { color: var(--fg-muted); }
.meta-grid dd { word-break: break-word; }

/* Verfijnde gegevens-weergave (lid-detail): gegroepeerd, iconen, hairline-rijen */
.info-list { display: flex; flex-direction: column; }
.info-group + .info-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.info-subhead { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a9857c; margin: 0 0 4px; }
.lf-subhead { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a9857c; margin: 6px 0 2px; }
.info-row { display: grid; grid-template-columns: 176px 1fr; gap: 14px; align-items: start;
  padding: 9px 2px; border-top: 1px solid var(--border-subtle); }
.info-row:first-child { border-top: none; }
.info-label { display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #93989e; line-height: 1.55; }
.info-ico { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: none; color: var(--c-accent-red); opacity: 0.9; }
.info-ico svg { width: 100%; height: 100%; }
.info-value { font-size: 13.5px; font-weight: 500; color: var(--c-ink); word-break: break-word; line-height: 1.5; }
.info-value a { color: var(--c-accent-hover); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .12s ease; }
.info-value a:hover { border-bottom-color: currentColor; }
.info-value.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.info-value .io-accent { color: var(--c-accent-hover); font-weight: 700; }
.info-value .io-sub { color: var(--fg-muted); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.io-empty { color: #bcc0c5; font-weight: 400; }
.info-label .label-em { font-style: italic; text-transform: none; font-weight: 500; letter-spacing: 0.02em; }
.rt-hero-aandelen { font-size: 13px; opacity: 0.85; margin-top: 4px; font-variant-numeric: tabular-nums; }
.io-sub-blok { display: block; margin-top: 2px; font-size: 12px; }
/* Tafelwaarderingen (nulmeting) — Beleggingen-tab */
.tw-tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 16px; align-items: stretch; }
.tw-tegel { background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px; }
.tw-tegel-kop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tw-naam { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--c-ink); }
.tw-badge { font-size: 10px; padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.tw-b-lock { background: #e4f3ea; color: #2e7d5b; }
.tw-b-concept { background: #fdf6ec; color: #a06a00; border: 1px dashed #ecd9b4; }
.tw-b-leeg { background: #f0eef2; color: #7a6f86; }
.tw-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tw-kpi span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); font-weight: 700; margin-bottom: 2px; }
.tw-kpi b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--c-ink); font-weight: 700; white-space: nowrap; }
.tw-kpi-leeg { color: #bcc0c5; font-size: 13px; }
.tw-bronregel { font-size: 11.5px; color: var(--fg-muted); }
.tw-tegel-voet { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #a06a00; flex-wrap: wrap; }
.tw-tegel-voet input { font-size: 12.5px; padding: 6px 9px; border: 1px solid var(--border-default); border-radius: 8px; }
.tw-editor { margin-bottom: 16px; }
.tw-tabel { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.tw-rij { display: grid; grid-template-columns: 1.1fr 1.5fr 130px 36px; gap: 10px; padding: 8px 14px; border-top: 1px solid #f0ebe2; font-size: 13px; align-items: center; }
.tw-rij:first-child { border-top: none; }
.tw-rij-kop { background: #f7f4ee; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: #93989e; font-weight: 700; }
.tw-rij:nth-child(even):not(.tw-rij-kop):not(.tw-totaal) { background: #fbf9f5; }
.tw-bron { font-size: 12px; color: var(--fg-muted); }
.tw-r { text-align: right; font-variant-numeric: tabular-nums; }
.tw-totaal { background: #f4f0e8; font-weight: 700; border-top: 2px solid #1f2a3a; }
.tw-leegrij span:first-child { color: #bcc0c5; }
.tw-x { border: none; background: none; color: #a83a2c; font-size: 17px; cursor: pointer; line-height: 1; padding: 2px 6px; }
.tw-x:hover { color: #7d2318; }
.tw-nieuw { display: grid; grid-template-columns: 1.1fr 1.5fr 130px auto; gap: 8px; margin-bottom: 14px; }
.tw-nieuw input { font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 8px; }
.tw-acties { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tw-acties-rechts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Rapportering Rendement — kaart + invulbare rekentool */
.rd-kaart { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.rd-kaart-acties { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.callout-sim { background: #fdf9ee; border: 1px solid #ecd9a0; border-left: 4px solid #8a6d1a; border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; font-size: 13.5px; line-height: 1.6; }
.rd-kolommen { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
@media (max-width: 900px) { .rd-kolommen { grid-template-columns: 1fr; } }
.rd-tabel { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.rd-rij { display: grid; grid-template-columns: 68px 1fr 92px 86px; gap: 8px; padding: 5px 10px; border-top: 1px solid #f0ebe2; font-size: 12.5px; align-items: center; }
.rd-lidrij { display: grid; grid-template-columns: 1fr 84px 64px 92px; gap: 8px; padding: 5px 10px; border-top: 1px solid #f0ebe2; font-size: 12.5px; align-items: center; }
.rd-rij:first-child, .rd-lidrij:first-child { border-top: none; }
.rd-kop { background: #f7f4ee; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: #93989e; font-weight: 700; }
.rd-rij input.rd-w { width: 100%; font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--border-default); border-radius: 7px; text-align: right; font-variant-numeric: tabular-nums; background: #fff; }
.rd-gewijzigd input.rd-w { border-color: #8a6d1a; background: #fdf9ee; font-weight: 700; }
.rd-gewijzigd { background: #fdf9ee; }
/* Uittreding-intake modal */
.lf-grid2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.lf-grid2 label { display: block; font-size: 12px; font-weight: 600; color: #93989e; margin-bottom: 4px; }
.lf-grid2 select, .lf-grid2 input { width: 100%; box-sizing: border-box; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 8px; }
.lg-body > label { display: block; font-size: 12px; font-weight: 600; color: #93989e; margin-bottom: 4px; }
.lg-body textarea { width: 100%; box-sizing: border-box; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 8px; font-family: inherit; }
.ut-acties { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .lf-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tw-nieuw { grid-template-columns: 1fr; }
  .tw-rij { grid-template-columns: 1fr 90px 30px; }
  .tw-rij .tw-bron { display: none; }
}
/* Hoofdtitel-rij met sub-rijen eronder (bv. Bijdragen → Lidgeld / Forfaitaire bijdrage) */
.info-row.info-head { padding-bottom: 3px; }
.info-row.info-sub { border-top: none; padding: 2px 2px 2px 26px; }
.info-row.info-sub .info-label { text-transform: none; letter-spacing: 0.02em; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.info-row.info-sub .info-value { font-size: 12.5px; }
@media (max-width: 560px) { .info-row { grid-template-columns: 1fr; gap: 2px; padding: 8px 2px; } }

.mail-body-frame { width: 100%; min-height: 420px; border: 1px solid var(--border-subtle); border-radius: 12px; background: #fff; margin-top: 14px; }
.mail-body-text { white-space: pre-wrap; font-size: 13.5px; background: rgba(13,23,41,0.03); border-radius: 12px; padding: 18px; margin-top: 14px; overflow-x: auto; }

.att-list { display: flex; flex-direction: column; gap: 8px; }
.att-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 14px; }
.att-name { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { color: var(--fg-muted); font-size: 12.5px; }
.att-dl {
  background: var(--c-sidebar); color: #fff; border: none;
  border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 500;
  transition: background 0.15s ease, transform 0.12s ease;
}
.att-dl:hover { background: #14304a; transform: translateY(-1px); }

.thread-list { display: flex; flex-direction: column; gap: 6px; }
.thread-item { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.thread-item:hover { background: rgba(13, 23, 41, 0.04); }

.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }
/* Lid-detail: Financiële gegevens vast rechtsboven (Steve); balans komt van
   Mailings + Notities onderaan de linkerkolom. */
/* Orde-sigils (Camelot Ordes) bij titels in het ledenregister */
.orde-sigil { display: inline-flex; vertical-align: -3px; color: #8a6d1a; flex: none; }
.orde-sigil svg { width: 100%; height: 100%; }
.badge.badge-orde { display: inline-flex; align-items: center; gap: 5px; }
.badge.badge-orde .orde-sigil { vertical-align: baseline; }
.lid-orde { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #8a6d1a; font-weight: 600; }
.lg-chip .orde-sigil { margin-right: 4px; vertical-align: -2px; }
/* Opvolg-register verhogingen (Ledenregister) */
.vhr-card { margin-bottom: 22px; }
.vhr-rij { display: flex; flex-direction: column; gap: 6px; padding: 10px 2px; border-top: 1px solid var(--border-subtle); }
.vhr-rij:first-of-type { border-top: none; }
.vhr-rij.vhr-open { background: #fdf6ec; border: 1px dashed #ecd9b4; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.vhr-kop { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vhr-kop a { color: var(--c-ink); text-decoration: none; }
.vhr-kop a:hover strong { color: var(--c-accent-hover); }
.vhr-traject { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--fg-muted); }
.vhr-stap { display: inline-flex; align-items: center; gap: 5px; }
.vhr-stap i { width: 8px; height: 8px; border-radius: 50%; background: #d8d3cb; flex: none; }
.vhr-stap.ok { color: var(--c-ink); }
.vhr-stap.ok i { background: #3f9d6e; }
.vhr-stap.vhr-x i { background: #c0564a; }
.vhr-pijl { color: #c8c2b8; }

/* ══ Formulieren (import / edit) ═══════════════════ */
.form-grid { display: grid; gap: 12px; }
.form-grid label { font-size: 12.5px; font-weight: 500; color: var(--fg-muted); display: block; margin-bottom: 4px; }
.form-grid input[type="text"], .form-grid input[type="date"], .form-grid textarea, .form-grid select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-default); border-radius: 10px; outline: none; background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226,131,116,0.18); }

.dropzone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: 34px 20px;
  text-align: center; color: var(--fg-muted);
  transition: border-color 0.12s ease, background 0.12s ease;
  cursor: pointer;
}
.dropzone.dragover { border-color: var(--c-accent-red); background: rgba(226, 131, 116, 0.06); }
.dropzone strong { color: var(--c-ink); }

.import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.import-result { font-size: 13px; margin-top: 12px; }
.import-result .ok { color: #3d8b64; }
.import-result .dup { color: var(--fg-muted); }
.import-result .fail { color: var(--c-accent-hover); }

.btn-ghost {
  background: none; border: 1px solid var(--border-default);
  border-radius: 999px; padding: 8px 18px; font-weight: 500;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
.btn-ghost:hover { border-color: var(--c-accent-red); color: var(--c-accent-hover); background: rgba(226, 131, 116, 0.05); }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost:disabled:hover { border-color: var(--border-default); color: inherit; background: none; }
.btn-danger { background: none; border: 1px solid rgba(208,107,92,0.4); color: var(--c-accent-hover); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; }
.btn-danger:hover { background: rgba(226,131,116,0.08); }

.tag-chip { display: inline-block; background: rgba(13,23,41,0.06); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin: 2px 4px 2px 0; }

/* ══ Taken & opvolging ═════════════════════════════ */
.task-card { border: 1px solid var(--border-subtle); border-left: 3px solid #c4ccd4; border-radius: 12px; background: #fff; padding: 13px 16px; margin-top: 10px; transition: box-shadow .15s; }
.task-card:hover { box-shadow: 0 4px 14px rgba(13, 23, 41, 0.05); }
.task-card-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.task-title { font-weight: 600; font-size: 14.5px; line-height: 1.4; color: #1c2833; }
.task-done .task-title { text-decoration: line-through; color: var(--c-muted, #75695c); }
.task-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.task-desc { font-size: 12.5px; color: var(--c-muted, #75695c); margin-top: 8px; line-height: 1.5; }
.task-item-link { font-size: 12px; color: var(--c-accent-hover); font-weight: 500; }
.task-card-actions { display: flex; gap: 4px; align-items: center; flex: none; }
.task-card-actions .task-next { padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.task-del { background: none; border: none; color: #b0b8c0; font-size: 17px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.task-del:hover { color: #a83a2c; }
.task-stamp, .wp-stamp { font-size: 11px; color: var(--c-muted, #75695c); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: .01em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task-stamp .stamp-ref, .wp-stamp .stamp-ref { font-weight: 600; color: #4a5666; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.task-stamp .stamp-sep, .wp-stamp .stamp-sep { color: #c4ccd4; }
.prio-dot { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; }
.prio-hoog { background: var(--c-accent-hover); }
.prio-normaal { background: rgba(13, 23, 41, 0.35); }
.prio-laag { background: rgba(13, 23, 41, 0.14); }
.badge.b-overdue { background: var(--c-accent-red); color: #fff; }
.overdue-toggle { border: 1px solid var(--border-default); background: #fff; }
.overdue-toggle.active { background: var(--c-accent-red); color: #fff; border-color: var(--c-accent-red); }
.task-form-row { display: grid; grid-template-columns: 1.4fr 1fr 0.9fr; gap: 10px; }
@media (max-width: 800px) { .task-form-row { grid-template-columns: 1fr; } }
/* Nieuwe-taak-composer: gestapeld formulier, deadline+prioriteit netjes naast elkaar */
.task-form-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.task-form .cb-btn-primary { width: 100%; padding: 11px 20px; margin-top: 2px; }
.task-composer { border-top: 3px solid var(--c-accent-red); }
.dash-task { display: flex; gap: 9px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border-subtle); font-size: 13px; }
.dash-task:first-of-type { border-top: none; }
.dash-task-title { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-task-meta { color: var(--fg-muted); font-size: 12px; white-space: nowrap; }

/* ══ Chat (WhatsApp-groep) ═════════════════════════ */
.chat-layout { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .chat-layout { grid-template-columns: 1fr; } }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-subtle); font-size: 13.5px; }
.member-row:first-of-type { border-top: none; }
.member-avatar {
  width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
  background: var(--c-sidebar); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.member-main { flex: 1; min-width: 0; }
.member-name { font-weight: 500; line-height: 1.3; word-break: break-word; }
.member-main .badge { margin-top: 3px; }
.member-me { color: var(--fg-muted); font-weight: 400; font-size: 11.5px; }
.member-edit { background: none; border: none; color: var(--fg-muted); font-size: 13px; padding: 2px 4px; }
.member-edit:hover { color: var(--c-accent-hover); }
.chat-read { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; text-align: right; }
.chat-card { display: flex; flex-direction: column; height: calc(100vh - 240px); min-height: 420px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 6px 4px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  max-width: 72%;
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 14px 14px 14px 4px;
  padding: 9px 13px;
  box-shadow: 0 1px 3px rgba(13, 23, 41, 0.06);
}
.chat-msg.mine {
  align-self: flex-end;
  background: var(--c-sidebar);
  color: #fff;
  border: none;
  border-radius: 14px 14px 4px 14px;
}
.chat-sender { font-size: 12px; font-weight: 600; color: var(--c-accent-hover); margin-bottom: 2px; }
.chat-text { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.chat-ts { font-size: 10.5px; color: var(--fg-muted); margin-top: 3px; text-align: right; }
.chat-msg.mine .chat-ts { color: rgba(255, 255, 255, 0.55); }
.chat-img { max-width: 260px; max-height: 260px; border-radius: 10px; display: block; margin-bottom: 4px; }
.chat-doc { display: inline-block; font-size: 13px; font-weight: 500; color: var(--c-accent-hover); margin-bottom: 4px; }
.chat-msg.mine .chat-doc { color: #ffd6cd; }
.chat-doc.muted { color: var(--fg-muted); font-weight: 400; }
.chat-input-row { display: flex; gap: 10px; margin-top: 12px; position: relative; }
.chat-mention { color: var(--c-accent-hover); font-weight: 600; }
.chat-msg.mine .chat-mention { color: #ffd6cd; }
.mention-pop {
  position: absolute;
  bottom: calc(100% + 8px); left: 0;
  width: min(300px, 90%);
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(13, 23, 41, 0.18);
  max-height: 230px; overflow-y: auto;
  z-index: 30;
  padding: 5px;
}
.mention-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
}
.mention-item:hover, .mention-item.active { background: rgba(226, 131, 116, 0.10); color: var(--c-accent-hover); }
.chat-input-row input {
  flex: 1; padding: 11px 14px;
  border: 1px solid var(--border-default); border-radius: 999px; outline: none;
}
.chat-input-row input:focus { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226,131,116,0.18); }

/* ══ Financiën ═════════════════════════════════════ */
.fin-group { margin-bottom: 22px; }
.fin-group-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
}
.fin-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.fin-row:first-child { border-top: none; }
.fin-ico {
  width: 38px; height: 38px; min-width: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 23, 41, 0.05); color: var(--c-ink);
}
.fin-ico svg { width: 18px; height: 18px; }
.fin-ico.type-networth { background: rgba(74, 52, 112, 0.10); color: #4A3470; }
.fin-ico.type-aankoop { background: rgba(226, 131, 116, 0.14); color: var(--c-accent-hover); }
.fin-ico.type-boekhouding { background: rgba(76, 175, 126, 0.14); color: #3d8b64; }
.fin-main { flex: 1; min-width: 0; }
.fin-name { font-weight: 600; }
.fin-note { font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }
.fin-edit-row { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.6fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.fin-edit-row input, .fin-edit-row select { padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 8px; outline: none; font: inherit; min-width: 0; }
.fin-edit-row input:focus, .fin-edit-row select:focus { border-color: var(--c-accent-red); }
.fin-del { background: none; border: none; color: var(--fg-muted); font-size: 18px; }
.fin-del:hover { color: var(--c-accent-hover); }
@media (max-width: 800px) { .fin-edit-row { grid-template-columns: 1fr; } }

/* ══ Ledenregister (kaarten) ═══════════════════════ */
.lid-group { margin-bottom: 24px; }
.lid-group-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
}
.lid-group-count { font-size: 12px; font-weight: 600; color: #fff; background: var(--c-accent-red); border-radius: 999px; padding: 1px 9px; font-family: var(--font-sans); }
.lid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lid-card {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 18px 18px 16px 20px; text-decoration: none; color: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.lid-card:hover { transform: translateY(-2px); border-color: rgba(226, 131, 116, 0.5); box-shadow: 0 6px 14px rgba(13, 23, 41, 0.07), 0 18px 40px rgba(13, 23, 41, 0.09); }
.lid-card::before {                    /* RT-boeklint links, geclipt door overflow:hidden (geen radius-glitch) */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--rt-fg, var(--c-sidebar));
}
.lid-card.ended { opacity: 1; }        /* bewust geen opacity-dimming: behoudt AA-contrast */
.lid-card.ended::before { background: #c8cacd; }
.lid-card.ended .lid-avatar { background: #ECEBE8; color: #5c6066; }
.lid-avatar {
  position: relative; overflow: hidden;
  width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  background: var(--rt-bg, rgba(13, 23, 41, 0.06)); color: var(--rt-fg, var(--c-ink));
}
.lid-avatar.lg { width: 64px; height: 64px; min-width: 64px; font-size: 28px; }
/* Profielfoto vult de avatar-cirkel; valt bij fout weg → initiaal blijft zichtbaar */
.lid-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lid-avatar-edit { position: relative; display: inline-flex; cursor: pointer; }
.avatar-cam { position: absolute; right: -1px; bottom: -1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-accent-red); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; opacity: 0; transform: scale(.85); transition: opacity .15s ease, transform .15s ease; }
.avatar-cam svg { width: 13px; height: 13px; }
.lid-avatar-edit:hover .avatar-cam { opacity: 1; transform: scale(1); }
.lid-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-right: 64px; }
.lid-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.status-dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.status-dot.actief { background: #2f6b4d; }
.status-dot.beeindigd { background: #8b9096; }
.status-dot.kandidaat { background: #b8860b; }
.status-dot.uittredend { background: #c0564a; }
.lid-card-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lid-tier2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lid-tier2 .rt-pill { max-width: 100%; }
.lid-tier2 .rt-pill > :last-child { overflow: hidden; text-overflow: ellipsis; }
.lid-functie { font-size: 12.5px; color: #5f636a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lid-card-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lid-card-meta { font-size: 12px; color: #6b6f75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lid-meta { grid-template-columns: 130px 1fr; }

/* compleet-indicator RECHTSBOVEN in de hoek */
.doc-corner { position: absolute; top: 12px; right: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; line-height: 1; border-radius: 999px; padding: 4px 9px; }
.doc-corner .cd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.doc-corner.compleet { background: #E4F1E9; color: #2f6b4d; }
.doc-corner.incompleet { background: #FBEDD6; color: #8a5412; }
.lid-days { position: absolute; top: 40px; right: 14px; z-index: 1;
  font-size: 10.5px; font-weight: 500; color: #93989e; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Pastel ronde-tafel-tinten (tekstcontrast AA-geverifieerd) */
.rt-kingarthur    { --rt-bg: #F5EBD0; --rt-fg: #5C460D; }
.rt-merlin        { --rt-bg: #E9E3F3; --rt-fg: #4A3470; }
.rt-ladyguinevere { --rt-bg: #D9EAEC; --rt-fg: #1F4D5A; }
.rt-sirlancelot   { --rt-bg: #F0DEDE; --rt-fg: #6B2C2C; }
.rt-none          { --rt-bg: rgba(13, 23, 41, 0.06); --rt-fg: #5f636a; }
.rt-badge { font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--rt-bg); color: var(--rt-fg); }
.rt-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  border-radius: 999px; padding: 3px 10px 3px 8px; background: var(--rt-bg); color: var(--rt-fg); }
.rt-pill .rt-swatch { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.rt-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--rt-fg, var(--c-sidebar)); }
.badge.b-ended { background: #ECEBE8; color: #5c6066; }
.badge.b-kandidaat { background: #FBEDD6; color: #8a5412; }
.badge.b-uittredend { background: #fdeae4; color: #993c1d; }

.doc-badge.compleet { background: #4caf7e; color: #fff; }

.member-reg-list { display: flex; flex-direction: column; }
.member-reg-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-subtle); }
.member-reg-row:first-child { border-top: none; }
.member-reg-row.ended { opacity: 0.6; }
.member-reg-main { flex: 1; min-width: 0; }
.member-reg-name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.member-reg-meta { font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; }
.lid-edit { color: var(--fg-muted); }
.lid-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.member-reg-row .lid-archive { padding: 5px 12px; font-size: 12px; }
.doc-badge { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.doc-badge.compleet { background: rgba(76, 175, 126, 0.14); color: #3d8b64; }
.doc-badge.incompleet { background: var(--c-accent-red); color: #fff; }
.doc-check-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.doc-check {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 10px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border-default);
}
.doc-check input { width: auto; margin: 0; accent-color: #3d8b64; }
.doc-check.ok { background: rgba(76, 175, 126, 0.10); border-color: rgba(76, 175, 126, 0.4); }
.doc-check.missing { background: rgba(226, 131, 116, 0.08); border-color: rgba(226, 131, 116, 0.35); }
.doc-link { color: var(--c-accent-hover); font-weight: 700; text-decoration: none; margin-left: 2px; }
.doc-link:hover { color: var(--c-ink); }

/* ── Documentrij (detail): PDF-icoon + bekijken + download ── */
.doc-list { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--border-subtle); }
.doc-row:first-child { border-top: none; }
.doc-icon { position: relative; flex: none; width: 38px; height: 44px; border-radius: 7px;
  background: #fff; border: 1px solid var(--border-default); display: flex; align-items: flex-end; justify-content: center; }
.doc-icon::before { content: ''; position: absolute; top: 0; right: 0;
  border-width: 0 11px 11px 0; border-style: solid; border-color: var(--c-body) #fff; border-radius: 0 7px 0 0; }
.doc-icon .pdf-tag { font-size: 8px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: var(--c-accent-red); border-radius: 3px; padding: 1px 4px; margin-bottom: 7px; }
.doc-icon.missing { border-style: dashed; border-color: rgba(138, 84, 18, .4);
  background: repeating-linear-gradient(135deg, #fff, #fff 5px, rgba(138, 84, 18, .045) 5px, rgba(138, 84, 18, .045) 10px); }
.doc-icon.missing .pdf-tag { background: #c9ccd0; }
.doc-main { flex: 1; min-width: 0; }
.doc-name { font-size: 13.5px; font-weight: 600; }
.doc-status { font-size: 11.5px; display: flex; align-items: center; gap: 6px; margin-top: 2px; color: #2f6b4d; }
.doc-status .sd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.doc-status.missing { color: #8a5412; }
.doc-actions { display: flex; gap: 6px; flex: none; align-items: center; }
.doc-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 9px; padding: 6px 11px; border: 1px solid var(--border-default); background: #fff; color: var(--c-ink); }
.doc-btn svg { width: 14px; height: 14px; }
.doc-btn.view { background: var(--c-sidebar); color: #fff; border-color: var(--c-sidebar); }
.doc-btn.view:hover { background: #14304a; }
.doc-btn.dl { color: #6b6f75; }
.doc-btn.dl:hover { border-color: var(--c-accent-red); color: var(--c-accent-hover); }
.doc-add { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #8a5412; cursor: pointer;
  border: 1px dashed rgba(138, 84, 18, .45); border-radius: 9px; padding: 6px 11px; background: none; }
.doc-add:hover { background: rgba(138, 84, 18, .06); }
.doc-add svg { width: 13px; height: 13px; }
.doc-toggle { display: inline-flex; align-items: center; cursor: pointer; margin-left: 2px; }
.doc-toggle input { width: auto; margin: 0; accent-color: #2f6b4d; cursor: pointer; }

/* ── Mailings-sectie (detail): zelfde rij-grammatica als archief ── */
.mail-filter { margin-bottom: 12px; width: max-content; max-width: 100%; }
.mail-list { display: flex; flex-direction: column; }
.mail-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.mail-row:first-child { border-top: none; }
.mail-row:hover .mail-subject { color: var(--c-accent-hover); }
.mail-row .item-ico { width: 30px; height: 30px; min-width: 30px; border-radius: 50%; }
.mail-row .item-ico svg { width: 15px; height: 15px; }
.mail-body { flex: 1; min-width: 0; }
.mail-subject { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-sub { font-size: 11.5px; display: flex; gap: 8px; align-items: center; margin-top: 1px; color: #6b6f75; }
.mail-sub .dir-label.in { color: var(--c-accent-hover); font-weight: 600; }
.mail-sub .dir-label.out { color: var(--c-sidebar); font-weight: 600; }
.mail-date { font-size: 11.5px; color: #6b6f75; flex: none; margin-left: auto; font-variant-numeric: tabular-nums; }
.mail-empty { text-align: center; color: #6b6f75; font-size: 12.5px; padding: 18px 0; }

/* ── Bevestigingsmodal (huisstijl) ── */
.cb-confirm { background: #fff; border-radius: var(--radius-md); width: min(480px, 100%);
  padding: 28px 28px 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.cb-confirm-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cb-confirm-body { font-size: 13.5px; line-height: 1.55; color: #4a4f55; margin-bottom: 16px; }
.cb-confirm-body strong { color: var(--c-ink); }
.cb-confirm-label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #93989e; margin-bottom: 6px; }
.cb-confirm-reason { width: 100%; resize: vertical; border: 1px solid var(--border-default);
  border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 18px; }
.cb-confirm-reason:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, 0.14); }
.cb-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-danger-solid { background: var(--c-accent-red); color: #fff; border: none; border-radius: 10px;
  font-weight: 600; box-shadow: 0 2px 8px rgba(226, 131, 116, 0.30); transition: background .15s ease; }
.btn-danger-solid:hover { background: var(--c-accent-hover); }

/* ── 2FA-code-invoer (loginscherm) ── */
.twofa-input { text-align: center; font-size: 24px; letter-spacing: 0.5em; font-variant-numeric: tabular-nums; }

/* ── Document-preview modal (Google Drive iframe) ── */
.doc-modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 25, 41, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.doc-modal { background: #fff; border-radius: var(--radius-md); width: min(880px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.doc-modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.doc-modal-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-modal-close { background: none; border: none; font-size: 24px; line-height: 1; color: var(--fg-muted); padding: 2px 6px; cursor: pointer; }
.doc-modal-close:hover { color: var(--c-ink); }
.doc-modal-frame { width: 100%; aspect-ratio: 16 / 11; border: none; background: var(--c-body); flex: 1; }

@media (max-width: 520px) {
  .lid-card-name { font-size: 18px; }
  .doc-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* ══ Status-view ═══════════════════════════════════ */
.status-ok { color: #3d8b64; font-weight: 600; }
.status-warn { color: var(--c-accent-hover); font-weight: 600; }
.log-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.log-table th {
  text-align: left; color: var(--fg-muted); font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 6px 8px; border-bottom: 1px solid var(--border-default);
}
.log-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.log-table tr:hover td { background: rgba(13, 23, 41, 0.02); }
.peach-card { background: var(--c-peach); border: none; }
.peach-card .card-title { color: var(--c-accent-hover); }

/* ══ Responsive ════════════════════════════════════ */
@media (max-width: 800px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; height: auto; position: static; }
  .sb-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .sb-section { display: none; }
  .sb-item { border-left: none; border-radius: 999px; padding: 7px 14px; }
  .sb-item.active { background: rgba(255,255,255,0.12); }
  .sb-footer { display: flex; align-items: center; justify-content: space-between; }
  .content { padding: 18px 16px; }
  .topbar { padding: 10px 16px; }
  .topbar-club { display: none; }
  .item-side { display: none; }
}

/* ── e-Boekhouden koppeling ─────────────────────────── */
.ebh-note { font-size: 13.5px; line-height: 1.5; color: var(--fg); }
.ebh-status { font-size: 14px; }
.import-result .fail, .ebh-v.fail, span.fail { color: #c0564b; }
.ebh-v.ok, span.ok { color: #3d8b64; }
.ebh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 22px; }
.ebh-grid > div { display: flex; flex-direction: column; gap: 2px; }
.ebh-k { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--fg-muted); }
.ebh-v { font-size: 14px; }
.ebh-maprows { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.ebh-maprow { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; background: var(--surface-2, #faf7f3); border: 1px solid var(--border, #ece4d8); border-radius: 10px; }
.ebh-mapname { font-size: 13.5px; display: flex; flex-direction: column; }
.ebh-mapsub { font-size: 11.5px; color: var(--fg-muted); }
.ebh-relsel, .ebh-ledsel { min-width: 200px; max-width: 260px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border, #ddd); background: #fff; font-family: var(--font-body); font-size: 13px; }
.badge-sync { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 1px 7px; border-radius: 999px; background: rgba(76, 175, 126, 0.14); color: #2f7a56; vertical-align: middle; }

/* ── Vergaderingen — Editorial elegance ─────────────────
   Magazine-ritme: royale witruimte, Cormorant-koppen, haarlijnen,
   spaarzame koraal-accenten. Bouwt op de bestaande tokens. */

/* Overline / editorial section-label (rustiger dan card-title) */
.meet-overline {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted);
}

/* ── Hero met eyebrow + fijne telling rechts ── */
.meet-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px;
}
.meet-eyebrow {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-accent-red);
}
.meet-hero .cb-page-h1::after { display: none; }
.meet-hero-stats { display: flex; align-items: center; gap: 20px; padding-bottom: 4px; }
.meet-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.meet-stat-n { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--c-ink); }
.meet-stat-l { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-top: 4px; }
.meet-stat-div { width: 1px; height: 40px; background: var(--border-default); }

/* ── AI-notulist: verfijnde meta-strip, maar met échte security-affordance ── */
.meet-notary {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 229, 224, 0.42), rgba(255, 229, 224, 0.12));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 26px;
}
.meet-notary::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c-accent-red);
}
.meet-notary.is-active::before { background: #4caf7e; }
.meet-notary-head { display: flex; align-items: flex-start; gap: 14px; }
.meet-notary-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--c-accent-hover);
  box-shadow: 0 1px 2px rgba(13, 23, 41, 0.06);
}
.meet-notary.is-active .meet-notary-ico { color: #3d8b64; }
.meet-notary-ico svg { width: 20px; height: 20px; }
.meet-notary-titles { flex: 1; min-width: 0; }
.meet-notary-titles .meet-overline { margin-bottom: 4px; }
.meet-notary-status { font-size: 13.5px; line-height: 1.5; color: var(--c-ink); max-width: 62ch; }
.meet-notary-status.is-on { color: var(--fg-muted); }
.meet-key-chip {
  display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px;
  background: var(--c-peach); color: var(--c-accent-hover);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; vertical-align: middle;
}
.meet-key-model { font-size: 12px; color: var(--fg-muted); margin-left: 4px; }
.meet-notary-action { flex-shrink: 0; align-self: center; }

.meet-key-form { margin: 16px 0 4px; padding-left: 54px; }
.meet-key-row { display: flex; gap: 10px; align-items: stretch; max-width: 520px; }
.meet-key-row .meet-input { flex: 1; }

/* Security-noot: prominent, niet ondergesneeuwd */
.meet-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border-subtle); border-radius: 12px;
}
.meet-note-mark { flex-shrink: 0; color: var(--c-accent-hover); margin-top: 1px; }
.meet-note-mark svg { width: 17px; height: 17px; }
.meet-note p { font-size: 12.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.meet-note strong { color: var(--c-ink); font-weight: 600; }
.meet-notary .import-result { padding-left: 54px; }

/* ── Verfijnde box-inputs (behouden affordance, editorial via type + ruimte) ── */
.meet-field-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px;
}
.meet-input {
  width: 100%; padding: 11px 14px;
  background: #fff; border: 1px solid var(--border-default);
  border-radius: 10px;
  font-family: var(--font-sans); font-size: 14px; color: var(--c-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.meet-input::placeholder { color: #a8acb1; }
.meet-input:focus {
  outline: none; border-color: var(--c-accent-red);
  box-shadow: 0 0 0 3px rgba(226, 131, 116, 0.16);
}

/* ── Nieuwe vergadering: gelabelde compositie ── */
.meet-panel { margin-bottom: 34px; }
.meet-panel-head { margin-bottom: 14px; }
.meet-form {
  display: grid; grid-template-columns: 2.4fr 1fr 2.4fr auto;
  gap: 16px; align-items: end;
}
.meet-field-submit { display: flex; }
.meet-btn-inline { width: auto; padding: 11px 22px; white-space: nowrap; }
.meet-btn-create { width: auto; padding: 11px 24px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.meet-btn-create span { font-size: 16px; line-height: 1; }

/* ── Agenda-overzicht: luchtige items, haarlijnen, kalenderblok ── */
.meet-agenda-wrap { }
.meet-agenda-topline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}
.meet-agenda-count { font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.meet-agenda { list-style: none; margin: 0; padding: 0; }
.meet-agenda > li { position: relative; }
.meet-agenda > li + li { border-top: 1px solid var(--border-subtle); }

.meet-item {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  padding: 18px 16px 18px 20px;
  text-decoration: none; color: inherit;
  border-radius: 12px;
  transition: background 0.16s ease, transform 0.14s ease;
}
.meet-item::before {          /* signature koraal-boeklint, verschijnt bij hover */
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c-accent-red);
  transform: scaleY(0); transform-origin: center;
  transition: transform 0.18s ease;
}
.meet-item:hover {
  background: linear-gradient(90deg, rgba(255, 229, 224, 0.45), rgba(255, 229, 224, 0.10) 72%);
}
.meet-item:hover::before { transform: scaleY(1); }

/* Kalender-datumblok (dag groot Cormorant, maand klein uppercase) */
.meet-cal {
  flex-shrink: 0; width: 58px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 6px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(13, 23, 41, 0.04);
}
.meet-cal-day { font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1; color: var(--c-ink); }
.meet-cal-mon { font-size: 10px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--c-accent-hover); margin-top: 3px; }
.meet-cal-yr { font-size: 10px; color: var(--fg-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.meet-cal-dash { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--fg-muted); }
.meet-cal-empty { background: repeating-linear-gradient(135deg, #fbfbfa, #fbfbfa 5px, #f4f2ef 5px, #f4f2ef 10px); }
.meet-cal-empty .meet-cal-mon { color: var(--fg-muted); }

.meet-item-body { flex: 1; min-width: 0; }
.meet-item-title {
  display: block; font-family: var(--font-display);
  font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--c-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meet-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.meet-item-date { font-size: 12.5px; color: var(--fg-muted); }
.meet-flag {
  position: relative; padding-left: 14px;
  font-size: 12px; font-weight: 500; color: #3d8b64;
}
.meet-flag::before {
  content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #4caf7e;
}

.meet-item-status { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.meet-chevron { display: inline-flex; color: #c4c7cb; transition: transform 0.16s ease, color 0.16s ease; }
.meet-chevron svg { width: 18px; height: 18px; }
.meet-item:hover .meet-chevron { transform: translateX(3px); color: var(--c-accent-red); }

/* Verzorgde lege staat */
.meet-empty { padding: 48px 20px; }
.meet-empty-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-peach); color: var(--c-accent-hover);
}
.meet-empty-ico svg { width: 24px; height: 24px; }
.meet-empty p { margin-top: 6px; font-size: 13.5px; }

.meet-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ms-plan { background: #eef0f2; color: #5a6472; }
.ms-trans { background: #eaf2fb; color: #2f6bb0; }
.ms-draft { background: #fdf1e7; color: #c07a3a; }
.ms-done { background: rgba(76,175,126,.16); color: #2f7a56; }
.meet-transcript { background: #f6f2ec; border: 1px solid var(--border,#e6ddd0); border-radius: 8px; padding: 12px;
  font-size: 12px; line-height: 1.5; white-space: pre-wrap; max-height: 340px; overflow-y: auto; margin-top: 8px; }
.meet-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--fg-muted); margin: 14px 0 5px; }
.meet-hint { text-transform: none; font-weight: 400; letter-spacing: 0; }
#verslag-editor input[type=text], #verslag-editor textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border,#ddd);
  border-radius: 8px; font-family: var(--font-body); font-size: 13.5px; }
.actie-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.actie-row input[type=text] { flex: 1; }
.actie-row select { min-width: 150px; padding: 8px 10px; border: 1px solid var(--border,#ddd); border-radius: 8px; font-family: var(--font-body); font-size: 13px; }
@media (max-width: 720px) {
  .actie-row { flex-wrap: wrap; }
  .meet-hero { gap: 14px; }
  .meet-hero-stats { gap: 16px; }
  .meet-stat-n { font-size: 28px; }
  .meet-notary { padding: 18px; }
  .meet-notary-head { flex-wrap: wrap; }
  .meet-notary-action { width: 100%; margin-top: 6px; }
  .meet-key-form { padding-left: 0; }
  .meet-key-row { flex-direction: column; max-width: none; }
  .meet-key-row .meet-btn-inline { width: 100%; }
  .meet-notary .import-result { padding-left: 0; }
  .meet-form { grid-template-columns: 1fr; gap: 12px; }
  .meet-field-submit { margin-top: 2px; }
  .meet-btn-create { width: 100%; justify-content: center; }
  .meet-item { gap: 14px; padding: 16px 8px 16px 14px; }
  .meet-cal { width: 50px; padding: 7px 4px; }
  .meet-cal-day { font-size: 23px; }
  .meet-item-title { font-size: 18px; white-space: normal; }
  .meet-item-status { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
}

/* ── Vergadering-detail (huisstijl) ─────────────────── */
.mdet-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 4px 0 22px; }
.mdet-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.2; margin: 4px 0 8px; }
.mdet-title .meet-badge { vertical-align: middle; margin-left: 8px; }
.mdet-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--fg-muted); font-size: 13px; }
.mdet-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.mdet-meta-item svg { width: 14px; height: 14px; }
.mdet-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mdet-rec-btn { white-space: nowrap; }
.mdet-lead { color: var(--fg-muted); font-size: 13.5px; margin-bottom: 14px; max-width: 640px; }
.mdet-hint { font-size: 12.5px; color: var(--fg-muted); }
.mdet-btnrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.mdet-chip-ok { display: inline-flex; align-items: center; gap: 8px; background: #E4F1E9; color: #2f6b4d;
  font-size: 13px; font-weight: 600; border-radius: 999px; padding: 7px 14px; }
.mdet-chip-ok .mdet-chip-sub { font-weight: 400; color: #4f7a63; font-size: 12px; }
.mdet-details { margin-top: 12px; }
.mdet-details summary { cursor: pointer; font-size: 13px; color: var(--fg-muted); }
.mdet-details summary:hover { color: var(--c-accent-hover); }
.mdet-file { display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1.5px dashed var(--border-default); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  font-size: 13.5px; transition: border-color .15s ease, background .15s ease; }
.mdet-file:hover { border-color: var(--c-accent-red); background: rgba(226, 131, 116, 0.04); }
.mdet-file input[type=file] { display: none; }
.mdet-file-ico { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%; background: var(--c-peach); color: var(--c-accent-hover); }
.mdet-file-ico svg { width: 17px; height: 17px; }
.mdet-recrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mdet-recgrid { display: flex; gap: 10px; align-items: stretch; max-width: 640px; }
.mdet-recgrid .meet-input { flex: 1; }
.mdet-recgrid .cb-btn-primary { width: auto; white-space: nowrap; }
#verslag-editor .meet-field-label { margin-top: 14px; }
#verslag-editor .meet-input:disabled { background: #f7f5f2; color: #6b6f75; }

/* ── Laatste verslagen (overzicht) ──────────────────── */
.verslag-wrap { margin-top: 26px; }
.verslag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.verslag-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 18px 20px 16px 22px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.verslag-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-accent-red); }
.verslag-card:hover { transform: translateY(-2px); border-color: rgba(226, 131, 116, 0.5);
  box-shadow: 0 6px 14px rgba(13, 23, 41, 0.07), 0 18px 40px rgba(13, 23, 41, 0.09); }
.verslag-date { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-hover); margin-bottom: 6px; }
.verslag-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.verslag-title a:hover { color: var(--c-accent-hover); }
.verslag-snippet { font-size: 13px; line-height: 1.55; color: #5f636a; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.verslag-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.verslag-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 11px; }
.verslag-link { font-size: 13px; font-weight: 600; color: var(--c-accent-hover); display: inline-flex; align-items: center; gap: 4px; }
.verslag-link:hover { text-decoration: underline; }
.verslag-link svg { width: 13px; height: 13px; }
.verslag-link-rec { color: var(--c-ink); }
.verslag-link-rec:hover { color: var(--c-accent-hover); }
@media (max-width: 720px) { .mdet-hero { align-items: flex-start; flex-direction: column; } .mdet-recgrid { flex-direction: column; } }

/* ── Documenten-pagina ──────────────────────────────── */
/* Document → PDF upload (knop + sleepvenster, lokaal in de database) */
.doc-upload { margin-bottom: 22px; }
.doc-drop { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 2px dashed var(--border-default); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.doc-drop.drag { border-color: var(--c-accent-red); background: #fff6f4; }
.doc-drop-ico { width: 44px; height: 44px; min-width: 44px; border-radius: 11px; background: var(--c-peach); color: var(--c-accent-hover); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.doc-drop-ico svg { width: 22px; height: 22px; }
.doc-drop-main { flex: 1; min-width: 0; }
.doc-drop-title { font-size: 14.5px; font-weight: 600; color: var(--c-ink); }
.doc-drop-browse { color: var(--c-accent-hover); text-decoration: underline; cursor: pointer; }
.doc-drop-browse input { display: none; }
.doc-drop-hint { font-size: 12px; color: var(--fg-muted); margin-top: 4px; line-height: 1.45; }
.doc-upload-status { min-height: 20px; margin-top: 8px; font-size: 13px; }
.doc-up-busy { color: var(--fg-muted); display: inline-flex; align-items: center; gap: 8px; }
.doc-up-ok { color: #3d8b64; font-weight: 500; }
.doc-up-err { color: var(--c-accent-hover); font-weight: 500; }

.odoc-wrap { background: linear-gradient(135deg, #fff 62%, #FFF3F0 100%); border: 1px solid rgba(226, 131, 116, 0.28);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px 22px; }
.odoc-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.odoc-filebtn { cursor: pointer; }
.odoc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 14px; }
.odoc-card { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 13px; padding: 13px 14px; transition: border-color .14s ease, box-shadow .14s ease; }
.odoc-card:hover { border-color: rgba(226, 131, 116, 0.5); box-shadow: 0 4px 12px rgba(13, 23, 41, 0.06); }
.odoc-ico { flex-shrink: 0; }
.odoc-body { flex: 1; min-width: 0; }
.odoc-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odoc-sub { font-size: 11.5px; color: var(--fg-muted); margin-top: 2px; }
.odoc-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.odoc-unpin { background: none; border: none; color: var(--fg-muted); font-size: 17px; padding: 2px 6px; border-radius: 6px; opacity: 0; transition: opacity .14s ease; }
.odoc-card:hover .odoc-unpin { opacity: .7; }
.odoc-unpin:hover { opacity: 1 !important; color: var(--c-accent-hover); background: rgba(226,131,116,.1); }
.odoc-empty { font-size: 13px; color: var(--fg-muted); padding: 14px 2px 4px; }

.dcard-search { position: relative; margin-bottom: 14px; max-width: 460px; }
.dcard-search .search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); display: flex; }
.dcard-search .search-ico svg { width: 15px; height: 15px; }
.dcard-search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border-default);
  border-radius: 999px; background: #fff; font-size: 13.5px; }
.dcard-search input:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226,131,116,.12); }
.dcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dcard { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 15px 16px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.dcard:hover, .dcard:focus-visible { transform: translateY(-2px); border-color: rgba(226, 131, 116, 0.5);
  box-shadow: 0 6px 14px rgba(13, 23, 41, 0.07), 0 18px 40px rgba(13, 23, 41, 0.09); outline: none; }
.dcard-ico { flex-shrink: 0; }
.dcard-body { flex: 1; min-width: 0; }
.dcard-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard-meta { font-size: 12px; color: var(--fg-muted); margin-top: 3px; }
.dcard-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.dcard-eye { color: var(--fg-muted); opacity: 0; transition: opacity .14s ease; flex-shrink: 0; }
.dcard-eye svg { width: 17px; height: 17px; }
.dcard:hover .dcard-eye { opacity: .8; color: var(--c-accent-hover); }

/* viewer-uitbreidingen */
.ftype-mini { display: inline-flex; margin-right: 2px; }
.doc-modal-imgwrap { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; background: #f0ede8; border-radius: 0 0 14px 14px; }
.doc-modal-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.doc-modal-fallback { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; text-align: center; }
.doc-modal-fbtitle { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.doc-modal-fbsub { font-size: 12.5px; color: var(--fg-muted); margin-bottom: 12px; }
@media (max-width: 720px) { .odoc-grid, .dcard-grid { grid-template-columns: 1fr; } }

/* ── Documenten: soort-structuur (chips + groepen) ──── */
.doc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border-default);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 500; color: var(--c-ink);
  transition: border-color .14s ease, background .14s ease, color .14s ease; }
.doc-chip span { font-size: 11px; font-weight: 700; color: var(--fg-muted); background: rgba(13,23,41,.06);
  border-radius: 999px; padding: 1px 7px; transition: color .14s ease, background .14s ease; }
.doc-chip:hover { border-color: var(--c-accent-red); color: var(--c-accent-hover); }
.doc-chip.is-active { background: var(--c-accent-red); border-color: var(--c-accent-red); color: #fff; box-shadow: 0 2px 8px rgba(226,131,116,.3); }
.doc-chip.is-active span { background: rgba(255,255,255,.24); color: #fff; }
.doc-group { margin-bottom: 26px; }
.doc-group-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px;
  font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.doc-group-n { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--c-accent-hover);
  background: var(--c-peach); border-radius: 999px; padding: 2px 10px; }

/* ── Documenten: nummering, versies, dedup-toolbar ──── */
.doc-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.doc-toolbar .dcard-search { margin-bottom: 0; }
.doc-vertoggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--c-accent-hover); border: 1px solid rgba(226,131,116,.35); border-radius: 999px; padding: 8px 15px;
  background: rgba(226,131,116,.06); transition: background .14s ease, border-color .14s ease; white-space: nowrap; }
.doc-vertoggle:hover { background: rgba(226,131,116,.13); border-color: var(--c-accent-red); }
.doc-vertoggle.is-on { background: var(--c-sidebar); color: #fff; border-color: var(--c-sidebar); }
.dcard-titlerow { display: flex; align-items: baseline; gap: 8px; }
.dcard-ref { font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--fg-muted); background: rgba(13,23,41,.05); border-radius: 5px; padding: 1px 6px; flex-shrink: 0; white-space: nowrap; }
.dcard-older { opacity: .62; }
.dcard-older:hover { opacity: 1; }
.badge.b-ver { background: rgba(74,52,112,.10); color: #4A3470; }
.badge.b-similar { background: #FCEFD8; color: #9a6a1a; }

/* ── AI-notulist: discrete strip wanneer geconfigureerd ──── */
.meet-ai-slim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fg-muted); margin: 2px 0 20px; padding: 7px 4px; }
.meet-ai-dot { color: var(--c-accent-red); }
.meet-ai-txt { font-weight: 600; color: var(--c-ink); }
.meet-ai-model { font-weight: 400; color: var(--fg-muted); }
.meet-ai-manage { background: none; border: none; color: var(--c-accent-hover); font-size: 12px;
  font-weight: 600; text-decoration: underline; padding: 2px 4px; }
.meet-ai-manage:hover { color: var(--c-accent-red); }
.meet-ai-panel { flex-basis: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--border-subtle);
  border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.meet-ai-panel-note { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); }

/* ── Ronde Tafels ───────────────────────────────────── */
.lid-avatar.sm { width: 30px; height: 30px; min-width: 30px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rt-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 20px 20px 18px; text-decoration: none; color: inherit; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.rt-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--rt-fg, var(--c-accent-red)); }
.rt-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rt-fg, var(--c-accent-red)) 45%, transparent);
  box-shadow: 0 8px 18px rgba(13,23,41,.08), 0 22px 46px rgba(13,23,41,.10); }
.rt-card-top { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.rt-emblem { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--rt-bg, var(--c-peach)); color: var(--rt-fg, var(--c-accent-hover));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rt-fg, var(--c-accent-hover)) 22%, transparent); }
.rt-emblem svg { width: 40px; height: 40px; }
/* groot, zacht embleem-watermerk rechtsonder op de kaart */
.rt-card-mark { position: absolute; right: -20px; bottom: -26px; width: 160px; height: 160px;
  color: var(--rt-fg, var(--c-accent-hover)); opacity: .07; pointer-events: none; transition: opacity .14s ease, transform .14s ease; }
.rt-card-mark svg { width: 100%; height: 100%; }
.rt-card:hover .rt-card-mark { opacity: .11; transform: rotate(-3deg); }
.rt-code { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--rt-fg, var(--fg-muted)); background: var(--rt-bg, rgba(13,23,41,.05)); border-radius: 999px; padding: 3px 10px; }
.rt-card-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.rt-card-sub { font-size: 12.5px; color: var(--fg-muted); margin-top: -4px; }
.rt-avatars { display: flex; align-items: center; gap: -4px; margin: 6px 0 2px; }
.rt-avatars .lid-avatar { margin-right: -8px; }
.rt-more { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.rt-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--fg-muted); margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.rt-stats b { color: var(--c-ink); font-family: var(--font-display); font-size: 15px; }
.rt-open { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--rt-fg, var(--c-accent-hover)); }
.rt-open svg { width: 14px; height: 14px; }

.rt-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; margin: 4px 0 20px; padding: 26px 28px;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--rt-bg, #fff) 60%, #fff) 0%, transparent 62%),
    linear-gradient(120deg, var(--rt-bg, #fff) 0%, #fff 78%);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--rt-fg, var(--c-accent-red)); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.rt-hero-watermerk { position: absolute; right: -26px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 205px; height: 205px;
  color: var(--rt-fg, #000); opacity: .07; pointer-events: none; }
.rt-hero-watermerk svg { width: 100%; height: 100%; }
.rt-hero-emblem { width: 68px; height: 68px; min-width: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  background: #fff; color: var(--rt-fg, var(--c-accent-hover));
  border: 1px solid color-mix(in srgb, var(--rt-fg, #000) 30%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rt-fg, #000) 7%, transparent), 0 2px 8px rgba(13, 23, 41, .08); }
.rt-hero-emblem svg { width: 46px; height: 46px; }
.rt-hero-body { position: relative; z-index: 1; min-width: 0; }
.rt-hero .meet-overline { color: color-mix(in srgb, var(--rt-fg, #666) 72%, #666); }
.rt-hero-name { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.08; }
.rt-hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; }
.rt-stat { display: flex; flex-direction: column; gap: 2px; position: relative; padding-right: 26px; }
.rt-stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px;
  background: color-mix(in srgb, var(--rt-fg, #000) 18%, transparent); }
.rt-stat-l { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--fg-muted); }
.rt-stat b { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--c-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .rt-hero { padding: 20px; gap: 14px; }
  .rt-hero-watermerk { display: none; }
  .rt-hero-name { font-size: 26px; }
  .rt-hero-stats { gap: 8px 18px; }
  .rt-stat { padding-right: 18px; }
  .rt-stat b { font-size: 17px; }
}
.rt-members { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-member { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
  background: var(--surface-2, #faf7f3); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 13px; transition: border-color .14s; }
.rt-member:hover { border-color: var(--rt-fg, var(--c-accent-red)); }
.rt-member-graad { display: block; font-size: 10.5px; color: var(--fg-muted); }
/* Legende boven de ledenlijst: groen = nieuw lid, rood = uittredend lid */
.rt-legend { display: flex; gap: 16px; margin: -2px 0 10px; font-size: 12px; color: var(--fg-muted); }
.rt-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.rt-legend-swatch { display: inline-block; width: 16px; height: 11px; border-radius: 5px; border: 1px solid; }
.rt-legend-nieuw { border-color: #2f7f4d; background: rgba(47,127,77,.08); }
.rt-legend-uit { border-color: #c0392b; background: rgba(192,57,43,.08); }
/* Uittredend = rode kader; nieuw lid (≤30 dagen) = groene kader — dun (1px), zonder gloed */
.rt-member.rt-member-uit { border-color: #c0392b; }
.rt-member.rt-member-uit:hover { border-color: #a5311f; }
.rt-member.rt-member-nieuw { border-color: #2f7f4d; }
.rt-member.rt-member-nieuw:hover { border-color: #276b41; }
.rt-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-source { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
  border: 1px solid var(--border-default); border-radius: 10px; padding: 9px 13px; font-size: 13px; font-weight: 500; }
.rt-source:hover { border-color: var(--c-accent-red); color: var(--c-accent-hover); }
.rt-source svg { width: 16px; height: 16px; color: var(--fg-muted); }
.rt-source-ext { color: var(--fg-muted); font-size: 12px; }

.rte-add { white-space: nowrap; }
.rte-form { margin: 6px 0 14px; padding: 14px; border: 1px dashed var(--border-default); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.rte-form-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.rte-form input, .rte-form textarea { padding: 8px 11px; border: 1px solid var(--border-default); border-radius: 8px; font-family: var(--font-body); font-size: 13px; flex: 1; min-width: 120px; }
.rte-form textarea { width: 100%; }
.rte-form-foot { display: flex; align-items: center; gap: 10px; }
.rte-list { display: flex; flex-direction: column; }
.rte-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--border-subtle); }
.rte-row:last-child { border-bottom: none; }
.rte-del { margin-left: auto; background: none; border: none; color: var(--fg-muted); font-size: 16px; padding: 0 6px; border-radius: 6px; opacity: 0; }
.rte-row:hover .rte-del { opacity: .6; }
.rte-del:hover { opacity: 1 !important; color: var(--c-accent-hover); }
.rte-date { font-size: 11.5px; font-weight: 600; color: var(--fg-muted); min-width: 74px; padding-top: 2px; white-space: nowrap; }
.rte-main { flex: 1; min-width: 0; }
.rte-title { font-size: 14px; font-weight: 600; }
.rte-sub { font-size: 12.5px; color: #5f636a; margin-top: 1px; }
.rte-detail { font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; white-space: pre-wrap; }
.rte-link { font-size: 12px; color: var(--c-accent-hover); font-weight: 600; }
.rte-amt { font-family: var(--font-display); font-size: 16px; font-weight: 700; white-space: nowrap; padding-top: 1px; }
.rte-empty { font-size: 13px; color: var(--fg-muted); padding: 4px 2px; }
.rt-mighty { display: flex; flex-direction: column; gap: 6px; }
.rt-mighty-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--border-subtle);
  border-radius: 9px; text-decoration: none; color: inherit; font-size: 13.5px; }
.rt-mighty-item:hover { border-color: var(--c-accent-red); }
.rt-mighty-item span { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
@media (max-width: 720px) { .rt-grid { grid-template-columns: 1fr; } }

/* ─── Ronde Tafel — live portefeuille widget (Camelot Asset Tracker) ─── */
.rt-pf-card { border-left: 3px solid #b8956a; }
.rt-pf-open {
  font-size: 12px;
  color: #5d4a2d;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #d4bb92;
  border-radius: 999px;
  background: #fdf9f2;
  transition: background 0.15s;
}
.rt-pf-open:hover { background: #f5e9d0; }
.rt-pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0 16px;
}
@media (max-width: 720px) { .rt-pf-grid { grid-template-columns: repeat(2, 1fr); } }
.rt-pf-kpi {
  background: #fdf9f2;
  border: 1px solid #f0e2c6;
  border-radius: 10px;
  padding: 10px 14px;
}
.rt-pf-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7a5a;
  margin-bottom: 4px;
}
.rt-pf-kpi-value {
  font-size: 18px;
  font-weight: 600;
  color: #2b2317;
  font-variant-numeric: tabular-nums;
}
.rt-pf-irr-up   { color: #2f7f4d; }
.rt-pf-irr-down { color: #b0433a; }
.rt-pf-classes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rt-pf-class {
  display: grid;
  grid-template-columns: 110px 1fr 100px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.rt-pf-class-name {
  text-transform: capitalize;
  color: #5d4a2d;
}
.rt-pf-class-bar {
  height: 6px;
  background: #f0e2c6;
  border-radius: 999px;
  overflow: hidden;
}
.rt-pf-class-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d4bb92, #b8956a);
  border-radius: 999px;
}
.rt-pf-class-val {
  text-align: right;
  color: #2b2317;
  font-variant-numeric: tabular-nums;
}
.rt-pf-foot {
  margin-top: 12px;
  font-size: 11px;
  color: #8a7a5a;
  text-align: right;
}

/* ─── Ronde Tafel — Vermogen "1 zicht" (Kubera-model, alle activaklassen) ─── */
.rt-vm-card { border-left: 3px solid #5d4a2d; }
.rt-vm-nw-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #8a7a5a; margin-bottom: 3px; }
.rt-vm-nw { font-size: 30px; font-weight: 700; color: #2b2317; font-family: var(--font-display); font-variant-numeric: tabular-nums; line-height: 1; }
.rt-vm-head-right { display: flex; align-items: center; gap: 14px; }
.rt-vm-besch { text-align: right; }
.rt-vm-besch-l { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7a5a; }
.rt-vm-besch-v { font-size: 16px; font-weight: 600; color: #5d4a2d; font-variant-numeric: tabular-nums; }
.rt-vm-cat { margin-top: 14px; }
.rt-vm-cat-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px; border-bottom: 2px solid #f0e2c6; }
.rt-vm-cat-name { font-size: 13px; font-weight: 700; color: #5d4a2d; text-transform: uppercase; letter-spacing: 0.04em; }
.rt-vm-cat-tot { font-size: 14px; font-weight: 700; color: #2b2317; font-variant-numeric: tabular-nums; }
.rt-vm-row { display: grid; grid-template-columns: 1fr 120px 70px 110px auto; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.rt-vm-row:last-child { border-bottom: none; }
.rt-vm-row:hover { background: #fdf9f2; }
.rt-vm-r-naam { color: #2b2317; font-weight: 500; }
.rt-vm-r-note { display: block; font-size: 11px; color: #a2926f; font-weight: 400; margin-top: 1px; }
.rt-vm-auto { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: #2f7f4d; background: rgba(76,175,126,0.14); padding: 1px 6px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.rt-vm-r-in { text-align: right; color: #8a7a5a; font-variant-numeric: tabular-nums; }
.rt-vm-r-irr { text-align: right; }
.rt-vm-irr { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-vm-irr.up { color: #2f7f4d; } .rt-vm-irr.down { color: #b0433a; }
.rt-vm-r-val { text-align: right; font-weight: 600; color: #2b2317; font-variant-numeric: tabular-nums; }
.rt-vm-r-act { display: flex; gap: 4px; justify-content: flex-end; min-width: 40px; }
.rt-vm-edit, .rt-vm-del { border: none; background: none; cursor: pointer; font-size: 14px; line-height: 1; opacity: .35; padding: 2px; }
.rt-vm-del { color: #c0392b; font-size: 17px; }
.rt-vm-row:hover .rt-vm-edit, .rt-vm-row:hover .rt-vm-del { opacity: .7; }
.rt-vm-addform { margin: 8px 0 4px; padding: 14px; border: 1px dashed var(--border-default); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; background: #fdfbf7; }
.rt-vm-add-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-vm-addform select, .rt-vm-addform input { padding: 8px 11px; border: 1px solid var(--border-default); border-radius: 8px; font-family: var(--font-body); font-size: 13px; flex: 1; min-width: 130px; }
@media (max-width: 620px) { .rt-vm-row { grid-template-columns: 1fr 90px auto; } .rt-vm-r-in, .rt-vm-r-irr { display: none; } .rt-vm-nw { font-size: 24px; } }

/* ─── Ronde Tafel — Portefeuille (Vermogen + Beleggingen geïntegreerd) ─── */
.rt-bl-card { border-left: 3px solid #5d4a2d; }
.rt-bl-nwhero { margin: 8px 0 14px; }
.rt-bl-actions { display: flex; gap: 8px; }
.rt-bl-warn { background: #fcf3f2; border: 1px solid #efd4d1; color: #96413a; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin: 0 0 14px; }
.rt-bl-na { color: #b0433a; font-weight: 400; font-size: 12px; }
.up { color: #2f7f4d; }
.rt-bl-table .down, .rt-bl-kpi-v.down, .rt-bl-per-v.down { color: #b0433a; }
.rt-bl-kpi-v.up, .rt-bl-per-v.up, .rt-bl-table td.up { color: #2f7f4d; }

/* KPI-rij */
.rt-bl-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 4px 0 18px; }
@media (max-width: 1000px) { .rt-bl-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rt-bl-kpis { grid-template-columns: repeat(2, 1fr); } }
.rt-bl-kpi { background: #fdf9f2; border: 1px solid #f0e2c6; border-radius: 12px; padding: 12px 15px; }
.rt-bl-kpi-l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: #8a7a5a; margin-bottom: 5px; }
.rt-bl-kpi-v { font-size: 20px; font-weight: 700; color: #2b2317; font-variant-numeric: tabular-nums; font-family: var(--font-display); }

/* visualisatie: grafiek + allocatie */
.rt-bl-viz { display: grid; grid-template-columns: 1fr 210px; gap: 20px; margin: 4px 0 20px; align-items: start; }
@media (max-width: 820px) { .rt-bl-viz { grid-template-columns: 1fr; } }
.rt-bl-range { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.rt-bl-range button { border: 1px solid var(--border-default); background: #fff; color: #6b5c3e; border-radius: 999px; padding: 4px 12px; font-size: 11.5px; cursor: pointer; font-family: var(--font-body); transition: all .15s; }
.rt-bl-range button:hover { border-color: #d4bb92; }
.rt-bl-range button.actief { background: #9c7b46; color: #fff; border-color: #9c7b46; }
.rt-bl-chart-canvas { height: 240px; position: relative; }
.rt-bl-chart-svg { width: 100%; height: 240px; display: block; }
.rt-bl-grid { stroke: rgba(13,23,41,0.06); stroke-width: 1; }
.rt-bl-axis { fill: #a2926f; font-size: 9px; font-family: var(--font-body); }
.rt-bl-chart-loading, .rt-bl-chart-empty { display: flex; align-items: center; justify-content: center; height: 240px; color: #a2926f; font-size: 13px; }
.rt-bl-periodes { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.rt-bl-per { display: flex; flex-direction: column; gap: 2px; }
.rt-bl-per-l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #a2926f; }
.rt-bl-per-v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-bl-alloc { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rt-bl-donut-svg { width: 150px; height: 150px; }
.rt-bl-donut-n { text-anchor: middle; fill: #2b2317; font-size: 24px; font-weight: 700; font-family: var(--font-display); }
.rt-bl-donut-l { text-anchor: middle; fill: #a2926f; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.rt-bl-legende { display: flex; flex-direction: column; gap: 4px; width: 100%; max-height: 150px; overflow-y: auto; }
.rt-bl-leg { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.rt-bl-leg-c { color: #5d4a2d; font-weight: 600; }
.rt-bl-leg-p { margin-left: auto; color: #8a7a5a; font-variant-numeric: tabular-nums; }
.rt-bl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* holdings- + transactietabel */
.rt-bl-tablewrap { overflow-x: auto; margin-bottom: 4px; }
.rt-bl-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.rt-bl-table thead th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #8a7a5a; font-weight: 600; text-align: left; padding: 0 10px 8px; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.rt-bl-table th.num, .rt-bl-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rt-bl-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); color: #2b2317; }
.rt-bl-table tbody tr:last-child td { border-bottom: none; }
.rt-bl-table tbody tr:hover td { background: #fdf9f2; }
.rt-bl-table td.strong { font-weight: 600; }
.rt-bl-c-coin { font-weight: 600; color: #5d4a2d; white-space: nowrap; }
.rt-bl-c-coin .rt-bl-dot { margin-right: 7px; vertical-align: middle; }
.rt-bl-txsection { margin-top: 18px; border-top: 1px solid var(--border-subtle); padding-top: 14px; }
.rt-bl-subttl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7a5a; margin-bottom: 10px; }
.rt-bl-txfilter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rt-bl-txfilter select, .rt-bl-txfilter input { padding: 6px 10px; border: 1px solid var(--border-default); border-radius: 8px; font-family: var(--font-body); font-size: 12.5px; background: #fff; }
.rt-bl-txfilter .rt-bl-f-zoek { flex: 1; min-width: 160px; }
.rt-bl-f-count { font-size: 12px; color: #a2926f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-bl-txtable td { padding: 7px 10px; }
.rt-bl-tx-date { color: #8a7a5a; font-size: 12px; white-space: nowrap; }
.rt-bl-tx-what { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-bl-tx-note { color: #6b5c3e; font-size: 12.5px; }
.rt-bl-tx-door { color: #a2926f; }
.rt-bl-tx-act { text-align: right; }
.rt-bl-tx-del { border: none; background: none; cursor: pointer; font-size: 17px; line-height: 1; color: #c0392b; opacity: .3; }
.rt-bl-table tr:hover .rt-bl-tx-del { opacity: .7; }

/* key- + invoerformulieren */
.rt-bl-keybox { background: #fdf9f2; border: 1px dashed #d4bb92; border-radius: 10px; padding: 14px; margin: 12px 0; }
.rt-bl-keymsg { font-size: 13px; color: #6b5c3e; margin-bottom: 10px; }
.rt-bl-keyform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt-bl-keyform input { flex: 1; min-width: 200px; padding: 8px 11px; border: 1px solid var(--border-default); border-radius: 8px; font-size: 13px; }
.rt-bl-addform, .rt-bl-importform { margin: 6px 0 16px; padding: 15px; border: 1px dashed var(--border-default); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; background: #fdfbf7; }
.rt-bl-add-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-bl-addform select, .rt-bl-addform input, .rt-bl-importform input { padding: 8px 11px; border: 1px solid var(--border-default); border-radius: 8px; font-family: var(--font-body); font-size: 13px; flex: 1; min-width: 120px; }
.rt-bl-import-head { font-size: 13px; font-weight: 600; color: #5d4a2d; }
.rt-bl-import-hint { font-weight: 400; color: #a2926f; font-size: 12px; margin-left: 6px; }
.rt-bl-import-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Documentenregister (Hubtex-model, Camelot-huisstijl) ── */
.reg-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line, #e5ded5); border-radius: 14px; box-shadow: 0 1px 4px rgba(10,25,41,.05); }
.reg-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.reg-table thead th {
  background: var(--navy, #0a1929); color: #fff; text-align: left; font-weight: 600;
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 14px; position: sticky; top: 0;
}
.reg-table thead th:first-child { border-top-left-radius: 13px; }
.reg-table thead th:last-child { border-top-right-radius: 13px; }
.reg-row { border-bottom: 1px solid #efe9e0; cursor: pointer; transition: background .12s; }
.reg-row:hover, .reg-row:focus-visible { background: #fbf7f2; outline: none; }
.reg-row:last-child { border-bottom: none; }
.reg-table td { padding: 10px 14px; vertical-align: middle; }
.reg-nr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--coral, #e28374); font-weight: 700; white-space: nowrap; }
.reg-doc { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.reg-ico { flex: none; display: inline-flex; }
.reg-title { font-weight: 550; color: #1d2733; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.reg-type { font-size: 12px; color: #5a6472; white-space: nowrap; }
.reg-date { font-size: 12px; color: #8a919b; white-space: nowrap; }
.reg-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; }
.reg-st-actief  { background: #e7f3ec; color: #1e7a46; }
.reg-st-ontwerp { background: #e4ecf7; color: #1e5aa8; }
.reg-st-archief { background: #f7e0dd; color: #b23a2e; }
.reg-status-btn { cursor: pointer; border: 1px solid transparent; transition: border-color .12s, box-shadow .12s; }
.reg-status-btn:hover { border-color: rgba(10,25,41,.18); box-shadow: 0 1px 3px rgba(10,25,41,.10); }
.reg-status-btn::after { content: '▾'; font-size: 8px; margin-left: 5px; opacity: .55; }
.reg-status-menu {
  position: absolute; z-index: 2200; background: #fff; border: 1px solid #e5ded5;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(10,25,41,.16); padding: 5px;
  display: flex; flex-direction: column; gap: 3px; min-width: 132px;
}
.reg-status-opt {
  border: none; background: transparent; text-align: left; cursor: pointer;
  padding: 7px 10px; border-radius: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; display: flex; align-items: center; gap: 8px;
}
.reg-status-opt::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: currentColor; flex: none; }
.reg-status-opt:hover { background: #fbf7f2; }
.reg-status-opt.is-current { outline: 1.5px solid currentColor; outline-offset: -1.5px; }
.reg-status-opt.reg-st-actief  { color: #1e7a46; background: transparent; }
.reg-status-opt.reg-st-ontwerp { color: #1e5aa8; background: transparent; }
.reg-status-opt.reg-st-archief { color: #b23a2e; background: transparent; }
.reg-actions { white-space: nowrap; text-align: right; }
.reg-actions .doc-btn { padding: 5px 8px; }
.reg-older .reg-title { color: #9aa1ab; }
.reg-older { opacity: .75; }
@media (max-width: 720px) { .reg-title { max-width: 180px; } }

/* ============ Werkpunten-beheer ============ */
.wp-sub { margin-top: 6px; font-size: 13.5px; color: var(--c-muted, #75695c); max-width: 76ch; }
.wp-hero-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wp-notify-toggle { cursor: pointer; }
.wp-notify-toggle.is-on { border-color: #2e6e4e; color: #2e6e4e; font-weight: 600; }

/* Statuskaartjes — klikbaar = filter op status */
.wp-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 2px; }
.wp-stat { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: #fff; font-size: 12.5px; color: var(--c-muted, #75695c); cursor: pointer; font-family: inherit; transition: border-color .15s, box-shadow .15s, transform .05s; }
.wp-stat:hover { border-color: var(--border-default); box-shadow: 0 3px 12px rgba(13, 23, 41, .06); }
.wp-stat:active { transform: translateY(1px); }
.wp-stat.is-active { border-color: var(--c-ink, #0d1929); box-shadow: inset 0 0 0 1px var(--c-ink, #0d1929); }
.wp-stat .wp-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c2cc; flex: none; }
.wp-stat.st-bezig .wp-dot { background: #a4761f; }
.wp-stat.st-review .wp-dot { background: #2e5a8f; }
.wp-stat.st-goedgekeurd .wp-dot { background: #2e6e4e; }
.wp-stat-n { font-family: var(--font-display, Georgia); font-size: 21px; font-weight: 700; color: #1c2833; line-height: 1; }
.wp-stat-tot { background: var(--c-sidebar, #0a1929); border-color: var(--c-sidebar, #0a1929); color: #b9c4cf; }
.wp-stat-tot .wp-stat-n { color: #faf3e8; }
.wp-stat-tot.is-active { box-shadow: inset 0 0 0 2px var(--c-accent-red, #e28374); }

/* Werkbalk: zoeken + filters */
.wp-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 4px; }
.wp-search-wrap { position: relative; flex: 1 1 220px; min-width: 180px; }
.wp-search { width: 100%; padding: 9px 12px 9px 32px; border: 1px solid var(--border-default); border-radius: 9px; background: #fff; font-size: 13px; font-family: inherit; color: var(--c-ink); }
.wp-search:focus { outline: none; border-color: var(--c-accent-red, #e28374); box-shadow: 0 0 0 3px rgba(226, 131, 116, .14); }
.wp-search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--c-muted, #75695c); font-size: 15px; pointer-events: none; }
.wp-fsel { padding: 8px 11px; border: 1px solid var(--border-default); border-radius: 9px; background: #fff; font-size: 13px; color: #1c2833; }
.wp-chip { padding: 8px 13px; border: 1px solid rgba(226, 131, 116, .4); border-radius: 20px; background: #fff; color: var(--c-accent-hover, #d06b5c); font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; }
.wp-chip:hover { border-color: var(--c-accent-red, #e28374); }
.wp-chip.is-active { background: var(--c-accent-red, #e28374); border-color: var(--c-accent-red, #e28374); color: #fff; }
.wp-count { font-size: 12.5px; color: var(--c-muted, #75695c); white-space: nowrap; }
.wp-list { margin-top: 4px; }

/* Eigen werkpunten van het bestuur — visueel apart, koraal-getint */
.wp-eigen { margin: 20px 0 6px; padding: 16px 18px 14px; border: 1px solid rgba(226, 131, 116, .32); border-radius: 14px; background: linear-gradient(180deg, #fdf3f0, #fff 62%); }
.wp-eigen-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wp-eigen-title { font-family: var(--font-display, Georgia); font-size: 20px; font-weight: 700; color: var(--c-ink, #0d1929); }
.wp-eigen-title span { color: var(--c-accent-hover, #d06b5c); }
.wp-eigen-sub { font-size: 12px; color: var(--c-muted, #75695c); }
.wp-add { display: flex; gap: 9px; margin: 12px 0 2px; }
.wp-add-input { flex: 1; padding: 10px 13px; border: 1px solid rgba(226, 131, 116, .4); border-radius: 9px; background: #fff; font-size: 13.5px; font-family: inherit; color: var(--c-ink); }
.wp-add-input:focus { outline: none; border-color: var(--c-accent-red, #e28374); box-shadow: 0 0 0 3px rgba(226, 131, 116, .16); }
.wp-btn.wp-add-btn { background: var(--c-accent-red, #e28374); border-color: var(--c-accent-red, #e28374); white-space: nowrap; }
.wp-btn.wp-add-btn:hover { background: var(--c-accent-hover, #d06b5c); filter: none; }
.wp-eigen-empty { font-size: 13px; color: var(--c-muted, #75695c); font-style: italic; padding: 6px 0 2px; }

/* Fase-groepen met voortgangsbalk */
.wp-g { margin-top: 26px; }
.wp-g-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wp-g-title { font-family: var(--font-display, Georgia); font-size: 18px; font-weight: 600; color: #1c2833; white-space: nowrap; }
.wp-g-prog { flex: 1; height: 5px; max-width: 240px; border-radius: 3px; background: rgba(13, 23, 41, .07); overflow: hidden; }
.wp-g-bar { height: 100%; background: #2e6e4e; border-radius: 3px; transition: width .35s ease; }
.wp-g-count { font-size: 12px; color: var(--c-muted, #75695c); font-variant-numeric: tabular-nums; }

/* Kaart */
.wp-card { border: 1px solid var(--border-subtle); border-left: 3px solid #c4ccd4; border-radius: 12px; background: #fff; padding: 15px 18px; margin-top: 10px; transition: box-shadow .15s; }
.wp-card:hover { box-shadow: 0 4px 16px rgba(13, 23, 41, .05); }
.wp-card.st-bezig { border-left-color: #a4761f; }
.wp-card.st-review { border-left-color: #2e5a8f; }
.wp-card.st-goedgekeurd { border-left-color: #2e6e4e; background: #f7fbf8; }
.wp-card-eigen { border-left-color: var(--c-accent-red, #e28374); }
.wp-card-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.wp-card .wp-nr { font-weight: 700; color: #2e5a8f; font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wp-card-eigen .wp-nr { color: var(--c-accent-hover, #d06b5c); }
.wp-cardtxt { flex: 1; min-width: 220px; font-size: 15px; line-height: 1.45; color: #1c2833; text-decoration: none; }
/* Inklapbaar werkpunt (dicht = standaard, "Openen"-knop zoals de HR-sectie) */
.wp-btn.wp-expand { flex: none; padding: 4px 13px; font-size: 12px; align-self: center; }
.wp-collapsed { padding: 13px 18px; }
.wp-collapsed-sum { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 9px; padding-left: 2px; }
.wp-mini { font-size: 11.5px; color: var(--fg-muted); }
.wp-mini-k { font-weight: 600; color: #6b7480; text-transform: uppercase; letter-spacing: .03em; font-size: 10px; margin-right: 3px; }
.wp-mini-ok { color: #3d8b64; font-weight: 500; }
a.wp-cardtxt:hover { color: var(--c-accent-hover, #d06b5c); text-decoration: underline; }
.wp-badge { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #eef1f4; color: #55606b; white-space: nowrap; }
.wp-badge.st-bezig { background: #f6ecd6; color: #8a6218; }
.wp-badge.st-review { background: #e6edf6; color: #2e5a8f; }
.wp-badge.st-goedgekeurd { background: #dcefe2; color: #2e6e4e; }

/* Status-bollen: rood = openstaand werk, geel = ter review / in behandeling, groen = afgewerkt & goedgekeurd */
.st-bol { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #9aa4ad; flex: none; }
.wp-badge.st-open .st-bol, .wp-badge.st-bezig .st-bol { background: #c23b32; }
.wp-badge.st-review .st-bol { background: #d9a621; }
.wp-badge.st-goedgekeurd .st-bol { background: #2f7f4d; }
.st-bol.tk-bol-open { background: #c23b32; }
.st-bol.tk-bol-bezig { background: #d9a621; }
.st-bol.tk-bol-afgerond { background: #2f7f4d; }
.ui-ico { vertical-align: -2px; }
.rt-bl-tx-tijd { display: block; font-size: 10px; color: var(--fg-muted); }
.rt-bl-tx-fee { display: block; font-size: 10px; color: var(--fg-muted); }

/* Statusbol Ledenregister = ledenportaal-activiteit (actieve leden) */
.status-dot.portaal-recent { background: #2f9e5f; }
.status-dot.portaal-oud { background: #d9a621; }
.status-dot.portaal-nooit { background: #c23b32; }

/* ── "Vraag het aan Claude" — topbar-knop + zijpaneel ── */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.claude-knop { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-default); background: #fff;
  color: var(--c-ink); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: border-color .15s, box-shadow .15s; }
.claude-knop svg { width: 15px; height: 15px; color: var(--c-accent-hover); }
.claude-knop:hover { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .15); }
.cl-paneel { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); background: #fff; z-index: 90;
  box-shadow: -12px 0 40px rgba(13, 23, 41, .16); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .22s ease; }
.cl-paneel.cl-open { transform: none; }
.cl-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--border-subtle); }
.cl-titel { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.cl-sub { font-size: 11px; color: var(--fg-muted); margin-top: 2px; line-height: 1.4; }
.cl-kop-acties { display: flex; align-items: center; gap: 8px; flex: none; }
.cl-wis { background: none; border: 1px solid var(--border-default); border-radius: 999px; padding: 3px 12px; font-size: 11.5px; color: var(--fg-muted); }
.cl-wis:hover { color: var(--c-ink); border-color: var(--c-accent-red); }
.cl-sluit { background: none; border: none; font-size: 22px; line-height: 1; color: var(--fg-muted); padding: 0 4px; }
.cl-sluit:hover { color: var(--c-ink); }
.cl-berichten { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--c-body); }
.cl-bericht { display: flex; }
.cl-bericht.cl-gebruiker { justify-content: flex-end; }
.cl-tekst { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cl-gebruiker .cl-tekst { background: var(--c-peach); border-radius: 14px 14px 4px 14px; }
.cl-claude .cl-tekst { background: #fff; border: 1px solid var(--border-subtle); border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(13, 23, 41, .04); }
.cl-bezig { color: var(--fg-muted); font-style: italic; }
.cl-bericht.cl-claude { flex-direction: column; align-items: flex-start; }
/* opgemaakte Merlijn-antwoorden (markdown → HTML) */
.cl-tekst.cl-md { white-space: normal; }
.cl-md p { margin: 0 0 8px; }
.cl-md ul, .cl-md ol { margin: 0 0 8px; padding-left: 20px; }
.cl-md li { margin: 3px 0; }
.cl-md > :last-child { margin-bottom: 0; }
.cl-md-kop { font-weight: 600; margin: 10px 0 5px; }
.cl-md p:first-child, .cl-md-kop:first-child { margin-top: 0; }
.cl-md code { background: rgba(13, 23, 41, .06); border-radius: 4px; padding: 1px 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.cl-md-scroll { overflow-x: auto; margin: 4px 0 8px; }
.cl-md-tabel { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.cl-md-tabel th, .cl-md-tabel td { border: 1px solid var(--border-subtle); padding: 4px 8px; text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.cl-md-tabel th { background: rgba(13, 23, 41, .04); font-weight: 600; white-space: nowrap; }
.cl-bronnen { max-width: 88%; margin-top: 4px; font-size: 11px; color: var(--fg-muted); }
.cl-bronnen summary { cursor: pointer; user-select: none; }
.cl-bron { margin: 3px 0 0 10px; padding: 3px 8px; background: rgba(13, 23, 41, .045); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; line-height: 1.45; word-break: break-all; }
.cl-bron span { font-weight: 600; }
.cl-bron-fout { opacity: .55; }
.cl-leeg { color: var(--fg-muted); font-size: 13px; line-height: 1.55; padding: 10px 4px; }
.cl-voet { display: flex; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--border-subtle); align-items: flex-end; }
.cl-voet textarea { flex: 1; resize: none; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border-default); font: inherit; font-size: 13.5px; outline: none; }
.cl-voet textarea:focus { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .15); }
.cl-verstuur { width: 44px; height: 44px; padding: 0; font-size: 18px; border-radius: 12px; flex: none; }
@media (max-width: 700px) { .claude-knop span { display: none; } .topbar-club { display: none; } }
/* Platform-logboek op de ledenfiche */
.lid-log-lijst { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.lid-log-rij { display: grid; grid-template-columns: 118px 86px 1fr; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 6px 2px; border-bottom: 1px solid var(--border-subtle); }
.lid-log-rij:last-child { border-bottom: none; }
.lid-log-tijd { color: var(--fg-muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lid-log-tekst { line-height: 1.45; }
.lid-log-door { color: var(--fg-muted); font-size: 11px; }
@media (max-width: 700px) { .lid-log-rij { grid-template-columns: 1fr; gap: 2px; } }

/* 4-staps werkstroom-track */
.wp-track { display: flex; align-items: flex-start; margin: 15px 0 2px; }
.wp-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; padding: 2px 0 0; background: none; border: none; font: inherit; color: #98a2ad; cursor: pointer; }
.wp-step-static { cursor: default; }
.wp-step::before { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: #e3e7eb; z-index: 0; }
.wp-step:first-child::before { display: none; }
.wp-step-dot { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #cfd6dd; background: #fff; transition: all .15s; }
.wp-step-lab { font-size: 11px; text-align: center; line-height: 1.2; }
.wp-step.done .wp-step-lab, .wp-step.active .wp-step-lab { color: #3a4550; font-weight: 600; }
.wp-step-open.done, .wp-step-open.active { color: #6b7580; }
.wp-step-bezig.done, .wp-step-bezig.active { color: #a4761f; }
.wp-step-review.done, .wp-step-review.active { color: #2e5a8f; }
.wp-step-goedgekeurd.done, .wp-step-goedgekeurd.active { color: #2e6e4e; }
.wp-step.done .wp-step-dot { background: currentColor; border-color: currentColor; }
.wp-step.active .wp-step-dot { border-color: currentColor; background: currentColor; box-shadow: 0 0 0 4px rgba(13, 23, 41, .06); }
.wp-step.done::before, .wp-step.active::before { background: currentColor; }
.wp-step:not(.wp-step-static):hover .wp-step-dot { border-color: currentColor; }
.wp-step:not(.wp-step-static):hover .wp-step-lab { color: #1c2833; }

/* Rollen + reviewer-hint */
.wp-roles { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wp-role-grp { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wp-role-lab { flex: none; width: 96px; font-size: 12px; color: var(--c-muted, #75695c); padding-top: 2px; }
.wp-fn-checks { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.wp-fn-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--border-default); border-radius: 999px; background: #fff; font-size: 11.5px; color: #55606b; cursor: pointer; user-select: none; }
.wp-fn-chip input { margin: 0; cursor: pointer; accent-color: var(--c-accent-red, #e28374); }
.wp-fn-chip:hover { border-color: var(--c-accent-red, #e28374); }
.wp-fn-chip.on { background: #fdf0ed; border-color: var(--c-accent-red, #e28374); color: #1c2833; font-weight: 500; }
.wp-rolehint { margin-top: 8px; }
.wp-lab { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--c-muted, #75695c); }
.wp-fn { padding: 6px 9px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; font-size: 12.5px; color: #1c2833; }
.wp-hint { font-size: 12px; color: var(--c-muted, #75695c); }
.wp-hint-review { color: #2e5a8f; font-weight: 500; }
.wp-hint-warn { color: #a4761f; font-weight: 500; }
.wp-hint-me { color: var(--c-accent-hover, #d06b5c); font-weight: 600; }

/* Acties */
.wp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.wp-btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--c-sidebar, #0a1929); background: var(--c-sidebar, #0a1929); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wp-btn:hover { filter: brightness(1.12); }
.wp-btn.wp-ghost { background: #fff; color: #41505f; border-color: var(--border-default); font-weight: 500; }
.wp-btn.wp-ghost:hover { border-color: var(--c-accent-red, #e28374); color: #1c2833; filter: none; }
.wp-approve { background: #2e6e4e; border-color: #2e6e4e; } /* groen = goedkeuren (semantisch) */
.wp-approve:hover { filter: brightness(1.08); }
.wp-approved { font-size: 12.5px; color: #2e6e4e; font-weight: 600; }
.wp-del-cust { margin-left: auto; background: #fff; color: #a83a2c; border-color: rgba(168, 58, 44, .28); font-weight: 500; }
.wp-del-cust:hover { background: #fbeeec; border-color: #a83a2c; filter: none; }

/* Notities */
.wp-notes { margin-top: 13px; border-top: 1px solid var(--border-subtle); padding-top: 11px; }
.wp-note { padding: 8px 0; border-bottom: 1px solid #f0ebe2; }
.wp-note-meta { display: flex; align-items: center; font-size: 11px; color: var(--c-muted, #75695c); }
.wp-note-del { margin-left: auto; border: none; background: none; color: #b0b8c0; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.wp-note-del:hover { color: #a83a2c; }
.wp-note-body { font-size: 13.5px; color: #1c2833; margin-top: 2px; white-space: pre-wrap; }
.wp-note-empty { font-size: 12.5px; color: var(--c-muted, #75695c); font-style: italic; }
.wp-note-add { display: flex; gap: 8px; margin-top: 10px; align-items: flex-start; }
.wp-note-input { flex: 1; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; }
@media (max-width: 640px) {
  .wp-cardtxt { min-width: 0; }
  .wp-step-lab { font-size: 10px; }
  .wp-search-wrap { flex-basis: 100%; }
}

/* Besluit — het vastgestelde antwoord/output van een goedgekeurd werkpunt */
.wp-besluit { margin-top: 12px; border: 1px solid #cfe3d6; border-left: 3px solid #2e6e4e; background: #f4faf6; border-radius: 10px; padding: 12px 15px; }
.wp-besluit-h { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #2e6e4e; }
.wp-besluit-body { font-size: 14px; color: #1c2833; margin-top: 6px; white-space: pre-wrap; line-height: 1.5; }
.wp-besluit-cap { border-color: #cdbce8; border-left-color: #7a4a94; background: #f8f4fc; }
.wp-besluit-cap .wp-besluit-h { color: #5f3b74; }
.wp-besluit-override { border-color: #ecc9a0; border-left-color: #a4761f; background: #fdf6ea; }
.wp-besluit-override .wp-besluit-h { color: #8a6218; }
.wp-besluit-override .wp-besluit-save { background: #a4761f; border-color: #a4761f; }
.wp-besluit-missing { border-color: #ecdcc0; border-left-color: #a4761f; background: #fdf8ef; }
.wp-besluit-concept { border-color: #ecdcc0; border-left-color: #a4761f; background: #fdf8ef; }
.wp-besluit-concept .wp-besluit-h { color: #8a6218; }
.wp-besluit-warn { font-size: 13px; color: #8a6218; font-weight: 500; }
.wp-besluit-input { width: 100%; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 8px; font-size: 13.5px; font-family: inherit; resize: vertical; box-sizing: border-box; }
.wp-besluit-input:focus { outline: none; border-color: #7a4a94; box-shadow: 0 0 0 3px rgba(122, 74, 148, .12); }
.wp-besluit-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wp-besluit-save, .wp-besluit-editsave { background: #2e6e4e; border-color: #2e6e4e; }
.wp-besluit-save:hover, .wp-besluit-editsave:hover { filter: brightness(1.08); }
.wp-linkbtn { border: none; background: none; color: var(--c-accent-hover, #d06b5c); font-size: 12px; font-weight: 500; cursor: pointer; padding: 0; font-family: inherit; }
.wp-linkbtn:hover { text-decoration: underline; }

/* Huishoudelijk reglement als sectie op gelijk niveau (inklapbaar) */
.wp-reg { margin: 20px 0 6px; padding: 16px 18px 14px; border: 1px solid var(--border-subtle); border-radius: 14px; background: #fff; }
.wp-reg-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wp-reg-meta { display: flex; align-items: center; gap: 10px; }
.wp-reg-meta .wp-g-prog { width: 180px; flex: none; }
.wp-reg .wp-g:first-of-type { margin-top: 18px; }

/* Werkpunt uit een taak */
.wp-taak { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--c-muted, #75695c); }
.wp-taak a { color: var(--c-accent-hover, #d06b5c); font-weight: 500; }
.wp-taak .prio-dot { margin-top: 0; }

/* Taken: prioriteitsgroepen (hoog → laag, gekleurd) + gekleurde rij-rand */
.task-group { display: flex; align-items: center; gap: 8px; margin: 18px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted, #75695c); }
.task-group:first-child { margin-top: 4px; }
.tg-dot { width: 9px; height: 9px; border-radius: 50%; background: #b9c2cc; }
.tg-hoog { color: #a83a2c; } .tg-hoog .tg-dot { background: #a83a2c; }
.tg-normaal { color: #8a6218; } .tg-normaal .tg-dot { background: #a4761f; }
.tg-laag { color: #55606b; } .tg-laag .tg-dot { background: #8a94a0; }
.tg-af { color: #2e6e4e; } .tg-af .tg-dot { background: #2e6e4e; }
.tg-n { font-weight: 500; color: var(--c-muted, #75695c); }
.task-card.task-p-hoog { border-left-color: #a83a2c; }
.task-card.task-p-normaal { border-left-color: #a4761f; }
.task-card.task-p-laag { border-left-color: rgba(13, 23, 41, 0.18); }
.task-card.task-done { border-left-color: #2e6e4e; background: #f7fbf8; }

/* Taken: functie-filter-chip ("Mijn taken") */
.task-chip { padding: 8px 15px; border: 1px solid rgba(226, 131, 116, .4); border-radius: 999px; background: #fff; color: var(--c-accent-hover, #d06b5c); font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; }
.task-chip:hover { border-color: var(--c-accent-red, #e28374); }
.task-chip.is-active { background: var(--c-accent-red, #e28374); border-color: var(--c-accent-red, #e28374); color: #fff; }

/* Taken: werkpunt-koppeling + inline bewerken */
.badge.b-wp { background: #fdf0ed; color: var(--c-accent-hover, #d06b5c); font-weight: 600; text-decoration: none; }
.badge.b-wp:hover { background: #fbe4de; }
.task-edit { border: none; background: none; color: #b0b8c0; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; }
.task-edit:hover { color: var(--c-accent-hover, #d06b5c); }
.task-edit-form { flex: 1; }
.task-edit-actions { display: flex; gap: 8px; margin-top: 10px; }
.task-edit-actions .cb-btn-primary { width: auto; padding: 8px 18px; }

/* Stemmingen — badge */
.badge.b-vote { background: #fdf0ed; color: var(--c-accent-hover, #d06b5c); font-weight: 600; }
/* ══ Stemmingen — verzegelde stembrief (blind vote) ══ */
/* Modal shell (perkament-interieur) */
.vs-brief { background: #fbf8f3; border-radius: 14px; width: min(400px, 92vw); max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.vs-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.vs-head-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--c-ink); }
.vs-ref { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.vs-brief > .vs-ref { padding: 0 18px 10px; border-bottom: 1px dashed rgba(13, 23, 41, .14); }
.vs-body { padding: 14px 18px 4px; }
.vs-q { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--c-ink); margin-bottom: 10px; }
.vs-context { border-left: 3px solid var(--c-accent-red); background: rgba(255, 229, 224, .5); border-radius: 0 10px 10px 0; padding: 8px 12px; color: var(--fg-muted); font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.vs-context-txt { margin-bottom: 8px; }
.vs-context-txt:last-child { margin-bottom: 0; }

/* Achtergronddocument (externe link) */
.vs-doc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-accent-hover); font-weight: 500; padding: 8px 12px; border: 1px solid var(--border-default); border-radius: 10px; background: #fff; }
.vs-doc:hover { border-color: var(--c-accent-red); }
.vs-doc svg { width: 17px; height: 17px; flex: none; color: var(--c-accent-red); }
.vs-doc-ext { color: var(--fg-muted); }
.vs-doc-sm { margin: 2px 0 10px; font-size: 12.5px; padding: 6px 10px; }

/* Besluit van de Raad (besluitenregister) */
.vs-besluit { border-left: 3px solid var(--c-accent-red); background: rgba(255, 229, 224, .4); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0; }
.vs-besluit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--c-accent-hover); text-transform: uppercase; margin-bottom: 5px; }
.vs-besluit-head button { padding: 3px 10px; font-size: 11.5px; text-transform: none; letter-spacing: 0; }
.vs-besluit-body { font-size: 14px; line-height: 1.5; color: var(--c-ink); white-space: pre-wrap; }
.vs-besluit-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--fg-muted); font-size: 13px; background: rgba(13, 23, 41, .03); border-left-color: rgba(13, 23, 41, .15); }
.vs-besluit-empty button { padding: 4px 12px; font-size: 12px; }
.vs-besluit-input, .vs-close-besluit { width: 100%; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13.5px; font-family: inherit; resize: vertical; box-sizing: border-box; background: #fff; }
.vs-besluit-input:focus, .vs-close-besluit:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }
.vs-besluit-actions { display: flex; gap: 8px; margin-top: 8px; }
.vs-besluit-actions .cb-btn-primary { width: auto; padding: 7px 16px; }
.vs-close-capture { width: 100%; }
.vs-close-capture .vs-close-besluit { margin-bottom: 8px; }

/* Online-ring rond backoffice-avatars (parity met het ledenportaal):
   groen = actief op leden- of bestuursportaal in de laatste 5 min. */
.lid-avatar.av-online { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5cae85; }
.lid-avatar.av-offline { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6907e; }
.lid-avatar.sm.av-online { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #5cae85; }
.lid-avatar.sm.av-offline { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #d6907e; }

/* leden-stemming: voortgang, foto-rij, timer, soort-filterteller */
.vs-leden-balk { display: block; height: 7px; background: rgba(13, 23, 41, .06); border-radius: 999px; overflow: hidden; }
.vs-leden-balk i { display: block; height: 100%; background: var(--c-sidebar); border-radius: 999px; transition: width .4s; }
.vs-gestemd { display: flex; align-items: center; gap: 11px; margin: 12px 0 2px; }
.vs-gestemd-av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-left: -8px; background: var(--c-body); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(13, 23, 41, .15); flex-shrink: 0; }
.vs-gestemd-av:first-child { margin-left: 0; }
.vs-gestemd-av img { width: 100%; height: 100%; object-fit: cover; }
.vs-gestemd-av i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--c-accent-hover); }
.vs-gestemd-label { font-size: 12px; color: var(--fg-muted); }
.vs-timer { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-timer svg { width: 13px; height: 13px; flex-shrink: 0; }
.vs-card-timer { margin: 6px 0 2px; }
.vs-card-timer .vs-timer { background: linear-gradient(135deg, #fdf6f0, #fbede4); border: 1px solid #f2ddd0; color: var(--c-ink); border-radius: 999px; padding: 5px 14px; font-size: 12px; }
.vs-card-timer .vs-timer svg { color: var(--c-accent-hover); }
.vs-filter-n { display: inline-block; min-width: 16px; text-align: center; font-size: 10.5px; background: rgba(13, 23, 41, .08); border-radius: 999px; padding: 1px 5px; margin-left: 3px; }
#vs-soort-filter .pill-tab { cursor: pointer; font: inherit; border: none; }

/* Poll-balken in het backoffice — exact dezelfde layout als het ledenportaal */
.vs-poll { margin: 10px 0 4px; display: grid; gap: 10px; }
.vs-poll-rij { position: relative; overflow: hidden; border-radius: 12px; background: var(--c-body); border: 1px solid var(--border-subtle); min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 0 16px; }
.vs-poll-fill { position: absolute; top: 0; left: 0; bottom: 0; background: var(--c-peach); border-right: 2px solid rgba(226, 131, 116, .55); transition: width .5s cubic-bezier(.22, .8, .3, 1); }
.vs-poll-rij.is-winnaar .vs-poll-fill { background: #f6cfc5; border-right-color: var(--c-accent-hover); }
.vs-poll-label { position: relative; font-size: 14px; font-weight: 600; color: var(--c-ink); padding: 13px 0; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-poll-tag { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #fff; border: 1px solid var(--border-default); border-radius: 999px; padding: 2px 9px; color: var(--fg-muted); }
.vs-poll-tag.is-mij { border-color: var(--c-accent-red); color: var(--c-accent-hover); }
.vs-poll-tag.is-win { display: inline-flex; align-items: center; gap: 5px; border-color: #dcc389; color: #a5842c; background: #fdf8ec; }
.vs-poll-tag.is-win svg { width: 12px; height: 12px; }
.vs-poll-rechts { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vs-poll-pct { font-variant-numeric: tabular-nums; font-size: 14.5px; color: var(--c-ink); }
.vs-poll-n { font-size: 11px; color: var(--fg-muted); white-space: nowrap; }
.vs-poll-avatars { display: flex; align-items: center; }
.vs-poll-avatars .vs-gestemd-av { width: 26px; height: 26px; }
.vs-poll-meer { font-size: 10.5px; font-weight: 700; color: var(--fg-muted); background: #fff; border: 1px solid var(--border-default); border-radius: 999px; padding: 3px 7px; margin-left: -6px; position: relative; }
/* stembrief-opties als volle klikbalken (zelfde beeld als het ledenportaal) */
.vs-opts { display: grid; gap: 10px; }
.vs-opt { border: 1.5px solid var(--border-default); border-radius: 12px; background: #fff; min-height: 50px; padding: 0 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.vs-opt:hover { border-color: var(--c-accent-red); background: var(--c-peach); }

/* soort-badge + onthouding-noot + stemgedrag-reveal */
.badge.vs-soort-asset { background: #eef2f8; color: #2b4a73; }
.badge.vs-soort-werking { background: #fbeae6; color: var(--c-accent-hover); }
.vs-onth-noot { margin: 10px 0 2px; font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; background: rgba(13, 23, 41, .03); border-radius: 8px; padding: 8px 12px; }
.vs-stemgedrag { margin-top: 12px; border-top: 1px solid var(--border-subtle); padding-top: 11px; }
.vs-stemgedrag > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--c-accent-hover); list-style: none; }
.vs-stemgedrag > summary::-webkit-details-marker { display: none; }
.vs-stemgedrag > summary::before { content: '▸ '; }
.vs-stemgedrag[open] > summary::before { content: '▾ '; }
.vs-sg-groep { margin-top: 10px; }
.vs-sg-keuze { font-size: 12px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.vs-sg-n { display: inline-block; min-width: 16px; text-align: center; font-size: 11px; color: var(--fg-muted); font-weight: 600; }
.vs-sg-namen { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-sg-naam { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; background: #fff; border: 1px solid var(--border-default); border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--c-ink); }
.vs-sg-naam .vs-gestemd-av { width: 24px; height: 24px; margin-left: 0; border-width: 1px; }

/* Zes-zetel quorumrij (Raad van Camelot) */
.vs-quorum { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.vs-seats { display: flex; gap: 5px; }
.vs-seat { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(13, 23, 41, .16); background: transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.vs-seat.cast { background: var(--c-sidebar); border-color: var(--c-sidebar); }
.vs-seat.mine { background: var(--c-accent-red); border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .20); }
.vs-quorum-label { font-size: 11.5px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* Verzegeld blok (pressed wax) */
.vs-seal { display: flex; align-items: center; gap: 12px; background: var(--c-peach); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; transition: opacity .25s; }
.vs-seal.break { opacity: 0; }
.vs-seal-wax { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--c-accent-red); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22), 0 0 0 4px rgba(226, 131, 116, .12); }
.vs-seal-wax-sm { width: 22px; height: 22px; font-size: 13px; }
.vs-seal-copy { font-size: 13px; line-height: 1.45; color: var(--c-accent-hover); }
.vs-seal-inline { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-muted); }
.vs-seal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent-red); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 3px rgba(226, 131, 116, .14); }

/* Keuzes + token-munt */
.vs-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.vs-opt { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--border-default); border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s; }
.vs-opt:hover { border-color: var(--c-accent-red); }
.vs-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vs-coin { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--c-accent-red); display: grid; place-items: center; transition: background .12s, transform .12s; }
.vs-opt input:checked ~ .vs-coin { background: var(--c-accent-red); transform: scale(1.06); }
.vs-opt input:checked ~ .vs-coin::after { content: ''; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.vs-opt:has(input:checked) { border-color: var(--c-accent-red); background: rgba(226, 131, 116, .05); }
.vs-opt:has(input:focus-visible) { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .22); }
.vs-opt-label { font-size: 14px; color: var(--c-ink); }

/* Voorlopige stand (nog niet alle bestuursleden gestemd — géén kroon) */
.vs-interim { display: flex; flex-direction: column; gap: 1px; background: rgba(13, 23, 41, 0.05); border: 1px dashed rgba(13, 23, 41, 0.16); border-radius: 12px; padding: 10px 16px; margin-bottom: 12px; }
.vs-interim-lab { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #4a5666; }
.vs-interim-sub { font-size: 12px; color: var(--fg-muted); }

/* Geheime stemming — verzegeld-tot-eindresultaat-notitie */
.vs-geheim-note { display: flex; align-items: center; gap: 10px; background: rgba(13, 23, 41, 0.05); border: 1px dashed rgba(13, 23, 41, 0.16); border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; font-size: 13px; color: #4a5666; line-height: 1.45; }

/* Iconen in knoppen (stroked SVG i.p.v. emoji) */
.btn-svg { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-svg svg { width: 14px; height: 14px; flex: none; }
.pill-tab svg, .wp-btn svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.vs-besluit-tt { display: inline-flex; align-items: center; gap: 7px; }
.vs-besluit-tt svg { width: 14px; height: 14px; }

/* Achtergronddocument-kiezer in de composer (slepen of link) */
.vs-docdrop { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 2px dashed var(--border-default); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.vs-docdrop.drag { border-color: var(--c-accent-red); background: #fff6f4; }
.vs-docdrop-ico { width: 34px; height: 34px; min-width: 34px; border-radius: 9px; background: var(--c-peach); color: var(--c-accent-hover); display: flex; align-items: center; justify-content: center; }
.vs-docdrop-ico svg { width: 17px; height: 17px; }
.vs-docdrop-txt { font-size: 13px; color: var(--c-ink); line-height: 1.45; }
.vs-docdrop-browse { color: var(--c-accent-hover); text-decoration: underline; cursor: pointer; }
.vs-docdrop-browse input { display: none; }
.vs-docdrop-hint { display: block; font-size: 11.5px; color: var(--fg-muted); }
.vs-doc-linkrow { display: grid; grid-template-columns: auto 1fr 1.6fr; gap: 8px; align-items: center; margin-top: 8px; }
@media (max-width: 720px) { .vs-doc-linkrow { grid-template-columns: 1fr; } }
.vs-doc-linkof { font-size: 11.5px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .04em; }
.vs-docsel { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--c-accent-red); border-radius: 12px; background: #fff6f4; }
.vs-docsel svg { width: 17px; height: 17px; color: var(--c-accent-hover); flex: none; }
.vs-docsel-title { font-weight: 600; font-size: 13.5px; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-docsel-tag { font-size: 11.5px; color: var(--c-accent-hover); background: var(--c-peach); padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.vs-docsel-del { margin-left: auto; background: none; border: none; color: #b0b8c0; font-size: 17px; cursor: pointer; }
.vs-docsel-del:hover { color: #a83a2c; }
.vs-doc-status { min-height: 4px; margin-top: 6px; font-size: 12.5px; }
.vs-doc-ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; color: var(--fg-muted); background: rgba(13, 23, 41, .05); padding: 1px 7px; border-radius: 99px; }

/* Verdict-banner */
.vs-verdict { display: flex; align-items: center; gap: 12px; background: var(--c-accent-red); color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.vs-verdict-glyph { width: 24px; height: 24px; flex: none; }
.vs-verdict-glyph svg { width: 24px; height: 24px; display: block; }
.vs-verdict-lab { display: block; font-size: 11.5px; letter-spacing: .04em; opacity: .85; }
.vs-verdict-win { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; }

/* Resultaatstaven (n/total, eerlijk) */
.vs-results { display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; }
.vs-res-row { padding: 2px 0; }
.vs-res-row.win { border-left: 2px solid var(--c-accent-red); margin-left: -10px; padding-left: 8px; }
.vs-res-row.lead { border-left: 2px solid rgba(226, 131, 116, .45); margin-left: -10px; padding-left: 8px; }
.vs-res-lineup { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.vs-res-opt { font-size: 13.5px; color: var(--c-ink); }
.vs-res-row.win .vs-res-opt { font-weight: 700; }
.vs-res-row.mine .vs-res-opt { text-decoration: underline; text-decoration-color: var(--c-accent-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.vs-win-c { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--c-accent-red); margin-left: 6px; }
.vs-res-n { font-size: 13px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.vs-you { display: inline-block; margin-left: 8px; background: var(--c-peach); color: var(--c-accent-hover); font-size: 10.5px; padding: 1px 8px; border-radius: 99px; vertical-align: middle; }
.vs-bar { height: 12px; background: rgba(13, 23, 41, .07); border-radius: 6px; overflow: hidden; }
.vs-bar-fill { display: block; height: 100%; width: 0; background: var(--c-accent-red); border-radius: 6px; transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.vs-bar-fill.muted { background: rgba(226, 131, 116, .55); }
.vs-tie { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.vs-empty-line { font-size: 13px; color: var(--fg-muted); padding: 2px 0 8px; }

/* Meta-strip */
.vs-meta { border-top: 1px dashed rgba(13, 23, 41, .14); padding-top: 10px; margin-top: 6px; font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.vs-open-word { color: #3d8b64; font-weight: 600; }
.vs-closed-word { color: var(--fg-muted); }

/* Footer */
.vs-foot { padding: 12px 18px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vs-foot .cb-btn-primary { width: auto; padding: 9px 20px; }
.vs-foot .cb-btn-primary[disabled] { opacity: .4; cursor: not-allowed; }
.vs-foot .vs-do-delete { margin-left: auto; }
.vs-deadline-note { font-size: 12px; color: var(--fg-muted); width: 100%; }

/* Pagina — hero + composer */
.vs-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.vs-hero .cb-page-h1::after { display: none; }
.vs-hero-sub { font-size: 13.5px; color: var(--fg-muted); margin-top: 6px; max-width: 52ch; }
.vs-composer { margin-bottom: 20px; }
.vs-composer.hidden { display: none; }
.vs-composer-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.vs-lab { display: block; font-size: 12px; color: var(--fg-muted); margin: 12px 0 5px; }
.vs-composer input[type="text"], .vs-composer textarea, .vs-f-opt, .vs-composer input[type="date"] { width: 100%; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13.5px; font-family: inherit; resize: vertical; box-sizing: border-box; color: var(--c-ink); background: #fff; }
.vs-composer input:focus, .vs-composer textarea:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }
.vs-f-opts { display: flex; flex-direction: column; gap: 8px; }
.vs-opt-row { display: flex; align-items: center; gap: 9px; }
.vs-coin-mini { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--c-accent-red); }
.vs-opt-del { padding: 6px 11px; flex: none; }
.vs-opt-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.vs-composer-foot { display: flex; gap: 8px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.vs-composer-note { font-size: 12px; color: var(--fg-muted); }
.vs-composer-foot .vs-composer-note { width: 100%; }

/* Kaarten */
.vs-list { display: flex; flex-direction: column; gap: 14px; }
.vs-card { position: relative; background: #fff; border: 1px solid var(--border-default); border-radius: 14px; padding: 16px 18px; }
.vs-card.open::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-accent-red); border-radius: 14px 0 0 14px; }
.vs-card.done { background: #fbf8f3; opacity: .92; }
.vs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vs-card-q { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--c-ink); margin: 2px 0 6px; }
.vs-card-meta { font-size: 12.5px; color: var(--fg-muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.vs-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.vs-card .vs-do-close, .vs-card .vs-do-delete { padding: 5px 12px; font-size: 12px; }

/* Beweging (unroll + zetel-stagger) */
@keyframes vs-unroll { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.vs-reveal-anim .vs-res-row { animation: vs-unroll .32s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes vs-seat-pop { from { transform: scale(.4); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.vs-quorum.animate .vs-seat.cast, .vs-quorum.animate .vs-seat.mine { animation: vs-seat-pop .25s ease both; animation-delay: calc(var(--s, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) {
  .vs-reveal-anim .vs-res-row { animation: none; }
  .vs-bar-fill { transition: none; }
  .vs-seat { transition: none; }
  .vs-quorum.animate .vs-seat { animation: none; }
  .vs-seal, .vs-seal.break { transition: none; }
  .vs-opt, .vs-coin { transition: none; }
}

/* Werkpunten — AI-voorstel-paneel */
.wp-ai-panel { margin-top: 12px; border: 1px solid #cdbce8; border-left: 3px solid #7a4a94; background: #f8f4fc; border-radius: 10px; padding: 13px 16px; }
.wp-ai-h { font-size: 13px; font-weight: 700; color: #5f3b74; display: flex; align-items: center; gap: 8px; }
.wp-ai-tag { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: #8a72a0; }
.wp-ai-concept { font-size: 14px; color: #1c2833; margin-top: 8px; white-space: pre-wrap; }
.wp-ai-row { display: flex; gap: 10px; margin-top: 9px; font-size: 13px; color: var(--c-muted, #75695c); }
.wp-ai-lab { flex: none; min-width: 74px; font-weight: 600; color: #5f3b74; }
.wp-ai-ul { margin: 0; padding-left: 18px; }
.wp-ai-ul li { margin-bottom: 3px; }
.wp-ai-actions { display: flex; gap: 8px; margin-top: 12px; }
.wp-ai-panel .wp-btn { background: #7a4a94; border-color: #7a4a94; }
.wp-ai-panel .wp-btn.wp-ghost { background: #fff; color: #5f3b74; border-color: #cdbce8; }
.wp-spin { width: 12px; height: 12px; border: 2px solid #cdbce8; border-top-color: #7a4a94; border-radius: 50%; display: inline-block; animation: wp-rot .7s linear infinite; }
@keyframes wp-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wp-spin { animation: none; } }

/* ── Boekhouding-tab (accuraat beeld uit e-Boekhouden) ── */
.bh-card { padding: 8px 20px; }
.bh-row { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.bh-row:last-child { border-bottom: none; }
.bh-code { flex: 0 0 62px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.bh-naam { flex: 1; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.bh-bedrag { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-neg { color: var(--c-accent-hover); }
.bh-totaal { border-top: 2px solid var(--c-ink); }
.bh-totaal .bh-naam { font-weight: 600; }
.bh-stat { font-size: 26px; }
.bh-mut .bh-mut-datum { flex: 0 0 82px; font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.bh-mut-sub { display: block; font-size: 11.5px; color: var(--fg-muted); margin-top: 2px; }
.bh-aandacht { background: var(--c-peach); border: none; margin-bottom: 20px; }
.bh-aandacht-punt { font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(13, 23, 41, 0.07); }
.bh-aandacht-punt:last-child { border-bottom: none; }
.bh-aandacht-punt::before { content: '⚠'; margin-right: 8px; }
.bh-sync { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12.5px; color: var(--fg-muted); flex-wrap: wrap; }
.bh-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bh-jaren { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.bh-jaar { border: 1px solid var(--border-default); background: #fff; border-radius: 999px; padding: 7px 16px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--c-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.bh-jaar:hover { border-color: var(--c-accent-red); }
.bh-jaar.is-actief { background: var(--c-sidebar); border-color: var(--c-sidebar); color: #fff; }

/* ── Lidgeld-pop-up ── */
.lg-open-btn { background: var(--c-peach); color: var(--c-accent-hover); border: none; border-radius: 999px; padding: 3px 11px; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; cursor: pointer; margin-left: 8px; white-space: nowrap; }
.lg-open-btn:hover { background: var(--c-accent-red); color: #fff; }
.lg-modal { background: #fff; border-radius: var(--radius-md); width: min(620px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(10,25,41,.3); }
.lg-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }
.lg-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--c-ink); }
.lg-sub { font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; }
.lg-sum-open { color: var(--c-accent-hover); font-weight: 600; }
.lg-sum-ok { color: var(--ok, #3d7a5c); font-weight: 600; }
.lg-head .doc-modal-close { margin-left: auto; }
.lg-body { padding: 16px 20px 20px; overflow-y: auto; }
.lg-section-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; margin-bottom: 10px; }
.lg-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-chip { display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.lg-chip .lg-yr { font-size: 10px; font-weight: 500; opacity: .7; }
.lg-betaald { background: #e4f3ea; color: #2e7d5b; border-color: #bfe3cd; }
.lg-open { background: #fbe6e2; color: var(--c-accent-hover); border-color: #f2c9c0; }
.lg-lopend { background: #fff6e6; color: #a06a00; border-color: #f0dfb8; }
.lg-vrijgesteld { background: #e9f0f7; color: #2e5a8f; border-color: #cdddef; }
.lg-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--fg-muted); }
.lg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-dot.lg-betaald { background: #7cc79b; } .lg-dot.lg-open { background: var(--c-accent-red); }
.lg-dot.lg-lopend { background: #e5b95c; }
.lg-dot.lg-vrijgesteld { background: #6f93b8; }
.lg-paytable { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.lg-payrow { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.lg-payrow:last-child { border-bottom: none; }
.lg-paydate { flex: 0 0 96px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.lg-payoms { flex: 1; }
.lg-payamt { font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-refund .lg-payamt { color: var(--c-accent-hover); }
.lg-refund .lg-payoms { color: var(--c-accent-hover); }
.lg-foot-note { font-size: 11px; color: var(--fg-muted); margin-top: 14px; line-height: 1.5; }

/* ── PSD2-bankverkeer + Visa-kaartstaten (Boekhouding-tab) ── */
.bh-klein { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; }
.bh-badge-n { background: var(--c-accent-red); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 700; }
.bh-psd2-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.bh-psd2-rij, .bh-kaart-rij { flex-wrap: wrap; }
.bh-psd2-tegen, .bh-kaart-tegen { max-width: 220px; font-size: 12px; padding: 5px 8px; border: 1px solid var(--border-default); border-radius: 8px; background: #fff; }
.bh-psd2-rij .btn-ghost, .bh-kaart-rij .btn-ghost { padding: 5px 12px; font-size: 12px; }
.bh-kaart-oms { width: 100%; font-size: 13px; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; background: transparent; }
.bh-kaart-oms:focus { border-color: var(--border-default); background: #fff; outline: none; }
.bh-kaart-staat { border-top: 1px solid var(--border-subtle); margin-top: 12px; padding-top: 10px; }
.bh-kaart-kop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bh-kaart-kop .btn-ghost { padding: 4px 12px; font-size: 12px; margin-left: auto; }
.bh-kaart-kop .bh-kaart-verwijder { margin-left: 0; }
.bh-kaart-nieuw { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bh-kaart-nieuw input { font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--border-default); border-radius: 8px; }
.bh-kn-oms { flex: 1; min-width: 160px; }
.bh-kn-bedrag { width: 110px; }
.bh-upload-label { cursor: pointer; display: inline-block; }

/* ── Verhoging toetredingsbijdrage (orde-promotie) ── */
.vh-invoer { display: flex; align-items: center; gap: 10px; }
.vh-euro { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--c-ink); }
.vh-invoer input { width: 140px; font-size: 16px; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: 10px; font-variant-numeric: tabular-nums; }
.vh-preview { margin-top: 10px; font-size: 13.5px; min-height: 20px; }
.vh-promo { color: #8a6d1a; font-weight: 600; }
.vh-promo-banner { margin-top: 14px; background: linear-gradient(135deg, #fdf6e3, #f9e9c4); border: 1px solid #ecd9a0; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.vh-ok-banner { margin-top: 14px; background: #e4f3ea; border: 1px solid #bfe3cd; border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: #2e7d5b; }
.vh-fout { margin-top: 14px; color: var(--c-accent-hover); font-size: 13px; }
/* Verhogingen in behandeling (lid-detail, financiële kaart) */
.vh-pending-rij { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #fdf6ec; border: 1px dashed #ecd9b4; border-radius: 10px; padding: 9px 12px; margin-top: 8px; }
.vh-pending-info { font-size: 12.5px; color: var(--c-ink); }
.vh-pending-info em { color: #a06a00; font-style: normal; font-weight: 600; }
.vh-pending-acts { display: flex; align-items: center; gap: 8px; }
.vh-pending .bh-klein { margin: 8px 0 0; }
/* Belastingen-kaart (indicatief) op lid-detail */
.bx-rij { display: flex; gap: 12px; align-items: baseline; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 9px 12px; margin-top: 8px; }
.bx-bedrag { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-info { font-size: 12.5px; color: var(--c-ink); line-height: 1.5; }
.bx-disclaimer { margin: 12px 0 0; font-size: 12px; color: #8a6d1a; background: #fdf6e3; border: 1px solid #ecd9a0; border-radius: 10px; padding: 9px 12px; line-height: 1.5; }
/* "Vraag Claude" in het archief */
.ai-zoek { margin-bottom: 14px; padding: 12px 16px; }
.ai-zoek-kop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-zoek-hint { font-size: 12px; color: var(--fg-muted); }
.ai-zoek-antwoord { margin-top: 12px; font-size: 13.5px; line-height: 1.65; }
.ai-zoek-antwoord a { color: var(--c-accent-hover); text-decoration: none; }
.ai-zoek-bronnen { margin-top: 10px; font-size: 12px; color: var(--fg-muted); }
.ai-zoek-bronnen a { color: var(--c-accent-hover); text-decoration: none; }
.ai-zoek .bh-klein { margin: 8px 0 0; }
.lg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lg-split-item { border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.lg-split-label { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.lg-split-val { font-family: var(--font-display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-split-sub { font-size: 11px; color: var(--fg-muted); }
@media (max-width: 560px) { .lg-split { grid-template-columns: 1fr; } }

/* Ponto credentials-invulveld (Boekhouding → PSD2) */
.bh-ponto-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.bh-ponto-form input { flex: 1 1 220px; min-width: 150px; padding: 9px 11px; border: 1px solid var(--border-default); border-radius: 9px; font-size: 13.5px; font-family: inherit; background: #fff; }
.bh-ponto-form input:focus { outline: none; border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }

/* Reken Engine — versiebadge, controlesysteem & persoonlijke ROI */
.re-versie { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.re-versie-badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--c-sidebar, #0d1729); color: #fff; border-radius: 999px; padding: 3px 11px; }
.re-versie-sub { font-size: 12px; color: var(--fg-muted); }
.rec-row { align-items: flex-start; }
.rec-ok, .rec-afw, .rec-info { width: 22px; min-width: 22px; text-align: center; font-weight: 700; margin-top: 1px; }
.rec-ok { color: #2f7f4d; }
.rec-afw { color: #b23a3a; }
.rec-info { color: var(--fg-muted); }
.lf-roi-pos { color: #3d7a5c; font-weight: 700; }
.lf-roi-neg { color: #b85c4e; font-weight: 700; }
/* Maandelijkse ROI-pop-up (ledenfiche) */
.roi-modal { width: min(760px, 100%); }
.roi-disclaimer { background: #fdf3e7; border: 1px solid #ecd9bc; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: #6b4f1d; margin-bottom: 12px; line-height: 1.5; }
.roi-scroll { overflow-x: auto; }
.roi-tabel { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.roi-tabel th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); padding: 6px 10px; border-bottom: 1px solid #e6e1d8; white-space: nowrap; }
.roi-tabel th:first-child { text-align: left; }
.roi-th-sub { display: block; font-size: 9.5px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.roi-tabel td { padding: 6px 10px; border-bottom: 1px solid #f0ece4; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.roi-tabel td.roi-mnd { text-align: left; font-weight: 600; }
.roi-tabel tbody tr:last-child td { border-bottom: 2px solid #d8d2c6; background: #faf8f4; font-weight: 600; }
.roi-badge { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; background: #eef2f7; color: #46607d; vertical-align: 1px; }
.roi-badge-pari { background: #e7f1e8; color: #2f7f4d; }
.roi-badge-kost { background: #f6ecd9; color: #8a5a12; }
.roi-voetnoot { font-size: 11.5px; color: var(--fg-muted); line-height: 1.55; margin-top: 12px; }
.roi-bron { font-size: 10.5px; color: #a09a8e; margin-top: 6px; }
.re-acc { font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 3px 11px; margin-left: 6px; }
.re-acc-ok { color: #2f7f4d; background: #e7f1e8; }
.re-acc-warn { color: #8a5a12; background: #f6ecd9; }
.re-acc-krit { color: #fff; background: #b23a3a; }
.re-backup { border-top: 1px dashed var(--border-subtle); margin-top: 8px; padding-top: 10px; }
.re-backup a { font-weight: 600; }
.re-auto { color: #1f4d5a; background: #d9eaec; }
.re-suggesties { border-top: 1px dashed var(--border-subtle); margin-top: 8px; padding-top: 12px; }
.re-sug-kop { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.re-suggesties ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.re-sug-pct { color: #2f7f4d; font-weight: 700; font-size: 12px; }
.lg-filters { display: flex; gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; }
.lg-zoek { border: 1px solid var(--border-default); border-radius: 8px; padding: 7px 11px; font-size: 13px; min-width: 180px; }
.rt-member.rt-member-laat { border-color: #7d4fa0; position: relative; }
.rt-member.rt-member-laat:hover { border-color: #663d85; }
/* aantal openstaande lidgeld-maanden op de paarse kader */
.rt-member-open { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: #7d4fa0; color: #fff; font-style: normal; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(13, 23, 41, .25); }
.rt-legend-laat { border-color: #7d4fa0; background: rgba(125,79,160,.10); }

/* Rewards-tab (NØA/SØF-distributie) */
.rw-status { border-radius: 12px; padding: 12px 16px; font-size: 13px; line-height: 1.55; margin: 14px 0; }
.rw-status-live { background: rgba(47,127,77,.09); border: 1px solid rgba(47,127,77,.3); color: #256b43; }
.rw-status-prep { background: rgba(201,160,78,.1); border: 1px solid rgba(201,160,78,.35); color: #7a5f22; }
.rw-mis { color: #b23a3a; font-weight: 600; }
.rw-config .lf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-config label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); margin-bottom: 4px; }
.rw-config input { width: 100%; padding: 8px 11px; border: 1px solid var(--border-default); border-radius: 8px; font: inherit; font-size: 13px; }
.rw-tablewrap { overflow-x: auto; }
.rw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rw-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); }
.rw-table th.num, .rw-table td.num { text-align: right; }
.rw-table td { padding: 7px 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.rw-tafelrij td { font-weight: 700; color: var(--c-ink); background: rgba(13,23,41,.03); font-size: 12.5px; }
.rw-lid { display: flex; align-items: center; gap: 9px; }
.rw-lid img, .rw-init { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--c-peach); color: var(--c-accent-hover); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rw-lid-sub { display: block; font-size: 11px; color: var(--fg-muted); }
.rw-wallet { width: 130px; padding: 6px 9px; border: 1px solid var(--border-default); border-radius: 7px; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.rw-wallet.fail { border-color: #b23a3a; }
.rw-noa, .rw-sof { width: 90px; padding: 6px 9px; border: 1px solid var(--border-default); border-radius: 7px; font: inherit; font-size: 12.5px; text-align: right; }
.rw-noa:disabled, .rw-sof:disabled { background: #f4f2ee; color: #b9b4ab; }
.rw-uit { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.rw-voet { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.rw-voet input { flex: 1; min-width: 240px; padding: 10px 13px; border: 1px solid var(--border-default); border-radius: 10px; font: inherit; font-size: 13.5px; }
.rw-batch { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.rw-batch:last-child { border-bottom: none; }
.rw-batch-kop { display: flex; align-items: center; gap: 8px; }
.rw-batch-tot { font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; }

/* Feedback & bug-log */
.fb-add { display: flex; flex-direction: column; gap: 10px; }
.fb-add input, .fb-add textarea, .fb-add select { padding: 9px 12px; border: 1px solid var(--border-default); border-radius: 9px; font: inherit; font-size: 13.5px; }
.fb-lijst { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.fb-item { background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 14px 16px; }
.fb-kop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-soort { font-size: 15px; }
.fb-tekst { margin: 8px 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--c-ink); white-space: pre-wrap; }
.fb-meta { font-size: 11.5px; color: var(--fg-muted); }
.fb-url { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; }
.fb-acties { margin-top: 8px; }
.fb-status { padding: 5px 10px; border: 1px solid var(--border-default); border-radius: 8px; font: inherit; font-size: 12.5px; }
.fb-bron { text-transform: capitalize; }
.rw-verdiend { font-size: 12px; }
.rw-tk { font-size: 9.5px; color: var(--fg-muted); font-weight: 600; }
.rw-open { display: block; font-size: 10.5px; color: #b23a3a; margin-top: 2px; }
.rw-open.rw-klaar { color: #2f7f4d; }


/* ── Chat (gedeeld: ledenportaal én backoffice-bestuurschat, lp-chat-*) ── */
.lp-chat-venster { margin-top: 6px; height: min(56vh, 560px); overflow-y: auto;
  background: linear-gradient(180deg, #faf7f2 0%, #f4efe7 100%); border: 1px solid #ece5d9;
  border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.lp-chat-dag { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 2px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #a08a5f; }
.lp-chat-dag span { font-size: 9px; color: #d8bf8f; }
.lp-chat-rij { display: flex; gap: 9px; align-items: flex-end; }
.lp-chat-rij.van-club { flex-direction: row-reverse; }
.lp-chat-av { width: 30px; height: 30px; min-width: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--border-subtle);
  color: var(--c-accent-hover); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(13, 23, 41, .08); }
.lp-chat-av-club { background: #0a1929; border-color: #0a1929; }
.lp-chat-av-club img { width: 16px; height: 20px; object-fit: contain; }
.lp-chat-bubbel { max-width: min(76%, 520px); background: #fff; border: 1px solid #eee7db;
  border-radius: 16px 16px 16px 5px; padding: 10px 15px; box-shadow: 0 2px 6px rgba(13, 23, 41, .05); }
.van-club .lp-chat-bubbel { background: linear-gradient(160deg, #16283f 0%, #0a1929 100%); border-color: #0a1929;
  border-radius: 16px 16px 5px 16px; box-shadow: 0 3px 10px rgba(10, 25, 41, .22); }
.van-club .lp-chat-tekst { color: #f3efe8; }
.van-club .lp-chat-tijd { color: #8fa0b3; }
.lp-chat-afzender { font-size: 11px; font-weight: 700; color: var(--c-accent-hover); margin-bottom: 3px; }
.van-club .lp-chat-afzender { color: #e2c48d; }
.lp-chat-af-sub { font-weight: 400; color: #8fa0b3; }
.lp-chat-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 11px; font-weight: 600;
  color: #3d7a5c; background: rgba(87, 169, 126, .1); border: 1px solid rgba(87, 169, 126, .28); border-radius: 999px; padding: 2px 10px; vertical-align: 2px; }
.lp-chat-live i { width: 7px; height: 7px; border-radius: 50%; background: #57a97e; box-shadow: 0 0 0 2.5px rgba(87, 169, 126, .2); }
.lp-chat-tekst { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.lp-chat-tijd { font-size: 10px; color: var(--fg-muted); margin-top: 4px; text-align: right; }
.lp-chat-media { max-width: 100%; border-radius: 8px; margin: 4px 0; }
.lp-chat-doc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #2e5a8f; margin: 4px 0; }
.lp-chat-doc svg { width: 14px; height: 14px; }
.lp-chat-invoer { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.lp-chat-invoer textarea { flex: 1; resize: none; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--border-default); background: #fff; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.lp-chat-invoer textarea:focus { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .18); }
.lp-chat-verstuur { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e79184 0%, #d06b5c 100%); border: none;
  box-shadow: 0 4px 14px rgba(208, 107, 92, .35), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .15s; }
.lp-chat-verstuur:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(208, 107, 92, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.lp-chat-verstuur svg { width: 20px; height: 20px; }
.lp-chat-verstuur { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
.lp-chat-verstuur svg { width: 18px; height: 18px; }
.lp-chat-invoer { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.lp-chat-invoer textarea, .lp-chat-invoer input[type=text] { flex: 1; padding: 11px 14px; border: 1px solid var(--border-default); border-radius: 12px; font: inherit; font-size: 13.5px; resize: none; outline: none; background: #fff; }
.lp-chat-invoer textarea:focus, .lp-chat-invoer input[type=text]:focus { border-color: var(--c-accent-red); box-shadow: 0 0 0 3px rgba(226, 131, 116, .12); }
.lp-chat-verstuur { width: 46px; height: 46px; border-radius: 50%; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-chat-verstuur svg { width: 19px; height: 19px; }
.lp-chat-lees { font-size: 10px; color: var(--fg-muted); margin-top: 3px; text-align: right; }
.van-club .lp-chat-lees { color: #8fa0b3; }
.lp-chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .lp-chat-grid { grid-template-columns: 1fr; } }
.lp-chat-ledenlijst { display: flex; flex-direction: column; gap: 2px; max-height: 560px; overflow-y: auto; }
.lp-chat-lid { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; text-decoration: none; color: inherit; }
.lp-chat-lid:hover { background: var(--c-body); }
.lp-chat-lid img, .lp-chat-lid-init { width: 30px; height: 30px; min-width: 30px; border-radius: 50%; object-fit: cover; }
.lp-chat-lid-init { display: inline-grid; place-items: center; background: var(--c-body); color: var(--c-accent-hover); font-size: 11.5px; font-weight: 700; border: 1px solid var(--border-subtle); }
.lp-chat-lid img.ring-on, .lp-chat-lid-init.ring-on { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #5cae85; }
.lp-chat-lid img.ring-off, .lp-chat-lid-init.ring-off { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #d6907e; }
.lp-chat-lid-main { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; flex: 1; }
.lp-chat-lid-naam { font-size: 12.5px; font-weight: 600; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lp-chat-lid-jij { color: var(--fg-muted); font-weight: 400; }
.chat-mention { color: var(--c-accent-hover); font-weight: 700; }
.van-club .chat-mention { color: #e2c48d; }

/* In + totaal-W/V-regel boven de portefeuilletabel (LCW-parity) */
.rt-bl-inperf { font-size: 13px; color: var(--fg-muted); margin: 12px 0 8px; }
.rt-bl-inperf strong { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.rt-bl-inperf strong.up, .rt-bl-inperf .up { color: #3d7a5c; }
.rt-bl-inperf strong.down, .rt-bl-inperf .down { color: #b85c4e; }
