/* =====================================================================
 * RSG Product Design System  —  product.css
 * The single, canonical house style for every product surface built from
 * P1b onward: client portal, presentation/approval pages, new internal Hub
 * surfaces, dashboards. This IS the design system, not a mockup beside it.
 *
 * Visual direction: "SIGNAL" (Seth's chosen house style, replacing the old
 * gold one). Confident, high-contrast, decisive: oversized Bricolage
 * Grotesque used as a graphic element, ONE electric-blue signal (#1544F2)
 * on a crisp warm-white base with near-black ink. Bold, but controlled —
 * never garish (Raycast / Linear energy). The ownable signature is "the
 * signal tick": a solid, hard-cornered electric-blue square + short bar that
 * marks every eyebrow, active nav, hero, and note.
 *
 * Contract:
 *  - Tokens live on :root and are safe to load anywhere.
 *  - Every component class is namespaced `ui-` so it never collides with
 *    legacy Hub styles (bare .card/.btn/.col) or the form engine (.rsg-*).
 *  - The Apply FORM runtime keeps its own 4-skin engine (Apply/form.css);
 *    this file shares its craft DNA (token discipline, transform/opacity
 *    motion only, the layered focus ring) but is a separate stylesheet.
 *  - Electric-blue carries ACTION / active / focus ONLY. Status colours
 *    carry state and are ALWAYS paired with an icon + label, never colour
 *    alone. Amber survives only as the semantic `warn` state, never décor.
 *  - Light-first, single committed theme in v1. A dark theme is a later
 *    token swap only (see the stub at the end) — never a component rewrite.
 *
 * Light base. Every text pairing verified WCAG AA (product/contrast_check.py).
 * Self-hosted fonts (product/fonts/*.woff2, relative to THIS file at
 * RSG-Hub/product.css), no CDN, no base64.
 * ===================================================================== */

/* ============================ 0. FONTS ============================= */
/* Bricolage Grotesque (display) + Geist (body/text), self-hosted from the
   shared product/fonts/ dir. url() resolves relative to product.css, so the
   same paths work for _components.html, the prototypes, and every consumer. */
@font-face {
  font-family: "RSG Display";
  src: url("product/fonts/bricolage-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RSG Display";
  src: url("product/fonts/bricolage-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RSG Text";
  src: url("product/fonts/geist-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "RSG Text";
  src: url("product/fonts/geist-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ============================ 1. TOKENS ============================= */
:root {
  /* --- Type roles. Display carries all the character (Bricolage); the body
     face stays clean + neutral (Geist) so the contrast reads premium. Both
     degrade to cross-platform faces; legibility never depends on the woff2. */
  --font-display: "RSG Display", "Bricolage Grotesque", "Archivo", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "RSG Text", "Geist", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", "Roboto Mono", Menlo, "DejaVu Sans Mono", monospace;

  /* type scale — bigger, more confident. Hero sizes fluid so 1280 + 375 both
     land without horizontal page scroll. */
  --fs-caption: 0.75rem;    /* 12 — tracked uppercase labels / eyebrows */
  --fs-body-s: 0.875rem;    /* 14 */
  --fs-body: 1rem;          /* 16 — inputs never below this */
  --fs-subhead: 1.1875rem;  /* 19 */
  --fs-h3: 1.5rem;          /* 24 */
  --fs-h2: clamp(1.75rem, 1.28rem + 2.1vw, 2.2rem);   /* ~28–35 */
  --fs-h1: clamp(2.1rem, 1.5rem + 2.9vw, 2.85rem);    /* ~34–46 */
  --fs-display: clamp(2.6rem, 1.5rem + 5.2vw, 4rem);  /* ~42–64 — covers */
  --lh-body: 1.55;
  --lh-tight: 1.02;
  --track-caps: 0.08em;     /* wider tracking = the decisive, technical voice */

  /* spacing — same 4/8 rhythm, a touch more generous at the top end. */
  --s-0-5: 6px;
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;

  /* radius — committed crisp/modern system. Small elements are tight; the
     signature square marker is HARD (0px) on purpose, against these curves. */
  --r-sm: 6px;    /* inputs, chips */
  --r-md: 9px;    /* buttons, controls */
  --r-card: 13px; /* cards, panels */
  --r-lg: 18px;   /* modals, drawers, cover */
  --r-pill: 999px;

  /* elevation — crisp + cool (near-black based). Cards pair a hairline border
     WITH a soft shadow for a tactile, premium edge. Never animated. */
  --shadow-1: 0 1px 2px rgba(10,11,16,.05), 0 1px 3px rgba(10,11,16,.06);
  --shadow-2: 0 4px 12px -3px rgba(10,11,16,.10), 0 12px 26px -10px rgba(10,11,16,.14);
  --shadow-3: 0 18px 42px -14px rgba(10,11,16,.22), 0 34px 70px -26px rgba(10,11,16,.28);

  /* --- Crisp warm-neutral ramp (a whisper of warmth, mostly clean). --- */
  --paper: #FFFFFF;        /* raised surface: cards, drawers, menus */
  --bg: #F4F3EF;           /* soft warm off-white page ground */
  --n-50: #ECEAE4;         /* subtle fill / hover ground / column bg */
  --n-100: #E1DFD8;        /* track, strong hairline */
  --n-150: #D8D5CD;
  --n-200: #CBC8BF;        /* switch off, dots */
  --line: #E6E4DD;         /* default hairline */
  --line-strong: #D3D0C7;  /* rules, segmented-control hairline (decorative) */
  --input-border: #8A897F; /* field boundary — 3.52:1 on paper (form controls) */
  --ink-mute: #8B8B93;     /* 3.38:1 — DISABLED + non-load-bearing icons/dots ONLY */
  --ink-soft: #5C5C64;     /* secondary + tertiary text (AA 6.62 paper / 5.97 bg) */
  --ink-2: #3B3B42;        /* secondary-strong */
  --ink: #1B1B20;          /* body + most headings (AA 17.1 on paper) */
  --ink-strong: #0A0A0D;   /* display / hero ink — the near-black graphic */

  /* --- ONE electric-blue signal + derived steps. This is the product's whole
     voice: ACTION, active, focus, links, the signature marker. Nudged a step
     bluer/more electric (away from any violet iris) so it can never be mistaken
     for another modern-SaaS blue. It NEVER carries state (that's the status set
     below) and never collides with the scoped client red. --- */
  --accent: #1544F2;         /* primary fill, active — white on it = 6.69:1 */
  --accent-hover: #123AD0;
  --accent-press: #0F31AE;
  --accent-ink: #FFFFFF;     /* text/icon on an electric-blue fill */
  --accent-text: #1138C6;    /* accent as text/link on light (AA >=8.7 on paper) */
  --accent-subtle: #E8ECFE;  /* tinted background */
  --accent-subtle-2: #DAE1FD;
  --accent-line: #B9C7FB;

  /* --- Semantic status (separate from the accent; colourblind-safe; ALWAYS
     paired with an icon + label, never colour alone). --- */
  --ok: #2E9E63;      --ok-text: #1B7346;   --ok-bg: #E4F4EA;   --ok-line: #BFE4CD;
  --info: #2F6FE0;    --info-text: #2358C0; --info-bg: #E7EEFC; --info-line: #C4D7F6;
  --warn: #CE7016;    --warn-text: #9C540F; --warn-bg: #FBEEDD; --warn-line: #F0D4AC;
  --danger: #C4392A;  --danger-text: #B33322; --danger-bg: #FBE7E3; --danger-line: #F1C6BE;
  --pending: #8A56C9; --pending-text: #6E3FA8; --pending-bg: #F0E9FA; --pending-line: #DCCBF2;

  /* --- Pipeline STAGE ramp — 8 distinct hues, one source of truth for both
     .ui-stage--* (pill dot) and .ui-col--* (column dot). Cobalt is reserved
     for action, so no stage uses --accent. The dot is always redundant to a
     text label. --- */
  --stage-teal: #0E8C93;
  --stage-indigo: #5457C8;
  --st-nieuw: var(--info);
  --st-beoordelen: var(--warn);
  --st-interessant: var(--stage-indigo, var(--accent));
  --st-contact: var(--stage-teal);
  --st-gekwalificeerd: var(--stage-indigo);
  --st-meeting_gepland: var(--stage-teal);
  --st-interview: var(--pending);
  --st-aangenomen: var(--ok);
  --st-afgewezen: var(--danger);
  --st-talentpool: var(--ink-mute);

  /* client-brand slot (portal instance): logo chip + cover only. Overridden
     per instance; defaults to the cobalt signal. Luminance-aware on-color. */
  --client-accent: var(--accent);
  --client-accent-ink: var(--accent-ink);

  /* --- Motion — the inherited "RSG feel", transform/opacity only. */
  --dur-press: 80ms; --dur-fast: 140ms; --dur-exit: 200ms;
  --dur-enter: 320ms; --dur-celebrate: 460ms;
  --ease-entrance: cubic-bezier(.16,1,.3,1);
  --ease-exit: cubic-bezier(.5,0,.75,0);
  --ease-overshoot: cubic-bezier(.34,1.56,.64,1);

  /* Focus rings. Two deliberate treatments:
     --ring       : the layered electric-blue ring for pressable controls
                    (buttons, nav, cards) — a paper gap + a solid accent ring +
                    a faint outer halo, so it reads on any surface.
     --ring-input : a CRISP single electric-blue ring for form fields. The
                    field border turns full accent and ONE tight, OPAQUE tint
                    ring hugs it (mixed with paper, never `transparent`, so the
                    edge is sharp — not a fuzzy double glow). Used by every
                    input, textarea, select, search field and OTP cell so the
                    approve + comment modals feel premium and consistent. */
  --ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent),
          0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent);
  --ring-input: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, var(--paper));
  --ring-tight: var(--ring-input);
}

/* ============================ 2. BASE ============================== */
/* Components below set their own display (.ui-drawer/.ui-modal are display:flex).
   An author rule of equal specificity outranks the UA [hidden] rule, so without
   this normalise `el.hidden = true` silently does nothing and the element stays
   on screen. Every consumer that toggles .hidden depends on this. */
[hidden] { display: none !important; }

.ui-app, .ui-scope { font-family: var(--font-body); color: var(--ink); background: var(--bg);
  font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ui-app *, .ui-scope * { box-sizing: border-box; min-width: 0; }

.ui-h1, .ui-h2, .ui-h3 { font-family: var(--font-display); color: var(--ink-strong);
  line-height: var(--lh-tight); letter-spacing: -.025em; text-wrap: balance; margin: 0; font-weight: 800;
  overflow-wrap: break-word; }
.ui-h1 { font-size: var(--fs-h1); }
.ui-h2 { font-size: var(--fs-h2); }
.ui-h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; }
.ui-display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 800;
  letter-spacing: -.035em; line-height: 1; color: var(--ink-strong); text-wrap: balance; margin: 0;
  overflow-wrap: break-word; }
.ui-subhead { font-size: var(--fs-subhead); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em; }
/* THE SIGNATURE — eyebrow with a leading solid cobalt square (hard corners). */
.ui-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-caption);
  letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--accent-text); font-weight: 600; margin: 0; }
.ui-eyebrow::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; background: var(--accent);
  border-radius: 1px; }
.ui-caption { font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; }
.ui-body { font-size: var(--fs-body); color: var(--ink); line-height: var(--lh-body); margin: 0; max-width: 66ch; }
.ui-muted { color: var(--ink-soft); }
.ui-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.ui-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ui-link { color: var(--accent-text); font-weight: 600; text-underline-offset: 2px;
  text-decoration-thickness: 2px; text-decoration-color: var(--accent-line); cursor: pointer; }
.ui-link:hover { color: var(--accent-press); text-decoration-color: currentColor; }

/* layout helpers — gap only */
.ui-stack { display: flex; flex-direction: column; gap: var(--s-4); }
.ui-stack-2 { display: flex; flex-direction: column; gap: var(--s-2); }
.ui-stack-3 { display: flex; flex-direction: column; gap: var(--s-3); }
.ui-stack-6 { display: flex; flex-direction: column; gap: var(--s-6); }
.ui-row { display: flex; align-items: center; gap: var(--s-3); }
.ui-row-wrap { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.ui-spacer { flex: 1 1 auto; }
.ui-divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.ui-text-s { font-size: var(--fs-body-s); }
.ui-text-name { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); letter-spacing: -.01em; }

.ui-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ui-sr-only--focusable:focus, .ui-sr-only--focusable:focus-visible { position: fixed; top: var(--s-3); left: var(--s-3);
  width: auto; height: auto; margin: 0; padding: var(--s-2) var(--s-3); overflow: visible; clip: auto; clip-path: none;
  white-space: normal; background: var(--ink-strong); color: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-2); z-index: 100; font-weight: 600; }

/* shared focus contract — every interactive element gets the cobalt ring. */
.ui-btn:focus-visible, .ui-tab:focus-visible, .ui-rail-item:focus-visible,
.ui-iconbtn:focus-visible, .ui-inboxitem:focus-visible, .ui-link:focus-visible,
.ui-th-sort:focus-visible, .ui-candidate:focus-visible,
.ui-topnav a:focus-visible, .ui-search__clear:focus-visible, .ui-vis-select button:focus-visible,
.ui-pending-chip__undo:focus-visible, .ui-toast__action:focus-visible, .ui-toast__close:focus-visible,
.ui-breadcrumb a:focus-visible {
  outline: none; box-shadow: var(--ring); }
/* form fields (incl. OTP cells) get the CRISP single electric-blue ring:
   full-accent border + one opaque tint ring, never the layered halo. */
.ui-input:focus-visible, .ui-textarea:focus-visible, .ui-select:focus-visible,
.ui-search__input:focus-visible, .ui-otp__cell:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: var(--ring-input); }

/* ====================== 3. APP SHELL + NAV ======================== */
.ui-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--bg); }
.ui-rail { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4);
  background: var(--paper); border-right: 1px solid var(--line); }
.ui-rail-brand { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-4);
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: var(--fs-subhead);
  color: var(--ink-strong); }
.ui-rail-mark { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-family: var(--font-display); }
.ui-rail-section { font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; padding: var(--s-3) var(--s-2) var(--s-1); }
.ui-rail-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md); color: var(--ink-soft); font-weight: 500; font: inherit; font-size: var(--fs-body-s);
  text-decoration: none; background: transparent; border: 0; cursor: pointer; position: relative;
  transition: background var(--dur-fast), color var(--dur-fast); }
.ui-rail-item svg { flex: 0 0 auto; opacity: .8; }
.ui-rail-item:hover { background: var(--n-50); color: var(--ink); }
.ui-rail-item.is-active { background: var(--accent-subtle); color: var(--accent-text); font-weight: 600; }
.ui-rail-item.is-active::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0; background: var(--accent); }
.ui-rail-item .ui-badge { margin-left: auto; }

.ui-main { display: flex; flex-direction: column; min-width: 0; }
.ui-content { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-6); max-width: 1180px; }

/* portal top bar */
.ui-topbar { display: flex; align-items: center; gap: var(--s-3); height: 62px; padding: 0 var(--s-5);
  background: var(--paper); border-bottom: 1px solid var(--line); }
.ui-topbar-brandchip { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1);
  border-radius: var(--r-pill); background: var(--n-50);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--client-accent) 45%, transparent); }
.ui-topbar-brandchip img, .ui-topbar-logo { height: 22px; width: auto; display: block; border-radius: var(--r-sm); }
.ui-topbar-logo { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--client-accent);
  color: var(--client-accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.ui-topbar-title { font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); letter-spacing: -.01em; }
.ui-topnav { display: flex; gap: var(--s-1); margin-left: var(--s-4); }
.ui-topnav a { display: inline-flex; align-items: center; min-height: 44px; position: relative;
  padding: 0 12px; border-radius: var(--r-md); color: var(--ink-soft); font-weight: 500;
  font-size: var(--fs-body-s); text-decoration: none; }
.ui-topnav a:hover { background: var(--n-50); color: var(--ink); }
/* active nav = the signal bar (thick cobalt underline block) */
.ui-topnav a[aria-current] { color: var(--ink-strong); font-weight: 600; }
.ui-topnav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 3px; border-radius: 0; background: var(--accent); }

.ui-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  font-size: var(--fs-body-s); color: var(--ink-soft); }
.ui-breadcrumb a { display: inline-flex; align-items: center; color: var(--ink-soft); text-decoration: none; border-radius: var(--r-sm); }
.ui-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ui-breadcrumb__sep { display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--ink-mute); }
.ui-breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .ui-shell { grid-template-columns: 1fr; }
  .ui-rail { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ui-rail-section { display: none; }
  .ui-rail-item.is-active::before { left: 8px; right: 8px; top: auto; bottom: -4px; width: auto; height: 3px; }
  .ui-content { padding: var(--s-4); gap: var(--s-5); }
}
/* phones: keep the top bar a single tidy row. The presentation puts its nav
   INLINE in the top bar (a direct child), which cramps at 375 — collapse just
   that one (the section index + page nav carry wayfinding there). The portal
   home keeps its nav in a separate scrollable strip (.pp-subnav .ui-topnav),
   which is NOT a direct child of .ui-topbar, so it is untouched. */
@media (max-width: 640px) {
  .ui-topbar { padding: 0 var(--s-4); gap: var(--s-2); }
  .ui-topbar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ui-topbar > .ui-topnav { display: none; }
}

/* ========================== 4. BUTTONS ============================ */
.ui-btn { appearance: none; font: inherit; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body-s);
  border: 1.5px solid transparent; border-radius: var(--r-md); padding: 0 18px; min-height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); position: relative;
  color: var(--ink); background: transparent; white-space: nowrap; letter-spacing: -.005em;
  transition: transform var(--dur-press) var(--ease-overshoot), background var(--dur-fast),
              border-color var(--dur-fast), color var(--dur-fast); }
