*,*::before,*::after{box-sizing:border-box}
:root{
  --bg:#181A1F; --surf:#202329; --txt:#F3F1EB; --txt2:#9A988F; --txt3:#6E6C65;
  --hair:rgba(243,241,235,.09); --hair2:rgba(243,241,235,.05);
  --amber:#F2A338; --amber-d:#C9801A; --ink:#181A1F;
  --accent:#F2A338; --danger:#C0564B; --radius:16px;
  --success:#6FCB97; --warning:#E0A24A;
  --surface:var(--surf); --surface2:var(--hair2); --border:var(--hair);
  --text:var(--txt); --muted:var(--txt2); --brand:var(--amber); --brand-ink:var(--ink);
}
html{color-scheme:dark}
/* v146: Light theme overrides. Paper ground, charcoal ink — inverse of the
 * brand-book dark palette but identical amber accent (brand contrast keeps
 * working on both grounds). Applied when the user explicitly picks light,
 * OR when their preference is 'system' AND the OS reports light scheme. */
html[data-theme="light"]{
  --bg:#F3F1EB; --surf:#FBFAF6; --txt:#181A1F; --txt2:#6F6E68; --txt3:#9A988F;
  --hair:#E7E3DA; --hair2:#EEEBE3;
  --success:#1F9D63; --warning:#B5781F;
  color-scheme:light;
}
@media (prefers-color-scheme: light){
  html[data-theme="system"]{
    --bg:#F3F1EB; --surf:#FBFAF6; --txt:#181A1F; --txt2:#6F6E68; --txt3:#9A988F;
    --hair:#E7E3DA; --hair2:#EEEBE3;
    --success:#1F9D63; --warning:#B5781F;
    color-scheme:light;
  }
}
/* Spots with hardcoded charcoal-rgba backgrounds (appbar, tabbar, cookiebar,
 * version-chip) need a light counterpart so they don't render as dark bands
 * on the paper ground. We override the bg only; the var()-driven text + border
 * already adapt. Cookiebar uses higher alpha than appbar so the legal copy
 * stays legible against page content scrolling underneath. */
html[data-theme="light"] .appbar,
html[data-theme="light"] .tabbar{background:rgba(250,248,242,.88)}
html[data-theme="light"] .cookiebar{background:rgba(250,248,242,.97)}
html[data-theme="light"] .version-chip{background:rgba(255,255,255,.92)}
@media (prefers-color-scheme: light){
  html[data-theme="system"] .appbar,
  html[data-theme="system"] .tabbar{background:rgba(250,248,242,.88)}
  html[data-theme="system"] .cookiebar{background:rgba(250,248,242,.97)}
  html[data-theme="system"] .version-chip{background:rgba(255,255,255,.92)}
}
/* Brand Book v1.0: Hanken Grotesk is the working typeface. Line-height
 * lifted from 1.5 → 1.6 to match the body spec on the Type page. */
body{margin:0 auto;max-width:640px;padding:0 16px;background:var(--bg);color:var(--text);
  font-family:'Hanken Grotesk',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  line-height:1.6;-webkit-font-smoothing:antialiased;font-feature-settings:"ss01"}
/* Admin pages (renderAdmin + admin/whatsapp + admin/support) opt out of
 * the 640px mobile-cap so they get a desktop-bruikbare layout. Up to
 * 1023px the mobile single-column flow stays identical to non-admin
 * pages; from 1024px+ the canvas verbreedt en de TOC-sidebar wordt
 * geactiveerd. Renderers stempelen `class="adminbody"` op <body> via
 * de bodyClass-optie van page(). */
body.adminbody{max-width:min(1400px, 96vw)}
@media (min-width:1024px){
  body.adminbody{padding-left:240px}
  body.adminbody h1{font-size:1.85rem;margin:1.2rem 0 .25rem}
  body.adminbody h2{font-size:1.25rem;margin:1.4rem 0 .5rem}
}
/* Sticky table-of-contents — desktop only. Lives left of the main
 * content; intersection-observer in renderAdmin updates the .active
 * class so the user always knows where they are. */
.admin-toc{display:none}
@media (min-width:1024px){
  .admin-toc{display:block;position:fixed;
    top:calc(78px + env(safe-area-inset-top,0));
    left:max(12px, calc((100vw - 1400px) / 2 + 12px));
    width:210px;max-height:calc(100vh - 110px);
    overflow-y:auto;padding:8px 6px 12px;
    font-size:.85rem;border-right:1px solid var(--border);
    scrollbar-width:thin}
  .admin-toc h3{font-size:.66rem;color:var(--muted);
    text-transform:uppercase;letter-spacing:.08em;
    margin:.4rem .5rem .35rem;font-weight:700}
  .admin-toc a{display:block;padding:.32rem .55rem;margin:1px 0;
    color:var(--muted);text-decoration:none;font-size:.82rem;
    border-left:2px solid transparent;border-radius:0 4px 4px 0;
    line-height:1.25;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    transition:color .15s, background .15s, border-color .15s}
  .admin-toc a:hover{color:var(--text);background:var(--surface)}
  .admin-toc a.active{color:var(--brand);border-left-color:var(--brand);
    background:color-mix(in srgb, var(--brand) 8%, transparent)}
  /* v260: categorie-links (Overzicht/Communicatie/…) zwaarder dan de
   * sectie-ankers; sub-pagina's en sectie-ankers springen in. */
  .admin-toc .aview{font-weight:700;color:var(--text);font-size:.86rem;margin-top:3px}
  .admin-toc .aview.active{color:var(--brand);border-left-color:var(--brand);
    background:color-mix(in srgb, var(--brand) 10%, transparent)}
  .admin-toc .asub{padding-left:1.15rem;font-size:.78rem}
  .admin-toc .admin-toc-sections a{padding-left:1.15rem;font-size:.78rem}
}
/* v260: mobiele admin-navigatie — horizontale pill-row boven de pagina.
 * Desktop (>=1024) gebruikt de sidebar, dus daar verdwijnt de row. */
.admin-subnav{display:flex;gap:.45rem;overflow-x:auto;padding:.55rem 0 .25rem;
  -webkit-overflow-scrolling:touch;scrollbar-width:none}
.admin-subnav::-webkit-scrollbar{display:none}
.admin-subnav a{flex:0 0 auto;padding:.3rem .85rem;border-radius:999px;
  border:1px solid var(--border);color:var(--muted);text-decoration:none;
  font-size:.82rem;font-weight:600;white-space:nowrap}
.admin-subnav a.active{color:var(--brand);border-color:rgba(242,163,56,.55);
  background:rgba(242,163,56,.10)}
@media (min-width:1024px){.admin-subnav{display:none}}
/* v269: groepskoppen tussen de admin-accordions ("Actie nodig", "Inzicht",
 * "Configuratie", …) — visuele clustering op taakfrequentie. */
.agroup{font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;
  color:var(--muted);font-weight:700;margin:1.5rem 0 .45rem;line-height:1}
.agroup:first-of-type{margin-top:.8rem}
/* Quick-link knoppen (Support/WhatsApp/Backups) alleen op mobiel —
 * desktop heeft dezelfde links al in de sidebar. */
@media (min-width:1024px){.admin-quicklinks{display:none}}
/* v278: Cmd-K globale zoek-overlay (admin). De [hidden]-regel wint van de
 * flex-display zodat het attribuut blijft werken. */
.cmdk{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;
  display:flex;align-items:flex-start;justify-content:center;padding:10vh 1rem 0}
.cmdk[hidden]{display:none}
.cmdk-box{width:min(560px,100%);background:var(--surface);border:1px solid var(--border);
  border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.35);overflow:hidden}
.cmdk-box input{width:100%;border:none;background:transparent;color:var(--text);
  padding:.85rem 1rem;font-size:1rem;outline:none;border-bottom:1px solid var(--border)}
.cmdk-results{max-height:50vh;overflow-y:auto}
.cmdk-group{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);font-weight:700;padding:.55rem .9rem .2rem}
.cmdk-results a{display:block;padding:.45rem .9rem;color:var(--text);
  text-decoration:none;font-size:.9rem}
.cmdk-results a span{display:block;font-size:.75rem;color:var(--muted)}
.cmdk-results a:hover{background:color-mix(in srgb, var(--brand) 9%, transparent)}
.cmdk-hint{padding:.7rem .9rem;font-size:.85rem;color:var(--muted);margin:0}
/* Zoek-trigger: knop bovenin de sidebar (desktop); op mobiel een 🔎-pill
 * in de subnav (erft .admin-subnav a-styling). */
.cmdk-trigger{display:none}
@media (min-width:1024px){
  .cmdk-trigger{display:block;width:calc(100% - 12px);margin:0 6px 8px;
    text-align:left;font-size:.8rem;padding:.4rem .55rem;border-radius:8px;
    background:var(--surface);border:1px solid var(--border);color:var(--muted);cursor:pointer}
  .cmdk-trigger:hover{color:var(--text)}
  .cmdk-trigger kbd{float:right;font-size:.68rem;border:1px solid var(--border);
    border-radius:4px;padding:0 .3rem;color:var(--muted);font-family:inherit}
}
/* Headlines — weight 800, tight tracking -2.5%, line-height 1.02 per the
 * brand book Type spec. Punctuation amber-ification happens server-side
 * via a tiny helper (see amberHead in renderer). */
h1,h2{font-weight:800;letter-spacing:-0.025em;line-height:1.02}
h1{font-size:1.75rem;margin:1rem 0 .75rem}
h2{font-size:1.35rem;margin:1.2rem 0 .6rem}
/* Wordmark — only EVER used for the BeepSweep logotype. Space Grotesk is
 * the display cut; Beep is bold, Sweep is regular, kerning is tight. */
.wm{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:400;
  letter-spacing:-0.035em;line-height:1}
.wm b{font-weight:700}
/* Reserve room for the fixed appbar + iOS safe-area notch. No bottom
 * tabbar anymore — primary nav lives in the appbar's gear dropdown. */
body:has(.appbar){
  padding-top:calc(62px + env(safe-area-inset-top,0));
  padding-bottom:env(safe-area-inset-bottom,0);
}
h1{font-size:1.35rem;margin:1rem 0 .15rem}
h2{font-size:1.05rem;margin:1.6rem 0 .5rem}
p{margin:.4rem 0}
a{color:var(--brand)}
.muted,.hint{color:var(--muted)} .hint{font-size:.85rem}
.empty{color:var(--muted);text-align:center;padding:2.5rem 0}

.appbar{position:fixed;top:0;left:0;right:0;height:54px;display:flex;align-items:center;
  justify-content:space-between;padding:0 16px;background:rgba(22,27,34,.85);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--border);z-index:20;
  /* Promote to its own GPU layer + extra padding-top for the iOS safe-area
   * (notch / Dynamic Island). Without translateZ(0) iOS Safari sometimes
   * "slides" the fixed bar a few pixels during a fast scroll because it's
   * still on the main paint thread. With it the bar is composited and
   * stays put while the content scrolls under it. */
  transform:translateZ(0);-webkit-transform:translateZ(0);
  will-change:transform;-webkit-backface-visibility:hidden;
  padding-top:env(safe-area-inset-top,0)}
/* Brand: Embrace mark (two rounded arms cradling an amber dot) +
 * BeepSweep wordmark in Space Grotesk. Replaces the legacy green square.
 * The mark form inherits currentColor (paper on dark / ink on light),
 * the held dot is locked to --brand (amber). Single-colour, no shadows. */
.brand{display:flex;align-items:center;gap:.55rem;color:var(--text);text-decoration:none}
.brand .dot,.authbrand .dot{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:0}
.brand .dot{width:22px;height:22px}
.brand .dot svg,.authbrand .dot svg{width:100%;height:100%;display:block}
.brand .dot svg .form,.authbrand .dot svg .form{stroke:currentColor;fill:none;stroke-width:9.5;stroke-linecap:round;stroke-linejoin:round}
.brand .dot svg .held,.authbrand .dot svg .held{fill:var(--brand);stroke:none}
/* The appbar wordmark — locked to Space Grotesk, Beep bold, Sweep regular.
 * Scoped to .appbar so the .wm class in the larger .authbrand lockup
 * inherits its parent's font-size (1.85rem) instead of being shrunk to 1.1. */
.appbar .brand .wm{font-size:1.1rem}
/* Pulse on the appbar held-dot only — the embrace stays still, only the
 * caught dot pulses in NL beltoon cadans ("brrr-brrr" + 4s pause). Animating
 * the SVG circle's r/opacity instead of the whole container, so the glow
 * follows the round dot, not the square box. */
.appbar .brand .dot svg .held{animation:beltoonPulse 5s ease-in-out infinite;transform-origin:50% 50%;transform-box:fill-box;will-change:transform,opacity}
@keyframes beltoonPulse{
  0%  {transform:scale(1);   opacity:.9}
  4%  {transform:scale(1.22);opacity:1}
  10% {transform:scale(1);   opacity:.9}
  14% {transform:scale(1.22);opacity:1}
  20% {transform:scale(1);   opacity:.9}
  100%{transform:scale(1);   opacity:.9}
}
@media (prefers-reduced-motion:reduce){
  .appbar .brand .dot svg .held{animation:none}
}
.appbar .logout{font-size:.85rem;color:var(--muted);text-decoration:none}
.appbar .brand{color:var(--text);text-decoration:none}
/* Right-side appbar group — admin shortcut (admins only) sits left of the
 * gear so both are reachable with one tap. Flex + gap keeps them aligned. */
.appbar-right{display:flex;align-items:center;gap:.25rem}
.appbar-iconbtn{display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;color:var(--muted);border-radius:8px;
  text-decoration:none;line-height:0;transition:background .15s,color .15s}
.appbar-iconbtn:hover{background:var(--surface2);color:var(--brand)}
.appbar-iconbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* v158: appbar-iconbtn variant met overlay-badge (zwart vierkant met
 * unread-count). position:relative op de knop zelf zodat het vierkant
 * absolute-positioneerbaar wordt; eigen min-width zodat 1- en 2-cijferige
 * counts beide netjes uitlijnen. White-on-black, 0px border-radius
 * letterlijk vierkant zoals Bas vroeg. */
.appbar-iconbtn-relative{position:relative}
.appbar-square-badge{position:absolute;top:-2px;right:-2px;
  min-width:16px;height:16px;padding:0 3px;line-height:16px;
  background:#000;color:#fff;font-size:.62rem;font-weight:700;
  text-align:center;border-radius:2px;font-variant-numeric:tabular-nums;
  pointer-events:none;box-shadow:0 0 0 1.5px var(--bg)}
/* Licht thema: dezelfde zwarte tile, witte ring eromheen voor contrast
 * tegen de paper-ground appbar. */