.ui-btn:active { transform: scale(.985); }
.ui-btn svg { flex: 0 0 auto; }
/* primary = the bold cobalt accent moment. Crisp, decisive; no soft glow. */
.ui-btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(10,11,16,.14), 0 6px 16px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
.ui-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ui-btn--primary:active { background: var(--accent-press); border-color: var(--accent-press); }
/* secondary = white block with a strong near-black outline (high contrast) */
.ui-btn--secondary { background: var(--paper); color: var(--ink-strong); border-color: var(--ink-strong); box-shadow: var(--shadow-1); }
.ui-btn--secondary:hover { background: var(--ink-strong); color: #fff; }
.ui-btn--tertiary { color: var(--ink-soft); padding: 0 12px; border-color: transparent; }
.ui-btn--tertiary:hover { color: var(--ink-strong); background: var(--n-50); }
.ui-btn--danger { background: var(--danger); color: #fff; border-color: var(--danger);
  box-shadow: 0 1px 2px rgba(10,11,16,.14), 0 6px 16px -8px color-mix(in oklab, var(--danger) 60%, transparent); }
.ui-btn--danger:hover { background: color-mix(in oklab, var(--danger) 88%, #000); border-color: color-mix(in oklab, var(--danger) 88%, #000); }
.ui-btn--sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-caption); border-radius: var(--r-sm); }
.ui-btn--sm::before { content: ""; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); height: 44px; }
.ui-btn--lg { min-height: 50px; padding: 0 24px; font-size: var(--fs-body); }
.ui-btn[disabled], .ui-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.ui-btn.is-loading { color: transparent !important; pointer-events: none; }
.ui-btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in oklab, currentColor 30%, transparent); border-top-color: currentColor;
  color: var(--accent-ink); animation: ui-spin .7s linear infinite; }
.ui-btn--secondary.is-loading::after, .ui-btn--tertiary.is-loading::after { color: var(--ink-strong); }
.ui-btn--danger.is-loading::after { color: #fff; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

.ui-iconbtn { appearance: none; border: 1.5px solid transparent; background: transparent; color: var(--ink-soft);
  width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; position: relative;
  transition: background var(--dur-fast), color var(--dur-fast); }
.ui-iconbtn::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; }
.ui-iconbtn:hover { background: var(--n-50); color: var(--ink-strong); }

.ui-kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--n-50); font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; color: var(--ink-soft); }

/* ======================= 5. INPUTS + FORMS ======================= */
.ui-field { display: flex; flex-direction: column; gap: var(--s-0-5); }
.ui-label { font-size: var(--fs-body-s); font-weight: 600; color: var(--ink); }
.ui-label .ui-opt { color: var(--ink-soft); font-weight: 400; }
.ui-help { font-size: var(--fs-body-s); color: var(--ink-soft); line-height: 1.5; }
.ui-input, .ui-textarea, .ui-select { font: inherit; font-size: var(--fs-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--input-border); border-radius: var(--r-sm);
  padding: 10px 12px; min-height: 44px; width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.ui-input::placeholder, .ui-textarea::placeholder { color: var(--ink-soft); }
.ui-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ui-select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C5C64' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.ui-input:hover, .ui-textarea:hover, .ui-select:hover { border-color: var(--ink-soft); }
.ui-input[disabled], .ui-textarea[disabled] { background: var(--n-50); color: var(--ink-mute); cursor: not-allowed; }

.ui-input.is-invalid, .ui-textarea.is-invalid, .ui-select.is-invalid { border-color: var(--warn); }
.ui-input.is-invalid:focus-visible, .ui-textarea.is-invalid:focus-visible, .ui-select.is-invalid:focus-visible {
  border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in oklab, var(--warn) 26%, var(--paper)); }
.ui-error { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-body-s);
  color: var(--warn-text); font-weight: 560; }
.ui-error svg { flex: 0 0 auto; color: var(--warn); }
.ui-valid { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-body-s);
  color: var(--ok-text); font-weight: 560; }
.ui-valid svg { color: var(--ok); }

.ui-search { position: relative; display: flex; align-items: center; }
.ui-search__icon { position: absolute; left: 12px; color: var(--ink-mute); pointer-events: none; display: grid; }
.ui-search__input { font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--input-border); border-radius: var(--r-sm); padding: 10px 40px; min-height: 44px; width: 100%; }
.ui-search__input::placeholder { color: var(--ink-soft); }
.ui-search__clear { position: absolute; right: 8px; width: 26px; height: 26px; border: 0; background: transparent;
  color: var(--ink-mute); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ui-search__clear::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; }
.ui-search__clear:hover { background: var(--n-100); color: var(--ink-strong); }

.ui-switch { position: relative; display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer;
  font-size: var(--fs-body-s); color: var(--ink); }
.ui-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ui-switch__track { width: 40px; height: 24px; border-radius: var(--r-pill); background: var(--n-200);
  position: relative; transition: background var(--dur-fast); flex: 0 0 auto; }
.ui-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-overshoot); }
.ui-switch input:checked + .ui-switch__track { background: var(--accent); }
.ui-switch input:checked + .ui-switch__track::after { transform: translateX(16px); }
.ui-switch input:focus-visible + .ui-switch__track { box-shadow: var(--ring-tight); }

.ui-choice { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body-s); color: var(--ink); cursor: pointer; }
.ui-choice input { accent-color: var(--accent); width: 18px; height: 18px; }

/* ============================ 6. CARDS =========================== */
.ui-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; overflow: clip; }
.ui-card__header { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3); }
.ui-card__header .ui-spacer { flex: 1; }
.ui-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--ink-strong); letter-spacing: -.02em; }
.ui-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.ui-card__header + .ui-card__body { padding-top: 0; }
.ui-card__footer { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); background: color-mix(in oklab, var(--n-50) 45%, var(--paper));
  display: flex; align-items: center; gap: var(--s-3); }

/* PUNCHY STAT — near-black rule above an oversized Bricolage number (a data
   "ledger" block). The delta reads in status colour, never the number. */
.ui-stat { display: flex; flex-direction: column; gap: 3px; padding-top: var(--s-2); border-top: 2px solid var(--ink-strong); }
.ui-stat__label { font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; }
.ui-stat__value { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--ink-strong);
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.02; }
.ui-stat__delta { font-size: var(--fs-body-s); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.ui-stat__delta.is-up { color: var(--ok-text); }
.ui-stat__delta.is-down { color: var(--danger-text); }

/* ======================== 7. AVATAR ============================== */
/* Initials on a deterministic gradient (JS sets --av-h). Lightness pinned so
   WHITE initials clear AA across all 360 hues — same proven formula. */
.ui-avatar { --av-h: 80; width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .01em; overflow: hidden; user-select: none;
  background: linear-gradient(140deg,
    oklch(0.52 0.11 var(--av-h)),
    oklch(0.45 0.13 calc(var(--av-h) - 26))); }
.ui-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ui-avatar--24 { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
.ui-avatar--32 { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.ui-avatar--48 { width: 48px; height: 48px; font-size: 17px; border-radius: 10px; }

/* ====================== 8. STATUS PILLS ========================= */
.ui-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 9px; border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--n-50); color: var(--ink-2); border: 1px solid var(--line); }
.ui-pill svg, .ui-pill .ui-dot { flex: 0 0 auto; }
.ui-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ui-pill--ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-line); }
.ui-pill--info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-line); }
.ui-pill--warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-line); }
.ui-pill--danger { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-line); }
.ui-pill--pending { background: var(--pending-bg); color: var(--pending-text); border-color: var(--pending-line); }
.ui-pill--accent { background: var(--accent-subtle); color: var(--accent-text); border-color: var(--accent-line); }

.ui-stage { display: inline-flex; align-items: center; gap: var(--s-0-5); padding: 3px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 600; white-space: nowrap;
  background: var(--n-50); color: var(--ink-2); border: 1px solid var(--line); }
.ui-stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--stage-dot, var(--ink-mute)); }
.ui-stage--nieuw          { --stage-dot: var(--st-nieuw); }
.ui-stage--beoordelen     { --stage-dot: var(--st-beoordelen); }
.ui-stage--interessant    { --stage-dot: var(--st-interessant); }
.ui-stage--contact        { --stage-dot: var(--st-contact); }
.ui-stage--gekwalificeerd { --stage-dot: var(--st-gekwalificeerd); }
.ui-stage--meeting_gepland{ --stage-dot: var(--st-meeting_gepland); }
.ui-stage--interview      { --stage-dot: var(--st-interview); }
.ui-stage--aangenomen     { --stage-dot: var(--st-aangenomen); }
.ui-stage--afgewezen      { --stage-dot: var(--st-afgewezen); }
.ui-stage--talentpool     { --stage-dot: var(--st-talentpool); }

.ui-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--n-100); color: var(--ink-2); font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.ui-badge--accent { background: var(--accent); color: var(--accent-ink); }
.ui-badge--danger { background: var(--danger); color: #fff; }
.ui-badge--warn { background: var(--warn); color: var(--ink-strong); }

/* days-in-stage badge (warn past threshold); stale state swaps clock -> filled
   alert triangle (shape change), never colour-only. */
.ui-days { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); font-weight: 600;
  color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ui-days.is-stale { color: var(--warn-text); font-weight: 700; }
.ui-days.is-stale svg { display: none; }
.ui-days.is-stale::before { content: ""; flex: 0 0 auto; width: 13px; height: 13px; background-color: var(--warn);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12 3 L22.5 21 L1.5 21 Z M11 9 h2 v5 h-2 Z M11 16.5 h2 v2 h-2 Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12 3 L22.5 21 L1.5 21 Z M11 9 h2 v5 h-2 Z M11 16.5 h2 v2 h-2 Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ===================== 9. CANDIDATE CARD ======================== */
.ui-candidate { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-3);
  cursor: pointer; position: relative; text-align: left; width: 100%; font: inherit; color: var(--ink);
  transition: transform var(--dur-press) var(--ease-overshoot), border-color var(--dur-fast), box-shadow var(--dur-fast); }
/* signature: a thin cobalt tick appears on the left edge on hover/focus */
.ui-candidate::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent); opacity: 0; transition: opacity var(--dur-fast); }
.ui-candidate:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.ui-candidate:hover::before, .ui-candidate:focus-visible::before { opacity: 1; }
.ui-candidate:active { transform: scale(.995); }
.ui-candidate--compact { padding: var(--s-3); gap: var(--s-2); }
.ui-candidate--compact .ui-candidate__name { font-size: var(--fs-body-s); }
.ui-candidate--static { cursor: default; }
.ui-candidate--static::before { display: none; }
.ui-candidate--static:hover { border-color: var(--line); box-shadow: var(--shadow-1); }
.ui-candidate--static:active { transform: none; }
.ui-candidate__top { display: flex; align-items: flex-start; gap: var(--s-3); }
.ui-candidate__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ui-candidate__name { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 700; color: var(--ink-strong);
  line-height: 1.2; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.ui-candidate__vacancy { font-size: var(--fs-body-s); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the signal tick, in miniature — a HARD cobalt square (never a round node), so
   the "has a note" mark reads as the same square motif as every eyebrow. */
.ui-note-dot { width: 8px; height: 8px; border-radius: 1px; background: var(--accent); flex: 0 0 auto;
  box-shadow: 0 0 0 3px var(--accent-subtle); }
.ui-candidate__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--n-50); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-caption); font-weight: 500; }
.ui-chip svg { color: var(--ink-mute); }
.ui-candidate__foot { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.ui-candidate__next { display: flex; align-items: center; gap: 6px; font-size: var(--fs-body-s); color: var(--ink-2); }
.ui-candidate__next svg { color: var(--accent); flex: 0 0 auto; }
.ui-candidate__open { flex: 0 0 auto; align-self: center; display: grid; place-items: center;
  color: var(--ink-mute); opacity: .5; transition: opacity var(--dur-fast), color var(--dur-fast); }
.ui-candidate:hover .ui-candidate__open,
.ui-candidate:focus-visible .ui-candidate__open { opacity: 1; color: var(--accent-text); }

.ui-pending-chip { display: flex; flex-direction: column; gap: 7px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--pending-bg); border: 1px solid var(--pending-line); color: var(--pending-text); font-size: var(--fs-caption); }
.ui-pending-chip__top { display: flex; align-items: center; gap: var(--s-2); }
.ui-pending-chip__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.ui-pending-chip__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-pending-chip__count { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--font-mono); }
.ui-pending-chip__bottom { display: flex; align-items: center; gap: var(--s-2); }
.ui-pending-chip__undo { appearance: none; border: 1px solid var(--pending-line); background: var(--paper); color: var(--pending-text);
  font: inherit; font-size: var(--fs-caption); font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm); cursor: pointer; flex: 0 0 auto; position: relative; }
.ui-pending-chip__undo::before { content: ""; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); height: 44px; }
.ui-pending-chip__undo:hover { background: color-mix(in oklab, var(--pending) 12%, var(--paper)); }
.ui-pending-chip__bar { flex: 1; height: 4px; border-radius: 3px; background: color-mix(in oklab, var(--pending) 22%, transparent);
  overflow: hidden; min-width: 24px; }
.ui-pending-chip__bar::after { content: ""; display: block; height: 100%; background: var(--pending);
  transform-origin: right; animation: ui-drain var(--undo-window, 3600s) linear forwards; }
@keyframes ui-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ======================== 10. TABLES ============================ */
.ui-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.ui-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-s); }
.ui-table thead th { position: sticky; top: 0; z-index: 1; background: var(--n-50); text-align: left;
  font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
  padding: 11px var(--s-4); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.ui-table td { padding: 12px var(--s-4); border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.ui-table tbody tr:last-child td { border-bottom: 0; }
.ui-table tbody tr { transition: background var(--dur-fast); }
.ui-table tbody tr:hover { background: color-mix(in oklab, var(--accent-subtle) 45%, var(--paper)); }
.ui-table tbody tr[role="button"] { cursor: pointer; }
.ui-table tbody tr[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ui-table .ui-num, .ui-table--num td { font-variant-numeric: tabular-nums; }
.ui-td-right { text-align: right; }
.ui-th-sort { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; font: inherit;
  color: inherit; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; cursor: pointer; padding: 0; }
.ui-th-sort svg { opacity: .4; transition: opacity var(--dur-fast); }
.ui-th-sort:hover svg, th.is-sorted .ui-th-sort svg { opacity: 1; color: var(--accent-text); }
.ui-table__more { display: flex; justify-content: center; padding: var(--s-3); border-top: 1px solid var(--line); }
.ui-table tfoot td, .ui-table tfoot th { padding: 12px var(--s-4); border-top: 2px solid var(--ink-strong);
  font-weight: 700; color: var(--ink-strong); background: color-mix(in oklab, var(--n-50) 45%, var(--paper));
  font-variant-numeric: tabular-nums; }

/* ========================= 11. KANBAN ========================== */
.ui-kanban { display: flex; gap: var(--s-4); overflow-x: auto; padding-bottom: var(--s-3); align-items: flex-start; }
.ui-col { background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-card);
  min-width: 280px; max-width: 300px; flex: 0 0 auto; display: flex; flex-direction: column; max-height: 74vh; }
.ui-col__head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-3) var(--s-2); }
.ui-col__title { font-size: var(--fs-body-s); font-weight: 700; color: var(--ink-strong); display: inline-flex; align-items: center; gap: 7px; letter-spacing: -.01em; }
.ui-col__title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--col-accent, var(--ink-mute)); }
.ui-col__sum { margin-left: auto; font-size: var(--fs-caption); color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-col__body { padding: 0 var(--s-2) var(--s-3); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-2); min-height: 40px; }
.ui-col--nieuw          { --col-accent: var(--st-nieuw); }
.ui-col--beoordelen     { --col-accent: var(--st-beoordelen); }
.ui-col--interessant    { --col-accent: var(--st-interessant); }
.ui-col--contact        { --col-accent: var(--st-contact); }
.ui-col--gekwalificeerd { --col-accent: var(--st-gekwalificeerd); }
.ui-col--meeting_gepland{ --col-accent: var(--st-meeting_gepland); }
.ui-col--interview      { --col-accent: var(--st-interview); }
.ui-col--aangenomen     { --col-accent: var(--st-aangenomen); }
.ui-col--afgewezen      { --col-accent: var(--st-afgewezen); }
.ui-col--talentpool     { --col-accent: var(--st-talentpool); }
.ui-col__body .is-arriving { animation: ui-arrive var(--dur-enter) var(--ease-entrance); }
@keyframes ui-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .ui-kanban { flex-direction: column; overflow-x: visible; }
  .ui-kanban .ui-col { min-width: 0; max-width: none; width: 100%; max-height: none; }
  .ui-kanban .ui-col__body { max-height: none; }
}

/* ========================= 12. DRAWER ========================== */
.ui-drawer-scrim { position: fixed; inset: 0; background: color-mix(in oklab, var(--ink-strong) 46%, transparent);
  backdrop-filter: blur(2px); z-index: 40; animation: ui-fade var(--dur-fast) ease; }
.ui-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100vw; background: var(--paper);
  box-shadow: var(--shadow-3); z-index: 41; display: flex; flex-direction: column;
  animation: ui-slide-in var(--dur-enter) var(--ease-entrance); }
@keyframes ui-slide-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.ui-drawer__head { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--line); }
.ui-drawer__scroll { overflow-y: auto; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); }
.ui-drawer__section { display: flex; flex-direction: column; gap: var(--s-3); }
.ui-drawer__section > .ui-caption { padding-bottom: 2px; }
.ui-qa { display: flex; flex-direction: column; gap: 3px; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.ui-qa:last-child { border-bottom: 0; }
.ui-qa__q { font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.ui-qa__a { font-size: var(--fs-body); color: var(--ink); font-weight: 400; }

.ui-aisum { background: var(--accent-subtle); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2); }
.ui-aisum__tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 700;
  color: var(--accent-text); letter-spacing: var(--track-caps); text-transform: uppercase; }
.ui-aisum--absent { background: var(--n-50); border-style: dashed; border-color: var(--line-strong); color: var(--ink-soft); }
/* success variant — the approval "receipt" (used by the OTP-akkoord modal). */
.ui-aisum--ok { background: var(--ok-bg); border-color: var(--ok-line); }
.ui-aisum--ok .ui-aisum__tag, .ui-aisum--ok > .ui-caption { color: var(--ok-text); }

/* ========================= 13. MODAL =========================== */
.ui-modal-scrim { position: fixed; inset: 0; background: color-mix(in oklab, var(--ink-strong) 52%, transparent);
  backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: var(--s-4);
  animation: ui-fade var(--dur-fast) ease; }
@keyframes ui-fade { from { opacity: 0; } to { opacity: 1; } }
.ui-modal { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-3); width: 100%; max-width: 452px;
  display: flex; flex-direction: column; overflow: clip; animation: ui-pop var(--dur-enter) var(--ease-entrance); }
@keyframes ui-pop { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
/* REFINED RHYTHM (Seth flagged the approve + comment modals as loose): the
   head→body→foot spacing is now driven by ONE controlled value per seam, with
   no dead air. Head has zero bottom padding; the body's top padding (s-4) is
   the single head↔body gap. Title + help sit tight (s-0-5). Body gap s-3
   between fields; foot border sits s-4 below the last field. Field borders are
   a consistent 1.5px and focus is the crisp single ring above. */
.ui-modal__head { padding: var(--s-5) var(--s-5) 0; display: flex; flex-direction: column; gap: var(--s-0-5); }
.ui-modal__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); color: var(--ink-strong); letter-spacing: -.025em; line-height: 1.12; }
.ui-modal__head .ui-help { max-width: 52ch; }
.ui-modal__body { padding: var(--s-4) var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
/* utility-combined bodies (e.g. the OTP step uses .ui-modal__body.ui-stack)
   keep the modal's own tight rhythm, never the looser .ui-stack gap. */
.ui-modal__body.ui-stack { gap: var(--s-3); }
.ui-modal__foot { padding: var(--s-4) var(--s-5); display: flex; gap: var(--s-2); justify-content: flex-end;
  border-top: 1px solid var(--line); background: color-mix(in oklab, var(--n-50) 45%, var(--paper)); }
.ui-msgpreview { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--n-50); overflow: clip; }
.ui-msgpreview__meta { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line); font-size: var(--fs-caption); color: var(--ink-soft); font-weight: 600; }
.ui-msgpreview__meta svg { color: var(--info); }
.ui-msgpreview__body { padding: var(--s-3); font-size: var(--fs-body-s); color: var(--ink); line-height: 1.5; white-space: pre-wrap; }
.ui-msgpreview__delay { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--pending-text); font-weight: 640; }

/* ========================= 14. TOASTS ========================== */
.ui-toasts { position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); z-index: 60;
  display: flex; flex-direction: column-reverse; gap: var(--s-2); width: min(440px, calc(100vw - 32px)); }
.ui-toast { display: flex; align-items: center; gap: var(--s-3); padding: 13px var(--s-3) 13px var(--s-4);
  background: var(--ink-strong); color: #F5F5F2; border-radius: var(--r-md); box-shadow: var(--shadow-3);
  font-size: var(--fs-body-s); animation: ui-toast-in var(--dur-enter) var(--ease-entrance);
  border-left: 3px solid var(--accent); }
@keyframes ui-toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.ui-toast__icon { flex: 0 0 auto; display: grid; }
.ui-toast--ok { border-left-color: var(--ok); }
.ui-toast--ok .ui-toast__icon { color: color-mix(in oklab, var(--ok) 70%, #fff); }
.ui-toast--warn { border-left-color: var(--warn); }
.ui-toast--warn .ui-toast__icon { color: color-mix(in oklab, var(--warn) 70%, #fff); }
.ui-toast--danger { border-left-color: var(--danger); }
.ui-toast--danger .ui-toast__icon { color: color-mix(in oklab, var(--danger) 72%, #fff); }
.ui-toast--pending { border-left-color: var(--pending); }
.ui-toast--pending .ui-toast__icon { color: color-mix(in oklab, var(--pending) 60%, #fff); }
.ui-toast__msg { flex: 1; }
.ui-toast__action { appearance: none; background: transparent; border: 0; color: color-mix(in oklab, var(--accent) 45%, #fff); font: inherit;
  font-weight: 700; font-size: var(--fs-body-s); cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); position: relative; }
.ui-toast__action::before { content: ""; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); height: 44px; }
.ui-toast__action:hover { background: color-mix(in oklab, var(--accent) 30%, transparent); }
.ui-toast__close { color: color-mix(in oklab, #fff 60%, transparent); background: transparent; border: 0; cursor: pointer;
  display: grid; padding: 4px; position: relative; }
.ui-toast__close::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; }

/* ========================== 15. TABS =========================== */
.ui-tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.ui-tab { appearance: none; background: transparent; border: 0; font: inherit; font-size: var(--fs-body-s); font-weight: 500;
  color: var(--ink-soft); padding: 10px var(--s-3); cursor: pointer; position: relative; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color var(--dur-fast); }
.ui-tab:hover { color: var(--ink); }
.ui-tab.is-active { color: var(--ink-strong); font-weight: 700; border-bottom-color: var(--accent); }
.ui-tab .ui-badge { margin-left: 6px; }

/* ======================== 16. TIMELINE ========================= */
.ui-timeline { display: flex; flex-direction: column; }
.ui-tl { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding-bottom: var(--s-4); position: relative; }
.ui-tl:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: -2px; width: 2px; background: var(--line); }
.ui-tl__icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; z-index: 1;
  background: var(--n-50); border: 1px solid var(--line); color: var(--ink-soft); }
.ui-tl__icon.is-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.ui-tl__icon.is-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-text); }
.ui-tl__icon.is-pending { background: var(--pending-bg); border-color: var(--pending-line); color: var(--pending-text); }
.ui-tl__icon.is-danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-text); }
.ui-tl__main { display: flex; flex-direction: column; gap: 3px; padding-top: 3px; }
.ui-tl__line { font-size: var(--fs-body-s); color: var(--ink); }
.ui-tl__line b { font-weight: 700; color: var(--ink-strong); }
.ui-tl__meta { font-size: var(--fs-caption); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ui-tl__state { font-weight: 600; }
.ui-tl__state.is-cancelled { color: var(--danger-text); text-decoration: line-through; }
.ui-tl__state.is-scheduled { color: var(--pending-text); }
.ui-tl__state.is-dispatched { color: var(--ok-text); }

/* ========================== 17. NOTES ========================== */
.ui-note { border-radius: var(--r-md); padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 6px; }
.ui-note__head { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-caption); }
.ui-note__author { font-weight: 700; color: var(--ink-strong); }
.ui-note__time { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-left: auto; }
.ui-note__body { font-size: var(--fs-body-s); color: var(--ink); line-height: 1.5; }
.ui-note--intern { background: color-mix(in oklab, var(--warn) 7%, var(--paper)); border: 1px solid var(--warn-line); }
.ui-note--intern .ui-note__vis { display: inline-flex; align-items: center; gap: 4px; color: var(--warn-text); font-weight: 640; }
.ui-note--gedeeld { background: var(--paper); border: 1px solid var(--line); }
.ui-note--gedeeld .ui-note__vis { display: inline-flex; align-items: center; gap: 4px; color: var(--ok-text); font-weight: 640; }
.ui-note-composer { border: 1.5px solid var(--input-border); border-radius: var(--r-md); background: var(--paper); overflow: clip; }
.ui-note-composer textarea { border: 0; width: 100%; resize: vertical; min-height: 64px; padding: var(--s-3); font: inherit;
  font-size: var(--fs-body); color: var(--ink); background: transparent; }
.ui-note-composer textarea:focus-visible { outline: none; }
.ui-note-composer__bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3);
  border-top: 1px solid var(--line); background: var(--n-50); }
.ui-vis-select { display: inline-flex; gap: 2px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px; }
.ui-vis-select button { appearance: none; border: 0; background: transparent; font: inherit; font-size: var(--fs-caption); font-weight: 600;
  color: var(--ink-soft); padding: 5px 12px; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; position: relative; }
.ui-vis-select button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); height: 44px; }
.ui-vis-select button[aria-pressed="true"] { background: var(--ink-strong); color: #fff; }

/* ======================= 18. CHARTS (CSS) ====================== */
.ui-funnel { display: flex; flex-direction: column; gap: var(--s-2); }
.ui-funnel__row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: var(--s-3); }
.ui-funnel__label { font-size: var(--fs-body-s); color: var(--ink); }
.ui-funnel__track { height: 28px; background: var(--n-50); border-radius: var(--r-sm); overflow: hidden; }
.ui-funnel__fill { height: 100%; width: var(--v, 0%); border-radius: var(--r-sm);
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 78%, #fff), var(--accent));
  transform-origin: left; animation: ui-grow var(--dur-celebrate) var(--ease-entrance); }
@keyframes ui-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ui-funnel__val { font-size: var(--fs-body-s); font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums;
  min-width: 84px; text-align: right; }
.ui-funnel__val small { color: var(--ink-soft); font-weight: 400; }

.ui-meter { height: 8px; border-radius: var(--r-pill); background: var(--n-100); overflow: hidden; }
.ui-meter__fill { height: 100%; width: var(--v, 0%); background: var(--accent); border-radius: var(--r-pill); }
.ui-meter__fill.is-ok { background: var(--ok); }
.ui-meter__fill.is-warn { background: var(--warn); }
.ui-meter__fill.is-danger { background: var(--danger); }
.ui-meter-row { display: flex; flex-direction: column; gap: var(--s-0-5); }
.ui-meter-row__head { display: flex; align-items: baseline; gap: var(--s-2); font-size: var(--fs-body-s); }
.ui-meter-row__label { color: var(--ink); }
.ui-meter-row__tier { margin-left: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.ui-meter-row__tier svg { flex: 0 0 auto; }
.ui-meter-row__tier.is-ok { color: var(--ok-text); }
.ui-meter-row__tier.is-warn { color: var(--warn-text); }
.ui-meter-row__tier.is-danger { color: var(--danger-text); }
.ui-meter-row__val { font-weight: 800; font-family: var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.ui-spark { display: block; width: 100%; height: 44px; overflow: visible; }
.ui-spark__area { fill: color-mix(in oklab, var(--accent) 16%, transparent); }
.ui-spark__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-spark__dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }

/* ======================= 19. EMPTY STATE ======================= */
.ui-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3);
  padding: var(--s-7) var(--s-5); color: var(--ink-soft); }
.ui-empty__glyph { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--accent-subtle); color: var(--accent-text); }
.ui-empty__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-subhead); color: var(--ink-strong); letter-spacing: -.01em; }
.ui-empty__text { font-size: var(--fs-body-s); max-width: 40ch; }

/* ===================== 20. LOADING SKELETON ==================== */
.ui-skel { position: relative; overflow: hidden; background: var(--n-100); border-radius: var(--r-sm); }
.ui-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, #fff 60%, transparent), transparent);
  animation: ui-shimmer 1.3s var(--ease-entrance) infinite; }
@keyframes ui-shimmer { to { transform: translateX(100%); } }
.ui-skel--text { height: 12px; }
.ui-skel--text.w-70 { width: 70%; } .ui-skel--text.w-50 { width: 50%; } .ui-skel--text.w-40 { width: 40%; }
.ui-skel--title { height: 18px; width: 60%; }
.ui-skel--avatar { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.ui-skel--pill { height: 20px; width: 84px; border-radius: var(--r-pill); }
.ui-skel-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-3); box-shadow: var(--shadow-1); }

/* ====================== 21. ERROR STATE ======================== */
.ui-errorstate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3);
  padding: var(--s-7) var(--s-5); }
.ui-errorstate__glyph { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger-line); }
.ui-errorstate__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-subhead); color: var(--ink-strong); letter-spacing: -.01em; }
.ui-errorstate__text { font-size: var(--fs-body-s); color: var(--ink-soft); max-width: 42ch; }

/* ==================== 22. ACTION INBOX ITEM ==================== */
.ui-inbox { display: flex; flex-direction: column; gap: var(--s-4); }
.ui-inbox__group { display: flex; flex-direction: column; gap: var(--s-2); }
.ui-inbox__grouphead { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-caption);
  letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
/* the "vraagt nu jouw aandacht" head leads in near-black (the product signal),
   never amber — gold/amber is fully retired from the home's first impression. */
.ui-inbox__grouphead.is-urgent { color: var(--ink-strong); }
/* the action inbox is where attention lives — a stronger left signal block.
   Default items lead with the electric-blue product signal (cobalt bar + chip). */
.ui-inboxitem { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-4);
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--in-accent, var(--accent)); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); text-align: left; width: 100%; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-press) var(--ease-overshoot); }
.ui-inboxitem:hover { box-shadow: var(--shadow-2); transform: translateX(1px); }
.ui-inboxitem:active { transform: scale(.995); }
/* "vraagt nu aandacht" items = the near-black STATEMENT bar (Signal's signature
   surface), with the icon chip in the electric-blue product signal. No amber:
   the only amber on the home is the specific overdue sub-line marker below. */
.ui-inboxitem--urgent { --in-accent: var(--ink-strong); }
.ui-inboxitem--urgent .ui-inboxitem__icon { background: var(--accent-subtle); color: var(--accent-text); }
.ui-inboxitem--ok { --in-accent: var(--ok); }
.ui-inboxitem__icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in oklab, var(--in-accent) 12%, var(--paper)); color: var(--in-accent); }
.ui-inboxitem--urgent .ui-inboxitem__go { color: var(--ink-mute); }
.ui-inboxitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ui-inboxitem__ask { font-size: var(--fs-body); font-weight: 600; color: var(--ink-strong); letter-spacing: -.01em; }
.ui-inboxitem__sub { font-size: var(--fs-caption); color: var(--ink-soft); }
/* the ONLY amber on the home: a scoped "days overdue" marker on a sub-line,
   semantic warn (icon + label), never decoration. */
.ui-overdue { display: inline-flex; align-items: center; gap: 4px; color: var(--warn-text); font-weight: 700; }
.ui-overdue svg { flex: 0 0 auto; color: var(--warn); }
.ui-inboxitem__go { color: var(--ink-mute); flex: 0 0 auto; display: grid; }
.ui-inboxitem:hover .ui-inboxitem__go { color: var(--accent); }
.ui-inboxitem__dismiss { flex: 0 0 auto; }

/* ========================= 23. OTP ============================= */
.ui-otp { display: flex; gap: var(--s-2); }
.ui-otp__cell { width: 48px; height: 56px; border: 1.5px solid var(--input-border); border-radius: var(--r-md); background: var(--paper);
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 800; text-align: center; color: var(--ink-strong);
  font-variant-numeric: tabular-nums; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.ui-otp__cell.is-filled { border-color: var(--accent); background: var(--accent-subtle); }
@media (max-width: 400px) { .ui-otp__cell { width: 44px; height: 52px; } }

/* ===================== 24. PRESENTATION COVER ================== */
/* A near-black STATEMENT block: oversized display, cobalt product signal, and
   the scoped client-brand red carried by the logo chip + a top brand rule.
   The two accents never touch — cobalt sits in the eyebrow/bar, red in the
   chip, separated by a generous near-black field. */
.ui-cover { position: relative; border-radius: var(--r-lg); overflow: clip; color: #fff; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-8) var(--s-6) var(--s-6); isolation: isolate;
  background: var(--ink-strong);
  border-top: 4px solid var(--client-accent); /* scoped client-brand rule */ }
/* Layer order (top -> bottom): a to-top near-black gradient GUARANTEES the bottom
   title band is ink-strong on any aspect ratio, so the cobalt eyebrow + signal
   bar always sit on near-black (verified against ink-strong, not an optimistic
   scrim). The scoped client-red is confined to a small glow in the top-left,
   answering the logo chip + top brand rule; the electric-blue product signal
   owns the top-right. The two accents never pool over the title. */
.ui-cover__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink-strong) 20%,
      color-mix(in oklab, var(--ink-strong) 72%, transparent) 44%, transparent 74%),
    radial-gradient(72% 62% at 94% 0%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 56%),
    radial-gradient(40% 44% at 5% 2%, color-mix(in oklab, var(--client-accent) 30%, transparent), transparent 60%); }
.ui-cover__band { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .5; }
.ui-cover__logo { position: absolute; top: var(--s-5); left: var(--s-6); display: inline-flex; align-items: center; gap: var(--s-2);
  background: rgba(255,255,255,.95); color: var(--ink-strong); padding: 6px 12px 6px 6px; border-radius: var(--r-pill); font-weight: 700; }
.ui-cover__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display); letter-spacing: -.035em;
  line-height: .98; text-wrap: balance; overflow-wrap: break-word; }
/* signature signal bar under the cover title — a brighter electric-blue so it
   stays vivid + AA (5.33:1) on the guaranteed near-black title band. */