html[data-theme="light"] .appbar-square-badge{box-shadow:0 0 0 1.5px #FFFFFF}
@media (prefers-color-scheme: light){
  html[data-theme="system"] .appbar-square-badge{box-shadow:0 0 0 1.5px #FFFFFF}
}
/* Logout in Settings → Account is a neutral action, not a CTA — use the
 * bigbtn shape but strip the brand-green fill so it doesn't compete with
 * the "Doorschakelen activeren" green button at the top of the section. */
.settings-logout{background:var(--surface2);color:var(--text);
  border:1px solid var(--border)}
.settings-logout:hover{background:var(--surface)}
/* TEMP version chip — pinned to bottom-right above the iOS home-bar safe
 * area. Lets the user verify at a glance which build they're actually
 * looking at (catches "I deployed but my browser shows the old version").
 * Click-through so it never blocks UI underneath. Will be hidden once we
 * trust the deploy loop — see CLAUDE.md "Version chip" section. */
.version-chip{position:fixed;right:14px;
  bottom:calc(env(safe-area-inset-bottom,0) + 14px);
  padding:.45rem .85rem;border-radius:999px;
  background:rgba(22,27,34,.92);border:1px solid rgba(242,163,56,.45);
  color:var(--text);font-size:.95rem;font-weight:700;letter-spacing:.02em;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  pointer-events:none;z-index:40;backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  box-shadow:0 4px 14px rgba(0,0,0,.35)}
/* Unread-count badge in the appbar wordmark. Brand Book: amber marks
 * meaning, never red unless destructive — an unread count is exactly
 * "the call we caught and held, the thing that doesn't slip away."
 * Amber pill, charcoal text, tabular numerals so 9 → 99 → 99+ stays
 * crisply aligned. Subtle outer ring picks up the dark background.
 * The numeral itself is sized up (.9rem) for readability without
 * inflating the pill — line-height:1 keeps the chip compact. */
.brand-badge{display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 7px;margin-left:.5rem;
  background:var(--brand);color:var(--brand-ink);border-radius:999px;
  font-family:'Space Grotesk',system-ui,sans-serif;
  font-size:.9rem;font-weight:700;letter-spacing:-0.02em;line-height:1;
  font-variant-numeric:tabular-nums;
  box-shadow:0 0 0 2px rgba(24,26,31,.65), 0 2px 6px rgba(242,163,56,.25)}
/* (Pre-v3 .appmenu dropdown CSS removed in v40.5 cleanup. The gear in
 * the appbar is a direct link to /settings now — no dropdown markup
 * anywhere, so .appmenu / .appmenu-pop / .appmenu-item / .appmenu-logout
 * rules were dead code. .appbar-iconbtn handles the gear + admin shortcut.) */
.impbanner{position:fixed;top:0;left:0;right:0;background:#7a3a00;color:#ffe6c2;
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;
  padding:.45rem .8rem;font-size:.78rem;z-index:25;border-bottom:1px solid #a35200}
.impbanner .btn{background:#ffe6c2;color:#3a1d00;border:none;padding:.25rem .6rem;
  border-radius:6px;font-size:.78rem;font-weight:600;cursor:pointer}
body:has(.impbanner){padding-top:96px}
body:has(.impbanner) .appbar{top:32px}
.fixcmd{display:inline-block;margin-top:.25rem;padding:.18rem .4rem;background:#1d2026;
  border:1px solid var(--border);border-radius:4px;color:#a8b3c7;font-size:.7rem;
  word-break:break-all;user-select:all;cursor:text}

/* Cookie banner — single-tap dismissable informational disclosure. We only
 * use one functional cookie (JWT session) so no consent is required under
 * ePrivacy, but a one-time notice is good practice. The banner sits at
 * the bottom on top of the tabbar with a higher z-index. */
.cookiebar{position:fixed;left:0;right:0;bottom:0;z-index:30;
  background:rgba(22,27,34,.97);backdrop-filter:blur(10px);
  border-top:1px solid var(--border);
  padding:.7rem 1rem;display:flex;align-items:center;gap:.8rem;
  font-size:.8rem;color:var(--text)}
.cookiebar p{margin:0;flex:1;line-height:1.35}
.cookiebar a{color:var(--brand)}
.cookiebar button{margin:0;padding:.45rem 1rem;font-size:.82rem;
  background:var(--brand);color:var(--brand-ink);border:none;
  border-radius:999px;font-weight:700;cursor:pointer;flex:none}

/* Legal pages (Privacy / Terms) — readable typography on a single column. */
.legal{max-width:720px;margin:0 auto;padding:1rem 1.2rem 4rem}
.legal-brand{display:flex;align-items:center;justify-content:center;gap:.55rem;
  font-family:'Space Grotesk',system-ui,sans-serif;font-size:1.35rem;font-weight:400;
  letter-spacing:-0.035em;line-height:1;color:var(--text);text-decoration:none;
  margin:1.4rem 0 1rem}
.legal-brand .dot{width:28px;height:28px}
.legal-brand b{font-weight:700}
.legal-back{font-size:.85rem;color:var(--muted);text-decoration:none}
.legal-back:hover{color:var(--brand)}
.legal h1{font-size:1.6rem;margin:.6rem 0 1rem}
.legal h2{font-size:1.1rem;margin:1.4rem 0 .4rem;color:var(--brand)}
.legal p,.legal li{font-size:.95rem;line-height:1.55}
.legal table{margin:.6rem 0 1rem;table-layout:fixed;width:100%}
.legal table th,.legal table td{padding:.4rem .6rem;font-size:.88rem;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
.legal ul{padding-left:1.3rem}
.danger-text{color:var(--danger)}

/* Swipeable list items — LinkedIn / iOS-Mail pattern: drag reveals fixed-
 * width action panels (~84px each) that STAY visible until tapped. Long
 * drag (>50% of card width) auto-commits. Three states per row:
 *   neutral          → translateX(0)
 *   .revealed-left   → translateX(84px)   (right-swipe completed)
 *   .revealed-right  → translateX(-84px)  (left-swipe completed)
 * touch-action: pan-y on the li lets vertical scroll still work; the JS
 * lock decides h vs v at 8px drag-distance. */
.vm[data-swipeable]{position:relative;overflow:hidden;touch-action:pan-y;padding:0}
.vm[data-swipeable] .swipe-card{transition:transform .22s cubic-bezier(.2,.6,.2,1);
  background:var(--surface);position:relative;z-index:2;padding:.7rem .85rem;
  will-change:transform}
.vm[data-swipeable].swiping .swipe-card{transition:none}
.vm[data-swipeable].revealed-left .swipe-card{transform:translateX(84px)}
.vm[data-swipeable].revealed-right .swipe-card{transform:translateX(-84px)}
.vm[data-swipeable] .swipe-action{position:absolute;top:0;bottom:0;width:84px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.2rem;font-size:.7rem;font-weight:700;z-index:1;padding:0;cursor:pointer;
  letter-spacing:.01em;text-align:center;line-height:1.1;
  /* Border-radius matched to .vm so the panel doesn't bulge past the card edge. */
  border-radius:0}
.vm[data-swipeable] .swipe-action .ic{font-size:1.3rem;line-height:1;display:inline-flex}
.vm[data-swipeable] .swipe-action .ic svg{width:1.3rem;height:1.3rem;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vm[data-swipeable] .swipe-action .lbl{padding:0 .3rem;hyphens:auto}
.vm[data-swipeable] .swipe-left{left:0;background:var(--brand);color:var(--brand-ink)}
/* Right panel = delete (destructive). Brand-danger red signals the
 * irreversible action — matches iOS Mail / LinkedIn delete-on-swipe red. */
.vm[data-swipeable] .swipe-right{right:0;background:var(--danger);color:#fff}
/* When a panel is "armed" via revealed-state, give it a subtle inset
 * shadow so the user knows it's tappable. */
.vm.revealed-left .swipe-left,.vm.revealed-right .swipe-right{box-shadow:inset 0 0 0 2px rgba(255,255,255,.18)}
/* Open voicemails — branded full border to signal "needs attention". This
 * replaces the previous inset stripe + 'unread' state. */
.vm.open{border:2px solid var(--brand)}
/* Handled voicemails — no brand border + dim direct children of .swipe-card
 * so the action-panel underneath stays solid. Card background stays opaque. */
.vm.handled{border-color:var(--border)}
.vm.handled .swipe-card > *{opacity:.55}

/* ===== Admin support inbox (v160) — herbruikt .vm[data-swipeable]
   structure. Eigen layout per rij: afzender + tijd op een regel,
   onderwerp dik, snippet grijs eronder. <a> dekt de hele klik-area
   zodat een tap op willekeurig stuk van de rij de mail opent;
   touch-action:manipulation voorkomt de iOS double-tap-zoom delay. */
.support-list{list-style:none;padding:0;margin:.5rem 0 1rem}
.vm.support-row{padding:0;margin-bottom:.5rem;border-radius:12px;
  background:var(--surface);border:1px solid var(--border)}
.vm.support-row.open{border-color:rgba(242,163,56,.35)}
.support-row-link{display:block;padding:.75rem .85rem;color:var(--text);
  text-decoration:none;touch-action:manipulation}
.support-row-top{display:flex;justify-content:space-between;align-items:baseline;
  gap:.5rem;margin-bottom:.2rem;font-size:.82rem;color:var(--muted)}
.support-row-from{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.support-row-time{flex:none;font-variant-numeric:tabular-nums}
.support-row-subject{font-size:.95rem;line-height:1.3;color:var(--text)}
.support-row-subject.unread{font-weight:700}
.support-row-snippet{font-size:.82rem;color:var(--muted);margin-top:.15rem;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.support-row-replied{font-size:.74rem;color:var(--brand);margin-top:.3rem;
  font-weight:600;letter-spacing:.01em}
/* v164: ticket tabs + sub-filter chips */
.support-tabs{display:flex;gap:.3rem;align-items:center;margin:1rem 0 .3rem;
  border-bottom:1px solid var(--border);padding-bottom:.5rem;flex-wrap:wrap}
.support-tab{padding:.45rem .85rem;border-radius:8px;text-decoration:none;
  font-size:.88rem;font-weight:500;color:var(--muted);
  background:transparent;border:1px solid transparent}
.support-tab.active{font-weight:600;color:var(--text);
  background:var(--surface2);border-color:var(--border)}
.support-chips{display:flex;gap:.3rem;flex-wrap:wrap;margin:.5rem 0 0}
.support-chip{padding:.25rem .65rem;border-radius:999px;text-decoration:none;
  font-size:.78rem;font-weight:500;color:var(--muted);
  background:var(--surface);border:1px solid var(--border)}
.support-chip.active{color:var(--brand-ink);background:var(--brand);border-color:var(--brand)}
/* Assignee initialen badge — kleine cirkel naast de afzender. Voor 2 admins
 * (B, N) per design genoeg om te onderscheiden zonder kleur-coding. */
.support-assignee{display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;border-radius:50%;
  background:var(--brand);color:var(--brand-ink);
  font-size:.62rem;font-weight:700;margin-left:.4rem;flex:none;
  font-variant-numeric:tabular-nums;letter-spacing:0}
/* v167: vlag-icoon + per-rij actiemenu (⋯ top-right). Menu sluit zelf
 * via native <details> toggle; click op summary stopt propagatie zodat
 * de rij-link niet ook activeert. Pop-up positie absoluut zodat hij niet
 * de rij-hoogte aanpast en de lijst stuiterend wordt. */
.support-flag{margin-left:.35rem;font-size:.85rem;line-height:1}
.vm.support-row.flagged{border-left:3px solid var(--brand)}
.row-menu{position:absolute;top:.35rem;right:.4rem;z-index:1}
.row-menu > summary{list-style:none;cursor:pointer;
  width:32px;height:32px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:1.05rem;color:var(--muted);
  background:transparent;border:1px solid transparent}
.row-menu > summary::-webkit-details-marker{display:none}
.row-menu > summary:hover{background:var(--surface2);color:var(--text);border-color:var(--border)}
.row-menu[open] > summary{background:var(--surface2);color:var(--text);border-color:var(--border)}
.row-menu-pop{position:absolute;top:100%;right:0;margin-top:.3rem;
  min-width:170px;padding:.3rem;
  background:var(--surface);border:1px solid var(--border);border-radius:10px;
  box-shadow:0 6px 24px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:.15rem}
.row-menu-pop form{margin:0;display:block}
.row-menu-pop button{display:block;width:100%;text-align:left;
  padding:.45rem .65rem;border:none;background:transparent;color:var(--text);
  font-size:.85rem;cursor:pointer;border-radius:6px}
.row-menu-pop button:hover{background:var(--surface2)}
.row-menu-pop button.danger{color:var(--danger)}
.row-menu-pop button.danger:hover{background:rgba(192,86,75,.1)}
/* v266: bulk-selectie checkbox per support-rij — rechtsboven naast het
 * ⋯-menu, boven de rij-link (z-index) zodat een klik niet navigeert. */
.bulk-pick{position:absolute;top:.55rem;right:2.3rem;z-index:2;
  width:1rem;height:1rem;accent-color:var(--brand)}
/* Swipe-card heeft position:relative nodig zodat .row-menu (absolute)
 * binnen de card positioneert i.p.v. door de viewport te vliegen. */
.vm.support-row .swipe-card{position:relative}

/* ===== Inbox mode 6: Focus view — single voicemail, scrollable content,
   sticky big-button bar, progress-dots header (matches reference mockup). */
.focus-view{display:flex;flex-direction:column;min-height:calc(100dvh - 70px);
  padding:0;position:relative;overflow:hidden}
/* Triage header + progress bar — STAY PUT during swipes. Both sit above the
   swipeable .focus-body so the user always has anchor context (where am I
   in the stack) while the card slides underneath. */
.focus-triage{display:flex;align-items:center;justify-content:space-between;
  padding:.2rem 0 .15rem;font-size:.8rem;color:var(--text);
  position:relative;z-index:2}
.focus-pos{color:var(--muted);font-size:.8rem}
/* Delete-this-voicemail × button at the top-right of the Focus view.
   Mirrors the per-row × in the list view so users have a consistent
   "trash this one" affordance everywhere. The form posts to the same
   /voicemails/:id/delete endpoint as the list-view button. */
.focus-del{margin:0}
.focus-del button{background:transparent;border:0;color:var(--muted);
  font-size:1.4rem;line-height:1;padding:.1rem .3rem;cursor:pointer;
  border-radius:6px}
.focus-del button:hover{color:var(--text);background:rgba(255,255,255,.06)}
.focus-progress{display:flex;gap:.3rem;margin:.1rem 0 .5rem;
  position:relative;z-index:2}
.focus-progress-seg{flex:1;height:3px;border-radius:2px;background:var(--border);
  transition:background .2s}
.focus-progress-seg.active{background:var(--accent,#F2A338)}
/* v210: compactere spacing zodat het hele card + actions zonder scrollen op
   één iPhone-viewport past. Avatar 44→36px, focus-name 1.85→1.4rem,
   focus-quote 1.25→1.05rem, alle margins ~30% tighter. Eerder viel de
   action-bar onder de fold zodat "Bel terug" niet meteen klikbaar was. */
.focus-body{flex:1;overflow-y:auto;padding:.25rem 0 .4rem;
  -webkit-overflow-scrolling:touch}
.focus-meta{display:flex;align-items:center;gap:.6rem;margin-bottom:.55rem}
.focus-meta .avatar{width:36px;height:36px;border-radius:8px;
  background:var(--brand);flex:none}
.focus-meta-badges{display:flex;align-items:center;gap:.45rem;font-size:.72rem;
  letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.focus-meta-badges .urgent{color:var(--accent,#F2A338);display:inline-flex;
  align-items:center;gap:.3rem}
.focus-meta-badges .urgent::before{content:"";width:6px;height:6px;
  border-radius:50%;background:var(--accent,#F2A338)}
.focus-name{font-weight:700;font-size:1.4rem;line-height:1.15;margin:.1rem 0 .15rem}
.focus-sub{color:var(--muted);font-size:.85rem;margin-bottom:.85rem}
.focus-quote{font-size:1.05rem;line-height:1.4;color:var(--text);
  font-weight:500;margin:.4rem 0 .7rem}
.focus-quote::before{content:"\201C"}
.focus-quote::after{content:"\201D"}
.focus-transcript{margin-top:.85rem;color:var(--muted);font-size:.85rem}
.focus-transcript summary{cursor:pointer;color:var(--brand);padding:.25rem 0;
  font-size:.8rem}
.focus-transcript p{color:var(--text);font-size:.9rem;line-height:1.45;
  margin:.45rem 0}
.focus-skip{display:block;text-align:center;color:var(--muted);font-size:.9rem;
  padding:.45rem;text-decoration:none;margin:.3rem 0 .1rem}
.focus-skip:hover{color:var(--text)}
/* Sticky bottom action bar — 4 equal buttons, primary (Call back) gets the
   accent color, rest are uniform tinted squares with icon+label. Specificity
   on the rules below is bumped to beat the global button[type=submit]
   green-brand fallback that would otherwise paint the Task + Handled
   submit buttons brand-green. */
.focus-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:.55rem;
  padding:.75rem 0 max(.75rem, env(safe-area-inset-bottom));
  background:linear-gradient(to top, var(--bg) 92%, transparent);
  position:sticky;bottom:0;z-index:3}
/* v213: form-wrapping per actie-knop. display:contents werkt onbetrouwbaar
   op iOS Safari (Taak-knop fired form-submit niet). Hier wordt elke
   .focus-action-form zelf een grid-cel met de button erin gestretched —
   POST-submit gedraagt zich daardoor weer normaal. */
.focus-actions > .focus-action-form{display:flex;margin:0;min-width:0}
.focus-actions > .focus-action-form > .focus-btn{flex:1;width:100%}
.focus-actions .focus-btn,
.focus-actions form > .focus-btn{
  display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:.32rem;padding:.7rem .35rem;
  border-radius:14px;border:0;background:var(--surface2);
  color:var(--text);font-size:.72rem;font-weight:500;cursor:pointer;
  text-decoration:none;min-height:66px;text-align:center;
  margin:0;line-height:1.1;
  transition:transform .1s cubic-bezier(.2,.6,.2,1), background .15s;
  -webkit-tap-highlight-color:transparent;letter-spacing:.01em;
  filter:none;box-shadow:none}
.focus-actions .focus-btn:active{transform:scale(.93);filter:none}
.focus-actions .focus-btn.primary{background:var(--accent,#F2A338);color:#181A1F;
  font-weight:600;box-shadow:0 4px 14px rgba(232,154,61,.35)}
.focus-actions .focus-btn.primary:active{filter:brightness(.95)}
.focus-actions .focus-btn[disabled]{opacity:.3;cursor:not-allowed}
.focus-actions .focus-btn[disabled]:active{transform:none}
.focus-actions .focus-btn .ic{display:inline-flex;align-items:center;
  justify-content:center;width:26px;height:26px;color:currentColor}
.focus-actions .focus-btn .ic svg{width:24px;height:24px;stroke-width:2;
  stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}
.focus-actions .focus-btn.primary .ic svg{stroke:#181A1F}
.focus-actions .focus-btn .ic svg path,
.focus-actions .focus-btn .ic svg polyline,
.focus-actions .focus-btn .ic svg line{fill:none;stroke:currentColor}
.focus-actions .focus-btn.primary .ic svg path{stroke:#181A1F;fill:#181A1F}
/* Hide the floating version-chip while in Focus view — it overlaps the
   Handled button's tap zone on small screens. Admins still see it on every
   other page; this is a per-route exclusion not a hide-everywhere. */
.focus-view ~ .version-chip,
body:has(.focus-view) .version-chip{display:none}
/* Swipe transitions — ONLY the .focus-body slides; triage header + progress
   bar + action bar stay anchored thanks to z-index + sticky positioning.
   Faster snap (180ms) + cubic-bezier "out-quart" for a confident feel. */
.focus-body{transform:translate3d(0,0,0);will-change:transform}
.focus-view[data-swiping="1"] .focus-body{transition:none}
.focus-view.swipe-snap .focus-body{transition:transform .18s cubic-bezier(.25,.46,.45,.94)}
.focus-empty{text-align:center;padding:3rem 1rem;color:var(--muted)}
.focus-empty h1{color:var(--text);margin-bottom:.5rem}

/* ===== Inbox view-mode picker (Settings + Onboarding step 5) =====
 * v148 fix: selection state is driven by :has(input:checked), NOT a
 * server-rendered .selected class. The server class would persist on the
 * old choice even after the user clicked another radio — visually both
 * cards looked selected until form submit. With :has() the highlight
 * follows the browser's native :checked state instantly, no JS needed.
 * Falls back gracefully on engines without :has() (iOS <16.4): the radio
 * still works, the user just doesn't see the highlight shift. */
.view-picker{margin-top:.5rem}
.view-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;align-items:stretch}
/* Theme picker always 3-col, even on narrow mobile — three short labels
 * (Systeem / Licht / Donker) fit per design. Override applied via the
 * .view-grid-3col modifier so only that picker forces 3 columns. */
.view-grid-3col{grid-template-columns:repeat(3,1fr)}
/* v190: 2-up modifier that stays 2 columns at every width. The inbox picker
   has exactly two modes; the historical auto-promotion to 3 cols left a
   dangling empty cell so the cards didn't sit cleanly next to each other
   (Noah-feedback). */
.view-grid-2col,.view-grid.view-grid-2col{grid-template-columns:repeat(2,1fr)}
@media (min-width:560px){.view-grid:not(.view-grid-2col){grid-template-columns:repeat(3,1fr)}}
.view-card{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;
  padding:.65rem .55rem;border:1px solid var(--border);border-radius:10px;cursor:pointer;
  background:var(--surface);color:var(--text);transition:border-color .15s,background .15s;
  position:relative;height:100%;margin:0 !important;align-self:stretch;box-sizing:border-box}
.view-card:hover{border-color:var(--brand)}
.view-card:has(input:checked){border-color:var(--brand);background:rgba(242,163,56,.07)}
.view-card input{position:absolute;opacity:0;pointer-events:none}
/* v190: inside the onboarding wizard the generic ".onboard-wrap .card label"
   rule (display:block, margin-top) outweighs ".view-card" and collapsed the
   flex card into stacked blocks with uneven heights — that's what made the
   step-5 cards misalign and "Systeem" look bigger. Restore the flex card. */
.onboard-wrap .card .view-card{display:flex;flex-direction:column;align-items:flex-start;margin-top:0;height:100%}
.view-thumb{color:var(--brand);display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px}
.view-title{font-weight:600;font-size:.92rem;line-height:1.2}
.view-desc{color:var(--muted);font-size:.78rem;line-height:1.3}
/* Fresh (just-arrived) decoration — pure CSS animation, 3 seconds total
 * from chunky glow to fully cleared box-shadow. No JS timeout to fight
 * with: 'forwards' fill-mode locks the final 'no shadow' state in place
 * once the keyframes run out. The 2px brand border on .vm.open stays
 * underneath — that's the intentional persistent "needs attention" cue. */
.vm.fresh{animation:vm-fresh 3s ease-out forwards}
@keyframes vm-fresh{
  0%{box-shadow:0 0 0 6px var(--brand), 0 0 22px 4px rgba(242,163,56,.55)}
  20%{box-shadow:0 0 0 8px var(--brand), 0 0 30px 8px rgba(242,163,56,.75)}
  40%{box-shadow:0 0 0 6px var(--brand), 0 0 22px 4px rgba(242,163,56,.55)}
  60%{box-shadow:0 0 0 8px var(--brand), 0 0 30px 8px rgba(242,163,56,.75)}
  80%{box-shadow:0 0 0 6px var(--brand), 0 0 22px 4px rgba(242,163,56,.55)}
  100%{box-shadow:0 0 0 0 transparent, 0 0 0 0 transparent}
}
.vm[data-swipeable].vm-leaving{transition:height .22s, opacity .22s;overflow:hidden}

/* Top-right delete corner — small subtle × that turns danger-red on hover.
 * Sits inside the .swipe-card so it slides with the card when swiping.
 * vm-meta on the row already leaves room on the right; the button does not
 * overlap the timestamp because it's anchored to the card's outer padding. */
/* Subtle close-button in the top-right corner — small grey × at half
 * opacity, brightens to danger-red on hover. Sized like a browser-tab
 * close glyph, not a primary action. */
.vm-del{position:absolute;top:.3rem;right:.4rem;margin:0;z-index:3;line-height:0}
.vm-del button{
  background:transparent;color:var(--muted);border:none;
  font-size:.85rem;line-height:1;font-weight:400;
  padding:.05rem .3rem;border-radius:999px;cursor:pointer;
  margin:0;opacity:.45;transition:opacity .15s, background .15s, color .15s
}
.vm-del button:hover,.vm-del button:focus{opacity:1;background:rgba(255,107,94,.12);color:var(--danger);outline:none}
.vm-del button:active{transform:scale(.9)}
.vm[data-swipeable] .vm-top .time{padding-right:1.1rem}

.tabbar{position:fixed;bottom:0;left:0;right:0;display:flex;background:rgba(22,27,34,.94);
  backdrop-filter:blur(10px);border-top:1px solid var(--border);z-index:20;
  padding-bottom:env(safe-area-inset-bottom,0);
  /* Same GPU-layer trick as the appbar — keeps the tabbar locked to the
   * bottom edge on iOS even when the URL bar reveals/hides during scroll. */
  transform:translateZ(0);-webkit-transform:translateZ(0);
  will-change:transform;-webkit-backface-visibility:hidden}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:.5rem 0 .55rem;
  font-size:.66rem;color:var(--muted);text-decoration:none;transition:color .15s;position:relative}
/* Tabbar tab-badge — same brand-amber treatment as .brand-badge. The
 * tabbar itself has been retired (gear-menu navigates now), so this rule
 * survives only for potential future surfaces; keeping it in sync with
 * the appbar badge for visual consistency. */
.tabbar a .tab-badge{position:absolute;top:.3rem;left:calc(50% + 8px);min-width:20px;height:20px;
  padding:0 7px;border-radius:999px;background:var(--brand);color:var(--brand-ink);
  font-family:'Space Grotesk',system-ui,sans-serif;font-size:.9rem;font-weight:700;
  line-height:20px;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:-0.02em;
  box-shadow:0 0 0 2px rgba(24,26,31,.85), 0 2px 6px rgba(242,163,56,.25)}
.tabbar a .ic{display:inline-flex;line-height:1}
.tabbar a .ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;transition:stroke-width .15s}
.tabbar a.active{color:var(--brand)}
.tabbar a.active .ic svg{stroke-width:2.1}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:.85rem}
.vm{background:var(--surface);border:1px solid transparent;border-radius:var(--radius);
  padding:.7rem .85rem;margin-bottom:.5rem}
.vm.unread{background:rgba(242,163,56,.22);border-color:rgba(242,163,56,.55);box-shadow:inset 3px 0 0 var(--brand)}
.vm.spoed{box-shadow:inset 3px 0 0 var(--danger)}
.vm-top{display:flex;align-items:center;gap:.6rem;margin-bottom:.35rem}
/* Avatar slot — the BeepSweep brand-square (same green rounded square as
 * the header dot, just sized up to 32px). Solid colour, no icon glyph —
 * a calm brand-mark on every row without competing with the caller text. */
.avatar{width:32px;height:32px;border-radius:7px;background:var(--brand);flex:none;
  display:flex;align-items:center;justify-content:center;color:var(--brand-ink)}
/* v197: caller glyph centred on the amber square — charcoal-ink stroke, sized
   relative to the square so it scales for the 44px focus avatar too. */
.avatar svg{width:58%;height:58%;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vm-meta{min-width:0;flex:1}
.from{font-weight:600;font-size:.95rem;display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;line-height:1.25}
.from .subline{font-size:.72rem;color:var(--muted);font-weight:400;width:100%;margin-top:.05rem}
.time{font-size:.72rem;color:var(--muted)}
/* v194: was clamped to 3 lines (-webkit-line-clamp) which visually cut longer
   summaries mid-word — Noah's "laatste woord afgeknipt". Summaries are short by
   design, so just show them in full. */
.summary{margin:.15rem 0 .5rem;font-size:.95rem;line-height:1.4}
.vm audio{height:30px;margin:.25rem 0}
.vm .actions{margin:.15rem 0 .35rem;gap:.3rem}
.vm .actions a,.vm .actions button{padding:.35rem .7rem;font-size:.78rem}
/* Voicemail-item action icons are intentionally muted (paper on dark),
 * not amber. Brand Book rule: "amber marks meaning, never a floating
 * spot stuck onto a glyph." These are routine action triggers (Bel /
 * WhatsApp / Taak), so the icons stay quiet — amber is reserved for
 * the unread badge, the open-state border, and the primary action's
 * filled background (when one is designated). */
/* v195: base stroke-icon default for any bare .ic use (more specific
   contexts below/above still win). Lets inline A.* icons render correctly
   outside the action bar — e.g. inline warnings. */
.ic svg{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.15em}
.vm .actions .ic svg{width:12px;height:12px;stroke:var(--text)}
.vm details.text summary{font-size:.78rem}

.badge{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
  padding:.12rem .5rem;border-radius:999px;background:var(--brand);color:var(--brand-ink)}
.badge.spoed{background:var(--danger);color:#fff}
.badge.laag{background:var(--surface2);color:var(--muted)}
/* Berichttype-pills (categorie naast de naam). Bewust outlined i.p.v. gevuld
   zodat ze als triage-info lezen, niet als status/alarm. Kleur via currentColor
   op rand + tekst; rustige tinten die op licht én donker werken. */
.badge.cat{background:transparent;border:1px solid currentColor;font-weight:600}
.badge.cat-callback{color:var(--brand)}
.badge.cat-new_caller{color:#5B8DEF}
.badge.cat-fyi{color:var(--muted)}
.badge.cat-personal{color:#6FB07A}

/* AI-provenance chip. Required by EU AI Act art. 50(2) and Google Play
 * Generative AI policy — every AI-synthesised text surface must be labelled
 * so the reader knows it isn't human-authored. Visually subtle (paper on
 * surface, no amber) — amber stays reserved for unread + open-state cues. */
.ai-tag{display:inline-block;font-size:.58rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:.05rem .35rem;margin-left:.4rem;border-radius:4px;
  background:var(--surface2);color:var(--muted);border:1px solid var(--border);
  vertical-align:middle;font-family:ui-monospace,Menlo,Consolas,monospace}
.ai-tag[title]{cursor:help}

/* Per-voicemail "Flag content" form. Google Play Generative AI policy
 * mandates an in-app reporting flow that doesn't require leaving the app.
 * Collapsed by default — a faint link below the summary; opens to a
 * small textarea + submit. */
.flag-pop{margin:.35rem 0 .25rem;font-size:.78rem;color:var(--muted)}
.flag-pop summary{cursor:pointer;display:inline-block;color:var(--muted)}
.flag-pop summary:hover{color:var(--text)}
.flag-pop[open] summary{margin-bottom:.5rem;color:var(--text)}
.flag-pop textarea{width:100%;padding:.5rem .6rem;background:var(--surface2);
  border:1px solid var(--border);border-radius:8px;color:var(--text);font:inherit;
  font-size:.85rem;min-height:60px;resize:vertical}
.flag-pop .flag-actions{display:flex;gap:.4rem;margin-top:.45rem;align-items:center}
.flag-pop button[type=submit]{padding:.35rem .8rem;font-size:.78rem;margin-top:0}
.flag-pop .flag-cancel{font-size:.78rem;color:var(--muted)}

label{display:block;margin:.7rem 0 .25rem;font-size:.82rem;color:var(--muted)}
input{width:100%;padding:.65rem .75rem;background:var(--surface2);border:1px solid var(--border);
  border-radius:12px;color:var(--text);font:inherit}
input:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 20%,transparent)}
/* Unified button system — every button shares the body font, the brand green
 * primary, and a full pill curve. Use .danger / ghost classes to vary. */
button,.btn,.bigbtn{font-family:inherit;font-size:.95rem;font-weight:700;
  border-radius:999px;cursor:pointer;line-height:1.2;transition:filter .15s,transform .1s}
button[type=submit],.btn{margin-top:.9rem;padding:.75rem 1.2rem;background:var(--brand);
  color:var(--brand-ink);border:none}
button[type=submit]:hover,.btn:hover{filter:brightness(1.06)}
button[type=submit]:active,.btn:active{transform:scale(.98)}
.bigbtn{display:block;text-align:center;background:var(--brand);color:var(--brand-ink);
  padding:.9rem 1.3rem;text-decoration:none;font-weight:800;font-size:1.02rem;margin:.4rem 0;
  border:none}
.bigbtn:hover{filter:brightness(1.06)}
code{background:var(--surface2);padding:.25rem .5rem;border-radius:8px;font-size:.95rem}
.msg{padding:.6rem .8rem;border-radius:10px;background:rgba(242,163,56,.14);border:1px solid rgba(242,163,56,.3);margin-bottom:1rem}
.msg.err{background:rgba(255,107,94,.14);border-color:rgba(255,107,94,.3)}

.actions{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.2rem 0 .7rem}
.actions form{display:inline;margin:0}
.actions a,.actions button{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;
  padding:.45rem .85rem;border:1px solid var(--border);border-radius:999px;font-size:.85rem;margin:0;
  background:var(--surface2);color:var(--text);font-family:inherit;cursor:pointer;white-space:nowrap;
  transition:background .15s,border-color .15s,transform .1s}
.actions a:hover,.actions button:hover{border-color:rgba(242,163,56,.35)}
.actions a:active,.actions button:active{transform:scale(.97)}
.actions a.primary,.actions button.primary{background:var(--brand);color:var(--brand-ink);
  border-color:transparent;font-weight:700}
.actions a.primary:hover,.actions button.primary:hover{filter:brightness(1.05);border-color:transparent}
.actions button.danger{color:var(--danger);border-color:rgba(255,107,94,.35);background:transparent;padding:.45rem .65rem}
.actions button.danger:hover{background:rgba(255,107,94,.1);border-color:var(--danger)}
.actions .ic{display:inline-flex;line-height:1}
.actions .ic svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

details.text{margin:.3rem 0 0}
details.text summary{cursor:pointer;color:var(--muted);font-size:.85rem}
details.text p{white-space:pre-wrap;margin:.5rem 0 0;color:var(--muted)}
.text.pending{color:var(--muted);font-style:italic}
audio{width:100%;height:38px;margin:.4rem 0 .2rem}

table{width:100%;border-collapse:collapse;font-size:.88rem}
td,th{text-align:left;padding:.5rem .4rem;border-bottom:1px solid var(--border)}
th{color:var(--muted);font-weight:600}
.taskdone{text-decoration:line-through;color:var(--muted)}

textarea{width:100%;padding:.65rem .75rem;background:var(--surface2);border:1px solid var(--border);
  border-radius:10px;color:var(--text);font:inherit;resize:vertical;min-height:80px}
textarea:focus{outline:none;border-color:var(--brand)}
select{width:100%;padding:.65rem .75rem;background:var(--surface2);border:1px solid var(--border);
  border-radius:10px;color:var(--text);font:inherit}
select:focus{outline:none;border-color:var(--brand)}

.hdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.4rem;vertical-align:middle}
.hdot.on{background:var(--brand);box-shadow:0 0 6px rgba(242,163,56,.5)}
.hdot.off{background:var(--surface2);border:1px solid var(--border)}
table.health td:first-child{color:var(--muted);width:55%}
table.health td:last-child{font-size:.92rem}

.urow td{padding:.55rem .4rem;vertical-align:middle}
.urow-actions{background:transparent}
.urow-actions > summary{cursor:pointer;list-style:none;padding:.3rem .8rem;border-radius:999px;
  background:var(--surface2);color:var(--muted);text-align:center;font-weight:700;
  border:1px solid var(--border);display:inline-block}
.urow-actions > summary::-webkit-details-marker{display:none}
.urow-actions[open] > summary{background:var(--brand);color:var(--brand-ink);border-color:transparent}
.urow-actions > .inner{position:relative;background:var(--surface2);border:1px solid var(--border);
  border-radius:10px;padding:.5rem .6rem;margin-top:.4rem;text-align:left;min-width:200px}
.urow-actions input,.urow-actions button{padding:.4rem .6rem;font-size:.85rem}

/* User-table desktop variant — kicks in at ≥900px so the iPad-portrait
 * users (768) stay on the mobile stacked card. Below the breakpoint the
 * extra desktop columns are display:none and only the first cell renders,
 * keeping the existing mobile UX intact. Above it we get a full table
 * with mobile / #vm / #unread / last activity / tasks / contacts / spend. */
.urow .uhide-mobile{display:none}
.urow .ushow-desktop{display:none}
.urow-header{display:none}
@media (min-width: 900px) {
  table.urow-table{table-layout:fixed;width:100%}
  /* Header row built from the L() i18n keys at render-time. */
  .urow-header{display:table-row;background:var(--surface2)}
  .urow-header th{padding:.5rem .55rem;font-size:.72rem;letter-spacing:.04em;
    text-transform:uppercase;color:var(--muted);font-weight:600;text-align:left}
  .urow-header th.num{text-align:right}
  .urow td.unum{text-align:right;font-variant-numeric:tabular-nums}
  .urow .uhide-desktop{display:none}
  .urow .uhide-mobile{display:table-cell}
  .urow .ushow-desktop{display:table-cell}
  .urow td{padding:.6rem .55rem;border-bottom:1px solid var(--border)}
  .urow td:first-child{max-width:none}
  /* The compact identity cell on desktop strips the mobile-only inline
   * meta lines (📞 / counts) — those moved to dedicated columns. */
  .urow .uident-mobile-meta{display:none}
  .urow-actions > summary{padding:.25rem .65rem;font-size:.85rem}
}

/* Status-dashboard card — sits at the top of /settings as the live snapshot
 * of "what would happen if someone called right now". Each row is a fact;
 * the two buttons at the bottom flip the most-flipped facts in one tap. */
/* Horizontal layout: 3 columns side-by-side from 520px upward, stacks back
 * to a single column on narrow phones. Title spans the row, action buttons
 * span the row below. */
.status-card{padding:1rem 1.1rem 1.1rem;margin-bottom:1.2rem;
  border-color:rgba(242,163,56,.35);
  background:linear-gradient(180deg, rgba(242,163,56,.05), var(--surface));
  display:grid;gap:.5rem .85rem;grid-template-columns:1fr;
  grid-template-areas:'title' 'row1' 'row2' 'row3' 'actions'}
@media (min-width:520px){
  .status-card{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-areas:
      'title title title'
      'row1 row2 row3'
      'actions actions actions';
  }
  .status-row{border-bottom:none !important;padding:.1rem 0 !important}
}
.status-title{font-size:.7rem;color:var(--muted);text-transform:uppercase;
  letter-spacing:.08em;font-weight:700;margin:0 0 .2rem;grid-area:title}
.status-row{display:flex;align-items:flex-start;gap:.55rem;padding:.45rem 0;
  border-bottom:1px solid var(--border);min-width:0}
.status-row:nth-of-type(1){grid-area:row1}
.status-row:nth-of-type(2){grid-area:row2}
.status-row:nth-of-type(3){grid-area:row3}
.status-row:last-of-type{border-bottom:none}
/* Status-card row icons (headphones / phone-fwd / bell). The amber tint
 * on the chip background is a quiet brand cue; the stroke itself is
 * paper-coloured per the Brand Book rule (amber marks meaning, not
 * decoration). The amber chip ring gives the row visual identity
 * without making three icons compete with each other. */
.status-ic{display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:10px;background:rgba(242,163,56,.1);flex:none}
.status-ic svg{width:16px;height:16px;stroke:var(--text);stroke-width:1.7;
  fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.status-body{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.status-lbl{font-size:.7rem;color:var(--muted);text-transform:uppercase;
  letter-spacing:.05em;font-weight:700}
.status-val{font-size:.92rem;color:var(--text);font-weight:500;
  overflow-wrap:break-word}
.status-val.status-warn{color:var(--danger)}
.status-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.4rem;grid-area:actions}
.status-act-form{display:contents}
.status-act{margin:0;padding:.5rem .9rem;font-size:.85rem;
  background:var(--surface2);color:var(--text);border:1px solid var(--border);
  border-radius:999px;font-weight:600;cursor:pointer;line-height:1.2;
  transition:border-color .15s,background .15s,color .15s}
.status-act:hover{border-color:rgba(242,163,56,.55);color:var(--brand)}
.status-act.status-act-on{background:var(--brand);color:var(--brand-ink);
  border-color:transparent;font-weight:700}
.status-act.status-act-on:hover{filter:brightness(1.05);color:var(--brand-ink)}

.quick-card{padding:.4rem 1rem;margin-bottom:1rem}
.quick-card .bigbtn{margin:.6rem 0 .8rem}
.quick-row{display:flex;align-items:center;justify-content:space-between;
  padding:.7rem 0;border-bottom:1px solid var(--border);margin:0}
.quick-row:last-child{border-bottom:none}
.quick-row .lbl{font-weight:600;color:var(--text);font-size:.95rem}
.info-pop{display:inline-block;position:relative;margin-left:.3rem;vertical-align:middle}
.info-pop summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;border-radius:50%;background:var(--surface2);color:var(--muted);
  font-family:Georgia,serif;font-style:italic;font-size:.78rem;font-weight:700;
  border:1px solid var(--border);line-height:1;user-select:none}
.info-pop summary::-webkit-details-marker{display:none}
.info-pop summary::marker{content:""}
.info-pop[open] summary{background:var(--brand);color:var(--brand-ink);border-color:transparent}
.info-pop .pop{position:absolute;top:100%;left:0;z-index:20;margin-top:.4rem;
  background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.6rem .75rem;
  font-size:.82rem;color:var(--muted);width:max(220px,min(280px,calc(100vw - 60px)));
  box-shadow:0 4px 12px rgba(0,0,0,.35);font-weight:400;line-height:1.4;
  text-transform:none;letter-spacing:normal;text-align:left;font-family:inherit;font-style:normal}
h3 .info-pop .pop,.lbl + .info-pop .pop{left:auto;right:auto}
.switch{position:relative;display:inline-block;width:46px;height:26px;flex:none}
.switch input{opacity:0;width:0;height:0;margin:0}
.switch .slider{position:absolute;cursor:pointer;inset:0;background:var(--surface2);
  border:1px solid var(--border);border-radius:999px;transition:background .2s,border-color .2s}
.switch .slider::before{content:"";position:absolute;height:18px;width:18px;left:3px;top:2px;
  background:#fff;border-radius:50%;transition:transform .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.3)}
.switch input:checked + .slider{background:var(--brand);border-color:transparent}
.switch input:checked + .slider::before{transform:translateX(20px)}

details.category{background:transparent;border:none;margin:.5rem 0 1rem;padding:0;overflow:visible}
details.category > summary{font-size:1.05rem;font-weight:800;letter-spacing:-.01em;
  padding:.85rem .9rem;color:var(--text);list-style:none;cursor:pointer;
  display:flex;align-items:center;gap:.7rem;background:var(--surface);
  border:1px solid var(--border);border-radius:14px;user-select:none;
  transition:border-color .15s,background .15s}
/* Category summary chip — amber tint background as a quiet brand cue, but
 * the icon stroke itself is paper (not amber). Brand Book P3: amber marks
 * MEANING, not decoration. When a category is opened the stroke promotes
 * to amber because "this is the section you're in" IS meaningful. */
details.category > summary .cat-ic{display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:10px;background:rgba(242,163,56,.1);flex:none}
details.category > summary .cat-ic svg{width:20px;height:20px;stroke:var(--text);
  stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;
  opacity:.85;transition:stroke .15s,opacity .15s}
details.category[open] > summary .cat-ic svg{stroke:var(--brand);opacity:1}
details.category[open] > summary .cat-ic{background:rgba(242,163,56,.16)}
details.category > summary:hover{border-color:rgba(242,163,56,.4)}
details.category > summary::-webkit-details-marker{display:none}
/* v201: geometrische chevron (border-driehoek) i.p.v. de "⌄" tekstglyph —
   scherper en uitgelijnd. Wijst neer (45°), klapt naar boven (225°) bij open. */
details.category > summary::after{content:"";flex:none;margin-left:auto;width:9px;height:9px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:translateY(-2px) rotate(45deg);transition:transform .25s,border-color .15s}
details.category[open] > summary{border-color:rgba(242,163,56,.45);
  background:var(--surface);border-bottom-left-radius:0;border-bottom-right-radius:0}
details.category[open] > summary::after{transform:translateY(2px) rotate(225deg);border-color:var(--brand)}
details.category > .inner{padding:.8rem .25rem 1.1rem;background:transparent;
  border-left:1px solid var(--border);border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);border-radius:0 0 14px 14px;
  border-color:rgba(242,163,56,.45);padding-left:1rem;padding-right:1rem}
details.category > .inner > h3{font-size:.85rem;font-weight:700;color:var(--muted);
  text-transform:uppercase;letter-spacing:.06em;margin:.9rem 0 .35rem}
details.category > .inner > h3:first-child{margin-top:.2rem}
/* Settings list pattern — applied inside category bodies. Inspired by
 * Linear / Vercel settings: tight grouped rows, one primary CTA per
 * group (and only when there IS a primary action), secondary actions
 * are quiet (right-aligned, sized to content), destructive actions
 * fenced in a danger zone. No more stacks of full-width green buttons.
 *
 * Scoped to .inner so the rest of the app keeps its airy default. */
details.category > .inner{padding:.5rem 1rem .8rem}
/* Group headers — small, muted, uppercase. Visible (re-enables h3 inside
 * .inner that the earlier compact pass had hidden). */
details.category > .inner > h3{display:block;font-size:.7rem;font-weight:700;
  color:var(--muted);text-transform:uppercase;letter-spacing:.06em;
  margin:1rem 0 .35rem;padding:0 .15rem}
details.category > .inner > h3:first-child{margin-top:.2rem}
details.category > .inner > h3.danger-zone-h{display:flex;align-items:center;gap:.3rem}
/* Form/card groups — keep a soft container so password+delete forms read
 * as a coherent unit, but tighter than the default .card. */
details.category > .inner > form.card,
details.category > .inner > div.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:.7rem .85rem;margin:0 0 .5rem}
/* Inline row pattern for single-control settings (taal). Label on the
 * left flexes, control on the right is sized to content. */
details.category > .inner .set-row-inline{
  display:flex;align-items:center;justify-content:space-between;
  gap:.8rem;padding:.55rem .85rem;background:var(--surface);
  border:1px solid var(--border);border-radius:12px;margin-bottom:.5rem}
details.category > .inner .set-row-inline > label{margin:0;color:var(--text);
  font-size:.9rem;font-weight:500;flex:1;display:flex;align-items:center;gap:.35rem}
details.category > .inner .set-row-inline > select,
details.category > .inner .set-row-inline > input{width:auto;min-width:160px;
  max-width:60%;padding:.4rem .55rem;font-size:.88rem}
/* Slider row — label+value on top, slider full-width below. */
details.category > .inner .set-row-slider{
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:.7rem .85rem .85rem;margin-bottom:.5rem}
details.category > .inner .set-row-slider label{display:flex;
  align-items:center;gap:.4rem;margin:0 0 .4rem;color:var(--text);
  font-size:.9rem;font-weight:500}
details.category > .inner .set-row-slider label .muted{margin-left:auto;
  font-weight:600;font-variant-numeric:tabular-nums}
details.category > .inner .set-row-slider input[type=range]{margin:0;width:100%}
/* Brand-styled range slider. Browser default is system blue, which clashes
 * with the Brand Book amber palette. Force a charcoal-grey track + amber
 * thumb so the control reads as "BeepSweep" instead of "iOS Settings".
 * Webkit + Firefox need separate pseudo-elements; the track shows the
 * progressed portion via a CSS gradient that we update inline if we ever
 * want fill-to-the-thumb behaviour (out of scope for now). */
input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;
  width:100%;height:32px;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:999px;
  background:var(--surface2);border:1px solid var(--border)}
input[type=range]::-moz-range-track{height:5px;border-radius:999px;
  background:var(--surface2);border:1px solid var(--border)}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;
  width:20px;height:20px;border-radius:50%;background:var(--brand);
  border:2px solid var(--bg);margin-top:-9px;cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.3)}
input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;
  background:var(--brand);border:2px solid var(--bg);cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.3)}
input[type=range]:focus{outline:none}
input[type=range]:focus::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(242,163,56,.25)}
input[type=range]:focus::-moz-range-thumb{box-shadow:0 0 0 4px rgba(242,163,56,.25)}
/* Form labels + inputs in stacked groups (password / delete). */
details.category > .inner > form.card label{margin:.55rem 0 .2rem;font-size:.78rem;
  color:var(--muted);font-weight:600}
details.category > .inner > form.card label:first-child{margin-top:.05rem}
details.category > .inner > form.card input,
details.category > .inner > form.card select,
details.category > .inner > form.card textarea{padding:.5rem .65rem;
  font-size:.9rem;border-radius:10px}
details.category > .inner > form.card > p{margin:.1rem 0 .4rem;
  font-size:.82rem;line-height:1.4;color:var(--muted)}
/* PRIMARY CTA: "Activeer doorschakelen" — the only full-width green
 * button in this whole category. Keeps recommended-next-step prominence. */
details.category > .inner > div.quick-card{
  background:transparent;border:none;padding:0;margin:0 0 .6rem}
details.category > .inner > div.quick-card .bigbtn{
  padding:.65rem 1rem;font-size:.95rem;border-radius:10px;margin:0;
  font-weight:700}
/* SECONDARY action ("Wachtwoord wijzigen"): right-aligned, sized to
 * content, branded but slimmer than a hero CTA. */
details.category > .inner > form.card button[type=submit]{
  display:inline-flex;width:auto;margin:.6rem 0 0 auto;
  padding:.45rem 1rem;font-size:.88rem;font-weight:600;
  border-radius:10px;float:right}
details.category > .inner > form.card::after{content:"";display:block;clear:both}
/* TERTIARY "Uitloggen" — quiet text-link row, no green button. The settings
 * page now wraps the trigger in a tiny <form method=POST> so a stray <img
 * src="/logout"> or cross-origin prefetch can't force-logout the user;
 * styling has to cover both the form-button shape and the legacy <a>. */
details.category > .inner > a.settings-logout,
details.category > .inner > form.settings-logout-form > button.settings-logout{
  display:block;text-align:center;width:100%;
  background:transparent;border:none;padding:.55rem;margin:.1rem 0 .35rem;
  color:var(--muted);font-size:.85rem;font-weight:500;text-decoration:none;
  border-radius:8px;cursor:pointer;
  transition:color .15s,background .15s}
details.category > .inner > form.settings-logout-form{margin:.1rem 0 .35rem}
details.category > .inner > a.settings-logout:hover,
details.category > .inner > form.settings-logout-form > button.settings-logout:hover{
  color:var(--text);background:var(--surface2);filter:none}
/* ---------- Integraties — grouped + collapsible-per-row ---------- */
/* Small uppercase group title — provides scanability at the section level. */
.integ-group-title{font-size:.7rem;font-weight:700;color:var(--muted);
  letter-spacing:.06em;text-transform:uppercase;margin:1.1rem 0 .4rem;
  display:flex;align-items:center;gap:.4rem}
.integ-group-title:first-child{margin-top:.2rem}
.integ-count{font-weight:600;color:var(--brand)}
/* Group container — visually clusters its rows with shared rounded edges. */
.integ-group{display:flex;flex-direction:column;background:var(--surface);
  border:1px solid var(--surface2);border-radius:12px;overflow:hidden}
/* Each row: <details> for the collapsible variant, plain div for AI/iCal. */
.integ-row,.integ-row--open{border-bottom:1px solid var(--surface2)}
.integ-row:last-child,.integ-row--open:last-child{border-bottom:none}
.integ-row > summary,.integ-row-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:.75rem .9rem;cursor:pointer;list-style:none;
  font-size:.95rem;font-weight:600;color:var(--text);
  transition:background .15s}
.integ-row > summary::-webkit-details-marker{display:none}
.integ-row-head{cursor:default}
.integ-row > summary:hover{background:var(--surface2)}
.integ-row > summary::after{content:"";flex:none;width:8px;height:8px;margin-left:.5rem;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:translateY(-2px) rotate(45deg);transition:transform .15s,border-color .15s}
.integ-row[open] > summary::after{transform:translateY(2px) rotate(225deg);border-color:var(--brand)}
.integ-row[open] > summary{background:rgba(242,163,56,.06)}
.integ-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
/* Status pill — single source of truth for "what's connected". */
.integ-pill{display:inline-flex;align-items:center;gap:.25rem;
  padding:.18rem .55rem;border-radius:999px;font-size:.72rem;font-weight:600;
  white-space:nowrap;flex-shrink:0;max-width:50%;
  overflow:hidden;text-overflow:ellipsis}
.integ-pill--ok{background:color-mix(in srgb,var(--success) 14%,transparent);color:var(--success);
  border:1px solid color-mix(in srgb,var(--success) 30%,transparent)}
.integ-pill--warn{background:rgba(242,163,56,.12);color:var(--brand);
  border:1px solid rgba(242,163,56,.32)}
.integ-pill--muted{background:var(--surface2);color:var(--muted);
  border:1px solid transparent}
/* Body: padding + dividers from the summary so it reads as a "drawer". */
.integ-body{padding:.9rem 1rem 1.1rem;background:var(--surface);
  border-top:1px solid var(--surface2)}
.integ-body input[type=url],.integ-body input[type=password],
.integ-body input[type=text]{width:100%}
.integ-body .msg{margin:0 0 .6rem}
/* API-tokens list — flex-row per token, replaces the old <table> that
 * collapsed on narrow viewports. Label/dates on the left, Intrekken on
 * the right. The Intrekken button stays at a stable width; only the
 * label column ellipsises. */
.api-tokens-list{display:flex;flex-direction:column;
  border:1px solid var(--surface2);border-radius:10px;overflow:hidden}
.api-token-row{display:flex;align-items:center;gap:.6rem;
  padding:.55rem .7rem;border-bottom:1px solid var(--surface2)}
.api-token-row:last-child{border-bottom:none}
.api-token-row--revoked{opacity:.55}
.api-token-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}
.api-token-label{font-size:.88rem;font-weight:600;color:var(--text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.api-token-meta{font-size:.72rem;color:var(--muted);display:flex;
  gap:.4rem;align-items:center;flex-wrap:wrap}
.api-token-meta em{font-style:normal}
/* iCal row — URL input + copy button on one line. min-width:0 on the
 * input is what allows it to shrink below its content-implied size when
 * the parent runs out of space (the standard flex+overflow trick). */
.ical-row{display:flex;gap:.4rem;align-items:stretch}
.ical-row input{flex:1;min-width:0;font-family:monospace;font-size:.78rem;
  padding:.5rem .6rem}
.ical-row .ical-copy{flex-shrink:0;padding:.5rem .8rem;white-space:nowrap}
/* DANGER zone — fenced red block, action sized to content + right-aligned. */
details.category > .inner > form.card.danger-card{
  background:rgba(255,107,94,.04);border:1px solid rgba(255,107,94,.22);
  border-radius:12px;padding:.7rem .85rem;margin-top:.25rem}
details.category > .inner > form.card.danger-card button.danger{
  display:inline-flex;width:auto;margin:.55rem 0 0 auto;
  padding:.5rem 1rem;font-size:.88rem;font-weight:600;
  border-radius:10px;float:right;background:var(--danger);color:#fff;
  border:none}
details.category > .inner > form.card.danger-card::after{content:"";display:block;clear:both}
/* v208 — Account-section actions: VERTICAL stack ipv 3-column grid.
 * Het oude grid maakte de drie buttons ongelijk in hoogte (Wachtwoord +
 * Verwijder waren disclosures, Uitloggen was een oranje pill-CTA — niet
 * netjes), en op iOS kreeg de oranje knop nog cta-emphasis terwijl
 * uitloggen geen primaire actie is. Nu één rij per actie, alle identiek
 * gestyled. Nieuwe Meld-bug/wens hangt gewoon ertussen. */
details.category > .inner > .set-actions-row{
  display:flex;flex-direction:column;
  gap:.4rem;margin:.5rem 0 .6rem}
/* Uniform button-look for every item in the stack. */
details.category > .inner > .set-actions-row > details > summary,
details.category > .inner > .set-actions-row > form.settings-logout-form > button,
details.category > .inner > .set-actions-row > a.settings-logout{
  display:flex;align-items:center;justify-content:center;gap:.3rem;
  padding:.6rem .55rem;background:var(--surface);
  border:1px solid var(--border);border-radius:10px;
  color:var(--text);font-weight:600;font-size:.85rem;
  cursor:pointer;list-style:none;user-select:none;
  text-align:center;text-decoration:none;line-height:1.15;
  transition:border-color .15s,background .15s,color .15s,filter .15s;
  margin:0;min-height:42px}
details.category > .inner > .set-actions-row > details > summary::-webkit-details-marker{display:none}
details.category > .inner > .set-actions-row > details > summary::after{
  content:"";flex:none;width:8px;height:8px;margin-left:auto;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:translateY(-2px) rotate(45deg);transition:transform .2s,border-color .15s}
details.category > .inner > .set-actions-row > details[open] > summary::after{
  transform:translateY(2px) rotate(225deg);border-color:var(--brand)}
details.category > .inner > .set-actions-row > details > summary:hover,
details.category > .inner > .set-actions-row > form.settings-logout-form > button:hover,
details.category > .inner > .set-actions-row > a.settings-logout:hover{
  border-color:rgba(242,163,56,.5);background:var(--surface2);
  color:var(--text);filter:none}
/* Logout-form behaves like a single-button rij — same look as a summary,
 * geen ⌄ pijltje, klik = direct submit. Knop heeft géén oranje CTA-fill
 * meer; uitloggen is geen primaire actie. */
details.category > .inner > .set-actions-row > form.settings-logout-form{
  margin:0;display:block}
details.category > .inner > .set-actions-row > form.settings-logout-form > button{
  width:100%;cursor:pointer;font-family:inherit}
details.category > .inner > .set-actions-row > details[open] > summary{
  border-radius:10px 10px 0 0;border-color:rgba(242,163,56,.5);
  border-bottom-color:transparent;background:var(--surface)}
/* Legal links — Terms + Privacy between logout and delete-account. */
.settings-legal{text-align:center;padding:.4rem 0;font-size:.82rem}
.settings-legal a{color:var(--muted);text-decoration:none}
.settings-legal a:hover{color:var(--brand);text-decoration:underline}
.legal-sep{color:var(--border);margin:0 .4rem}
/* Danger variant — RED for "Verwijder mijn account permanent". */
details.category > .inner > .set-actions-row > details.danger > summary{
  border-color:rgba(255,107,94,.4);color:var(--danger);
  background:rgba(255,107,94,.04)}
details.category > .inner > .set-actions-row > details.danger > summary::after{color:var(--danger)}
details.category > .inner > .set-actions-row > details.danger > summary:hover{
  border-color:var(--danger);background:rgba(255,107,94,.1);color:var(--danger)}
details.category > .inner > .set-actions-row > details.danger[open] > summary{
  border-color:var(--danger);background:rgba(255,107,94,.08)}
/* Opened form stretches under the full row. */
details.category > .inner > .set-actions-row > details > form.card{
  margin:0;padding:.7rem .9rem;
  border:1px solid rgba(242,163,56,.5);border-top:none;
  border-radius:0 0 10px 10px;background:var(--surface)}
details.category > .inner > .set-actions-row > details.danger > form.card{
  background:rgba(255,107,94,.04);border-color:var(--danger)}
details.category > .inner > .set-actions-row > details > form.card label{
  margin:.45rem 0 .2rem;font-size:.78rem;color:var(--muted);font-weight:600}
details.category > .inner > .set-actions-row > details > form.card label:first-child{margin-top:.05rem}
details.category > .inner > .set-actions-row > details > form.card input{
  padding:.5rem .65rem;font-size:.9rem;border-radius:10px}
details.category > .inner > .set-actions-row > details > form.card > p{
  margin:.1rem 0 .4rem;font-size:.82rem;line-height:1.4;color:var(--muted)}
details.category > .inner > .set-actions-row > details > form.card button[type=submit]{
  display:inline-flex;width:auto;margin:.6rem 0 0 auto;
  padding:.45rem 1rem;font-size:.88rem;font-weight:600;
  border-radius:10px;float:right}
details.category > .inner > .set-actions-row > details.danger > form.card button[type=submit].danger{
  background:var(--danger);color:#fff;border:none}
details.category > .inner > .set-actions-row > details > form.card::after{
  content:"";display:block;clear:both}
/* Phone-narrow fallback: stack to a column if the row is too tight. */
@media (max-width:380px){
  details.category > .inner > .set-actions-row{grid-template-columns:1fr}
  details.category > .inner > .set-actions-row > details[open]{grid-column:auto}
}

/* DISCLOSURE pattern — collapsed-by-default action rows. Click the
 * summary to reveal the form. Used for password change + account
 * deletion: keeps the Account category short until the user actually
 * wants the action. */
details.category > .inner > details.set-disclose{margin:0 0 .5rem}
details.category > .inner > details.set-disclose > summary{
  cursor:pointer;list-style:none;
  display:flex;align-items:center;gap:.5rem;
  padding:.6rem .9rem;background:var(--surface);
  border:1px solid var(--border);border-radius:12px;
  color:var(--text);font-weight:600;font-size:.9rem;
  user-select:none;transition:border-color .15s,background .15s,border-radius .2s}
details.category > .inner > details.set-disclose > summary::-webkit-details-marker{display:none}
details.category > .inner > details.set-disclose > summary::after{
  content:"";flex:none;width:8px;height:8px;margin-left:auto;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:translateY(-2px) rotate(45deg);transition:transform .2s,border-color .15s}
details.category > .inner > details.set-disclose > summary:hover{border-color:rgba(242,163,56,.4)}
details.category > .inner > details.set-disclose[open] > summary{
  border-radius:12px 12px 0 0;border-bottom-color:transparent;
  border-color:rgba(242,163,56,.45)}
details.category > .inner > details.set-disclose[open] > summary::after{
  transform:translateY(2px) rotate(225deg);border-color:var(--brand)}
/* The revealed form sits flush under the summary, sharing borders. */
details.category > .inner > details.set-disclose > form.card{
  margin:0;padding:.7rem .9rem;
  border:1px solid rgba(242,163,56,.45);border-top:none;
  border-radius:0 0 12px 12px;background:var(--surface)}
details.category > .inner > details.set-disclose > form.card label{
  margin:.45rem 0 .2rem;font-size:.78rem;color:var(--muted);font-weight:600}
details.category > .inner > details.set-disclose > form.card label:first-child{margin-top:.05rem}
details.category > .inner > details.set-disclose > form.card input{
  padding:.5rem .65rem;font-size:.9rem;border-radius:10px}
details.category > .inner > details.set-disclose > form.card > p{
  margin:.1rem 0 .4rem;font-size:.82rem;line-height:1.4;color:var(--muted)}
details.category > .inner > details.set-disclose > form.card button[type=submit]{
  display:inline-flex;width:auto;margin:.65rem 0 0 auto;
  padding:.45rem 1rem;font-size:.88rem;font-weight:600;border-radius:10px;float:right}
details.category > .inner > details.set-disclose > form.card::after{content:"";display:block;clear:both}
/* Danger variant of the disclosure — red summary, red revealed card. */
details.category > .inner > details.set-disclose.danger > summary{
  border-color:rgba(255,107,94,.32);color:var(--danger)}
details.category > .inner > details.set-disclose.danger > summary:hover{
  border-color:var(--danger);background:rgba(255,107,94,.06)}
details.category > .inner > details.set-disclose.danger[open] > summary{
  border-color:rgba(255,107,94,.5);background:rgba(255,107,94,.06)}
details.category > .inner > details.set-disclose.danger[open] > summary::after{color:var(--danger)}
details.category > .inner > details.set-disclose.danger > form.card{
  background:rgba(255,107,94,.04);border-color:rgba(255,107,94,.32)}
details.category > .inner > details.set-disclose.danger > form.card button[type=submit].danger{
  background:var(--danger);color:#fff;border:none}

details.collapsible{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:.4rem 1rem;margin-bottom:.7rem;overflow:hidden}
details.collapsible[open]{padding-bottom:1rem}
details.collapsible > summary{cursor:pointer;font-weight:700;font-size:1rem;padding:.65rem 0;
  list-style:none;display:flex;align-items:center;justify-content:space-between;color:var(--text);user-select:none}
details.collapsible > summary::-webkit-details-marker{display:none}
details.collapsible > summary::after{content:"+";font-size:1.5rem;font-weight:300;color:var(--muted);
  line-height:1;transition:transform .2s;margin-left:.6rem}
details.collapsible[open] > summary::after{content:"−"}
details.collapsible > .inner{margin-top:.3rem}
details.collapsible table{margin-top:.4rem}

/* v200: full-width + gelijke helften + steviger actieve pil (Bas). flex:1 1 0
   met width:100% geeft twee exact gelijke helften; de actieve helft vult
   netjes 50%. Inactieve helft krijgt hover-affordance. */
.segmented{display:flex;gap:0;background:var(--surface2);border:1px solid var(--border);
  border-radius:999px;padding:3px;margin-top:.4rem;width:100%;box-sizing:border-box}
.segmented .seg{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;
  padding:.5rem 1rem;border-radius:999px;font-size:.9rem;color:var(--muted);cursor:pointer;
  transition:background .18s,color .18s;font-weight:600;white-space:nowrap}
.segmented .seg:hover{color:var(--text)}
.segmented .seg input{display:none}
.segmented .seg.on{background:var(--brand);color:var(--brand-ink);font-weight:700}
.segmented .seg.on:hover{color:var(--brand-ink)}
/* Button-variant of segmented (for forms that prefer native submit over a
 * radio+JS). Strip default <button> chrome so it inherits the segmented
 * pill styling instead. */
.segmented button.seg{background:transparent;border:none;font-family:inherit;margin:0}
.segmented button.seg.on{background:var(--brand);color:var(--brand-ink)}
/* Specificity-override: when the segmented two-button toggle lives inside
 * a .category > .inner > form.card (the AI-receptionist Voice/AI switch
 * in Settings), the secondary-action selector at ~line 959 wins with
 * width:auto + float:right + margin-auto, shrinking each pill to its
 * label width and floating both to the right. Force the segmented layout
 * back here with the matching selector depth. */
details.category > .inner > form.card .segmented button.seg{
  flex:1 1 0;width:auto;float:none;margin:0;
  padding:.5rem 1rem;border-radius:999px;
  font-size:.9rem;font-weight:600}
details.category > .inner > form.card .segmented button.seg.on{
  background:var(--brand);color:var(--brand-ink);font-weight:700}

.greeting{position:relative}
.greeting.active{border-color:rgba(242,163,56,.5);box-shadow:0 0 0 1px rgba(242,163,56,.25) inset}
.greeting-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.greeting-head .badge{background:var(--brand);color:var(--brand-ink)}
.greeting-edit label{margin-top:.5rem}
.actions button.primary{background:var(--brand);color:var(--brand-ink);border-color:transparent}

.g-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;
  margin-bottom:.45rem;overflow:hidden;transition:border-color .15s}
.g-card.active{border-color:rgba(242,163,56,.55);box-shadow:0 0 0 1px rgba(242,163,56,.25) inset}
.g-card > summary{display:flex;align-items:center;gap:.5rem;padding:.7rem .85rem;cursor:pointer;
  list-style:none;user-select:none}
.g-card > summary::-webkit-details-marker{display:none}
.g-card > summary::after{content:"";flex:none;width:8px;height:8px;margin-left:.3rem;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:translateY(-2px) rotate(45deg);transition:transform .2s,border-color .2s}
.g-card[open] > summary::after{transform:translateY(2px) rotate(225deg);border-color:var(--brand)}
.g-card > summary .g-name{font-weight:700;flex:1;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-card > summary .badge{flex:none}
/* Schedule preview pill — shown next to the Activeer button when a greeting
 * has a date range set but isn't currently the playing one. Muted look so it
 * reads as info, not a status. Custom calendar SVG matches the rest of the
 * iconography (stroke-based, brand-coloured, tabular numerals). */
.g-sched{display:inline-flex;align-items:center;gap:.35rem;padding:.22rem .6rem;
  font-size:.7rem;font-weight:600;color:var(--muted);background:var(--surface2);
  border:1px solid var(--border);border-radius:999px;margin-right:.3rem;
  white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1}
.g-sched svg{width:12px;height:12px;stroke:var(--brand);stroke-width:1.7;fill:none;
  stroke-linecap:round;stroke-linejoin:round;flex:none}
.g-quick-act{margin:0 0 0 auto;display:inline}
/* Outline style so the "Activeer" button reads as an ACTION, not a status.
 * The solid-green ACTIEF / NU ACTIEF badge stays massive green to claim
 * "this is the playing one" — only one greeting can have that look. */
.g-quick-act button{margin:0;padding:.3rem .75rem;font-size:.75rem;background:transparent;
  color:var(--brand);border:1px solid rgba(242,163,56,.55);border-radius:999px;
  font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.g-quick-act button:hover{background:rgba(242,163,56,.12);border-color:var(--brand)}
.g-card > .inner{padding:.2rem .9rem .9rem}
.g-row{display:flex;gap:.55rem;align-items:flex-start}
.g-row .g-field{flex:1;min-width:0}
.g-row .g-field-lang{flex:0 0 42%}
.g-row .g-field > label,.g-row .g-field > input,.g-row .g-field > select{margin-top:.35rem}
.g-card .inner textarea{min-height:62px}
.g-card .inner .actions button.icon{padding:.4rem .55rem}
.g-card .inner .actions .ic svg{width:14px;height:14px}
/* Section header for Begroetingen: title on the left, round "+" button on
 * the right. The button toggles the add-greeting form below the hint line. */
.greetings-head{display:flex;align-items:center;gap:.6rem}
.greetings-head h3{margin:0;flex:1;min-width:0}
.greeting-add-btn{
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  width:1.9rem;height:1.9rem;border-radius:999px;background:transparent;
  color:var(--brand);border:1px solid rgba(242,163,56,.55);font-weight:700;
  font-size:1rem;line-height:1;padding:0;
  transition:background .15s,border-color .15s,transform .15s}
.greeting-add-btn:hover{background:rgba(242,163,56,.12);border-color:var(--brand)}
.greeting-add-btn.open{transform:rotate(45deg)}
.greeting-add-form{margin-top:.6rem}

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:.5rem;margin:.4rem 0 1.4rem}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:12px;
  padding:.55rem .7rem;position:relative;overflow:hidden}
.stat[open]{border-color:rgba(242,163,56,.55);box-shadow:0 0 0 1px rgba(242,163,56,.25) inset}
.stat::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--brand);opacity:.85}
.stat > summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:.05rem}
.stat > summary::-webkit-details-marker{display:none}
.stat > summary .ic{font-size:1.05rem;line-height:1;color:var(--brand)}
.stat > summary .num{font-size:1.4rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.stat > summary .lbl{font-size:.62rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:700}
.stat-detail{margin-top:.5rem;display:grid;grid-template-columns:1fr auto;gap:.25rem .8rem;
  font-size:.8rem;padding-top:.45rem;border-top:1px solid var(--border)}
.stat-detail span{color:var(--muted)}
.stat-detail strong{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.spark{width:100%;height:36px;display:block;margin-top:.55rem;grid-column:1 / -1}
.spark rect{fill:var(--brand);opacity:.85}
.spark rect.zero{opacity:.18}
.spark[hidden]{display:none}
.spark-label{grid-column:1 / -1;font-size:.65rem;color:var(--muted);
  text-transform:uppercase;letter-spacing:.05em;margin-top:.45rem;font-weight:700}
.stat-detail .period-row{display:contents}
.stat-detail .period-row .period-key{cursor:pointer;border-radius:6px;padding:.1rem .35rem;
  margin:-.1rem -.35rem;transition:background .15s,color .15s;user-select:none;color:var(--muted)}
.stat-detail .period-row .period-key:hover{background:var(--surface2)}
.stat-detail .period-row.active .period-key{background:rgba(242,163,56,.18);color:var(--brand);
  font-weight:700}
.stat-detail .period-row.active strong{color:var(--brand)}

.label-pop{display:inline-block}
.label-pop > summary{cursor:pointer;list-style:none;color:var(--muted);
  font-size:.7rem;font-weight:600;padding:.1rem .5rem;border:1px dashed var(--border);
  border-radius:999px;background:transparent}
.label-pop > summary::-webkit-details-marker{display:none}
.label-pop[open] > summary{display:none}
.label-pop .label-form{display:flex;gap:.3rem;align-items:center;margin-top:.3rem;width:100%}
.label-pop .label-form input[name="name"]{flex:1;padding:.35rem .55rem;font-size:.8rem}
.label-pop .label-form button{padding:.35rem .7rem;font-size:.78rem;background:var(--brand);
  color:var(--brand-ink);border:none;border-radius:999px;font-weight:600;cursor:pointer}

.contact-row{padding:.6rem .85rem;margin-bottom:.4rem}
.contact-row button.danger{padding:.4rem .65rem;border-radius:999px;background:transparent;
  border:1px solid rgba(255,107,94,.35);color:var(--danger);cursor:pointer;flex:none}
.contact-row button.danger:hover{background:rgba(255,107,94,.1)}
.contact-row .ic svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}

.notify-row{margin:.7rem 0}
.notify-row .check-row{display:flex;align-items:center;gap:.5rem;color:var(--text);font-weight:600;margin-bottom:.3rem}
/* v190 (Noah): branded checkboxes — native ones rendered a blue tick + an ugly
   square/circle empty state. Custom amber box with a brand-ink checkmark. */
.notify-row .check-row input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:0 0 auto;
  width:1.2rem;height:1.2rem;margin:0;border:1.5px solid var(--border);border-radius:6px;
  background:var(--surface);cursor:pointer;position:relative;transition:background .15s,border-color .15s}
.notify-row .check-row input[type=checkbox]:hover{border-color:var(--brand)}
.notify-row .check-row input[type=checkbox]:checked{background:var(--brand);border-color:var(--brand)}
.notify-row .check-row input[type=checkbox]:checked::after{content:"";position:absolute;
  left:6px;top:2px;width:4px;height:8px;border:solid var(--brand-ink);border-width:0 2px 2px 0;transform:rotate(45deg)}
.notify-row .check-row input[type=checkbox]:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.notify-row input[type=text],.notify-row input[type=email],.notify-row input:not([type]){
  transition:opacity .15s}
.notify-row input:disabled{opacity:.4;background:transparent}

.onboard-wrap{max-width:520px;margin:0 auto;padding-bottom:2rem}
.progress{height:6px;background:var(--surface2);border-radius:999px;overflow:hidden;margin:.4rem 0 .6rem}
.progress-fill{height:100%;background:var(--brand);transition:width .3s ease}
.onboard-nav{display:flex;justify-content:space-between;align-items:center;margin-top:1.2rem;gap:.6rem}
.onboard-nav .onboard-back{color:var(--muted);text-decoration:none;font-size:.9rem;padding:.5rem .8rem}
.onboard-nav button.primary{flex:1;background:var(--brand);color:var(--brand-ink);border:none;
  padding:.85rem 1.2rem;border-radius:12px;font-weight:800;font-size:1rem;cursor:pointer}

.authwrap{min-height:78vh;display:flex;flex-direction:column;justify-content:center}
/* Auth-page brand lockup — larger Embrace mark + Space Grotesk wordmark. */
.authbrand{display:flex;align-items:center;gap:.7rem;justify-content:center;
  font-family:'Space Grotesk',system-ui,sans-serif;font-size:1.85rem;
  letter-spacing:-0.035em;line-height:1;margin-bottom:.6rem;color:var(--text)}
.authbrand .dot{width:38px;height:38px}
.authbrand b{font-weight:700}
.authbrand{font-weight:400}
/* Brand-locked tagline. English-only per the Brand Book; the commas and
 * the full stop are amber per the punctuation rule. */
.tagline{text-align:center;font-weight:700;font-size:1.05rem;
  letter-spacing:-0.02em;color:var(--text);margin:0 0 1.6rem;line-height:1.15}
/* H1 inside the .authwrap (signup page header above the form). Smaller than
 * the landing hero, tighter spacing, picks up amberHead's punctuation rule. */
.authwrap .auth-h1{text-align:center;font-size:1.3rem;font-weight:800;
  letter-spacing:-0.025em;line-height:1.05;margin:0 0 1rem;color:var(--text)}
/* Amber punctuation — the Brand Book rule: every comma and every full
 * stop in a headline is amber. Helper renders <span class="acc">.</span>
 * around each terminal punctuation mark, this rule colours them. Scoped
 * loosely so it also colours the punctuation in the tagline + any other
 * brand surface that uses the same span. */
.acc{color:var(--brand)}

/* Custom mini-player for voicemails. Wraps a hidden <audio> with play/pause,
 * a click-to-scrub progress track, a time read-out, and a cycling speed
 * button (1× → 1.5× → 2×). Lighter than waveform libs and works on iOS. */
.player{display:flex;align-items:center;gap:.55rem;margin:.4rem 0 .25rem;
  padding:.45rem .65rem;background:var(--surface2);border:1px solid var(--border);
  border-radius:999px}
.player audio,[data-player]>audio{display:none}
/* Play button — amber cirkel, herkenbaar als primaire speler-control.
 * v152: gepromoot uit de .player strip naar de .actions-rij naast Bel +
 * WhatsApp. Werkt nog steeds binnen .player zelf voor de focus-view die
 * de oude lay-out behoudt. Basis-stijl is dezelfde overal; .actions
 * krijgt margin-left:auto zodat hij rechts van Bel/WhatsApp landt. */
.play-btn{margin:0;padding:0;width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--brand);color:var(--brand-ink);border:none;border-radius:999px;
  font-weight:700;cursor:pointer;line-height:1;flex:none;font-size:.85rem}
.play-btn:hover{filter:brightness(1.05)}
/* v198: play/pause als merk-SVG i.p.v. ▶/❚❚ emoji. Beide iconen in de knop;
   .playing wisselt welke zichtbaar is (JS togglet de class, niet textContent). */
.play-btn .i-play,.play-btn .i-pause{display:inline-flex;align-items:center;justify-content:center}
.play-btn .i-pause{display:none}
.play-btn.playing .i-play{display:none}
.play-btn.playing .i-pause{display:inline-flex}
.play-btn svg{width:15px;height:15px;display:block}
.play-btn .i-play svg{fill:currentColor;stroke:none}
.play-btn .i-pause svg{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
/* Override the generic .vm .actions button padding so the cirkel niet
 * uitgerekt wordt door de pill-padding van Bel/WhatsApp. */
.actions .play-btn,.vm .actions .play-btn{margin-left:auto;padding:0;font-size:.95rem;
  background:var(--brand);color:var(--brand-ink)}
/* .player track-row: alleen progressbar + tijd + speed knop. */
.player .speed-btn{margin:0;padding:.3rem .55rem;font-size:.75rem;
  background:transparent;color:var(--muted);border:1px solid var(--border);
  border-radius:999px;font-weight:700;cursor:pointer;line-height:1;flex:none;min-width:38px}
.player .speed-btn.fast{color:var(--brand);border-color:rgba(242,163,56,.5)}
.player .progress-track{flex:1;height:6px;background:var(--surface);border-radius:999px;
  cursor:pointer;overflow:hidden;position:relative;min-width:60px}
.player .progress-fill{height:100%;width:0;background:var(--brand);transition:width .1s linear;
  border-radius:999px}
.player .player-time{font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums;
  min-width:34px;text-align:right;flex:none}

/* Danger zone — account delete card. Visually separated so users can't
 * mash this by accident; matches the muted-red of other destructive UI. */
.danger-zone-h{color:var(--danger);margin-top:1.6rem}
.danger-card{border-color:rgba(255,107,94,.35)}
.danger-card button.danger{background:var(--danger);color:#fff;border:none;padding:.7rem 1.2rem;
  margin-top:.6rem;font-weight:700}
.danger-card button.danger:hover{filter:brightness(1.05)}

/* Public landing — thin entry matching the beepsweep.com hero look.
 * Centered column, eyebrow + display-size locked tagline, two-CTA row,
 * the brand-book "in practice" interface example as social proof. */
.landing-hero{padding:1.4rem 0 3rem;text-align:center}
.landing-hero .eyebrow{font-family:'Hanken Grotesk',system-ui,sans-serif;
  font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--brand);margin:0 0 1.1rem}
.landing-hero h1.hero-locked{font-family:'Hanken Grotesk',system-ui,sans-serif;
  font-weight:800;font-size:clamp(2.3rem, 8vw, 3.6rem);line-height:1.02;
  letter-spacing:-0.035em;color:var(--text);margin:0 0 1.2rem}
.landing-hero .hero-lead{font-size:1rem;line-height:1.55;color:var(--muted);
  max-width:520px;margin:0 auto 1.6rem}
.landing-hero .hero-cta{display:flex;justify-content:center;gap:.6rem;
  flex-wrap:wrap;margin:0 0 1.4rem}
.landing-hero .hero-btn{display:inline-flex;align-items:center;justify-content:center;
  padding:.85rem 1.5rem;border-radius:999px;font-weight:700;font-size:.95rem;
  text-decoration:none;line-height:1;transition:filter .15s,transform .1s,background .15s}
.landing-hero .hero-btn.primary{background:var(--brand);color:var(--brand-ink);
  border:1.5px solid var(--brand)}
.landing-hero .hero-btn.primary:hover{filter:brightness(1.05)}
.landing-hero .hero-btn.ghost{background:transparent;color:var(--text);
  border:1.5px solid var(--text)}
.landing-hero .hero-btn.ghost:hover{background:rgba(243,241,235,.06)}
.landing-hero .hero-btn:active{transform:scale(.98)}
.landing-hero .hero-quote{font-style:italic;color:var(--muted);font-size:.92rem;
  margin:0 0 2rem;line-height:1.45;max-width:440px;margin-left:auto;margin-right:auto}
/* The "in practice" demo card — the brand book interface example brought
 * to the landing as quiet social proof. Uses the SAME atoms the real app
 * uses (amber dot, urgent badge, primary action, ghost action). */
.hero-demo{background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:1rem 1.1rem 1.1rem;
  max-width:480px;margin:0 auto;text-align:left}
.hero-demo-head{display:flex;align-items:center;gap:.55rem;margin-bottom:.5rem}
.hero-demo-dot{width:9px;height:9px;border-radius:50%;background:var(--brand);flex:none}
.hero-demo-name{font-weight:700;font-size:.95rem;color:var(--text)}
.hero-demo-urgent{font-weight:600;color:var(--brand);font-size:.88rem}
.hero-demo-now{margin-left:auto;color:var(--muted);font-size:.75rem}
.hero-demo-msg{margin:0 0 .9rem;font-size:.95rem;color:var(--text);line-height:1.4}
.hero-demo-actions{display:flex;gap:.55rem;flex-wrap:wrap}
.hero-demo-btn{display:inline-flex;align-items:center;gap:.4rem;
  padding:.5rem 1rem;border-radius:999px;font-size:.85rem;font-weight:600;line-height:1}
.hero-demo-btn .ic{display:inline-flex;line-height:1}
.hero-demo-btn .ic svg{width:14px;height:14px;fill:none;stroke:currentColor;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hero-demo-btn.primary{background:var(--brand);color:var(--brand-ink)}
.hero-demo-btn.ghost{background:transparent;color:var(--text);border:1px solid var(--border)}
.landing-hero .hero-footer-link{text-align:center;margin:2rem 0 .3rem;font-size:.92rem}
.landing-hero .hero-footer-link a{color:var(--text);font-weight:600;text-decoration:none;
  border-bottom:1px solid rgba(243,241,235,.3);padding-bottom:1px}
.landing-hero .hero-footer-link a:hover{border-bottom-color:var(--brand);color:var(--brand)}
.landing-hero .hero-footer-legal{text-align:center;margin:.4rem 0 0;font-size:.78rem;
  color:var(--muted)}
.landing-hero .hero-footer-legal a{color:var(--muted);text-decoration:none}
.landing-hero .hero-footer-legal a:hover{color:var(--text)}
/* Old .landing class kept for any stragglers, but no longer used by renderLanding. */
.landing{padding-bottom:2rem}
.install-card ol.install-steps{margin:.3rem 0 0;padding-left:1.2rem}
.install-card ol.install-steps li{margin:.4rem 0;line-height:1.4}
/* Voice-preview buttons — fixed footprint so the label flipping between
   "▶ Beluister", "…", "⏸" and any error string never shifts neighbours. */
.ai-preview-btn,.speak-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-width:8.5rem;padding:.48rem 1rem;border:1.5px solid var(--brand);border-radius:99px;
  background:var(--surface);color:var(--brand);font-weight:600;cursor:pointer;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;transition:background .15s,border-color .15s}
.ai-preview-btn:hover,.speak-btn:hover{background:rgba(242,163,56,.09)}
/* Brand play-triangle (CSS, no emoji) → morphs to two pause bars while playing,
   hidden while loading. v190 replaces the old ▶/⏸ glyphs. */
.ai-preview-btn::before,.speak-btn::before{content:"";flex:0 0 auto;display:inline-block;
  width:0;height:0;border-style:solid;border-width:5px 0 5px 9px;
  border-color:transparent transparent transparent var(--brand)}
.ai-preview-btn.is-loading::before,.speak-btn.is-loading::before{display:none}
.ai-preview-btn.is-error::before,.speak-btn.is-error::before{display:none}
.ai-preview-btn.is-error,.speak-btn.is-error{color:var(--danger);border-color:var(--danger)}
.ai-preview-btn.is-playing::before,.speak-btn.is-playing::before{width:9px;height:10px;border:none;
  background:linear-gradient(90deg,var(--brand) 0 3px,transparent 3px 6px,var(--brand) 6px 9px)}
.speak-btn.icon{min-width:2.5rem;width:2.5rem;padding:0;gap:0}

/* Onboarding v100 — pro-look refinements. */
/* v102: sticky progress + compact brand + clickable step bullets. */
.onboard-wrap .authbrand{margin-top:.6rem!important;font-size:.95rem;opacity:.85}
.onboard-wrap .authbrand .dot{width:18px;height:18px}
.onboard-sticky-top{position:sticky;top:env(safe-area-inset-top,0);z-index:10;background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 78%,rgba(24,26,31,0) 100%);padding:.65rem 0 .8rem;margin:0 -16px;padding-left:16px;padding-right:16px}
.progress{position:relative;height:6px;background:var(--surface2);border-radius:99px;overflow:hidden}
.progress-fill{height:100%;background:var(--brand);border-radius:99px;transition:width .3s ease}
.onboard-bullets{position:relative;display:flex;justify-content:space-between;margin-top:.55rem;padding:0 .1rem}
.onboard-bullet{display:inline-flex;align-items:center;justify-content:center;width:1.65rem;height:1.65rem;border-radius:99px;background:var(--surface2);color:var(--muted);font-size:.78rem;font-weight:700;font-variant-numeric:tabular-nums;text-decoration:none;border:1.5px solid var(--surface2);transition:all .2s}
.onboard-bullet.done{background:var(--brand);color:var(--brand-ink);border-color:var(--brand);cursor:pointer}
.onboard-bullet.done:hover{transform:scale(1.05)}
.onboard-bullet.current{background:var(--bg);color:var(--brand);border-color:var(--brand);box-shadow:0 0 0 3px rgba(242,163,56,.18)}
.onboard-bullet[aria-disabled="true"]:not(.current){cursor:default}
.onboard-wrap .card label{display:block;margin-top:1.1rem;font-weight:600;font-size:.92rem}
.onboard-wrap .card label:first-child,.onboard-wrap .card>p:first-child + label{margin-top:0}
.onboard-wrap .card .hint{margin-top:.3rem;line-height:1.45}
.onboard-encourage{text-align:center;color:var(--muted);font-size:.9rem;margin:-.1rem 0 .8rem}
.onboard-section{margin-top:1.6rem;padding-top:1rem;border-top:1px solid var(--border)}
.onboard-section:first-of-type{margin-top:0;padding-top:0;border-top:none}
.onboard-section h3{margin:0 0 .25rem;font-size:1rem;font-weight:700;letter-spacing:-0.01em}
.onboard-section .section-intro{margin:0 0 .8rem;color:var(--muted);font-size:.88rem;line-height:1.45}
.char-count{color:var(--muted);font-size:.78rem;text-align:right;margin-top:.25rem;font-variant-numeric:tabular-nums}
.char-count.warn{color:var(--warning)}
.char-count.over{color:var(--danger)}
.ring-display{font-variant-numeric:tabular-nums;font-weight:700;color:var(--brand);font-size:1.05rem}
.ring-recommended{font-size:.78rem;color:var(--muted);margin-left:.25rem;font-weight:400}
.ring-ticks{display:flex;justify-content:space-between;font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:.15rem;padding:0 .1rem}
.btn[data-loading="1"]{opacity:.7;pointer-events:none;position:relative}
.btn[data-loading="1"]::after{content:"";display:inline-block;width:.85em;height:.85em;margin-left:.5em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:onbspin .7s linear infinite;vertical-align:-2px}
@keyframes onbspin{to{transform:rotate(360deg)}}
.onboard-success{display:flex;align-items:center;gap:.6rem;margin:0 0 .9rem;padding:.7rem 1rem;background:color-mix(in srgb,var(--success) 12%,transparent);border:1px solid color-mix(in srgb,var(--success) 42%,transparent);border-radius:12px;color:var(--success);font-weight:600;animation:onbsuccess .55s cubic-bezier(.2,.7,.2,1.05) both}
.onboard-success .glyph{font-size:1.1rem;line-height:1}
@keyframes onbsuccess{0%{transform:scale(.92);opacity:0}55%{transform:scale(1.03)}100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.onboard-success{animation:none}}
.mverify-block{margin-top:.25rem}
.mverify-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.mverify-row input{flex:1 1 7rem;min-width:6rem}
.mverify-row .btn{flex:0 0 auto}
.mverify-status{margin:.45rem 0 0;min-height:1.2em;font-size:.88rem;transition:color .15s}
.mverify-status.ok{color:var(--success)}
.mverify-status.err{color:var(--danger)}
/* v102: First-action banner on /app for freshly-onboarded users with an
   empty inbox. Dismissible via cookie set on click. */
.first-action-banner{display:flex;align-items:flex-start;gap:.7rem;margin:1rem 0;padding:.85rem 1rem;background:rgba(242,163,56,.08);border:1px solid rgba(242,163,56,.35);border-radius:14px;animation:onbsuccess .5s cubic-bezier(.2,.7,.2,1.05) both}
.first-action-banner .fab-content{flex:1;min-width:0}
.first-action-banner strong{display:block;margin-bottom:.15rem;font-size:1rem}
.first-action-banner p{margin:0;font-size:.88rem;line-height:1.4}
.fab-close{flex:0 0 auto;background:transparent;border:none;color:var(--muted);font-size:1.4rem;line-height:1;width:1.8rem;height:1.8rem;border-radius:50%;cursor:pointer;padding:0;transition:background .15s,color .15s}
.fab-close:hover{background:var(--surface2);color:var(--text)}
/* v105: keep focused inputs above the iOS software keyboard. scroll-margin
   gives the browser a hint of how much space to keep above the focus when
   it auto-scrolls. 96px ≈ the sticky-progress band + breathing room. */
.onboard-wrap input:focus,.onboard-wrap textarea:focus,.onboard-wrap select:focus{scroll-margin-top:96px;scroll-margin-bottom:96px}
/* Visible focus ring on every interactive element in the onboarding wrap —
   browser defaults vary a lot and an invisible focus ring is an a11y fail. */
.onboard-wrap :focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.onboard-wrap .btn:focus-visible,.onboard-wrap button:focus-visible{outline-offset:3px}
/* v106: invite landing page. Pre-auth landing where a WhatsApp-invited
   tester learns what BeepSweep is and finishes signup. */
.invite-wrap{max-width:560px;margin:0 auto;padding:0 1rem 2rem}
.invite-hero{text-align:center;padding:1rem 0 .3rem}
.invite-explainer{margin-top:1rem}
.invite-explainer h2{font-size:1.15rem;letter-spacing:-0.01em}
.invite-bullets{list-style:none;padding:0;margin:.8rem 0 0}
.invite-bullets li{padding:.5rem 0;border-top:1px solid var(--border);font-size:.92rem;line-height:1.45}
.invite-bullets li:first-child{border-top:none;padding-top:0}
.invite-steps{list-style:none;counter-reset:invs;padding:0;margin:.8rem 0 0;display:grid;gap:.7rem}
.invite-steps li{counter-increment:invs;position:relative;padding:.7rem 1rem .7rem 2.8rem;background:var(--surface2);border-radius:10px;font-size:.92rem;line-height:1.45}
.invite-steps li::before{content:counter(invs);position:absolute;left:.7rem;top:.65rem;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:99px;background:var(--brand);color:var(--brand-ink);font-weight:700;font-size:.85rem;font-variant-numeric:tabular-nums}

/* WhatsApp chat inbox (v222) — conversation list + chat thread */
.wa-conv-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.wa-conv-link{display:flex;align-items:center;gap:.7rem;padding:.6rem .5rem;border-radius:12px;text-decoration:none;color:var(--text)}
.wa-conv-link:hover{background:var(--surface2)}
.wa-avatar{flex:0 0 auto;width:42px;height:42px;border-radius:50%;background:var(--brand);color:var(--brand-ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
.wa-conv-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.15rem}
.wa-conv-top{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.wa-conv-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa-conv-time{flex:0 0 auto;font-size:.72rem;color:var(--muted)}
.wa-conv-snippet{font-size:.85rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa-conv.unread .wa-conv-name{font-weight:800}
.wa-conv.unread .wa-conv-snippet{color:var(--text);font-weight:600}
.wa-conv-badge{flex:0 0 auto;min-width:1.25rem;height:1.25rem;padding:0 .35rem;border-radius:99px;background:var(--brand);color:var(--brand-ink);font-size:.72rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.wa-thread{display:flex;flex-direction:column;gap:.4rem;padding:.9rem;background:var(--bg);border:1px solid var(--border);border-radius:16px;height:60vh;overflow-y:auto;margin:.6rem 0;scroll-behavior:smooth}
.wa-row{display:flex;max-width:100%}
.wa-row.in{justify-content:flex-start}
.wa-row.out{justify-content:flex-end}
.wa-bubble{max-width:80%;padding:.5rem .7rem;border-radius:14px;font-size:.92rem;line-height:1.4;word-break:break-word;display:flex;flex-direction:column;box-shadow:0 1px 1px rgba(0,0,0,.12)}
.wa-row.in .wa-bubble{background:var(--surface2);border-top-left-radius:4px}
.wa-row.out .wa-bubble{background:var(--brand);color:var(--brand-ink);border-top-right-radius:4px}
.wa-text{white-space:pre-wrap}
.wa-time{align-self:flex-end;font-size:.66rem;opacity:.6;margin-top:.12rem}
.wa-reply{display:flex;gap:.5rem;align-items:flex-end;margin-top:.4rem;position:sticky;bottom:0;background:var(--bg);padding:.5rem 0}
.wa-reply textarea{flex:1 1 auto;resize:none;min-height:2.7rem;max-height:8rem}
.wa-reply button{flex:0 0 auto}

/* ===== Hearth inbox (v358) =====
   Warm spotlight-first inbox: livemark topbar, sweep line, spotlight card,
   queue rows with accordion+swipe, done section. */
body.hearth-body{padding:0}
.hearth{display:flex;flex-direction:column;height:100dvh;
  padding-top:env(safe-area-inset-top,0)}

/* Live mark — sonar pulse around the brand dot */
.livemark{position:relative;width:30px;height:30px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center}
.livemark svg{width:30px;height:30px;display:block;position:relative;z-index:2}
.livemark .ring{position:absolute;top:50%;left:50%;width:14px;height:14px;
  margin:-7px 0 0 -7px;border-radius:999px;border:1.5px solid var(--amber);
  opacity:0;z-index:1}
@media (prefers-reduced-motion:no-preference){
  .livemark .ring{animation:sonar 2.4s ease-out infinite}
  .livemark .ring.r2{animation-delay:1.2s}
  .livemark .dot{animation:beat 2.4s ease-in-out infinite;
    transform-origin:center;transform-box:fill-box}
}
@keyframes sonar{0%{transform:scale(.6);opacity:.7}70%{opacity:0}100%{transform:scale(2.7);opacity:0}}
@keyframes beat{0%,100%{opacity:1}45%{opacity:.55}}

/* Topbar */
.hearth .topbar{flex-shrink:0;display:flex;align-items:center;
  justify-content:space-between;padding:6px 20px 8px}
.hearth .topbar .brand{gap:10px}
.hearth .topbar .wm{font-size:17px;letter-spacing:-.03em}
.hearth .topbar .wm i{font-weight:500;font-style:normal;color:var(--txt2)}
.gear{width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  color:var(--txt2);cursor:pointer;border-radius:11px;text-decoration:none}
.gear:hover{background:var(--hair2);color:var(--txt)}
.gear svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}

/* Sweep line */
.sweepline{display:flex;align-items:center;gap:7px;padding:1px 22px 10px;
  font-size:12px;color:var(--txt2)}
.sweepline .sdot{width:6px;height:6px;border-radius:999px;background:var(--amber)}
@media (prefers-reduced-motion:no-preference){
  .sweepline .sdot{animation:beat 2s ease-in-out infinite}
}
.sweepline b{color:var(--txt);font-weight:700}
.sweepline .sep{color:var(--txt3)}

/* Scroll area */
.hearth .scroll{flex:1;overflow-y:auto;padding-bottom:max(32px,env(safe-area-inset-bottom,0))}

/* Section headers */
.sec{display:flex;align-items:center;gap:9px;padding:10px 22px 8px}
.sec .l{font-size:11px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:var(--txt3);white-space:nowrap;flex-shrink:0}
.sec .ln{flex:1;height:1px;background:var(--hair)}
.sec .n{font-size:11px;font-weight:800;color:var(--txt3)}
.sec.sec-spot .l{color:var(--amber)}
html[data-theme="light"] .sec.sec-spot .l{color:var(--amber-d)}
@media (prefers-color-scheme:light){
  html[data-theme="system"] .sec.sec-spot .l{color:var(--amber-d)}
}

/* Category labels */
.lab{display:inline-flex;align-items:center;font-size:10px;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase;padding:3px 7px;border-radius:6px;
  white-space:nowrap;flex-shrink:0}
.lab.callback{background:color-mix(in srgb,var(--amber) 18%,transparent);color:var(--amber)}
html[data-theme="light"] .lab.callback{color:var(--amber-d)}
@media (prefers-color-scheme:light){html[data-theme="system"] .lab.callback{color:var(--amber-d)}}
.lab.new_caller{background:#3E6E8E22;color:#7FB0CE}
html[data-theme="light"] .lab.new_caller{color:#3E6E8E}
@media (prefers-color-scheme:light){html[data-theme="system"] .lab.new_caller{color:#3E6E8E}}
.lab.fyi{background:var(--hair2);color:var(--txt2)}
.lab.personal{background:#5E8C6A22;color:#84B894}
html[data-theme="light"] .lab.personal{color:#5E8C6A}
@media (prefers-color-scheme:light){html[data-theme="system"] .lab.personal{color:#5E8C6A}}
.lab.other{background:transparent;color:var(--txt3);padding:3px 0}

/* Hearth avatar — bold category icon per type */
.havatar{flex-shrink:0;display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:#8C8A85;color:#F3F1EB}
.havatar svg{width:46%;height:46%}
.havatar.cat-callback{background:#F2A338;color:#181A1F}
.havatar.cat-new_caller{background:#5E8C6A;color:#181A1F}
.havatar.cat-fyi{background:#3E6E8E;color:#F3F1EB}
.havatar.cat-personal{background:#C77D9A;color:#181A1F}
.havatar.cat-other{background:#8C8A85;color:#F3F1EB}

/* ===== SPOTLIGHT ===== */
.spot{margin:5px 18px 4px;background:var(--surf);border:1px solid var(--hair);
  border-radius:24px;padding:17px 17px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.35)}
html[data-theme="light"] .spot{
  box-shadow:0 1px 2px rgba(20,16,8,.05),0 18px 36px -24px rgba(20,16,8,.4)}
@media (prefers-color-scheme:light){
  html[data-theme="system"] .spot{
    box-shadow:0 1px 2px rgba(20,16,8,.05),0 18px 36px -24px rgba(20,16,8,.4)}
}
.stop{display:flex;gap:13px;align-items:flex-start}
.spot .havatar{width:46px;height:46px;font-size:16px;border-radius:11px}
.smid{flex:1;min-width:0}
.srow1{display:flex;align-items:center;gap:8px}
.sname{font-size:18px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.smeta1{display:flex;align-items:center;gap:8px;margin-top:2px;font-size:12.5px;
  color:var(--txt2)}
.smeta1 .sep{color:var(--txt3)}
.ssum{font-size:15px;line-height:1.5;color:var(--txt);margin-top:13px;text-wrap:pretty}
.ssum .q{color:var(--txt2)}
.sbadges{display:flex;align-items:center;gap:8px;margin-top:12px}
.badge.ai{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;
  border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;background:color-mix(in srgb,var(--amber) 16%,transparent);
  color:var(--amber)}
html[data-theme="light"] .badge.ai{color:var(--amber-d)}
@media (prefers-color-scheme:light){html[data-theme="system"] .badge.ai{color:var(--amber-d)}}
.badge.ai .sd{width:5px;height:5px;border-radius:999px;background:currentColor}
.trlink{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--txt2);
  display:inline-flex;align-items:center;gap:5px;cursor:pointer;
  background:none;border:none;font-family:inherit;padding:0}
.trlink:hover{color:var(--txt)}
.trlink svg{width:14px;height:14px}
.sacts{margin-top:14px;display:flex;flex-direction:column;gap:9px}
.tiles4{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.tile4{height:44px;border-radius:12px;border:1px solid var(--hair);
  background:transparent;color:var(--txt);display:flex;
  align-items:center;justify-content:center;
  cursor:pointer;font-family:inherit;text-decoration:none;padding:0}
.tile4:hover{background:var(--hair2)}
.tile4[disabled]{opacity:.4;cursor:not-allowed}
.tile4[disabled]:hover{background:transparent}
.tile4 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;color:var(--amber)}
html[data-theme="light"] .tile4 svg{color:var(--amber-d)}
@media (prefers-color-scheme:light){html[data-theme="system"] .tile4 svg{color:var(--amber-d)}}
.tile4 svg.wa,.htoolbar .ib svg.wa{fill:currentColor;stroke:none}
/* Play button — top-right of spotlight */
.splay{width:36px;height:36px;border-radius:50%;background:var(--amber);color:#181A1F;
  border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;margin-left:auto}
.splay:hover{background:var(--amber-d)}
.splay svg{width:16px;height:16px;fill:currentColor;stroke:none}
.splay.playing svg{opacity:.5}
/* Filter tabs */
.filtertabs{display:flex;gap:8px;padding:10px 18px 6px;justify-content:center}
.ftab{border:1px solid var(--hair);background:transparent;color:var(--txt2);
  border-radius:20px;padding:6px 14px;font-size:13px;font-weight:700;
  cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:5px;
  transition:background .15s,color .15s,border-color .15s}
.ftab b{font-weight:800}
.ftab:hover{background:var(--hair2)}
.ftab.active{background:var(--amber);color:#181A1F;border-color:var(--amber)}
.ftab.active:hover{background:var(--amber-d);border-color:var(--amber-d)}
.scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
/* Legacy tiles3 — kept for backwards compat */
.tiles3{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.tile3{height:60px;border-radius:14px;border:1px solid var(--hair);
  background:transparent;color:var(--txt);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:5px;font-size:11.5px;
  font-weight:700;cursor:pointer;font-family:inherit;text-decoration:none;padding:0}
.tile3:hover{background:var(--hair2)}
.tile3[disabled]{opacity:.4;cursor:not-allowed}
.tile3[disabled]:hover{background:transparent}
.tile3 svg{width:18px;height:18px;color:var(--amber)}
html[data-theme="light"] .tile3 svg{color:var(--amber-d)}
@media (prefers-color-scheme:light){html[data-theme="system"] .tile3 svg{color:var(--amber-d)}}

/* ===== QUEUE ROWS ===== */
.lists{display:flex;flex-direction:column;gap:8px;padding:2px 18px 0}
.qrow{background:var(--surf);border:1px solid var(--hair);border-radius:15px;
  overflow:hidden;transition:border-color .15s,background .15s;
  box-shadow:0 1px 2px rgba(0,0,0,.25)}
html[data-theme="light"] .qrow:not(.done){box-shadow:0 1px 2px rgba(20,16,8,.04)}
@media (prefers-color-scheme:light){
  html[data-theme="system"] .qrow:not(.done){box-shadow:0 1px 2px rgba(20,16,8,.04)}
}
.qrow.open{border-color:color-mix(in srgb,var(--amber) 40%,var(--hair))}
.qhead{display:flex;align-items:center;gap:12px;padding:11px 12px;cursor:pointer}
.qrow .havatar{width:42px;height:42px;font-size:14px;border-radius:12px}
.qmid{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.qr1{display:flex;align-items:baseline;gap:8px}
.qname{flex:1 1 auto;min-width:0;font-size:15px;font-weight:700;letter-spacing:-.01em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qtime{font-size:12px;color:var(--txt3);white-space:nowrap;flex-shrink:0}
.qr2{display:flex;align-items:center;gap:8px;min-width:0}
.qsum{font-size:13px;color:var(--txt2);display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;min-width:0}
.qrow.open .qsum{-webkit-line-clamp:unset;display:block}
.qcall{width:42px;height:42px;flex-shrink:0;border-radius:12px;
  background:var(--amber);color:#181A1F;border:none;display:flex;
  align-items:center;justify-content:center;cursor:pointer;text-decoration:none}
.qcall:hover{background:var(--amber-d)}
.qcall svg{width:17px;height:17px;fill:currentColor;stroke:none}
.qrow.open .qcall{display:none}
.qexpand{display:none;padding:2px 12px 12px}
.qrow.open .qexpand{display:block}
.htoolbar{display:flex;gap:8px;align-items:center}
.htoolbar .ib{width:36px;height:36px;flex-shrink:0;border-radius:10px;
  border:1px solid var(--hair);background:transparent;color:var(--txt);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  text-decoration:none;padding:0;font-family:inherit}
.htoolbar .ib:hover{background:var(--hair2)}
.htoolbar .ib[disabled]{opacity:.4;cursor:not-allowed}
.htoolbar .ib[disabled]:hover{background:transparent}
.htoolbar .ib svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

/* Done rows */
.qrow.done{background:transparent;box-shadow:none;border-style:dashed}
.qrow.done .qhead{cursor:default}
.qrow.done .qname{color:var(--txt2)}
.donecheck{width:42px;height:42px;flex-shrink:0;border-radius:12px;
  background:color-mix(in srgb,var(--amber) 16%,transparent);
  display:flex;align-items:center;justify-content:center;color:var(--amber)}
html[data-theme="light"] .donecheck{color:var(--amber-d)}
@media (prefers-color-scheme:light){html[data-theme="system"] .donecheck{color:var(--amber-d)}}
.donecheck svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.5;
  stroke-linecap:round;stroke-linejoin:round}
.donestat{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase;color:var(--txt3)}

/* Swipe support for queue rows */
.qrow[data-swipeable]{position:relative;overflow:hidden;touch-action:pan-y;padding:0}
.qrow[data-swipeable] .swipe-card{transition:transform .22s cubic-bezier(.2,.6,.2,1);
  background:var(--surf);position:relative;z-index:2;will-change:transform}
.qrow[data-swipeable].swiping .swipe-card{transition:none}
.qrow[data-swipeable].revealed-left .swipe-card{transform:translateX(84px)}
.qrow[data-swipeable].revealed-right .swipe-card{transform:translateX(-84px)}
.qrow[data-swipeable] .swipe-action{position:absolute;top:0;bottom:0;width:84px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.2rem;font-size:.7rem;font-weight:700;z-index:1;padding:0;cursor:pointer;
  letter-spacing:.01em;text-align:center;line-height:1.1;border-radius:0}
.qrow[data-swipeable] .swipe-action .ic{font-size:1.3rem;line-height:1;display:inline-flex}
.qrow[data-swipeable] .swipe-action .ic svg{width:1.3rem;height:1.3rem;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.qrow[data-swipeable] .swipe-action .lbl{padding:0 .3rem;hyphens:auto}
.qrow[data-swipeable] .swipe-left{left:0;background:var(--amber);color:var(--ink)}
.qrow[data-swipeable] .swipe-right{right:0;background:var(--amber);color:var(--ink)}
.qrow[data-swipeable][data-swipe-kind="task"] .swipe-right{background:var(--danger);color:#fff}
.qrow.revealed-left .swipe-left,.qrow.revealed-right .swipe-right{box-shadow:inset 0 0 0 2px rgba(255,255,255,.18)}
.qrow[data-swipeable].vm-leaving{transition:height .22s,opacity .22s;overflow:hidden}

/* Hide appbar padding + version-chip overlap in Hearth inbox */
body.hearth-body:has(.appbar){padding-top:0}
body.hearth-body .appbar{display:none}
.hearth~.version-chip,body:has(.hearth) .version-chip{bottom:calc(env(safe-area-inset-bottom,0) + 6px);right:8px;font-size:.7rem;padding:.3rem .6rem}
/* Empty state */
.hearth-empty{text-align:center;padding:3rem 1.5rem;color:var(--txt2)}
.hearth-empty h2{color:var(--txt);font-size:1.15rem;margin:0 0 .4rem}
.hearth-empty p{margin:0;font-size:.9rem}