.ui-cover__title::after { content: ""; display: block; width: 84px; height: 6px; margin-top: var(--s-4);
  background: #5B7CF6; border-radius: 0; }
.ui-cover__meta { font-size: var(--fs-body); opacity: .9; margin-top: var(--s-3); }

/* ================= MOBILE TOUCH TARGETS (<=640) ==================
 * §7 asks for >=44px touch targets on touch surfaces. Desktop keeps its
 * dense icon/toggle affordances; on phones the visual box of an icon-only
 * button grows to a full 44px (so e.g. .ui-inboxitem__dismiss on the portal
 * home is a real 44px target, not a 36px one leaning on its ::before), and
 * the inline choice/switch label rows get a 44px min-height so the whole row
 * is tappable. Deliberately dense DESKTOP variants keep their existing
 * ::before-expanded 44px hit area, which §7 explicitly permits, and are never
 * the sole action on a mobile surface: .ui-btn--sm (paired with a full-size
 * primary/secondary in every foot), .ui-th-sort (table header, redundant to a
 * visible column + the horizontally-scrolling table), the inline-sized kanban
 * card iconbtn (its 26px is an inline style; the .ui-iconbtn::before still
 * gives it 44px), .ui-search__clear and .ui-pending-chip__undo (both already
 * ship a 44px ::before hit area). */
@media (max-width: 640px) {
  .ui-iconbtn { width: 44px; height: 44px; }
  .ui-choice, .ui-switch { min-height: 44px; }
}

/* ==================== REDUCED MOTION ========================== */
@media (prefers-reduced-motion: reduce) {
  .ui-app *, .ui-scope * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .ui-pending-chip__bar::after { animation: none !important; transform: scaleX(.5); }
  .ui-skel::after { animation: none !important; }
}

/* =====================================================================
 * 25. CAMPAIGN PRESENTATION  (pv-* + fbad-*)
 * The shared campagnepresentatie surface, rendered by
 * portal/presentation.js in BOTH hosts (klantportaal + command-center).
 * Promoted from the approved demo
 * product/prototypes/07-campagne-demo-lenferink.html. Client brand enters
 * ONLY via --client-accent / --client-accent-ink on the scope element;
 * nothing else is recolored. fbad-* is the Facebook-feedpost preview and
 * igad-* the Instagram-feedpost preview inside the phone mockup: both
 * deliberately keep the platforms' own palettes (fixed hex values, not
 * tokens) because they depict another product, not ours.
 * ===================================================================== */

/* content column of a mounted presentation (the module's own scaffold) */
.pv-wrap { display: flex; flex-direction: column; gap: var(--s-5); width: 100%; max-width: 920px; margin: 0 auto; }

/* --- cover: client-accent band + logo + version/status meta ---------- */
.pv-cover { border-radius: var(--r-lg); overflow: clip; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-1); }
.pv-cover__band { background: var(--client-accent, var(--ink-strong)); color: var(--client-accent-ink, #fff);
  padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.pv-cover__band h1, .pv-cover__title { margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h1); letter-spacing: -.03em; line-height: var(--lh-tight); text-wrap: balance; }
.pv-cover__meta { padding: var(--s-3) var(--s-5); display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.pv-logo { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; border: 1px solid var(--line); }

/* --- pv-intro: klant-begroetingskaart bovenaan (na de cover, vóór de sectie-
   index). Klein en rustig: geen grote kop, maar een kleine vette begroetingsregel
   met de body als normale paragraaf. Subtiel --client-accent op de linkerrand;
   geen genummerde sectie, geen status-pill. --------------------------------- */
.pv-intro { border-left: 3px solid var(--client-accent, var(--accent)); }
.pv-intro__hi { margin: 0 0 4px; font-weight: 700; font-size: var(--fs-body); color: var(--ink);
  line-height: 1.4; }
.pv-intro__body { margin: 0; color: var(--ink-2, var(--ink)); line-height: 1.55; }

/* --- pv-code: campagne-ID chip (mono, bijv. RSG-2026-001); ook gebruikt in
   de command-center kaarten en campagnetabel ---------------------------- */
.pv-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-soft);
  background: var(--n-50); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }

/* --- pv-changelog: "Wat is er veranderd in versie N" (revisiekaart onder
   de cover; rij = sectielink + wat (vet) + waarom (caption)) ------------- */
.pv-changelog__rows { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.pv-changelog__row { border-left: 3px solid var(--warn); padding: 2px 0 2px var(--s-3);
  display: flex; flex-direction: column; gap: 2px; }
.pv-changelog__link { font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; align-self: flex-start; }
.pv-changelog__link:hover { color: var(--ink); text-decoration: underline; }
.pv-changelog__wat { font-weight: 600; }

/* --- pv-history: versiegeschiedenis (v1 · verzonden 7 jul · goedgekeurd) - */
.pv-history { display: grid; gap: 0; margin-top: var(--s-2); }
.pv-history__row { display: flex; gap: var(--s-3); align-items: baseline; padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line); font-size: var(--fs-body-s); }
.pv-history__row:last-child { border-bottom: none; }
.pv-history__v { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); min-width: 34px; }
.pv-history__row.is-current { font-weight: 600; }
.pv-history__row.is-current .pv-history__v { color: var(--ink); }

/* --- section index: horizontally scrolling pill nav ------------------ */
.pv-index { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-1); }
.pv-index a { text-decoration: none; flex: 0 0 auto; }

/* --- section head: eyebrow number + title + status pill -------------- */
.pv-sechd { display: flex; align-items: flex-start; gap: var(--s-3); justify-content: space-between; flex-wrap: wrap; }
/* het titelblok mag krimpen zodat de statuspill naast (niet onder) een lange
   een-regel-omschrijving blijft staan */
.pv-sechd > div:first-child { flex: 1 1 0; min-width: 200px; }
.pv-eyebrow-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }

/* --- pv-section: inklapbare presentatie-sectie (details/summary), standaard
   DICHT. De kop toont onderdeelnummer/titel + statuspill + een chevron die 90°
   draait bij openen; body + footer zitten in .pv-section__inner. Zelfde
   kaartstijl (ui-card) als de rest; de summary is de klikbare kop. --------- */
.pv-section { padding: 0; overflow: clip; scroll-margin-top: var(--s-4); }
.pv-section > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  gap: var(--s-3); padding: var(--s-5); }
.pv-section > summary::-webkit-details-marker { display: none; }
.pv-section > summary:hover { background: color-mix(in oklab, var(--n-50) 55%, var(--paper)); }
.pv-section > summary:focus-visible { outline: 2px solid var(--client-accent, var(--accent)); outline-offset: -2px; }
.pv-section > summary .pv-sechd { flex: 1 1 auto; min-width: 0; }
.pv-section__chev { flex: 0 0 auto; color: var(--ink-soft); display: grid; place-items: center;
  transition: transform .18s ease; }
.pv-section[open] > summary .pv-section__chev { transform: rotate(90deg); }
.pv-section__inner { border-top: 1px solid var(--line); }
/* de body binnen het inklapbare deel houdt de normale kaart-padding */
.pv-section__inner .ui-card__body { padding-top: var(--s-4); }

/* --- pv-qa: strategy question/answer blocks (client-accent left rule) - */
.pv-qa { display: grid; gap: var(--s-3); }
.pv-qa__item { border-left: 3px solid var(--client-accent, var(--accent)); padding: 2px 0 2px var(--s-3);
  display: flex; flex-direction: column; gap: 4px; }
.pv-qa__q { font-weight: 600; font-size: var(--fs-body-s); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

/* --- pv-flow: funnel step nodes with arrows --------------------------- */
.pv-flow { display: flex; align-items: stretch; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) 0; }
.pv-flownode { flex: 1 1 0; min-width: 150px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); padding: var(--s-3); display: flex; flex-direction: column; gap: 6px; }
.pv-flownode strong { font-family: var(--font-display); font-weight: 700; }
.pv-flowarrow { align-self: center; color: var(--ink-soft); flex: 0 0 auto; font-size: 20px; }
.pv-flowglyph { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--client-accent, var(--accent)) 12%, #fff);
  color: var(--client-accent, var(--accent)); font-family: var(--font-display); font-weight: 800; }

/* --- pv-journey: de kandidaatreis in de funnel-sectie (advertentie ->
   live formulier -> portaal), drie stations met pijlen; stapelt op mobiel - */
.pv-journey { display: flex; align-items: flex-start; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); }
.pv-journey__station { flex: 1 1 200px; min-width: 200px; display: flex; flex-direction: column;
  gap: var(--s-2); align-items: center; text-align: center; }
.pv-journey__label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.pv-journey__arrow { align-self: center; color: var(--ink-soft); flex: 0 0 auto; display: grid; place-items: center; }
.pv-journey__caption { max-width: 250px; }
.pv-journey__card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); align-items: center;
  width: 100%; max-width: 250px; }
.pv-journey__card svg { color: var(--client-accent, var(--accent)); }
/* compactere phone binnen de reis, zodat de drie stations naast elkaar passen;
   het scherm-aspect (9:19.5) blijft gelijk aan de basistemplate, alleen smaller. */
.pv-journey .pv-phone { width: 100%; max-width: 190px; border-radius: 30px; padding: 7px; margin: 0; }
.pv-journey .pv-phone__screen { border-radius: 23px; }

/* --- pv-plan: planning rows (when | what) ----------------------------- */
.pv-plan { display: grid; gap: 0; }
.pv-plan__row { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.pv-plan__row:last-child { border-bottom: none; }
.pv-plan__when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); padding-top: 3px; }

/* --- pv-phone: VASTE telefoon-mockup-template, herbruikbaar voor ALLE
   campagnes. Het scherm heeft een vast modern-toestel-aspect (~9:19.5) via
   aspect-ratio, zodat elke telefoon er identiek uitziet ongeacht de inhoud
   (fbad/igad-panel, live form-iframe of een screenshot). Screenshots worden
   op ~9:19.5 aangeleverd en vullen het scherm strak via .pv-phone__shot
   (object-fit: cover). De browserbalk .pv-phone__bar is optioneel (alleen
   getoond als het element aanwezig is). ----------------------------------- */
.pv-phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 40px; border: 1px solid var(--line);
  background: #0b0b0c; padding: 10px; box-shadow: var(--shadow-2); flex: 0 0 auto; }
.pv-phone__notch { height: 22px; display: grid; place-items: center; }
.pv-phone__notch span { width: 110px; height: 16px; background: #1c1c1f; border-radius: 10px; display: block; }
.pv-phone__screen { border-radius: 30px; overflow: clip; background: #fff; aspect-ratio: 9 / 19.5;
  display: flex; flex-direction: column; }
.pv-phone__screen iframe { border: 0; width: 100%; flex: 1; }
/* browser/URL-balk bovenin het scherm: subtiele grijze balk met slotje + mono
   URL-chip. Alleen zichtbaar als het element wordt meegegeven. */
.pv-phone__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; flex: 0 0 auto;
  background: var(--n-50); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.pv-phone__bar svg { flex: 0 0 auto; }
.pv-phone__url { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* pv-phone__shot: screenshot vult het scherm strak en volledig (geen letterbox);
   cover + object-position top houdt de bovenkant van het beeld in beeld. */
.pv-phone__shot { width: 100%; height: 100%; flex: 1; object-fit: cover; object-position: top;
  background: var(--n-50); display: block; }
.pv-phone__shot--empty { display: grid; place-items: center; text-align: center; padding: var(--s-4);
  color: var(--ink-soft); font-size: var(--fs-body-s); }

/* --- fbad-*: Facebook-feedpost preview inside the phone (depicted product,
   fixed FB hexes on purpose; never RSG tokens). v2: avatar 40px, Gesponsord
   met globe-SVG, 3-regel clamp + "... meer", linkkaart, engagement-rij met
   overlappende reactiecirkels en actiebalk met outline-iconen ------------ */
.fbad { font-family: var(--font-body); display: flex; flex-direction: column; overflow-y: auto; flex: 1; background: #fff; color: #050505; }
.fbad[hidden] { display: none; }
.fbad-appbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #e4e6eb; }
.fbad-appbar b { color: #0866ff; font-size: 20px; font-family: var(--font-display); }
.fbad-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px 6px; }
.fbad-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #e4e6eb; object-fit: contain; padding: 3px; flex: 0 0 auto; }
.fbad-name { font-weight: 600; font-size: 15px; color: #050505; }
.fbad-sub { font-size: 12px; color: #65676b; display: flex; align-items: center; gap: 3px; }
.fbad-text { padding: 2px 12px 0; font-size: 15px; line-height: 1.33; white-space: pre-line; color: #050505; }
/* clamp: white-space normal in de geklemde staat (line-clamp + pre-line
   rendert anders leeg) en flex:none zodat de flex-kolom hem niet indrukt */
.fbad-text { flex: 0 0 auto; }
.fbad-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal; }
.fbad-more { align-self: flex-start; background: none; border: none; padding: 0 12px 8px; font: inherit;
  font-size: 14px; color: #65676b; font-weight: 600; cursor: pointer; }
.fbad-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #f0f2f5; }
.fbad-link { background: #f0f2f5; padding: 10px 12px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.fbad-link__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fbad-domain { color: #65676b; text-transform: uppercase; font-size: 12px; }
.fbad-link .fbad-kop { font-weight: 600; font-size: 15px; }
.fbad-link .fbad-desc { font-size: 13px; color: #65676b; }
.fbad-cta { flex: 0 0 auto; background: #e4e6eb; color: #050505; border: none; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 14px; padding: 8px 12px; cursor: pointer; }
/* engagement: overlappende like+love cirkels + telling links, reacties/deel rechts */
.fbad-engage { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.fbad-reactions { display: flex; align-items: center; }
.fbad-react { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #fff; color: #fff; }
.fbad-react--like { background: #1877f2; z-index: 1; }
.fbad-react--love { background: #f0284a; margin-left: -5px; }
.fbad-engage__count { margin-left: 6px; font-size: 13px; color: #65676b; }
.fbad-engage__meta { font-size: 13px; color: #65676b; }
/* actiebalk: drie gelijke knoppen met outline-iconen */
.fbad-actionbar { display: flex; border-top: 1px solid #e4e6eb; padding: 2px 4px 6px; }
.fbad-action { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: none; border: none; padding: 8px 4px; font-family: inherit; font-size: 13px;
  font-weight: 600; color: #65676b; cursor: pointer; border-radius: 6px; }
.fbad-action:hover { background: #f0f2f5; }

/* fbad--mini: compacte FB-post (header + beeld + CTA) voor de funnel-reis */
.fbad--mini { flex: 0 0 auto; width: 100%; max-width: 250px; border: 1px solid #e4e6eb;
  border-radius: 12px; overflow: clip; box-shadow: var(--shadow-1); }
.fbad--mini .fbad-avatar { width: 28px; height: 28px; }
.fbad--mini .fbad-name { font-size: 13px; }
.fbad--mini .fbad-sub { font-size: 11px; }
.fbad--mini .fbad-head { padding: 8px 10px 6px; }
.fbad--mini .fbad-link { padding: 8px 10px; }
.fbad--mini .fbad-link .fbad-kop { font-size: 13px; }
.fbad--mini .fbad-cta { font-size: 12px; padding: 6px 10px; }

/* --- igad-*: Instagram-feedpost preview inside the phone (depicted product,
   fixed IG hexes: #0095f6 CTA, #8e8e8e secundair, gradient story-ring) --- */
.igad { font-family: var(--font-body); display: flex; flex-direction: column; overflow-y: auto; flex: 1; background: #fff; color: #262626; }
.igad[hidden] { display: none; }
.igad-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.igad-ring { width: 38px; height: 38px; border-radius: 50%; padding: 2px; flex: 0 0 auto;
  background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); display: grid; place-items: center; }
.igad-avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #fff; object-fit: contain; display: block; }
.igad-id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.igad-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igad-sponsored { font-size: 11px; color: #737373; }
.igad-dots { color: #262626; display: grid; place-items: center; }
.igad-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #fafafa; }
.igad-cta { display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: #0095f6; color: #fff; font-family: inherit; font-weight: 600; font-size: 14px;
  border: none; padding: 10px 12px; cursor: pointer; }
.igad-icons { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; color: #262626; }
.igad-icons__left { display: flex; gap: 14px; align-items: center; }
.igad-likes { padding: 0 10px; font-size: 13px; font-weight: 600; }
.igad-caption { padding: 4px 10px 0; font-size: 13px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.igad-more { padding: 0 10px; font-size: 13px; color: #8e8e8e; }
.igad-comment { padding: 6px 10px 0; font-size: 13px; color: #8e8e8e; }
.igad-time { padding: 4px 10px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .02em; color: #8e8e8e; }

/* --- pv-adtabs: FB/IG segmented control boven de phone in de visuals-
   sectie (neutraal, accentloos; actief segment = ink achtergrond) ------- */
.pv-adtabs { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--paper); margin: var(--s-2) 0 var(--s-3); align-self: flex-start; }
.pv-adtabs__seg { border: none; background: none; font: inherit; font-size: var(--fs-body-s);
  font-weight: 600; color: var(--ink-soft); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.pv-adtabs__seg:hover { color: var(--ink); }
.pv-adtabs__seg.is-active { background: var(--ink-strong); color: var(--paper); }

/* --- visuals: phone + thumbnail switcher ------------------------------ */
.pv-visualwrap { display: flex; gap: var(--s-5); align-items: flex-start; flex-wrap: wrap; }
.pv-thumbs { flex: 1 1 220px; min-width: 210px; display: flex; flex-direction: column; gap: var(--s-2); }
.pv-thumb { display: flex; gap: var(--s-2); align-items: center; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--r-md); padding: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.pv-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--n-50); }
.pv-thumb.is-active { border-color: var(--client-accent, var(--accent));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--client-accent, var(--accent)) 25%, transparent); }
.pv-thumb__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv-thumb__label b { font-size: var(--fs-body-s); }
.pv-thumb__label span { font-size: var(--fs-caption); color: var(--ink-soft); }

/* --- pv-acc: accordion (ad-copy variants, vacancy text) --------------- */
.pv-acc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.pv-acc + .pv-acc { margin-top: var(--s-2); }
.pv-acc summary { cursor: pointer; padding: var(--s-3); display: flex; gap: var(--s-2); align-items: center; font-weight: 600; list-style: none; }
.pv-acc summary::-webkit-details-marker { display: none; }
.pv-acc__body { padding: 0 var(--s-3) var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); }
.pv-adcopy { white-space: pre-line; background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--s-3); font-size: var(--fs-body-s); line-height: 1.5; }
.pv-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- section footer: status + comment thread + composer --------------- */
.pv-secfoot { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line);
  padding-top: var(--s-3); margin-top: var(--s-3); }
.pv-note { background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3);
  display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-body-s); width: 100%; }
.pv-note b { font-size: var(--fs-caption); color: var(--ink-soft); }
/* aangepast-in-deze-versie annotatie in de sectiefooter (wat + waarom) */
.pv-note--changed { border-left: 3px solid var(--warn); }
/* staff-only additions on a note: internal response + non-shared status */
.pv-note__internal { border-left: 3px solid var(--warn); background: var(--warn-bg, var(--n-50));
  border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font-size: var(--fs-caption); color: var(--ink-2); }
.pv-note__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: 2px; }
.pv-composer { display: none; gap: var(--s-2); margin-top: var(--s-2); width: 100%; flex-wrap: wrap; }
.pv-composer.is-open { display: flex; }
.pv-composer textarea { flex: 1 1 260px; min-height: 64px; border: 1px solid var(--input-border); border-radius: var(--r-sm);
  padding: 10px; font: inherit; font-size: var(--fs-body); resize: vertical; background: var(--paper); color: var(--ink); }
.pv-composer__opts { flex-basis: 100%; display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-caption); color: var(--ink-soft); }

/* --- sticky approve bar (client mode) --------------------------------- */
.pv-approvebar { position: sticky; bottom: 0; z-index: 25; background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -14px rgba(28, 26, 20, .28); border-radius: var(--r-md) var(--r-md) 0 0; }
.pv-approvebar__inner { max-width: 920px; margin: 0 auto; padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.pv-approvebar__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* status-pill in de balk (bijv. "Wijzigingen aangevraagd") niet oprekken */
.pv-approvebar__txt .ui-pill { align-self: flex-start; }
.pv-approvebar__ok { color: var(--ok-text, var(--ok)); font-weight: 700; }

/* --- pv-modal: OTP e-mail-bevestiging (cells reuse .ui-otp, §23) ------ */
.pv-modal { position: fixed; inset: 0; background: rgba(20, 18, 14, .45); display: none; place-items: center;
  z-index: 40; padding: var(--s-4); }
.pv-modal.is-open { display: grid; }
.pv-modal__card { background: var(--paper); border-radius: var(--r-lg); max-width: 420px; width: 100%;
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); box-shadow: var(--shadow-3); }
.pv-modal__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); }
.pv-modal__foot { display: flex; gap: var(--s-2); justify-content: flex-end; }
/* afkeurmodal: verplichte toelichting (zelfde veldstijl als pv-composer) */
.pv-modal__card textarea { width: 100%; min-height: 84px; border: 1px solid var(--input-border);
  border-radius: var(--r-sm); padding: 10px; font: inherit; font-size: var(--fs-body);
  resize: vertical; background: var(--paper); color: var(--ink); }
.pv-otp { display: flex; gap: 8px; justify-content: center; }

/* --- pv-placeholder: optional section not built yet ------------------- */
.pv-placeholder { border: 1.5px dashed var(--line-strong, var(--line)); border-radius: var(--r-md); padding: var(--s-5);
  text-align: center; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pv-placeholder svg { color: var(--ink-mute); }

@media (max-width: 720px) {
  .pv-visualwrap { flex-direction: column; }
  .pv-phone { width: 100%; max-width: 300px; }
  .pv-plan__row { grid-template-columns: 84px 1fr; }
  /* de kandidaatreis stapelt: pijlen draaien mee naar beneden */
  .pv-journey { flex-direction: column; align-items: center; }
  .pv-journey__station { min-width: 0; width: 100%; }
  .pv-journey__arrow { transform: rotate(90deg); }
  /* gestapeld is er ruimte: de compacte funnel-phone mag iets groter
     (aspect-ratio blijft gelijk, alleen breder) */
  .pv-journey .pv-phone { max-width: 240px; }
  /* inklapbare secties: iets minder padding op smalle schermen */
  .pv-section > summary { padding: var(--s-4); }
}

/* =====================================================================
 * 26. COMMAND CENTER — WA-AGENT FASE 1  (cc-*)
 * Additions for product/command-center.js: kanban-signalen van de
 * WhatsApp-agent, de slot-kiezer in de kandidaat-drawer, de notificatie-
 * bel in de topbar en het bot-instellingen-formulier per campagne.
 * cc-* scope: raakt het ui-* systeem niet aan (zelfde discipline als de
 * cc-* scaffolding in command-center.html).
 * ===================================================================== */

/* --- kandidaatkaart: "actie vereist" (rood, pulserend) + state-pill --- */
.cc-wa-alert { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption);
  font-weight: 600; color: var(--danger-text); white-space: nowrap; }
.cc-wa-alert__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  animation: cc-wa-pulse 1.4s ease-out infinite; }
@keyframes cc-wa-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 50%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--danger) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--danger) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-wa-alert__dot { animation: none; } /* wel rood, niet bewegend */
}
.ui-candidate .cc-wa-pill { font-size: var(--fs-caption); padding: 1px 8px; white-space: nowrap; }
/* split-knop Start WhatsApp / Interesse-bericht (063) */
.cc-wa-split { display: inline-flex; align-items: center; gap: 2px; position: relative; }
.cc-wa-start__caret { padding-left: 6px; padding-right: 6px; min-width: 0; }
.cc-wa-start__opts { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 4px; box-shadow: var(--shadow-2, 0 6px 20px rgba(0,0,0,.12)); white-space: nowrap; }
/* agent uit voor deze kandidaat (062): stil grijs pilletje, geen alarm */
.cc-wa-pill--paused { background: var(--n-100); color: var(--n-600); border: 1px solid var(--n-200); }
.cc-wa-pill--paused .ui-dot { background: var(--n-400); }
/* chat-header: Agent-schakelaar + "Afgehandeld" in het actie-alert */
.cc-agentsw { font-size: var(--fs-caption); font-weight: 600; gap: 6px; }
.cc-agentsw .ui-switch__track { width: 32px; height: 18px; }
.cc-agentsw .ui-switch__track::after { width: 14px; height: 14px; top: 2px; left: 2px; }
.cc-agentsw input:checked + .ui-switch__track::after { transform: translateX(14px); }
.cc-agentsw.is-off { color: var(--n-600); }
.cc-wa-alert__done { margin-left: 4px; padding: 0 6px; height: 18px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in oklab, var(--danger) 40%, transparent); background: transparent;
  color: var(--danger-text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.cc-wa-alert__done:hover { background: color-mix(in oklab, var(--danger) 10%, transparent); }

/* --- drawer: slot-kiezer (dag-kopjes + klikbare tijd-chips) ----------- */
.cc-slots { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-slotday { display: flex; flex-direction: column; gap: 4px; }
.cc-slotday__head { font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft); }
.cc-slotday__row { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-slot { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink-strong);
  font: inherit; font-size: var(--fs-caption); cursor: pointer; }
.cc-slot:hover { border-color: var(--ink-soft); }
.cc-slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* --- topbar: notificatie-bel + dropdown-paneel ------------------------ */
.cc-bellwrap { position: relative; display: inline-flex; }
.cc-bellwrap .ui-iconbtn { position: relative; }
.cc-bellbadge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center; pointer-events: none; }
.cc-bellpanel { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: 92vw;
  max-height: 420px; overflow-y: auto; z-index: 60; box-shadow: var(--shadow-2); }
.cc-bellpanel[hidden] { display: none; } /* component-display mag de UA [hidden]-regel nooit verslaan */
.cc-notif__head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.cc-notif { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  padding: var(--s-2) var(--s-3); border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; cursor: pointer; }
.cc-notif:last-child { border-bottom: 0; }
.cc-notif:hover, .cc-notif:focus-visible { background: var(--n-50); }
.cc-notif.is-unread { background: var(--accent-subtle, var(--n-50)); }
.cc-notif__title { font-weight: 600; font-size: var(--fs-body-s); color: var(--ink-strong); }
.cc-notif.is-unread .cc-notif__title::before { content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
/* Meerregelige meldingen (de health digest is een heel rapport) worden op drie
   regels afgekapt, anders duwt één melding de rest van de bel uit beeld. */
.cc-notif__body { font-size: var(--fs-caption); color: var(--ink-soft);
  white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cc-notif__time { font-size: var(--fs-caption); color: var(--ink-mute, var(--ink-soft)); }

/* --- campagnes: bot-instellingen-formulier ---------------------------- */
.cc-botform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
@media (max-width: 760px) { .cc-botform { grid-template-columns: 1fr; } }
.cc-botwide { grid-column: 1 / -1; }
.cc-bottoggle { display: flex; align-items: center; gap: var(--s-2); cursor: pointer; flex-wrap: wrap; }
.cc-botex { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-2); }
@media (max-width: 640px) { .cc-botex { grid-template-columns: 1fr; } }

/* --- botpaneel: inklapbare secties ------------------------------------ */
.cc-botsec { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--s-3);
  background: var(--paper); }
.cc-botsec__head { padding: var(--s-3) var(--s-4); font-weight: 700; font-size: var(--fs-body-s);
  color: var(--ink-strong); cursor: pointer; user-select: none; list-style: none; }
.cc-botsec__head::-webkit-details-marker { display: none; }
.cc-botsec__head::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--ink-soft);
  transition: transform .15s ease; }
.cc-botsec[open] > .cc-botsec__head::before { transform: rotate(90deg); }
.cc-botsec__body { padding: 0 var(--s-4) var(--s-4); }

/* --- kanban: drag&drop + startknop ------------------------------------ */
.ui-candidate[draggable="true"] { cursor: grab; }
.ui-candidate.is-dragging { opacity: .45; cursor: grabbing; }
.ui-col__body.is-dragover { outline: 2px dashed var(--accent); outline-offset: -4px;
  background: color-mix(in oklab, var(--accent) 6%, transparent); border-radius: var(--r-sm); }
.cc-wa-start { font-size: var(--fs-caption); padding: 2px 8px; white-space: nowrap; }

/* --- drawer: fase-select + agent-samenvatting + slot-accordion -------- */
.cc-stage-select { width: auto; min-width: 140px; font-size: var(--fs-caption); padding: 4px 28px 4px 10px; }
.cc-wa-summary { border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); background: var(--n-50, var(--paper));
  display: flex; flex-direction: column; gap: 4px; }
.cc-wa-summary__text { font-size: var(--fs-body-s); color: var(--ink-strong); margin: 0; white-space: pre-line; }
.cc-slotday__toggle { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font: inherit; cursor: pointer; }
.cc-slotday__toggle:hover { border-color: var(--ink-soft); }
.cc-slotday.is-open .cc-slotday__toggle { border-color: var(--accent); }
.cc-slotday__chev { color: var(--ink-soft); font-size: var(--fs-caption); }
.cc-slotday__badge { margin-left: auto; font-size: var(--fs-caption); font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 1px 8px; }
.cc-slotday__row[hidden] { display: none; }
.cc-slotday .cc-slotday__row { padding: 6px 2px 2px; }

/* =====================================================================
 * 27. COMMAND CENTER — TALENTPOOL + KANDIDATEN-TABEL + COMMUNICATIE (cc-*)
 * Additions for product/command-center.js featureronde 2: de kandidaten-
 * tabel naast de kanban (toolbar, fase-chips, sorteerbare koppen), de
 * talentpool-view en -dialog, en het communicatiecentrum in de drawer
 * (tijdlijn met dag-scheiders + composer-tabs). cc-* scope: raakt het
 * ui-* systeem niet aan.
 * ===================================================================== */

/* --- toolbar boven de kandidaten (modus-switch + zoekveld) ------------ */
.cc-toolbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.cc-toolbar__search { flex: 1 1 260px; max-width: 380px; }

/* --- fase-chips: klikbare filters met teller (multi-select) ----------- */
.cc-fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-fchip { appearance: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--ink-soft); font: inherit; font-size: var(--fs-caption); font-weight: 600; cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.cc-fchip:hover { border-color: var(--ink-soft); color: var(--ink); }
.cc-fchip:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-fchip.is-active { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.cc-fchip__n { font-variant-numeric: tabular-nums; opacity: .75; }
.cc-fchip--warn.is-active { background: var(--danger); border-color: var(--danger); }

/* --- kandidaten-/talentpool-tabel ------------------------------------- */
.cc-apptable td { vertical-align: middle; }
.cc-apptr { cursor: pointer; }
.cc-apptr--empty td { text-align: center; padding: var(--s-5); }
.cc-tbl-cand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.cc-tbl-cand__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cc-tbl-cand__name { font-weight: 600; color: var(--ink-strong); display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tbl-cand__sub { font-size: var(--fs-caption); color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tbl-stage { width: auto; min-width: 138px; min-height: 34px; padding: 4px 30px 4px 10px;
  font-size: var(--fs-caption); }
.cc-td-actions { white-space: nowrap; text-align: right; }
.cc-tagcell { display: flex; gap: 4px; flex-wrap: wrap; }
/* review verlopen: rustige rode wash over de hele rij (pill draagt het label) */
.cc-apptr.is-overdue td { background: color-mix(in oklab, var(--danger) 6%, transparent); }
/* sticky eerste kolommen (selectie + naam) bij horizontaal scrollen; achtergrond expliciet
   omdat td's transparant zijn; rand als inset-shadow (border-collapse maakt borders onbetrouwbaar) */
.cc-apptable .cc-col--stick { position: sticky; z-index: 2; background: var(--paper); }
.cc-apptable thead .cc-col--stick { z-index: 3; background: var(--n-50); }
.cc-apptable .cc-col--stick-sel { left: 0; width: 44px; min-width: 44px; max-width: 44px; padding-right: 0; }
.cc-apptable .cc-col--stick-name { left: 44px; box-shadow: inset -1px 0 var(--line); min-width: 200px; }
.cc-apptable tbody tr:hover .cc-col--stick { background: color-mix(in oklab, var(--accent-subtle) 45%, var(--paper)); }
.cc-apptable tbody tr.is-overdue .cc-col--stick { background: color-mix(in oklab, var(--danger) 6%, var(--paper)); }
/* responsive kolommen: md verdwijnt onder 1100, lg onder 780 */
@media (max-width: 1100px) { .cc-apptable .cc-col--md { display: none; } }
@media (max-width: 780px)  { .cc-apptable .cc-col--lg { display: none; } }

/* --- topbar: campagne-scope (meerdere campagnes) + klantweergave ------ */
.cc-scope { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); }
.cc-scope__btn { max-width: 320px; }
.cc-scope__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-scope__panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 340px; max-height: 70vh; overflow-y: auto;
  padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.cc-scope__row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body-s); padding: 4px 0; cursor: pointer; }
.cc-scope__row--all { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.cc-scope__row input { accent-color: var(--accent); }
.cc-scope__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-scope__group { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 2px; }
.cc-scope__group .ui-caption { margin-bottom: 2px; }
.cc-scope__foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.cc-clientview[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* --- kandidaten: modus Antwoorden (filterbalk per vraag + antwoordkolommen) --- */
.cc-ansbar { margin-bottom: var(--s-3); }
.cc-ansbar__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.cc-ansbar__row { display: flex; align-items: flex-start; gap: var(--s-3); padding: 6px 0; border-top: 1px solid var(--line); }
.cc-ansbar__q { flex: 0 0 150px; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-strong); padding-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-ansbar__search { max-width: 320px; }
.cc-ans-th { white-space: nowrap; cursor: help; border-bottom: 1px dotted var(--line-strong); }
.cc-ans-td { max-width: 240px; }
.cc-ans-cell { display: block; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-body-s); }
.cc-ans-cell--opt { color: var(--ink-strong); }
#ccAnsTbl { min-width: 900px; }

/* --- talent-dialog: live tag-preview ----------------------------------- */
.cc-tagpreview { display: flex; gap: 4px; flex-wrap: wrap; min-height: 4px; margin-top: 4px; }

/* --- drawer: gesprekstijdlijn (dag-chips + kanaal-icoon + bubbels) ------ */
.cc-tl { display: flex; flex-direction: column; gap: var(--s-2); max-height: 440px; overflow-y: auto;
  padding-right: 2px; }
.cc-tl__day { align-self: center; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft);
  background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px 10px; margin: var(--s-2) 0 2px; }
.cc-tlmsg { display: flex; gap: 6px; align-items: flex-end; max-width: 94%; }
.cc-tlmsg--in { align-self: flex-start; }
.cc-tlmsg--out { align-self: flex-end; flex-direction: row-reverse; }
.cc-tlmsg__ch { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--n-50); border: 1px solid var(--line); color: var(--ink-soft); }
.cc-tlmsg__bubble { border-radius: 12px; padding: 7px 11px; font-size: var(--fs-body-s); line-height: 1.45;
  display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-tlmsg--in .cc-tlmsg__bubble { background: var(--paper); border: 1px solid var(--line);
  border-bottom-left-radius: 4px; }
.cc-tlmsg--out .cc-tlmsg__bubble { background: var(--accent-subtle); border: 1px solid var(--accent-line);
  border-bottom-right-radius: 4px; }
.cc-tlmsg__subj { font-weight: 700; color: var(--ink-strong); overflow-wrap: break-word; }
.cc-tlmsg__body { white-space: pre-line; overflow-wrap: break-word; color: var(--ink); }
.cc-tlmsg__time { font-size: 10px; color: var(--ink-mute); align-self: flex-end;
  font-variant-numeric: tabular-nums; }

/* --- drawer: composer met kanaal-tabs ----------------------------------- */
.cc-comp { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2);
  border-top: 1px solid var(--line); padding-top: var(--s-3); }
.cc-comp__tabs { border-bottom: 1px solid var(--line); }
.cc-comp__panel { display: flex; flex-direction: column; gap: var(--s-2); }

/* =====================================================================
 * 28. COMMAND CENTER — AGENDA (cc-*)
 * Maand- en weekweergave van meetings (eigen + externe GHL-events),
 * de agenda-toolbar en de ICS-uitleg op Instellingen. Eventkleur per
 * campagne via --ev-h (zelfde deterministische hue als de avatars).
 * ===================================================================== */

/* --- toolbar (‹ Vandaag ›, titel, maand/week-switch) ------------------- */
.cc-agbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.cc-agbar__title { font-size: var(--fs-body); font-weight: 700; color: var(--ink-strong); min-width: 150px; }
.cc-agbar__title::first-letter { text-transform: uppercase; }

/* --- dunne statusregels boven de grid ---------------------------------- */
.cc-agwarn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 600;
  color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: var(--s-2); }
.cc-agwarn svg { flex: 0 0 auto; }
.cc-agnote { font-size: var(--fs-caption); margin-bottom: var(--s-2); }

/* --- legenda: campagne-chips + extern ----------------------------------- */
.cc-aglegend { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s-2); }
.cc-aglegend__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper);
  font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft); }
.cc-aglegend__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: oklch(0.52 0.11 var(--ev-h, 80)); }
.cc-aglegend__chip--ext .cc-aglegend__dot { background: var(--ink-mute); }

/* --- maandgrid (7 kolommen ma-zo, 1px-lijnen via de grid-gap) ----------- */
.cc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cc-cal__wd { background: var(--n-50); padding: 6px 8px; text-align: center;
  font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft); }
.cc-cal__day { background: var(--paper); min-height: 104px; padding: 6px; display: flex;
  flex-direction: column; gap: 3px; align-items: stretch; min-width: 0; }
.cc-cal__day.is-out { background: color-mix(in oklab, var(--n-50) 60%, var(--paper)); }
.cc-cal__day.is-out .cc-cal__num { color: var(--ink-mute); }
.cc-cal__num { width: 22px; height: 22px; display: grid; place-items: center; align-self: flex-start;
  font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft); border-radius: 50%; }
.cc-cal__day.is-today .cc-cal__num { background: var(--accent); color: #fff; }
.cc-cal__evt { appearance: none; display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; line-height: 1.3; padding: 2px 6px;
  border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: oklch(0.95 0.03 var(--ev-h, 80)); border: 1px solid oklch(0.82 0.07 var(--ev-h, 80));
  color: oklch(0.38 0.1 var(--ev-h, 80)); }
button.cc-cal__evt:hover { background: oklch(0.91 0.05 var(--ev-h, 80)); }
button.cc-cal__evt:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-cal__evt--ext { background: var(--n-50); border-color: var(--line); color: var(--ink-soft); cursor: default; }
.cc-cal__more { appearance: none; border: 0; background: transparent; font: inherit; font-size: 11px;
  font-weight: 600; color: var(--ink-soft); text-align: left; padding: 1px 6px; cursor: pointer; border-radius: 6px; }
.cc-cal__more:hover { color: var(--ink); background: var(--n-50); }
.cc-cal__more:focus-visible { outline: none; box-shadow: var(--ring); }
@media (max-width: 780px) { .cc-cal__day { min-height: 64px; padding: 4px; } }

/* --- weekweergave: uurraster 07:00-21:00, 48px per uur ------------------ */
.cc-week-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.cc-week { display: grid; grid-template-columns: 52px repeat(7, minmax(108px, 1fr)); min-width: 860px; }
.cc-week__corner { border-bottom: 1px solid var(--line); background: var(--n-50); }
.cc-week__head { padding: 6px 8px; text-align: center; font-size: var(--fs-caption); font-weight: 600;
  color: var(--ink-soft); background: var(--n-50); border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line); }
.cc-week__head.is-today { color: var(--accent); }
.cc-week__hours { position: relative; }
.cc-week__hlabel { position: absolute; right: 6px; transform: translateY(-50%); font-size: 10px;
  color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cc-week__col { position: relative; border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 48px); }
.cc-week__col.is-today { background-color: color-mix(in oklab, var(--accent) 4%, transparent); }
.cc-week__evt { position: absolute; left: 3px; right: 3px; z-index: 1; appearance: none; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; line-height: 1.3; padding: 2px 6px; text-align: left;
  border-radius: 6px; overflow: hidden; min-height: 16px;
  background: oklch(0.95 0.03 var(--ev-h, 80)); border: 1px solid oklch(0.82 0.07 var(--ev-h, 80));
  color: oklch(0.38 0.1 var(--ev-h, 80)); }
button.cc-week__evt:hover { background: oklch(0.91 0.05 var(--ev-h, 80)); z-index: 3; }
button.cc-week__evt:focus-visible { outline: none; box-shadow: var(--ring); z-index: 3; }
.cc-week__evt--ext { background: var(--n-50); border-color: var(--line); color: var(--ink-soft); cursor: default; }
.cc-week__now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2;
  pointer-events: none; }
.cc-week__now::before { content: ""; position: absolute; left: -1px; top: -3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--danger); }

/* --- instellingen: uitklap-uitleg agenda-abonneren ---------------------- */
.cc-icshelp summary { cursor: pointer; font-size: var(--fs-body-s); font-weight: 600; color: var(--ink-soft); }
.cc-icshelp summary:hover { color: var(--ink); }
.cc-icshelp__body { display: flex; flex-direction: column; gap: 6px; padding: var(--s-2) 0 0 var(--s-3);
  font-size: var(--fs-body-s); color: var(--ink); }
.cc-icshelp__body p { margin: 0; }

/* =====================================================================
 * DARK THEME — deliberately not built out (single committed light theme).
 * A dark theme is a token swap here with ZERO component changes.
 * ===================================================================== */

/* ============================================================ */
/* 29 · CC bezorgstatus (vinkjes) in de communicatie-tijdlijn    */
/* ============================================================ */
.cc-tlmsg__ticks { margin-left: 6px; font-size: 11px; letter-spacing: -1px; color: var(--ink-mute); }
.cc-tlmsg__ticks.is-read { color: #34B7F1; }
.cc-tlmsg__ticks.is-failed { color: var(--danger-text, #C0392B); font-weight: 700; letter-spacing: 0; }

/* ============================================================ */
/* 30 · CC brede kandidaat-drawer (profiel | chat | meer)        */
/* Smal (default): één kolom, DOM-volgorde profiel → chat → meer.*/
/* Breed (≥1100px): grid met links profiel + meer (scrollend) en */
/* rechts een chat op volle hoogte met eigen scrollende tijdlijn.*/
/* ============================================================ */
.ui-drawer__cols { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.ui-drawer__col { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
#ccDrawerMore { gap: var(--s-2); }
.ui-drawer__col:empty { display: none; }

/* chat-kolom: header + scrollende tijdlijn + composer */
.cc-chatpane { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.cc-chathead { display: flex; flex-direction: column; gap: var(--s-2); padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line); }
.cc-chatbody { display: flex; flex-direction: column; gap: var(--s-2); overflow-y: auto;
  max-height: 440px; padding-right: 2px; }
/* de tijdlijn zelf scrollt niet meer: .cc-chatbody is de (enige) scroller */
.cc-chatbody .cc-tl { max-height: none; overflow-y: visible; padding-right: 0; }

@media (min-width: 1100px) {
  .ui-drawer--wide { width: min(1080px, 100vw); }
  .ui-drawer--wide .ui-drawer__scroll { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .ui-drawer--wide .ui-drawer__cols { flex: 1 1 auto; min-height: 0; display: grid;
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    grid-template-rows: fit-content(62%) minmax(0, 1fr);
    gap: 0 var(--s-5); }
  .ui-drawer--wide #ccDrawerProfile { grid-column: 1; grid-row: 1; overflow-y: auto; min-height: 0;
    padding-right: var(--s-2); padding-bottom: var(--s-4); }
  .ui-drawer--wide #ccDrawerMore { grid-column: 1; grid-row: 2; overflow-y: auto; min-height: 0;
    padding-right: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
  .ui-drawer--wide #ccDrawerChat { grid-column: 2; grid-row: 1 / span 2; min-height: 0; }
  .ui-drawer--wide .cc-chatbody { flex: 1 1 auto; min-height: 0; max-height: none; }
}

/* meer-blokken: inklapbare details; de dubbele sectiecaption verdwijnt */
.cc-more { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cc-more__head { padding: var(--s-3); font-weight: 600; font-size: var(--fs-body-s); color: var(--ink-2);
  cursor: pointer; user-select: none; list-style: none; }
.cc-more__head::-webkit-details-marker { display: none; }
.cc-more__head::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--ink-soft);
  transition: transform var(--dur-fast) var(--ease-entrance); }
.cc-more[open] > .cc-more__head::before { transform: rotate(90deg); }
.cc-more__body { padding: 0 var(--s-3) var(--s-3); }
.cc-more .ui-drawer__section > .ui-caption { display: none; }

/* actiezone: knoppenrij in het profiel */
.cc-actionzone { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* korte AI-samenvatting: read-only, max ~4 regels */
.cc-shortsum { margin: 0; font-size: var(--fs-body-s); color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* cv: AI-leesnotitie van een via WhatsApp ontvangen cv */
.cc-cvsum { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3); background: var(--n-50); display: flex; flex-direction: column; gap: 4px;
  margin-top: var(--s-2); }
.cc-cvsum__text { margin: 0; font-size: var(--fs-caption); color: var(--ink-2); white-space: pre-line; }

/* chat: mislukte bezorging (danger-tokens; label + icoon, nooit kleur alleen) */
.cc-tlmsg--failed .cc-tlmsg__bubble { background: var(--danger-bg); border-color: var(--danger-line); }
.cc-tlmsg__fail { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-caption);
  font-weight: 600; color: var(--danger-text); }
.cc-tlmsg__fail svg { flex: 0 0 auto; color: var(--danger); }
.cc-tlmsg__resend { align-self: flex-start; margin-top: 2px; }

/* chat: optimistisch verstuurd (nog niet door de server bevestigd) */
.cc-tlmsg--pending .cc-tlmsg__bubble { border-style: dashed; opacity: .72; }

/* chat: door testmodus onderdrukt */
.cc-tlmsg--suppressed .cc-tlmsg__bubble { background: var(--n-50); border-color: var(--line); border-style: dashed; }
.cc-tlmsg--suppressed .cc-tlmsg__body { color: var(--ink-mute); }
.cc-tlmsg__sup { font-size: var(--fs-caption); color: var(--ink-mute); font-style: italic; }

/* chat: typing-bubble (agent formuleert een antwoord) */
.cc-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.cc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute);
  animation: cc-typing-blink 1.1s var(--ease-entrance) infinite; }
.cc-typing span:nth-child(2) { animation-delay: .18s; }
.cc-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes cc-typing-blink {
  0%, 60%, 100% { opacity: .35; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .cc-typing span { animation: none; } }

/* chat: bijlage-chip (signed-URL-endpoint volgt later; nu niet klikbaar) */
.cc-attach { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; max-width: 100%;
  padding: 3px 9px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--paper);
  font-size: var(--fs-caption); color: var(--ink-2); cursor: default;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chat: alles-opnieuw-balk boven de tijdlijn (>1 mislukte bezorging) */
.cc-resendall { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-2) var(--s-3); border: 1px solid var(--danger-line); background: var(--danger-bg);
  border-radius: var(--r-sm); }

/* telefoongesprek als kaart in de chat-tijdlijn (GHL-stijl) */
.cc-tlcall { align-self: stretch; max-width: 100%; display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-md);
  background: var(--paper); padding: var(--s-2) var(--s-3); box-shadow: 0 1px 2px rgba(10,11,16,.04); }
.cc-tlcall--in { border-left-color: var(--ok); }
.cc-tlcall--missed { border-left-color: var(--warn); }
.cc-tlcall--missed .cc-tlcall__title { color: var(--ink-soft); }
.cc-tlcall__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-body-s); }
.cc-tlcall__ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-subtle); border: 1px solid var(--accent-line); color: var(--accent-text, var(--accent)); }
.cc-tlcall--in .cc-tlcall__ico { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.cc-tlcall--missed .cc-tlcall__ico { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.cc-tlcall__title { font-weight: 600; color: var(--ink-strong); }
.cc-tlcall__dur { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.cc-tlcall__who { color: var(--ink-soft); font-size: var(--fs-caption); }
.cc-tlcall__time { margin-left: auto; font-size: var(--fs-caption); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cc-tlcall__note { margin: 0; font-size: var(--fs-body-s); color: var(--ink); white-space: pre-line; }
.cc-tlcall__sum { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3); background: var(--n-50, var(--paper)); display: flex; flex-direction: column; gap: 2px; }
.cc-tlcall__sum p { margin: 0; font-size: var(--fs-body-s); line-height: 1.5; color: var(--ink-strong); white-space: pre-line; }
.cc-tlcall__acts { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.cc-tlcall audio { width: 100%; height: 36px; margin-top: 2px; }
.cc-call__tr { font: inherit; font-size: var(--fs-caption); line-height: 1.5; white-space: pre-wrap; max-height: 320px; overflow: auto;
  background: var(--n-50, #f6f6f7); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; margin: 4px 0 0; }

/* kanban-kaart: ongelezen inbound bericht */
.cc-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
  box-shadow: 0 0 0 3px var(--accent-subtle); }

/* botpaneel: bridge-statusregel */
.cc-bridgehealth { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

/* =====================================================================
   PRESENTATIE fase-6 asset-upgrade: hero-cover, highlight-strip,
   verwachtingen/KPI + garantie, strategie-kaarten, tijdlijn.
   Alles via de bestaande tokens en de --client-accent scope-brand.
   ===================================================================== */

/* hero-cover: de winnende visual als paneel RECHTS, de tekst links op een
   merk-accent verloop. Ad-visuals dragen zelf al tekst, dus nooit de titel
   over het beeld heen; een accent-verloop over de linkerrand van het beeld
   hecht de twee helften aan elkaar (accentlaag, geen platte tint). */
.pv-cover--hero .pv-cover__band {
  --pv-heroW: clamp(220px, 40%, 430px);
  position: relative; min-height: 252px; justify-content: flex-end; color: #fff;
  padding-right: calc(var(--pv-heroW) + var(--s-6));
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--client-accent, var(--ink-strong)) 92%, #000) 0%,
    var(--client-accent, var(--ink-strong)) 58%,
    color-mix(in srgb, var(--client-accent, var(--ink-strong)) 74%, #000) 100%); }
.pv-cover--hero .pv-cover__band::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: var(--pv-heroW);
  background: var(--pv-hero, none) center/cover no-repeat; }
.pv-cover--hero .pv-cover__band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px;
  right: calc(var(--pv-heroW) - 120px); pointer-events: none;
  background: linear-gradient(90deg, var(--client-accent, var(--ink-strong)) 0%, transparent 100%); }
@media (max-width: 620px) {
  .pv-cover--hero .pv-cover__band { padding-right: var(--s-5); }
  .pv-cover--hero .pv-cover__band::before, .pv-cover--hero .pv-cover__band::after { display: none; }
}
.pv-cover--hero .ui-eyebrow, .pv-cover--hero .pv-cover__title, .pv-cover--hero .pv-cover__sub,
.pv-cover--hero .pv-cover__promise { position: relative; z-index: 1; }
.pv-cover__sub { margin: 0; font-size: var(--fs-body-s); font-weight: 650; letter-spacing: .01em;
  color: color-mix(in srgb, currentColor 82%, transparent); }
.pv-cover__promise { margin: 4px 0 0; font-size: var(--fs-body); font-weight: 600; max-width: 42ch;
  color: color-mix(in srgb, #fff 90%, transparent); line-height: 1.4; }

/* highlight-strip: 3-4 tegels direct onder de cover (afgeleid uit de secties) */
.pv-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-3); margin: var(--s-4) 0 var(--s-2); }
.pv-hltile { border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--paper);
  padding: var(--s-4); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1); }
.pv-hltile__k { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3, 18px);
  color: var(--client-accent, var(--accent)); letter-spacing: -.01em; }
.pv-hltile__v { font-size: var(--fs-body-s); color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 620px) { .pv-highlights { grid-template-columns: 1fr; } }

/* verwachtingen: KPI-tegels + garantie-blok */
.pv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3);
  margin: var(--s-3) 0; }
.pv-kpi { border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--paper);
  padding: var(--s-4); display: flex; flex-direction: column; gap: 3px; text-align: left; }
.pv-kpi__val { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05;
  letter-spacing: -.02em; color: var(--client-accent, var(--accent)); font-variant-numeric: tabular-nums; }
.pv-kpi__label { font-size: var(--fs-body-s); font-weight: 600; color: var(--ink); }
.pv-kpi__sub { font-size: var(--fs-caption); color: var(--ink-soft); }
/* canon-garanties: 1 of 2 blokken naast elkaar (pv-guarantees is de wrapper) */
.pv-guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3); margin-top: var(--s-3); }
.pv-guarantees .pv-guarantee { margin-top: 0; }
.pv-guarantee { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-3);
  padding: var(--s-4); border-radius: var(--r-md, 12px);
  background: color-mix(in srgb, var(--client-accent, var(--accent)) 8%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--client-accent, var(--accent)) 30%, var(--line)); }
.pv-guarantee__badge { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--client-accent, var(--accent)); color: var(--client-accent-ink, #fff);
  display: grid; place-items: center; }
.pv-guarantee__title { display: block; font-size: var(--fs-body); }
.pv-guarantee__body { margin: 3px 0 0; color: var(--ink-soft); font-size: var(--fs-body-s); line-height: 1.5; }

/* mini-case in het verwachtingen-blok: alleen gerenderd als de data er is */
.pv-case { margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-md, 12px);
  background: var(--n-50); border: 1px solid var(--line);
  border-left: 3px solid var(--client-accent, var(--accent)); }
.pv-case__label { display: block; margin-bottom: 4px; font-size: var(--fs-caption); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--client-accent, var(--accent)); }
.pv-case p { margin: 0; font-size: var(--fs-body-s); line-height: 1.5; }
.pv-case__quote { font-weight: 650; font-style: italic; }
.pv-case__quote + p { margin-top: var(--s-2); }
.pv-case__bron { display: block; margin-top: 6px; font-size: var(--fs-caption); color: var(--ink-soft); }

/* een-regel-omschrijving onder de sectietitel in de inklapbare kop */
.pv-sechd__desc { margin: 2px 0 0; font-size: var(--fs-body-s); color: var(--ink-soft); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* vaste "Wat je kunt verwachten"-kaart (manifest zonder verwachtingen-sectie) */
.pv-verwacht { border-left: 3px solid var(--client-accent, var(--accent)); }
.pv-verwacht .ui-card__body > p { margin: var(--s-2) 0 0; }

/* strategie als kaarten (i.p.v. Q&A-lijst); bezwaren als pareer-paren */
.pv-strat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.pv-strat__card { border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--paper);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.pv-strat__card > p { margin: 0; font-size: var(--fs-body-s); color: var(--ink); line-height: 1.5; }
.pv-strat__title { font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--client-accent, var(--accent)); }
.pv-parry { border-left: 3px solid var(--client-accent, var(--accent)); padding: 2px 0 2px var(--s-3);
  display: flex; flex-direction: column; gap: 2px; }
.pv-parry__q { font-weight: 650; font-size: var(--fs-body-s); }
.pv-parry__a { font-size: var(--fs-body-s); color: var(--ink-soft); line-height: 1.45; }

/* planning als verticale tijdlijn: dot = grid-kolom 1, lijn per rij getekend */
.pv-timeline { display: grid; gap: 0; }
.pv-tl__row { position: relative; display: grid; grid-template-columns: 16px 104px 1fr; gap: var(--s-3);
  padding: var(--s-3) 0; align-items: start; }
.pv-tl__row::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.pv-tl__row:first-child::before { top: calc(var(--s-3) + 5px); }
.pv-tl__row:last-child::before { bottom: auto; height: calc(var(--s-3) + 5px); }
.pv-tl__dot { grid-column: 1; position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%;
  background: var(--client-accent, var(--accent)); box-shadow: 0 0 0 3px var(--paper); margin-top: calc(var(--s-3) + 1px); }
.pv-tl__when { grid-column: 2; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); padding-top: 2px; }
.pv-tl__what { grid-column: 3; display: flex; flex-direction: column; gap: 2px; }
.pv-tl__what strong { font-size: var(--fs-body-s); }
.pv-tl__what span { font-size: var(--fs-body-s); color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 560px) { .pv-tl__row { grid-template-columns: 16px 76px 1fr; } }

/* kandidaatvoorstel-editor */
.cc-propmodal { width: min(720px, 94vw); }
.cc-propmodal .ui-field { margin-bottom: var(--s-3); }

/* bezig-indicator in de avatar (kaart, tabel, drawer): ringetje dat draait,
   vinkje bij klaar, rood puntje bij mislukt. Zie busyJobs in command-center.js. */
.cc-busy-host { position: relative; overflow: visible; }
.cc-busy { position: absolute; left: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%;
  box-sizing: border-box; border: 2px solid var(--paper, #fff); display: inline-flex; align-items: center;
  justify-content: center; pointer-events: auto; z-index: 1; }
.ui-avatar--48 .cc-busy { width: 18px; height: 18px; left: -2px; bottom: -2px; }
.cc-busy--busy { background: conic-gradient(var(--accent) 0 70%, var(--accent-subtle, rgba(0,0,0,.08)) 70% 100%);
  animation: cc-busy-spin 900ms linear infinite; }
.cc-busy--busy::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--paper, #fff); }
.ui-avatar--48 .cc-busy--busy::after { width: 7px; height: 7px; }
.cc-busy--done { background: var(--ok, #1a9b5b); color: #fff; animation: cc-busy-pop 260ms ease-out; }
.cc-busy--error { background: var(--danger, #d23f3f); box-shadow: 0 0 0 3px rgba(210, 63, 63, .18); }
@keyframes cc-busy-spin { to { transform: rotate(360deg); } }
@keyframes cc-busy-pop { from { transform: scale(.4); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cc-busy--busy { animation: none; background: conic-gradient(var(--accent) 0 50%, var(--accent-subtle, rgba(0,0,0,.08)) 50% 100%); }
}

/* =====================================================================
 * 31. COMMAND CENTER — AFSPRAAK PLANNEN (cc-appt*)
 * Het planner-scherm uit de kandidaat-drawer: brede modal, links het
 * formulier in secties (soort, vorm, wanneer, uitnodiging), rechts een
 * overzichtskaart in de campagnekleur (--ev-h, zelfde oklch-formule als de
 * agenda) plus de checklist van wat er bij Inplannen gebeurt. Hergebruikt
 * de dag-accordion en tijd-chips van de drawer (cc-slotday/cc-slot) met
 * gescopte maten. cc-* scope: raakt het ui-* systeem niet aan.
 * ===================================================================== */
.cc-apptmodal { width: min(900px, 94vw); max-width: none; max-height: min(92vh, 940px); }
.cc-apptmodal__head { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line); }
.cc-apptmodal__titles { display: flex; flex-direction: column; gap: var(--s-0-5); min-width: 0; flex: 1; }
.cc-apptmodal__sub { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body-s); color: var(--ink-soft); min-width: 0; }
.cc-apptmodal__sub > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-apptmodal__sub b { color: var(--ink); font-weight: 600; }
.cc-apptmodal__close { flex: 0 0 auto; margin: -6px -6px 0 0; }
.cc-apptmodal__body { display: block; overflow: auto; min-height: 0; flex: 1; }
.cc-appt__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 100%; }
.cc-appt__form { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.cc-appt__section { display: flex; flex-direction: column; gap: var(--s-3); }
.cc-appt__section + .cc-appt__section { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.cc-appt__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-caption);
  letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.cc-appt__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }
.cc-appt__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cc-appt__kind { display: flex; overflow-x: auto; padding: 2px 0; }
.cc-appt__kind button { white-space: nowrap; }

/* --- vorm: keuzekaarten (icoon-chip + label + subregel) --------------- */
.cc-appt-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.cc-appt-type { appearance: none; font: inherit; text-align: left; display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-3); min-height: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); cursor: pointer; position: relative;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast), transform var(--dur-press) var(--ease-overshoot); }
.cc-appt-type:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-1); }
.cc-appt-type:active { transform: scale(.985); }
.cc-appt-type:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-appt-type[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-subtle);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 25%, transparent); }
.cc-appt-type[aria-pressed="true"] .cc-appt-type__icon { background: var(--accent); color: var(--accent-ink); }
.cc-appt-type[disabled] { cursor: not-allowed; background: var(--n-50); color: var(--ink-mute); border-style: dashed; box-shadow: none; transform: none; }
.cc-appt-type[disabled] .cc-appt-type__icon { background: var(--n-100); color: var(--ink-mute); }
.cc-appt-type[disabled] .cc-appt-type__label { color: var(--ink-mute); }
.cc-appt-type__icon { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--n-50); color: var(--ink-2); transition: background var(--dur-fast), color var(--dur-fast); }
.cc-appt-type__label { font-size: var(--fs-body-s); font-weight: 600; color: var(--ink-strong); }
.cc-appt-type__sub { font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.35; }
.cc-appt-type__badge { position: absolute; top: 8px; right: 8px; }
.cc-appt__detail { animation: cc-appt-in var(--dur-enter) var(--ease-entrance); }
@keyframes cc-appt-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cc-appt__note { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-md);
  background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info-text); font-size: var(--fs-body-s); line-height: 1.45; }
.cc-appt__note svg { flex: 0 0 auto; margin-top: 2px; }
.cc-appt__note--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }

/* --- wanneer: datum + tijd, duur-chips, vrije momenten ---------------- */
.cc-appt__when { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-3); }
.cc-appt__dur { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.cc-appt__dur .cc-fchip { min-height: 36px; padding: 6px 14px; font-size: var(--fs-body-s); position: relative; }
.cc-appt__dur .cc-fchip::before { content: ""; position: absolute; inset: -4px 0; }
.cc-appt__dur-custom { width: 112px; }
.cc-appt__slots { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-appt__slots-head { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body-s); color: var(--ink-soft); min-height: 24px; }
/* Sam-meerkeuze (062): momenten die de agent mag voorstellen */
.cc-appt__slots .cc-slot.is-sam { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cc-appt__slots .cc-slot.is-sam::after { content: "S"; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cc-appt__sam { margin-right: auto; }
/* beschikbaarheidseditor (Klanten → Kalender) */
.cc-av { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.cc-av__grid { display: flex; flex-direction: column; gap: 4px; }
.cc-av__row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: var(--s-2); min-height: 36px; }
.cc-av__row.is-off { color: var(--ink-soft); }
.cc-av__sw { font-size: var(--fs-body-s); font-weight: 600; }
.cc-av__wins { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.cc-av__win { display: inline-flex; align-items: center; gap: 4px; }
.cc-av__win .ui-input { width: 92px; min-height: 32px; padding: 2px 6px; font-size: var(--fs-body-s); }
.cc-av__add { appearance: none; border: 1px dashed var(--line-strong); background: transparent; border-radius: var(--r-pill); padding: 2px 10px;
  font: inherit; font-size: var(--fs-caption); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cc-av__add:hover { color: var(--ink); border-color: var(--ink-soft); }
.cc-av__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.cc-av__opts .ui-field { gap: 2px; }
.cc-av__hol { grid-column: 1 / -1; }
@media (max-width: 640px) { .cc-av__opts { grid-template-columns: 1fr; } }
.cc-appt__slots .cc-slot { min-height: 36px; padding: 6px 12px; font-size: var(--fs-body-s); border-radius: var(--r-md); position: relative;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.cc-appt__slots .cc-slot::before { content: ""; position: absolute; inset: -4px 0; }
.cc-appt__slots .cc-slotday__toggle { min-height: 40px; padding: 6px 12px; border-radius: var(--r-md); font-size: var(--fs-body-s); font-weight: 600; color: var(--ink); }
.cc-appt__slots .cc-slotday__row { gap: 6px; }
.cc-appt__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-appt__skel { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-appt__skel > span { height: 40px; border-radius: var(--r-md); }

/* --- uitnodiging: deelnemersrijen, extra adres, RSG-kopie, afzender --- */
.cc-appt__guests { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: clip; background: var(--paper); }
.cc-appt-guest { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); min-height: 56px; cursor: pointer;
  background: var(--paper); transition: background var(--dur-fast); }
.cc-appt-guest + .cc-appt-guest, .cc-appt-guest + .cc-appt__addrow, .cc-appt__addrow + .cc-appt-guest { border-top: 1px solid var(--line); }
.cc-appt-guest:hover { background: var(--n-50); }
.cc-appt-guest.is-off .cc-appt-guest__name { color: var(--ink-soft); }
.cc-appt-guest.is-off .ui-avatar { opacity: .45; }
.cc-appt-guest.is-disabled { cursor: default; }
.cc-appt-guest__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-appt-guest__name { font-size: var(--fs-body-s); font-weight: 600; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-appt-guest__mail { font-size: var(--fs-caption); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-appt-guest__check { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; margin: 0; }
.cc-appt__addrow { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-2) var(--s-3); background: var(--n-50); border-top: 1px solid var(--line); }
.cc-appt__addrow > .ui-field { flex: 1; min-width: 0; }
.cc-appt__addbtn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 var(--s-3);
  appearance: none; border: 0; border-top: 1px solid var(--line); background: var(--paper); font: inherit; font-size: var(--fs-body-s);
  font-weight: 600; color: var(--accent-text); cursor: pointer; text-align: left; transition: background var(--dur-fast); }
.cc-appt__addbtn:hover { background: var(--accent-subtle); }
.cc-appt__addbtn:focus-visible { outline: none; box-shadow: inset var(--ring-input); }
.cc-appt__cc { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.cc-appt__cc .ui-muted { font-size: var(--fs-caption); }
.cc-appt__from { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-2) var(--s-3);
  padding: var(--s-2) var(--s-3); min-height: 44px; background: var(--n-50); border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-body-s); color: var(--ink-2); }
.cc-appt__from > svg { color: var(--ink-soft); }
.cc-appt__from-text { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.cc-appt__from b { color: var(--ink-strong); font-weight: 600; }
.cc-appt__from.is-editing { display: flex; flex-direction: column; align-items: stretch; background: var(--paper); border-color: var(--line); gap: var(--s-3); padding: var(--s-3); }
@media (max-width: 640px) {
  .cc-appt__from { grid-template-columns: auto minmax(0, 1fr); }
  .cc-appt__from > .ui-pill { grid-column: 2; justify-self: start; }
  .cc-appt__from > .ui-btn { grid-column: 2; justify-self: start; margin-left: -10px; }
}

/* --- overzichtspaneel rechts: agenda-kaart + checklist ----------------- */
.cc-appt__aside { background: var(--bg); border-left: 1px solid var(--line); padding: var(--s-5); align-self: stretch; }
.cc-appt__aside-inner { position: sticky; top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); }
.cc-appt-card { --ev-h: 80; border-radius: var(--r-card); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
  background: oklch(0.95 0.03 var(--ev-h)); border: 1px solid oklch(0.82 0.07 var(--ev-h)); border-left: 4px solid oklch(0.52 0.11 var(--ev-h));
  color: oklch(0.38 0.1 var(--ev-h)); box-shadow: var(--shadow-1); }
.cc-appt-card__top { display: flex; align-items: center; gap: var(--s-2); }
.cc-appt-card__camp { font-size: var(--fs-caption); letter-spacing: var(--track-caps); text-transform: uppercase; font-weight: 600;
  opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cc-appt-card__day { font-size: var(--fs-body-s); font-weight: 600; margin-top: var(--s-1); }
.cc-appt-card__date { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2); letter-spacing: -.025em; line-height: var(--lh-tight); color: var(--ink-strong); }
.cc-appt-card__time { font-size: var(--fs-body); font-variant-numeric: tabular-nums; color: var(--ink); }
.cc-appt-card__rule { height: 1px; background: oklch(0.82 0.07 var(--ev-h)); margin: var(--s-1) 0; }
.cc-appt-card__row { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body-s); color: var(--ink-2); min-width: 0; min-height: 24px; }
.cc-appt-card__row svg { flex: 0 0 auto; color: oklch(0.52 0.11 var(--ev-h)); }
.cc-appt-card__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cc-appt-card__row .ui-muted { color: var(--ink-soft); }
.cc-appt-card__avatars { display: flex; align-items: center; flex: 0 0 auto; }
.cc-appt-card__avatars > * { margin-left: -6px; outline: 2px solid oklch(0.95 0.03 var(--ev-h)); }
.cc-appt-card__avatars > :first-child { margin-left: 0; }
.cc-appt-card__more { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: var(--n-100); color: var(--ink-2); }
.cc-appt-card--muted .cc-appt-card__date { color: var(--ink-soft); font-size: var(--fs-subhead); }
.cc-appt__checklist { display: flex; flex-direction: column; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.cc-appt__check { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-body-s); color: var(--ink-2); line-height: 1.4; }
.cc-appt__check.is-off { color: var(--ink-mute); }
.cc-appt__check.is-warn { color: var(--warn-text); }
.cc-appt__check-dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; margin-top: 2px; display: grid; place-items: center;
  border: 1.5px solid var(--n-200); background: var(--paper); color: transparent; }
.cc-appt__check.is-on .cc-appt__check-dot { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
.cc-appt__check.is-warn .cc-appt__check-dot { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }

/* --- voet: samenvatting links, acties rechts; foutbalk bovenin ---------- */
.cc-appt__foot { display: flex; align-items: center; gap: var(--s-2); width: 100%; }
.cc-appt__summary { font-size: var(--fs-body-s); color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 0; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-appt__summary b { color: var(--ink); font-weight: 600; }
.cc-appt__error { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--danger-bg);
  border: 1px solid var(--danger-line); color: var(--danger-text); border-radius: var(--r-md); font-size: var(--fs-body-s); line-height: 1.45; }
.cc-appt__error svg { flex: 0 0 auto; margin-top: 2px; color: var(--danger); }

@media (max-width: 760px) {
  .cc-apptmodal { width: 100%; max-height: calc(100dvh - var(--s-4) * 2); }
  .cc-appt__grid { grid-template-columns: minmax(0, 1fr); }
  .cc-appt__aside { order: -1; min-width: 0; border-left: 0; border-bottom: 1px solid var(--line); padding: var(--s-3) var(--s-4); position: sticky; top: 0; z-index: 2; }
  .cc-appt__aside-inner { position: static; gap: 0; }
  .cc-appt__checklist, .cc-appt-card__camp, .cc-appt-card__rule, .cc-appt-card__day, .cc-appt__aside-eyebrow { display: none; }
  .cc-appt-card { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-3); padding: var(--s-2) var(--s-3); }
  .cc-appt-card__top { display: contents; }
  .cc-appt-card__date { font-size: var(--fs-subhead); }
  .cc-appt-card__row { min-height: 0; }
  .cc-appt-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-appt__two, .cc-appt__when { grid-template-columns: 1fr; }
  .cc-appt__form { padding: var(--s-4); gap: var(--s-4); }
  .cc-appt__section + .cc-appt__section { padding-top: var(--s-4); }
}
@media (max-width: 640px) {
  .cc-appt__foot { flex-wrap: wrap; }
  .cc-appt__summary { flex: 1 0 100%; white-space: normal; }
  .cc-appt__primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-appt__detail { animation: none; }
  .cc-appt-type, .cc-appt-type:active { transition: none; transform: none; }
}

/* =====================================================================
 * 32. COMMAND CENTER — KLANTEN (cc-cl*)
 * Klantenlijst + klantdetail met de kaarten Contactpersonen, Afzender,
 * Kalender en Campagnes (migratie 061, Apply /api/client-settings).
 * ===================================================================== */
.cc-cl-card { text-decoration: none; color: inherit; cursor: pointer; transition: box-shadow var(--dur-fast), border-color var(--dur-fast); }
.cc-cl-card:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-2); }
.cc-cl-card:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-cl-card__top { display: flex; align-items: center; gap: var(--s-3); }
.cc-cl-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-subhead); color: var(--ink-strong); letter-spacing: -.01em; }
.cc-cl-card__meta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); font-size: var(--fs-body-s); color: var(--ink-soft); }
.cc-cl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.cc-cl__col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.cc-cl__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cc-cl-contact { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); align-items: start;
  padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cc-cl-contact__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); min-width: 0; }
.cc-cl-contact__flags { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.cc-cl-flag { font-size: var(--fs-body-s); min-height: 36px; }
.cc-cl-contact__remove { grid-column: 3; grid-row: 1; }
/* composer-kop (drawer e-mail + klantbericht, 062): stille label/veld-rijen */
.cc-mailhead { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.cc-mailhead__row { display: flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3); border-bottom: 1px solid var(--line); font-size: var(--fs-body-s); }
.cc-mailhead__row:last-child { border-bottom: 0; }
.cc-mailhead__row--top { align-items: flex-start; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.cc-mailhead__lbl { flex: 0 0 88px; color: var(--ink-soft); font-size: var(--fs-caption); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cc-mailhead__row .ui-input, .cc-mailhead__row .ui-select { border: 0; background: transparent; box-shadow: none; padding-left: 0; min-height: 34px; flex: 1; min-width: 0; }
.cc-mailhead__row .ui-input:focus, .cc-mailhead__row .ui-select:focus { outline: none; box-shadow: none; }
.cc-mailhead__fixed { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cc-mailhead__cc { margin-left: auto; }
.cc-mailhead__ccin { flex: 0 1 260px !important; }
.cc-cm__seg { margin-left: auto; }
.cc-cm__tos { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cc-cm__to { display: flex; align-items: center; gap: var(--s-2); padding: 4px 0; cursor: pointer; }
.cc-cm__to.is-off { opacity: .55; cursor: default; }
.cc-cm__to input { margin: 0; }
.cc-clmsgs { display: flex; flex-direction: column; gap: var(--s-2); max-height: 380px; overflow-y: auto; }
.cc-clmsg { display: flex; gap: var(--s-2); padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cc-clmsg.is-out { background: color-mix(in oklab, var(--accent) 5%, var(--paper)); }
.cc-clmsg.is-failed { border-color: color-mix(in oklab, var(--danger) 40%, var(--line)); }
.cc-clmsg__ch { flex: 0 0 auto; font-size: 14px; line-height: 20px; }
.cc-clmsg__body { min-width: 0; flex: 1; font-size: var(--fs-body-s); }
.cc-clmsg__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-clmsg__subj { font-weight: 600; margin-top: 2px; }
.cc-clmsg__txt { color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }
.cc-cl-camp { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.cc-cl-camp__head { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body-s); }
.cc-cl-camp__pills { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 960px) {
  .cc-cl__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cc-cl__two, .cc-cl-contact__fields { grid-template-columns: 1fr; }
  .cc-cl-contact { grid-template-columns: 32px minmax(0, 1fr); }
  .cc-cl-contact__flags { grid-column: 1 / -1; }
  .cc-cl-contact__remove { grid-column: 2; }
}

/* =====================================================================
 * 33. COMMAND CENTER — TEMPLATES (cc-tpl*)
 * Lijst per kanaal + editor in de brede modal (cc-apptmodal-patroon): links
 * de velden en de variabele-kiezer, rechts de live preview als mailkaart of
 * WhatsApp-bubbel, plus de Meta-status.
 * ===================================================================== */
.cc-tpl-group { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.cc-tpl-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.cc-tpl-row:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-1); }
.cc-tpl-row:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-tpl-row--builtin { cursor: default; background: var(--n-50); border-style: dashed; }
.cc-tpl-row--builtin:hover { border-color: var(--line); box-shadow: none; }
.cc-tpl-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-tpl-row__name { font-size: var(--fs-body-s); font-weight: 600; color: var(--ink-strong); }
.cc-tpl-row__sub { font-size: var(--fs-caption); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tpl-row__date { font-size: var(--fs-caption); white-space: nowrap; }
.cc-tplmodal { width: min(960px, 94vw); }
.cc-tpl__toolbar { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3); background: var(--accent-subtle); border: 1px solid var(--accent-line); border-radius: var(--r-md); }
.cc-tpl__btnrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; margin-bottom: var(--s-2); }
.cc-tpl__btnrow input[type="url"] { grid-column: 1 / 3; }
.cc-tpl__samples { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-tpl__sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-3); align-items: center; }
.cc-tpl__sample-key { font-size: var(--fs-body-s); color: var(--ink-2); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.cc-tpl__mail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); overflow: clip; }
.cc-tpl__mail-meta { display: flex; flex-direction: column; gap: 3px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); background: var(--n-50);
  font-size: var(--fs-caption); color: var(--ink-soft); }
.cc-tpl__mail-meta b { color: var(--ink-2); font-weight: 600; margin-right: 4px; }
.cc-tpl__mail-body { padding: var(--s-4); font-size: var(--fs-body-s); line-height: 1.55; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.cc-tpl__chat { padding: var(--s-4); border-radius: var(--r-card); background: #E5DDD5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='1.2' fill='%23d6cdc3'/%3E%3C/svg%3E"); }
.cc-tpl__bubble { position: relative; max-width: 100%; background: var(--paper); border-radius: 8px; padding: 8px 10px 22px; box-shadow: 0 1px 1px rgba(0,0,0,.08); font-size: var(--fs-body-s); line-height: 1.45; color: #111; }
.cc-tpl__bubble::before { content: ""; position: absolute; left: -6px; top: 0; border: 6px solid transparent; border-top-color: var(--paper); border-right-color: var(--paper); }
.cc-tpl__bubble-head { font-weight: 700; margin-bottom: 4px; }
.cc-tpl__bubble-body { white-space: pre-wrap; word-break: break-word; }
.cc-tpl__bubble-foot { margin-top: 6px; font-size: var(--fs-caption); color: #667781; }
.cc-tpl__bubble-time { position: absolute; right: 10px; bottom: 6px; font-size: 11px; color: #667781; }
.cc-tpl__bubble-btns { display: flex; flex-direction: column; margin: 10px -10px -22px; border-top: 1px solid #ECE5DE; }
.cc-tpl__bubble-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; color: #027EB5; font-weight: 600; border-top: 1px solid #ECE5DE; }
.cc-tpl__bubble-btn:first-child { border-top: 0; }
.cc-tpl__status { margin-top: var(--s-4); }
@media (max-width: 640px) {
  .cc-tpl__btnrow { grid-template-columns: 1fr auto; }
  .cc-tpl__btnrow input[type="url"] { grid-column: 1 / -1; }
  .cc-tpl__sample { grid-template-columns: 1fr; }
  .cc-tpl-row { flex-wrap: wrap; }
}


/* ===================================================================
   MELDINGEN-VIEW, TAKEN, RAIL-GROEPEN (feedbackronde 2026-08-29)
   =================================================================== */
.ui-rail-section--gap { height: var(--s-3); }
.ui-chip.is-active { background: var(--accent-subtle); color: var(--accent-text); border-color: var(--accent-line); font-weight: 600; }
.ui-pill--sm { font-size: 11px; padding: 1px 7px; }
.ui-select--sm, .ui-input--sm { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-body-s); }
.ui-switch--sm { font-size: var(--fs-body-s); }
.cc-notif__foot { padding: var(--s-2) var(--s-3); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.cc-nf { display: flex; flex-direction: column; gap: var(--s-4); }
.cc-nf__bar { display: flex; flex-direction: column; gap: var(--s-3); }
.cc-nf__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cc-nf__ctl { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cc-nf__day { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-nf__dayhead { margin-top: var(--s-2); }
.cc-nfrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: var(--s-3); align-items: start;
  padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.cc-nfrow.is-unread { border-left: 3px solid var(--accent); }
.cc-nfrow__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-nfrow__title { font-weight: 600; font-size: var(--fs-body-s); color: var(--ink-strong); }
.cc-nfrow__body { font-size: var(--fs-caption); color: var(--ink-soft); white-space: pre-wrap; }
.cc-nfrow__meta { font-size: var(--fs-caption); color: var(--ink-mute, var(--ink-soft)); }
.cc-nfrow__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.cc-nfrow__time { font-size: var(--fs-caption); color: var(--ink-mute, var(--ink-soft)); font-variant-numeric: tabular-nums; }
.cc-nfrow__acts { display: flex; gap: var(--s-1); }
@media (max-width: 760px) { .cc-nfrow { grid-template-columns: 1fr; } .cc-nfrow__side { align-items: flex-start; } }
.cc-tasks { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-task { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.cc-task:last-child { border-bottom: 0; }
.cc-task__done { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); background: transparent; cursor: pointer; }
.cc-task__done:hover { border-color: var(--accent); background: var(--accent-subtle); }
.cc-task__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.cc-task__title { font-size: var(--fs-body-s); font-weight: 600; color: var(--ink-strong); display: flex; align-items: center; gap: 6px; }
.cc-task__title svg { width: 14px; height: 14px; color: var(--ink-mute); }
.cc-task__note, .cc-task__meta { font-size: var(--fs-caption); color: var(--ink-soft); }
.cc-task.is-late .cc-task__meta { color: var(--danger-text); }
.cc-task__new { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: var(--s-2); margin-top: var(--s-3); }
@media (max-width: 760px) { .cc-task__new { grid-template-columns: 1fr 1fr; } }
/* Instellingen met sub-navigatie */
.cc-set { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.cc-set__nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--s-4); }
.cc-set__nav a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); color: var(--ink-soft); font-size: var(--fs-body-s); text-decoration: none; }
.cc-set__nav a:hover { background: var(--n-50); color: var(--ink); }
.cc-set__nav a.is-active { background: var(--accent-subtle); color: var(--accent-text); font-weight: 600; }
.cc-set__body { display: flex; flex-direction: column; gap: var(--s-4); }
.cc-set__body > .ui-card { max-width: 720px; margin-top: 0 !important; }
@media (max-width: 900px) { .cc-set { grid-template-columns: 1fr; } .cc-set__nav { position: static; flex-direction: row; flex-wrap: wrap; } }
/* Klantdetail met tabs */
.cc-cl__tabs { margin-bottom: var(--s-4); }
/* overerving (org → klant → campagne) */
.cc-inherit { font-size: 11px; color: var(--ink-mute, var(--ink-soft)); margin-left: 6px; font-weight: 400; }
.cc-inherit--own { color: var(--accent-text); }
/* verbruik / logboek */
.cc-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.cc-usage__kpi { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cc-usage__kpi b { display: block; font-size: var(--fs-h3); }
.cc-usage__kpi span { font-size: var(--fs-caption); color: var(--ink-soft); }
.cc-log { width: 100%; border-collapse: collapse; font-size: var(--fs-caption); }
.cc-log th, .cc-log td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cc-log td.is-body { color: var(--ink-soft); max-width: 360px; }
.cc-guardlist { font-size: var(--fs-body-s); color: var(--ink); padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.cc-botdays { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.cc-botday { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--fs-body-s); cursor: pointer; background: var(--paper); }
.cc-botday:has(input:checked) { background: var(--accent-subtle); border-color: var(--accent-line); color: var(--accent-text); font-weight: 600; }
.cc-nf__ctl .ui-select { width: auto; min-width: 170px; }
.cc-nf__ctl .ui-switch { margin-right: var(--s-2); }

/* Agenda v2 (feedbackronde 2026-08-29): filters, dag/lijst, popover, mijn agenda */
.cc-agfilter { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); margin-bottom: var(--s-3); }
.cc-agfilter__item { display: flex; flex-direction: column; gap: 4px; }
.cc-agfilter .ui-select { width: auto; min-width: 150px; }
.cc-week--day { grid-template-columns: 52px minmax(0, 1fr); min-width: 0; }
.cc-week__evt--busy { background: repeating-linear-gradient(135deg, var(--n-50), var(--n-50) 4px, var(--paper) 4px, var(--paper) 8px); color: var(--ink-mute); }
.cc-cal__evt.is-bot::after, .cc-week__evt.is-bot::after { content: " · Sam"; opacity: .7; font-size: 10px; }

/* Beschikbaarheid van een kandidaat als baan in de agenda (072). De contour (.cc-band) is
   wat de kandidaat zei; de klikbare stukken (.cc-band__free) zijn wat daarvan overblijft na
   werkuren en drukte van de recruiter. Meerdere kandidaten staan naast elkaar in stroken,
   onder de gewone afspraken (z-index 0). */
.cc-band { position: absolute; z-index: 0; border-radius: 6px; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent, transparent 5px, color-mix(in oklab, oklch(0.6 0.08 var(--ev-h, 80)) 12%, transparent) 5px, color-mix(in oklab, oklch(0.6 0.08 var(--ev-h, 80)) 12%, transparent) 10px);
  border: 1px dashed oklch(0.75 0.06 var(--ev-h, 80)); }
.cc-band__free { position: absolute; z-index: 0; appearance: none; cursor: crosshair; border-radius: 6px; padding: 0; text-align: left;
  background: oklch(0.97 0.02 var(--ev-h, 80)); border: 1px solid oklch(0.82 0.07 var(--ev-h, 80)); border-left-width: 3px;
  font: inherit; font-size: 10px; font-weight: 600; color: oklch(0.42 0.1 var(--ev-h, 80)); overflow: hidden; }
.cc-band__free:hover { background: oklch(0.93 0.04 var(--ev-h, 80)); }
/* contour zonder vrij stuk: tóch klikbaar (voorstel buiten je beschikbaarheid, 2026-09-03) */
.cc-band--buiten { pointer-events: auto; cursor: pointer; appearance: none; border: 1px dashed oklch(0.6 0.12 var(--ev-h, 80)); padding: 0; text-align: left; }
.cc-band--buiten:hover { background: oklch(0.95 0.03 var(--ev-h, 80)); }
.cc-wa-alert__done.cc-wa-start__caret { padding-left: 4px; padding-right: 4px; }
.cc-band__free:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-band__name { display: block; padding: 2px 4px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cc-cal__evt--band { background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 4px, oklch(0.94 0.03 var(--ev-h, 80)) 4px, oklch(0.94 0.03 var(--ev-h, 80)) 8px); border-style: dashed; }
.cc-aglist__bands { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 0 4px; }
.cc-aglist__bands .cc-cal__evt--band { padding: 2px 8px; font-size: 11px; }
.cc-agpop .ui-input--sm { width: 96px; }
.cc-evt__ico { display: inline-flex; vertical-align: -2px; margin-right: 4px; opacity: .75; }
.cc-evt__ico svg { width: 11px; height: 11px; }
.cc-aglist__main .cc-evt__ico svg { width: 13px; height: 13px; }
.cc-aglist { display: flex; flex-direction: column; gap: var(--s-4); }
.cc-aglist__day { display: flex; flex-direction: column; gap: var(--s-1); }
.cc-aglist__head { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.cc-aglist__head.is-today { color: var(--accent-text); }
.cc-aglist__row { display: flex; align-items: center; gap: var(--s-3); width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); font: inherit; cursor: pointer; }
.cc-aglist__row:hover { background: var(--n-50); }
.cc-aglist__row--ext { cursor: default; color: var(--ink-soft); }
.cc-aglist__time { min-width: 92px; font-variant-numeric: tabular-nums; font-size: var(--fs-body-s); color: var(--ink-soft); }
.cc-aglist__dot { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.6 0.13 var(--ev-h, 80)); flex: 0 0 auto; }
.cc-aglist__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; font-size: var(--fs-body-s); }
.cc-aglist__main .ui-muted { font-size: var(--fs-caption); }
.cc-agpop { position: absolute; z-index: 30; width: 340px; max-width: 92vw; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.12)); }
.cc-agpop[hidden] { display: none; }
.cc-agpop__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-3) 0; }
.cc-agpop__body { display: flex; flex-direction: column; gap: 3px; padding: var(--s-2) var(--s-3); font-size: var(--fs-body-s); }
.cc-agpop__body .ui-muted { font-size: var(--fs-caption); }
.cc-agpop__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); border-top: 1px solid var(--line); }
.cc-myagenda { margin-bottom: var(--s-5); }
#ccView { position: relative; }
.cc-qrows { display: flex; flex-direction: column; gap: var(--s-2); }
.cc-qrow { display: flex; flex-direction: column; gap: 6px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cc-qrow__top { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.cc-qrow__top .ui-select { width: auto; min-width: 140px; }
.cc-qrow__top .ui-input { width: 200px; }
.cc-fuchain { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.cc-fusteps { display: flex; flex-direction: column; gap: 6px; }
.cc-fustep { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-fustep .ui-select { width: auto; }
.cc-fustep .ui-input[data-fu-text] { flex: 1; min-width: 220px; }
.cc-prop { margin-top: var(--s-2); padding: var(--s-3); border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--accent-subtle); display: flex; flex-direction: column; gap: var(--s-2); }
.cc-prop__head { font-size: var(--fs-body-s); }

/* Portaal: beschikbaarheid per week (2026-08-29) */
.pp-av { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); gap: 3px; user-select: none; }
.pp-av__corner { }
.pp-av__head { text-align: center; font-size: var(--fs-caption); font-weight: 600; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; }
.pp-av__hour { font-size: 11px; color: var(--ink-mute, var(--ink-soft)); font-variant-numeric: tabular-nums; align-self: center; text-align: right; padding-right: 6px; }
.pp-av__cell { appearance: none; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; }
.pp-av__cell:hover { border-color: var(--accent-line); }
.pp-av__cell.is-on { background: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) { .pp-av { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); } .pp-av__cell { height: 24px; } }

/* Automatiseringen (catalogus lib/automations.mjs via /api/automations): per trigger één rij
   met schakelaar, sjabloon, afzender en telling; uitklapbaar voorbeeld. */
.cc-auto__bar { display: flex; gap: var(--s-2); align-items: center; margin-bottom: var(--s-3); flex-wrap: wrap; }
.cc-auto__bar .ui-select { width: auto; min-width: 260px; }
.cc-auto__bar .ui-input { width: 280px; }
.cc-auto__group { margin-bottom: var(--s-3); }
.cc-auto__count { margin-left: var(--s-2); font-weight: 400; font-size: var(--fs-caption); }
.cc-auto__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); align-items: start; }
.cc-auto__row:first-of-type { border-top: 0; }
.cc-auto__row.is-off .cc-auto__main { opacity: .6; }
.cc-auto__sw { padding-top: 2px; }
.cc-auto__fixed { color: var(--ink-mute); }
.cc-auto__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-auto__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-auto__tpl { font-size: var(--fs-body-s); color: var(--ink-soft); }
.cc-auto__trigger { font-size: var(--fs-body-s); color: var(--ink-soft); }
.cc-auto__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--fs-caption); color: var(--ink-mute); }
.cc-auto__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cc-auto__stat { font-size: var(--fs-caption); color: var(--ink-mute); white-space: nowrap; }
.cc-auto__acts { display: flex; gap: 6px; }
.cc-auto__prev { margin-top: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); display: flex; flex-direction: column; gap: var(--s-2); }
.cc-auto__subject { font-weight: 600; }
.cc-auto__body { white-space: pre-wrap; font-size: var(--fs-body-s); line-height: 1.5; }
.cc-auto__body--wa { max-width: 420px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #DCF8C6; color: #111; }
@media (max-width: 900px) { .cc-auto__row { grid-template-columns: 44px minmax(0, 1fr); } .cc-auto__side { grid-column: 2; align-items: flex-start; } }

/* "Met wie?"-keuze in het afspraakmodal (feedbackronde 2026-08-31) */
.cc-appt__withrow{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-2)}
.cc-appt__with{display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);cursor:pointer;font:inherit}
.cc-appt__with b{font-size:var(--fs-body)}
.cc-appt__with span{font-size:var(--fs-caption);color:var(--ink-soft)}
.cc-appt__with[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-subtle);box-shadow:inset 0 0 0 1px var(--accent)}
/* WhatsApp-bericht: sjabloon / Sam zelf / zonder (2026-09-04) */
.cc-appt__withrow--3{grid-template-columns:1fr 1fr 1fr}
.cc-appt__with:disabled{opacity:.55;cursor:not-allowed}
.cc-waconfirm__modes{margin-bottom:var(--s-3)}
@media (max-width: 900px){.cc-appt__withrow--3{grid-template-columns:1fr}}
