/* WOVEN platform
   Merk: creme #FEFCF6, aubergine #420A38, oranje #FF4B00.
   Aubergine draagt de structuur, oranje is voorbehouden aan wat aandacht vraagt.
   Het geweven lint (aubergine naar oranje) markeert het werk van de assistent. */
@font-face { font-family: "Instrument Sans"; src: url(/static/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(/static/fonts/outfit-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* merk: vast, ongeacht de keuzes van de gebruiker */
  --brand: #420A38;
  --brand-2: #5B1850;
  --cream: #FEFCF6;
  --cream-2: #D9C3D2;
  --orange: #FF4B00;

  /* basis (licht) */
  --paper: #FEFCF6;
  --card: #FFFFFF;
  --sunk: #F7F2E9;
  --sunk-2: #EFE8DC;
  --ink: #26101F;
  --ink-2: #57434F;
  --muted: #7A6571;
  --line: #ECE4D8;
  --line-2: #DCD1C3;
  --line-3: #C9B7BC;
  --placeholder: #A8979F;
  --scrim: rgba(38, 16, 31, .42);

  /* accent: standaard aubergine, te wijzigen bij Mijn instellingen */
  --plum: #420A38;
  --plum-2: #5B1850;
  --plum-3: #7A3570;
  --plum-soft: #F4EAF0;
  --plum-tint: rgba(66, 10, 56, .06);
  --on-accent: #FEFCF6;
  --on-accent-2: #D9C3D2;

  --orange-ink: #C23A00;
  --orange-soft: #FFEEE4;
  --good: #1D6A48;
  --good-soft: #E5F2EA;
  --note: #FFF5D9;
  --note-line: #EED89A;
  --note-ink: #6A5110;

  /* menu */
  --rail-bg: var(--brand);
  --rail-ink: #FEFCF6;
  --rail-ink-2: #D9C3D2;
  --rail-line: rgba(254, 252, 246, .1);
  --rail-hover: rgba(254, 252, 246, .07);
  --rail-on: rgba(254, 252, 246, .13);

  --thread: linear-gradient(90deg, #420A38 0%, #7A3570 45%, #FF4B00 100%);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", var(--font);

  --shadow-1: 0 1px 2px rgba(66, 10, 56, .05);
  --shadow-2: 0 1px 2px rgba(66, 10, 56, .04), 0 10px 28px -14px rgba(66, 10, 56, .22);
  --shadow-3: 0 2px 6px rgba(66, 10, 56, .06), 0 28px 60px -20px rgba(66, 10, 56, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ring: color-mix(in srgb, var(--plum) 16%, transparent);
  --rail-w: 84px;
  color-scheme: light;
}

/* ---- donker thema */
html[data-theme="dark"] {
  --paper: #140A12;
  --card: #1C1019;
  --sunk: #231520;
  --sunk-2: #2E1C2A;
  --ink: #F4EBF0;
  --ink-2: #D3C2CC;
  --muted: #A2909B;
  --line: #2F1F2B;
  --line-2: #44303F;
  --line-3: #5A4252;
  --placeholder: #7D6976;
  --scrim: rgba(5, 2, 4, .62);
  --plum: #E3A6D3;
  --plum-2: #EDBFE0;
  --plum-3: #C77FB4;
  --plum-soft: rgba(227, 166, 211, .14);
  --plum-tint: rgba(227, 166, 211, .08);
  --on-accent: #2A0723;
  --on-accent-2: #6A3A5F;
  --orange-ink: #FF7A40;
  --orange-soft: rgba(255, 75, 0, .16);
  --good: #6CCB9C;
  --good-soft: rgba(108, 203, 156, .13);
  --note: #342912;
  --note-line: #5C4A1E;
  --note-ink: #F1D98F;
  --rail-bg: #1F0B1B;
  --thread: linear-gradient(90deg, #A0457F 0%, #C86A86 45%, #FF4B00 100%);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---- accentkleuren (licht) */
html[data-accent="oranje"] { --plum: #C23A00; --plum-2: #A83200; --plum-3: #E0561A; --plum-soft: #FFEEE4; --plum-tint: rgba(194, 58, 0, .07); --on-accent: #FFFFFF; --on-accent-2: #FFD9C7; }
html[data-accent="nacht"] { --plum: #1F3A68; --plum-2: #2A4C84; --plum-3: #4A6CA8; --plum-soft: #E7EDF7; --plum-tint: rgba(31, 58, 104, .07); --on-accent: #FFFFFF; --on-accent-2: #C9D6EC; }
html[data-accent="bos"] { --plum: #1E5A43; --plum-2: #277257; --plum-3: #3F8A6C; --plum-soft: #E3F1EA; --plum-tint: rgba(30, 90, 67, .07); --on-accent: #FFFFFF; --on-accent-2: #C4E2D4; }
html[data-accent="petrol"] { --plum: #0F5E6B; --plum-2: #157585; --plum-3: #2D8C9B; --plum-soft: #E1F1F3; --plum-tint: rgba(15, 94, 107, .07); --on-accent: #FFFFFF; --on-accent-2: #BFE0E5; }
html[data-accent="grafiet"] { --plum: #2E2A33; --plum-2: #403B46; --plum-3: #5E5866; --plum-soft: #ECEAEE; --plum-tint: rgba(46, 42, 51, .07); --on-accent: #FFFFFF; --on-accent-2: #D2CED6; }
/* ---- accentkleuren (donker) */
html[data-theme="dark"][data-accent="oranje"] { --plum: #FF8A57; --plum-2: #FFA47C; --plum-3: #FF6A2B; --plum-soft: rgba(255, 138, 87, .14); --plum-tint: rgba(255, 138, 87, .08); --on-accent: #2B0D00; --on-accent-2: #7A3412; }
html[data-theme="dark"][data-accent="nacht"] { --plum: #8FB0EA; --plum-2: #A9C3F0; --plum-3: #6E93D6; --plum-soft: rgba(143, 176, 234, .14); --plum-tint: rgba(143, 176, 234, .08); --on-accent: #0C1A33; --on-accent-2: #3A527E; }
html[data-theme="dark"][data-accent="bos"] { --plum: #7FCBA8; --plum-2: #9AD8BB; --plum-3: #5FB38E; --plum-soft: rgba(127, 203, 168, .14); --plum-tint: rgba(127, 203, 168, .08); --on-accent: #0A261A; --on-accent-2: #2D5E48; }
html[data-theme="dark"][data-accent="petrol"] { --plum: #6FC6D3; --plum-2: #8DD3DE; --plum-3: #4FAFBE; --plum-soft: rgba(111, 198, 211, .14); --plum-tint: rgba(111, 198, 211, .08); --on-accent: #062A30; --on-accent-2: #255A63; }
html[data-theme="dark"][data-accent="grafiet"] { --plum: #CFC9D6; --plum-2: #DDD8E3; --plum-3: #B4ADBD; --plum-soft: rgba(207, 201, 214, .14); --plum-tint: rgba(207, 201, 214, .08); --on-accent: #1E1B22; --on-accent-2: #4E4856; }

/* ---- menukleur */
html[data-rail="donker"] { --rail-bg: #1A0D17; }
html[data-theme="dark"][data-rail="donker"] { --rail-bg: #0E060C; }
html[data-rail="licht"] { --rail-bg: var(--card); --rail-ink: var(--ink); --rail-ink-2: var(--muted); --rail-line: var(--line); --rail-hover: var(--plum-tint); --rail-on: var(--plum-soft); }
html[data-rail="accent"] { --rail-bg: var(--plum); --rail-ink: var(--on-accent); --rail-ink-2: var(--on-accent-2); --rail-line: color-mix(in srgb, var(--on-accent) 14%, transparent); --rail-hover: color-mix(in srgb, var(--on-accent) 8%, transparent); --rail-on: color-mix(in srgb, var(--on-accent) 15%, transparent); }

/* ---- tekstgrootte en bewegingen */
html[data-size="s"] .page { zoom: .92; }
html[data-size="l"] .page { zoom: 1.08; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }


* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); transition: background-color .2s; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--plum); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: 30px; letter-spacing: -.025em; }
code { background: var(--plum-soft); color: var(--plum); padding: 1px 7px; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
::selection { background: #F6D2BF; }
.boot { display: grid; place-items: center; height: 100vh; }
.boot::before { content: ""; width: 56px; height: 56px; background: url(/static/img/symbool.png) center / contain no-repeat; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.9) rotate(8deg); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------- iconen */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 26px; height: 26px; }
.ic.big { width: 36px; height: 36px; stroke-width: 1.4; }
.ic.ch { stroke-width: 1.9; }

/* ------------------------------------------------------------- knoppen */
.btn {
  min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--plum); cursor: pointer; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; box-shadow: var(--shadow-1);
}
.btn:hover { border-color: var(--line-3); background: var(--card); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--plum); border-color: var(--plum); color: var(--on-accent); box-shadow: 0 1px 2px rgba(66, 10, 56, .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.primary:hover { background: var(--plum-2); border-color: var(--plum-2); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--plum-tint); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; flex: none; text-decoration: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--plum-tint); color: var(--plum); }
.icon-btn.danger, .btn.danger { color: var(--orange-ink); background: var(--orange-soft); border-color: transparent; }
.spin .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------- formulieren */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--plum); box-shadow: 0 0 0 4px var(--ring); }
select { appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6571' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; padding-right: 36px; cursor: pointer; }
.hint { color: var(--muted); font-size: 12.5px; }
.form-error { color: var(--orange-ink); min-height: 20px; margin: 4px 0 8px; font-size: 14px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span2 { grid-column: 1 / -1; }

.switch { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--sunk-2); position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; box-shadow: inset 0 0 0 1px rgba(66, 10, 56, .08); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(66, 10, 56, .25); }
.switch:checked { background: var(--plum); }
.switch:checked::after { transform: translateX(16px); }
.switch-label { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch-label > span { display: flex; flex-direction: column; gap: 2px; }
.switch-label small { color: var(--muted); font-size: 13px; }
.switch-label.row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.switch-label.row:last-child { border-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 14px; transition: .15s; }
.chip span:hover { border-color: var(--plum-3); }
.chip input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--on-accent); }
.chip input:disabled + span { cursor: default; opacity: .85; }
.chip input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.chip.color input:checked + span { outline: 2px solid var(--ink); outline-offset: 1px; }

.seg { display: inline-flex; background: var(--sunk); padding: 4px; border-radius: 12px; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: .15s; }
.seg button:hover { color: var(--plum); }
.seg button.on { background: var(--card); color: var(--plum); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }

.seg3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.seg3.two { grid-template-columns: 1fr 1fr; }
.seg3.four { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.opt > span:hover { border-color: var(--plum-3); }
.opt small { color: var(--muted); font-size: 13px; }
.opt input:checked + span { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum) inset, var(--shadow-2); }
.opt input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.seg3 + textarea { margin-top: 10px; }

.note { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 13.5px; background: var(--sunk); border-radius: var(--r); padding: 14px 16px; margin: 16px 0 0; }
.note .ic { color: var(--plum); margin-top: 1px; }
.note.warn { background: var(--note); color: var(--note-ink); margin: 0 0 18px; }
.note.warn .ic { color: var(--note-ink); }

/* ------------------------------------------------------------- avatars */
.avatar { --av: var(--plum); width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--av) 13%, var(--paper)); color: color-mix(in srgb, var(--av) 85%, #000); font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av) 14%, transparent); }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 29px; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.tag .ic { width: 12px; height: 12px; stroke-width: 2; }
.urgent-tag { background: var(--orange-soft); color: var(--orange-ink); }
.ai-tag { background: var(--plum-soft); color: var(--plum); }
.ai-tag .ic { color: var(--orange); }
.state { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.state.ok { background: var(--good-soft); color: var(--good); }
.state.demo { background: var(--note); color: var(--note-ink); }

/* --------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--plum); color: var(--on-accent); padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 90; max-width: calc(100vw - 32px); box-shadow: var(--shadow-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--orange-ink); }
.toast.good { background: var(--good); }

/* --------------------------------------------------------------- modal */
.modal-wrap { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 80; padding: 16px; animation: fade .18s; }
.modal { background: var(--card); border-radius: var(--r-xl); width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 30px; box-shadow: var(--shadow-3); animation: rise .25s var(--ease); }
.modal.wide { width: min(700px, 100%); }
.modal h2 { font-size: 23px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.result { min-height: 20px; font-size: 14px; display: flex; align-items: center; gap: 6px; color: var(--good); }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; background: var(--sunk); padding: 16px; border-radius: var(--r); }
.cred dt { color: var(--muted); }
.cred dd { margin: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.popover { position: fixed; z-index: 70; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 6px; min-width: 250px; animation: rise .18s var(--ease); }
.popover a, .popover button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; font-size: 14px; }
.popover a:hover, .popover button:hover { background: var(--plum-tint); }
.popover .ic { color: var(--muted); }
.pop-head { display: flex; gap: 12px; align-items: center; padding: 12px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop-head small { display: block; color: var(--muted); font-size: 12.5px; }

/* ================================================== MERK-ELEMENTEN */
.wordmark { display: block; height: 30px; width: auto; align-self: flex-start; flex: none; object-fit: contain; }
/* Logo altijd in originele kleuren. Op aubergine: het symbool op een creme tegel, zoals in de zijbalk. */
.logo-tile { align-self: flex-start; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--paper); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.logo-tile img { width: 36px; height: auto; display: block; }
.ribbon { position: absolute; pointer-events: none; user-select: none; }

/* ===================================================== AANMELDEN */
.auth { display: grid; grid-template-columns: minmax(400px, 46%) 1fr; min-height: 100vh; }
.auth-brand { background: var(--brand); color: var(--cream); padding: 52px 60px; display: flex; flex-direction: column; gap: 44px; position: relative; overflow: hidden; isolation: isolate; }
.auth-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 0% 0%, #5A1550 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #2C0626 0%, transparent 70%); }
.auth-brand .wordmark { height: 30px; }
.auth-copy { max-width: 470px; animation: rise .6s var(--ease) both; }
.auth-brand h1 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin-bottom: 20px; }
.auth-brand p { color: var(--cream-2); font-size: 17px; line-height: 1.55; margin: 0 0 28px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: center; color: var(--cream); font-size: 15px; }
.auth-points li::before { content: ""; width: 18px; height: 4px; border-radius: 4px; background: var(--orange); flex: none; }
.auth-ribbon { left: -6%; right: -14%; bottom: 64px; width: 120%; max-width: none; opacity: .95; z-index: -1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); animation: drift 1.2s var(--ease) both; }
@keyframes drift { from { opacity: 0; transform: translateX(-40px); } }
.auth-brand > small { margin-top: auto; color: var(--cream-2); opacity: .8; font-size: 13px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--paper); }
.auth-card { width: min(410px, 100%); }
.auth-card .auth-wordmark { display: block; height: 34px; width: auto; margin-bottom: 40px; }
.auth-card h2 { font-size: 32px; letter-spacing: -.03em; }
.auth-card > .muted { margin: 8px 0 28px; font-size: 15.5px; }
.check-card { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); cursor: pointer; margin-bottom: 8px; transition: border-color .15s; }
.check-card:hover { border-color: var(--plum-3); }
.check-card input { accent-color: var(--plum); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-card span { display: flex; flex-direction: column; gap: 3px; }
.check-card small { color: var(--muted); font-size: 13px; }
p.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
p.auth-switch a { font-weight: 600; }
.auth-card .btn.primary { min-height: 48px; font-size: 15px; border-radius: 14px; }

/* ==================================================== WIZARD */
.wizard { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; }
.wiz-side { background: var(--brand); color: var(--cream); padding: 40px 28px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.wiz-side .wordmark { height: 22px; }
.wiz-ribbon { left: -40%; bottom: 40px; width: 220%; max-width: none; opacity: .35; z-index: -1; }
.wiz-intro { color: var(--cream-2); font-size: 14px; margin: 0; }
.wiz-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; position: relative; }
.wiz-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; color: var(--cream-2); font-size: 14.5px; }
.wiz-steps .num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(254, 252, 246, .28); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; font-variant-numeric: tabular-nums; }
.wiz-steps .num .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.wiz-steps li.now { background: rgba(254, 252, 246, .09); color: var(--cream); font-weight: 600; }
.wiz-steps li.now .num { background: var(--orange); color: var(--plum); border-color: var(--orange); }
.wiz-steps li.done .num { background: rgba(254, 252, 246, .16); border-color: transparent; color: var(--cream); }
.wiz-skip { margin-top: auto; color: var(--cream-2); font-size: 14px; }
.wiz-main { display: flex; flex-direction: column; min-height: 100vh; }
.wiz-progress { height: 3px; background: var(--line); }
.wiz-progress span { display: block; height: 100%; background: var(--thread); transition: width .4s var(--ease); }
.wiz-body { flex: 1; padding: 56px 64px 28px; max-width: 900px; width: 100%; }
.wiz-head { margin-bottom: 32px; }
.wiz-head small { color: var(--orange-ink); font-size: 13px; font-weight: 600; }
.wiz-head h1 { font-size: 38px; margin: 6px 0 10px; letter-spacing: -.035em; }
.lead { color: var(--ink-2); font-size: 16px; margin: 0; }
.lead.small { font-size: 14.5px; margin-bottom: 16px; color: var(--muted); }
#wiz-next, #wiz-done { margin-left: auto; }
.wiz-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; padding: 16px 64px; background: rgba(254, 252, 246, .9); backdrop-filter: blur(8px); border-top: 1px solid var(--line); max-width: 900px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pick { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick-in { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; height: 100%; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); transition: .15s; }
.pick-in:hover { border-color: var(--plum-3); box-shadow: var(--shadow-2); }
.pick-in small { color: var(--muted); font-size: 13px; }
.pick-in .tick, .pick-in .state { position: absolute; top: 16px; right: 16px; }
.pick-in .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.pick-in .tick .ic { width: 13px; height: 13px; stroke-width: 3; }
.pick input:checked + .pick-in { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum) inset, var(--shadow-2); }
.pick input:checked + .pick-in .tick { background: var(--plum); border-color: var(--plum); color: var(--on-accent); }
.pick input:focus-visible + .pick-in { outline: 2px solid var(--plum); outline-offset: 2px; }
.pick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); cursor: pointer; transition: .15s; }
.pick-btn:hover { border-color: var(--plum); box-shadow: var(--shadow-2); }

.people { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.people li > div { flex: 1; min-width: 0; }
.people small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.role { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--sunk); padding: 3px 11px; border-radius: 99px; }
.add-row { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 16px; display: grid; grid-template-columns: 1fr 1.3fr 150px auto; gap: 10px; margin: 0; }
.add-row legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }

.hours { display: grid; gap: 6px; margin-bottom: 18px; }
.hour-row { display: grid; grid-template-columns: 170px 120px auto 120px 1fr; gap: 12px; align-items: center; padding: 8px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.hour-row .switch-label { align-items: center; }
.hour-row .dash { color: var(--muted); font-size: 13px; }
.hour-row input[type=time] { min-height: 38px; padding: 6px 10px; }
.closed-txt { display: none; color: var(--muted); font-size: 14px; }
.hour-row.closed input[type=time], .hour-row.closed .dash { display: none; }
.hour-row.closed .closed-txt { display: block; grid-column: 2 / -1; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.box .field { margin: 12px 0 0; }

.inline-add { display: flex; gap: 8px; margin-top: 10px; max-width: 340px; }
.done-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.done-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.done-card .ic { color: var(--orange); width: 22px; height: 22px; margin-bottom: 8px; }
.done-card small { color: var(--muted); }
.wiz-body h3 { font-size: 18px; margin-bottom: 12px; }
.next-list { padding-left: 20px; display: grid; gap: 10px; margin: 0; color: var(--ink-2); }

/* =================================================== APP-SCHIL */
.shell { display: flex; height: 100vh; overflow: hidden; background: var(--paper); }
.page-wrap { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.page { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
.impersonate { display: flex; align-items: center; gap: 10px; padding: 9px 18px; background: var(--orange); color: var(--plum); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.impersonate span { flex: 1; min-width: 200px; }
.impersonate .btn { border-color: transparent; }

/* ======================================================== INBOX */
.inbox { display: grid; grid-template-columns: 224px 360px minmax(0, 1fr) 304px; grid-template-rows: 100%; height: 100%; }
.inbox > * { min-height: 0; }
.folders { background: var(--paper); border-right: 1px solid var(--line); padding: 24px 12px; overflow: auto; }
.col-title { font-size: 24px; padding: 0 12px 16px; }
.folder-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 2px; }
.folder { width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border: 0; background: none; border-radius: 11px; cursor: pointer; color: var(--ink-2); font-size: 14px; text-align: left; transition: background .15s; }
.folder .ic { color: var(--muted); }
.folder span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder b { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.folder b.hot { background: var(--orange); color: var(--plum); padding: 0 7px; border-radius: 99px; }
.folder:hover { background: var(--plum-tint); }
.folder.active { background: var(--card); color: var(--plum); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.folder.active .ic { color: var(--plum); }
.folder.semi { color: var(--plum); }
.folder-sub { font-family: var(--font); font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 600; padding: 20px 12px 6px; }
.ldot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin: 0 4px; background: #CFC6C2; }
.lc-blauw { background: #4F7FA6; } .lc-rood { background: #C2452A; } .lc-groen { background: #3F8461; } .lc-oranje { background: #D98A1E; } .lc-paars { background: #7A3570; }

.list-col { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--card); min-width: 0; }
.list-head { display: flex; align-items: center; gap: 6px; padding: 20px 14px 12px 20px; }
.list-head h1 { flex: 1; font-size: 22px; }
.folder-toggle { display: none; }
.search { display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 0 12px; background: var(--sunk); border: 1px solid transparent; border-radius: 12px; transition: .15s; }
.search:focus-within { background: var(--card); border-color: var(--plum); box-shadow: 0 0 0 4px var(--ring); }
.search .ic { color: var(--muted); }
.search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0 !important; min-height: 40px !important; }
.search.wide { margin: 0 0 18px; max-width: 520px; background: var(--card); border-color: var(--line-2); }
.active-filters { display: flex; gap: 6px; padding: 0 14px; flex-wrap: wrap; }
.active-filters:not(:empty) { padding-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); border-radius: 99px; padding: 3px 6px 3px 10px; font-size: 12.5px; cursor: pointer; }
.pill .ic { width: 13px; height: 13px; }
.conv-list { list-style: none; padding: 2px 10px 20px; margin: 0; overflow: auto; flex: 1; }
.conv { display: flex; gap: 12px; padding: 14px 12px; border-radius: 14px; text-decoration: none; color: inherit; position: relative; margin-bottom: 2px; transition: background .12s; }
.conv:hover { background: var(--paper); }
.conv.active { background: var(--plum-soft); }
.conv.urgent::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--orange); }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-top b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-top b { font-weight: 700; }
.conv.unread .conv-snip { color: var(--ink); }
.conv-top time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.conv.unread .conv-top time { color: var(--orange-ink); font-weight: 700; }
.conv.unread .conv-top time::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }
.conv-snip { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; line-height: 1.45; }
.conv-snip .you { color: var(--ink-2); font-weight: 500; }
.conv-meta { display: flex; align-items: center; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.conv-meta .chs { display: inline-flex; gap: 4px; margin-right: 2px; }
.conv-meta .who { margin-left: auto; }
.empty-list { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-list .ic { color: var(--good); }
.empty-list b { color: var(--ink); font-family: var(--display); font-size: 17px; }

.thread-col { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 76px; }
.thread-head .back { display: none; }
.th-title { flex: 1; min-width: 0; }
.th-title h2 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-title h2 small { font-family: var(--font); font-weight: 400; color: var(--muted); font-size: 15px; letter-spacing: 0; }
.th-title p { margin: 5px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ch-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--sunk); border-radius: 99px; padding: 2px 9px 2px 6px; color: var(--ink-2); font-weight: 500; }
.subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.th-actions { display: flex; align-items: center; gap: 8px; }
.assign { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 12px; padding-left: 12px; background: var(--card); color: var(--muted); box-shadow: var(--shadow-1); }
.assign select { border: 0 !important; min-height: 38px !important; box-shadow: none !important; width: auto; padding-left: 0; color: var(--ink); background-color: transparent; font-weight: 500; }
.side-toggle { display: none; }

.messages { flex: 1; overflow: auto; padding: 24px 32px 16px; display: flex; flex-direction: column; gap: 12px; }
.day-sep { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-sep span { font-size: 12px; font-weight: 600; color: var(--muted); }
.msg { display: flex; gap: 10px; max-width: 760px; align-items: flex-end; animation: fade .25s; }
.msg.out { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--card); border-radius: 18px 18px 18px 6px; padding: 12px 16px 9px; min-width: 120px; position: relative; box-shadow: var(--shadow-2); }
.msg.out .bubble { background: var(--plum); color: var(--on-accent); border-radius: 18px 18px 6px 18px; box-shadow: 0 10px 28px -14px rgba(66, 10, 56, .55); }
.msg-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 5px; color: var(--ink-2); }
.msg.out .msg-head { color: var(--on-accent-2); }
.msg.out .msg-head .ic.ch { color: var(--on-accent) !important; }
.msubj { color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msubj::before { content: "· "; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; }
.bubble time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.msg.out .bubble time { color: var(--on-accent-2); }
.note-msg { align-self: center; max-width: 620px; width: 100%; }
.note-msg .bubble { background: var(--note); border-radius: 14px; width: 100%; white-space: pre-wrap; box-shadow: inset 0 0 0 1px var(--note-line); }
.note-msg .who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--note-ink); margin-bottom: 4px; font-weight: 600; }
.msg.sys { align-self: center; font-size: 12.5px; color: var(--muted); }
.msg.sys span { display: inline-flex; align-items: center; gap: 6px; background: var(--sunk); padding: 5px 12px; border-radius: 99px; }

.composer-wrap { padding: 0 24px 20px; }
.proposal { position: relative; background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 14px 16px 12px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.proposal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--thread); }
.proposal.info { background: var(--sunk); }
.proposal.info::before { background: var(--line-2); }
.proposal.empty { background: transparent; box-shadow: none; padding: 0 0 8px; }
.proposal.empty::before { display: none; }
.prop-head { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; font-size: 13.5px; flex-wrap: wrap; }
.prop-head > .ic { color: var(--orange); }
.prop-head b { font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--plum); }
.prop-sum { color: var(--ink-2); }
.prop-actions { display: flex; gap: 6px; }
.composer { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); position: relative; transition: box-shadow .15s; }
.composer:focus-within { box-shadow: 0 0 0 1px var(--plum-3), 0 14px 34px -16px rgba(66, 10, 56, .4); }
.proposal:not(.empty) + .composer { border-top-left-radius: 0; border-top-right-radius: 0; }
.composer.notitie { background: var(--note); box-shadow: 0 0 0 1px var(--note-line); }
.comp-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; }
.comp-tabs button { border: 0; background: none; padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.comp-tabs button.on { color: var(--plum); background: var(--plum-tint); font-weight: 600; }
.comp-tabs .ic { width: 15px; height: 15px; }
.via { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.via select { min-height: 32px !important; padding: 2px 30px 2px 10px; width: auto; font-size: 13px; border-radius: 9px; }
.composer textarea { outline: none !important; border: 0 !important; box-shadow: none !important; background: transparent; min-height: 100px; padding: 10px 18px; resize: none; font-size: 14.5px; }
.comp-foot { display: flex; align-items: center; gap: 8px; padding: 6px 12px 12px; }
.closed-bar { margin: 0 24px 20px; padding: 16px; text-align: center; color: var(--muted); background: var(--sunk); border-radius: var(--r); font-size: 14px; }
.tpl-pop { position: absolute; bottom: 56px; left: 10px; width: 360px; max-height: 340px; overflow: auto; }
.tpl-pop input { margin-bottom: 6px; }
.tpl-pop ul { list-style: none; padding: 0; margin: 0; }
.tpl-pop button { flex-direction: column; align-items: flex-start; gap: 2px; }
.tpl-pop small { color: var(--muted); font-size: 12.5px; }

.empty-thread { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; max-width: 380px; }
.empty-thread::before { content: ""; width: 92px; height: 86px; background: url(/static/img/symbool.png) center / contain no-repeat; opacity: .14; filter: grayscale(.2); margin-bottom: 6px; }
.empty-thread > .ic { display: none; }
.empty-thread h2 { color: var(--ink); font-size: 22px; }
.empty-thread p { margin: 0 0 14px; }

.side-col { background: var(--card); border-left: 1px solid var(--line); overflow: auto; padding: 26px 20px; position: relative; }
.side-close { display: none; position: absolute; top: 12px; right: 12px; }
.cust-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.cust-card h3 { font-size: 19px; margin-top: 6px; }
.cust-card p { margin: 0; font-size: 14px; }
.src { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 500; color: var(--good); background: var(--good-soft); padding: 4px 11px; border-radius: 99px; margin-top: 4px; }
.src .ic { width: 13px; height: 13px; }
.src.new { color: var(--ink-2); background: var(--sunk); }
.facts { margin: 0 0 12px; display: grid; gap: 8px; }
.facts div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; min-width: 0; }
.facts dt { flex: none; color: var(--muted); }
.facts dt.lbl { color: var(--muted); font-size: 12px; min-width: 70px; }
.facts dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts a { color: var(--ink); text-decoration: none; }
.side-sec { border-top: 1px solid var(--line); padding: 16px 0 4px; margin-top: 14px; }
.side-sec h4 { font-family: var(--font); font-size: 12.5px; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.label-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.lp { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 99px; opacity: .45; transition: opacity .15s; }
.lp.on { opacity: 1; box-shadow: 0 0 0 1.5px currentColor; }
.lp:hover { opacity: 1; }
.side-sec .seg { width: 100%; }
.side-sec select { min-height: 40px; }
.side-sec .seg button { flex: 1; }
.notes { font-size: 13.5px; white-space: pre-wrap; margin: 0; color: var(--ink-2); }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.history a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 13px; }
.history a:hover { background: var(--paper); }
.history span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history time { color: var(--muted); font-size: 12px; }

/* ==================================================== STANDAARD PAGINA */
.std, .dash { padding: 36px 44px 64px; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; letter-spacing: -.03em; }
.page-head small { color: var(--muted); font-size: 13px; }
.page-head .lead { color: var(--muted); font-size: 15px; margin-top: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.crumb:hover { color: var(--plum); }
.crumb .ic { width: 16px; height: 16px; }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 24px; min-width: 0; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel h2 { font-size: 17px; }
.panel h3 { font-size: 15.5px; margin-bottom: 6px; }

/* dashboard */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--brand); color: var(--cream); border-radius: var(--r-xl); padding: 30px 34px 32px; margin-bottom: 16px; box-shadow: 0 18px 36px -24px rgba(66, 10, 56, .55); }
.dash-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 120% at 0% 0%, #5A1550 0%, transparent 65%); }
.hero-ribbon { right: -8%; bottom: -34%; width: 72%; max-width: 900px; z-index: -1; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-top small { color: var(--cream-2); font-size: 13.5px; font-weight: 500; }
.hero-top h1 { font-size: 38px; letter-spacing: -.035em; margin-top: 4px; }
.seg.on-dark { background: rgba(254, 252, 246, .1); box-shadow: none; }
.seg.on-dark button { color: var(--cream-2); }
.seg.on-dark button:hover { color: var(--cream); }
.seg.on-dark button.on { background: var(--cream); color: var(--brand); box-shadow: none; }
.hero-figs { display: flex; gap: 12px; flex-wrap: wrap; }
.fig { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 16px 22px 14px; min-width: 170px; border-radius: var(--r-lg); background: rgba(254, 252, 246, .08); color: var(--cream); text-decoration: none; backdrop-filter: blur(6px); transition: background .15s, transform .2s var(--ease); }
.fig:hover { background: rgba(254, 252, 246, .14); transform: translateY(-2px); }
.fig span { display: flex; align-items: center; gap: 8px; color: var(--cream-2); font-size: 13.5px; font-weight: 500; }
.fig span .ic { width: 16px; height: 16px; }
.fig b { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fig.hot { background: var(--orange); color: var(--brand); }
.fig.hot span { color: var(--brand); }
.fig.hot:hover { background: #FF6420; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.tile small { color: var(--muted); font-size: 13px; font-weight: 500; }
.tile b { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.tile span { color: var(--muted); font-size: 12.5px; }
.meter { height: 6px; border-radius: 99px; background: var(--sunk-2); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--thread); border-radius: 99px; }
.panel.wide { margin-bottom: 16px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit.on { fill: var(--plum-tint); }
.tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); border-radius: 14px; padding: 12px 14px; font-size: 13px; min-width: 180px; pointer-events: none; z-index: 5; }
.tip b { display: block; margin-bottom: 6px; font-weight: 600; }
.tip div { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.tip span { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.tip .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font-weight: 600; color: var(--ink); }
.panel-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; }
table { border-collapse: collapse; width: 100%; }
.bars th { text-align: left; font-weight: 400; color: var(--ink-2); font-size: 14px; padding: 8px 12px 8px 0; white-space: nowrap; width: 1%; }
.bars td { padding: 8px 0; }
.hbar { display: block; height: 10px; border-radius: 0 5px 5px 0; min-width: 4px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px !important; }
.team-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 0 0 8px; }
.team-table td { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.team-table td:first-child { display: flex; align-items: center; gap: 10px; }
.label-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.label-stats li { display: flex; justify-content: space-between; align-items: center; }

/* klanten */
.table-wrap { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.data th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.data td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.data tbody tr[data-id] { cursor: pointer; transition: background .12s; }
.data tbody tr[data-id]:hover { background: var(--paper); }
.cell-person { display: flex; gap: 12px; align-items: center; }
.cell-person small { display: block; color: var(--muted); font-size: 13px; }
.empty-cell { text-align: center; color: var(--muted); padding: 40px !important; }
.fiche-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.fiche-head > div { flex: 1; min-width: 200px; }
.fiche-head h1 { font-size: 32px; }
.src-line { margin: 6px 0 0; font-size: 13px; color: var(--good); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.fiche { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline a { display: flex; gap: 14px; padding: 12px 10px; text-decoration: none; color: inherit; border-radius: 12px; position: relative; }
.timeline a:hover { background: var(--paper); }
.timeline li:not(:last-child) a::after { content: ""; position: absolute; left: 25px; top: 46px; bottom: -12px; width: 1px; background: var(--line); }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; flex: none; }
.timeline a > div { flex: 1; min-width: 0; }
.tl-top { display: flex; justify-content: space-between; gap: 8px; }
.tl-top time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.timeline small { color: var(--muted); display: block; margin: 2px 0 6px; }
.tl-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.status { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); }
.st-open { background: var(--plum-soft); color: var(--plum); }
.st-gesloten { background: var(--good-soft); color: var(--good); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); cursor: pointer; text-align: center; margin: 16px 0 10px; color: var(--muted); transition: .15s; }
.drop.over, .drop:hover { border-color: var(--plum); background: var(--plum-soft); }
.drop b { color: var(--ink); }
.drop input { display: none; }
.pick-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow: auto; }
.pick-list button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; }
.pick-list button:hover { background: var(--plum-tint); }
.pick-list small { display: block; color: var(--muted); font-size: 12.5px; }

/* instellingen */
.settings { display: grid; grid-template-columns: 260px 1fr; min-height: 100%; }
.set-body .panel + .panel { margin-top: 16px; }
.access h2 { display: flex; align-items: center; gap: 8px; }
.set-nav { background: var(--paper); border-right: 1px solid var(--line); padding: 30px 14px; position: sticky; top: 0; height: 100%; max-height: 100vh; overflow: auto; }
.set-nav h1 { font-size: 24px; padding: 0 12px 8px; }
.set-nav h3 { font-family: var(--font); font-size: 12.5px; letter-spacing: 0; color: var(--muted); font-weight: 600; padding: 20px 12px 6px; }
.set-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 11px; text-decoration: none; color: var(--ink-2); font-size: 14px; transition: background .15s; }
.set-nav a .ic { color: var(--muted); }
.set-nav a:hover { background: var(--plum-tint); }
.set-nav a.active { background: var(--card); color: var(--plum); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.set-nav a.active .ic { color: var(--plum); }
.set-body { padding: 40px 48px 64px; max-width: 900px; }
.set-back { display: none; }
.set-title { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 22px; }
.set-body .note:first-child { margin: 0 0 16px; }
.coll { list-style: none; padding: 0; margin: 0 0 14px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.coll li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.coll li:last-child { border-bottom: 0; }
.coll li.off { opacity: .55; }
.coll small { display: block; color: var(--muted); font-size: 13px; }
.coll .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll select { width: auto; min-height: 36px; font-size: 13px; }
.coll-actions { display: flex; gap: 2px; }
.coll-empty { color: var(--muted); justify-content: center; }
.switch-label.mini { flex: none; }
.rule-line { display: grid; grid-template-columns: 40px 1fr 1fr 1.6fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.rule-line:last-child { grid-template-columns: 40px minmax(200px, 1fr) 1fr; }
.rule-line > span { font-weight: 600; color: var(--plum); font-size: 14px; }
.chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.chan-card { background: var(--card); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.chan-card header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.chan-card header > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.chan-card header > div { order: 3; flex-basis: 100%; min-width: 0; }
.chan-card header b { font-family: var(--display); font-size: 16.5px; font-weight: 600; }
.chan-card small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-actions { display: flex; justify-content: space-between; }
.chan-card.add { box-shadow: none; border: 1.5px dashed var(--line-2); align-items: center; justify-content: center; cursor: pointer; color: var(--muted); min-height: 140px; background: transparent; transition: .15s; }
.chan-card.add:hover { border-color: var(--plum); color: var(--plum); background: var(--plum-soft); }
.sync-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px; background: var(--sunk); border-radius: var(--r); margin-top: 18px; flex-wrap: wrap; }
.sync-box small { display: block; color: var(--muted); font-size: 13px; }
.form .btn.primary, form.panel > .btn.primary { margin-top: 6px; }

/* =================================================== PLATFORMBEHEER */
.beheer { min-height: 100vh; display: flex; flex-direction: column; }
.bh-top { display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: var(--brand); color: var(--cream); }
.bh-brand { display: flex; align-items: center; gap: 12px; }
.bh-brand .logo-tile { width: 38px; height: 38px; border-radius: 11px; }
.bh-brand .logo-tile img { width: 26px; }
.bh-brand > span:not(.logo-tile), .logo-word > span { font-size: 13px; font-weight: 600; color: var(--plum); background: var(--orange); padding: 2px 9px; border-radius: 99px; }
.logo-word { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo-word .wordmark { height: 30px; }
.bh-version { font-size: 12.5px; color: var(--cream-2); margin-right: 8px; }
.bh-me { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bh-me .avatar { background: var(--cream); color: var(--brand); }
.btn.light { color: var(--cream); }
.btn.light:hover { background: rgba(254, 252, 246, .1); }
.bh-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.bh-list { padding: 40px 40px 56px; min-width: 0; }
.bh-detail { background: var(--card); border-left: 1px solid var(--line); padding: 28px 22px; position: relative; display: none; }
.bh-detail.open { display: block; }
.bh-main:has(.bh-detail:not(.open)) { grid-template-columns: 1fr; }
.bh-close { position: absolute; top: 12px; right: 12px; }
.data tr.sel td { background: var(--plum-soft); }
.bh-ch { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; opacity: .4; }
.bh-ch.ok { opacity: 1; background: var(--good-soft); }
.state.bad { background: var(--orange-soft); color: var(--orange-ink); }
.hint.center, .center { text-align: center; display: block; margin: 10px 0 0; }
.bh-users { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.bh-users li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bh-users small { overflow-wrap: anywhere; }
.bh-users small, .bh-log small { display: block; color: var(--muted); font-size: 12.5px; }
.bh-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
.bh-log li { border-left: 2px solid var(--line-2); padding-left: 12px; }
.beheer-auth { grid-template-columns: 1fr; background: var(--paper); }

/* ================================================= RESPONSIEF */
@media (max-width: 1700px) {
  .inbox { grid-template-columns: 340px minmax(0, 1fr) 290px; }
  .folders { position: fixed; left: var(--rail-w); top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(calc(-100% - 90px)); transition: transform .25s var(--ease); box-shadow: 20px 0 50px -20px rgba(66, 10, 56, .3); }
  .inbox.show-folders .folders { transform: none; }
  .folder-toggle { display: inline-grid; }
}
@media (max-width: 1320px) {
  .inbox { grid-template-columns: 330px minmax(0, 1fr); }
  .side-col { position: fixed; right: 0; top: 0; bottom: 0; width: 330px; z-index: 40; transform: translateX(100%); transition: transform .25s var(--ease); box-shadow: -20px 0 50px -20px rgba(66, 10, 56, .3); }
  .inbox.show-side .side-col { transform: none; }
  .side-toggle, .side-close { display: inline-grid; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .panel-row { grid-template-columns: 1fr 1fr; }
  .panel-row .panel:last-child { grid-column: 1 / -1; }
  .fiche { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 28px 120px; gap: 22px; }
  .auth-brand h1 { font-size: 30px; margin-bottom: 0; }
  .auth-brand p, .auth-points, .auth-brand > small { display: none; }
  .auth-ribbon { bottom: -10px; width: 110%; left: -5%; }
  .wizard { grid-template-columns: 1fr; }
  .wiz-side { position: static; height: auto; padding: 20px 22px; flex-direction: row; align-items: center; justify-content: space-between; }
  .wiz-intro, .wiz-steps, .wiz-ribbon { display: none; }
  .wiz-skip { margin: 0; }
  .wiz-body { padding: 32px 22px 22px; }
  .wiz-foot { padding: 14px 22px; max-width: none; }
  .settings { grid-template-columns: 220px 1fr; }
  .std, .dash, .set-body { padding: 30px 28px 48px; }
  .hero-ribbon { width: 95%; bottom: -20%; }
}
@media (max-width: 1000px) {
  .bh-main { grid-template-columns: 1fr; }
  .bh-detail.open { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 40; overflow: auto; box-shadow: -20px 0 50px -20px rgba(66, 10, 56, .35); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .bh-list { padding: 22px 16px; }
  .bh-top { padding: 12px 16px; }
  .bh-me { display: none; }
  .th-actions .assign { display: none; }
  .thread-head h2 small { display: none; }
  .inbox { grid-template-columns: 1fr; }
  .folders { left: 0; width: 84vw; }
  .inbox .thread-col { display: none; }
  .inbox.has-open .list-col { display: none; }
  .inbox.has-open .thread-col { display: flex; }
  .thread-head { padding: 10px 12px; gap: 8px; min-height: 62px; }
  .thread-head .back { display: inline-grid; }
  .th-title h2 { font-size: 17px; }
  .th-title p .subj { display: none; }
  .th-actions .btn { padding: 0 10px; font-size: 0; gap: 0; }
  .th-actions .btn .ic { font-size: 15px; }
  .messages { padding: 16px 12px 8px; }
  .composer-wrap { padding: 0 8px 8px; }
  .composer textarea { min-height: 72px; }
  .prop-head { min-width: 0; }
  .prop-sum { display: none; }
  #send-close { display: none; }
  .side-col { width: 100%; }
  .std, .dash, .set-body { padding: 20px 14px 40px; }
  h1, .page-head h1 { font-size: 26px; }
  .dash-hero { padding: 22px 18px 20px; border-radius: var(--r-lg); }
  .hero-top { margin-bottom: 20px; }
  .hero-top h1 { font-size: 28px; }
  .hero-ribbon { width: 150%; right: -40%; bottom: -10%; opacity: .45; }
  .hero-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fig { min-width: 0; padding: 12px; }
  .fig span { font-size: 12px; }
  .fig span .ic { display: none; }
  .fig b { font-size: 30px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .panel-row { grid-template-columns: 1fr; }
  .tile { padding: 16px; }
  .tile b { font-size: 24px; }
  .panel { padding: 18px; }
  .hide-s { display: none; }
  .data td, .data th { padding: 12px 12px; }
  .settings { grid-template-columns: 1fr; }
  .set-nav { position: static; height: auto; border-right: 0; background: transparent; }
  .settings.has-sec .set-nav { display: none; }
  .settings:not(.has-sec) .set-body { display: none; }
  .set-back { display: inline-flex; }
  .grid2, .seg3.two { grid-template-columns: 1fr; }
  .add-row { grid-template-columns: 1fr; }
  .hour-row { grid-template-columns: 1fr auto auto auto; padding: 8px 10px; gap: 6px; }
  .hour-row input[type=time] { width: 96px; padding: 6px; }
  .hour-row.closed .closed-txt { grid-column: 2 / -1; text-align: right; }
  .rule-line, .rule-line:last-child { grid-template-columns: 1fr 1fr; }
  .rule-line > span { grid-column: 1 / -1; }
  .wiz-head h1 { font-size: 28px; }
  .page-head { align-items: flex-start; }
  .auth-brand { padding: 22px 20px 90px; }
  .auth-brand h1 { font-size: 26px; }
  .modal { padding: 22px; border-radius: var(--r-lg); }
}

/* lege klantkolom verbergen als er geen gesprek open is */
.side-col:empty { display: none; }
.inbox:has(.side-col:empty) { grid-template-columns: 224px 360px minmax(0, 1fr); }
@media (max-width: 1700px) { .inbox:has(.side-col:empty) { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 760px) { .inbox:has(.side-col:empty) { grid-template-columns: 1fr; } }

/* ================================================================
   SCHIL 2: uitklapbaar menu, bovenbalk, zoeken, meldingen
   ================================================================ */
h6 { margin: 0; }
html[data-menu="open"] { --rail-w: 236px; }
html[data-menu="dicht"] { --rail-w: 76px; }
kbd { display: inline-block; font: 600 11px/1 var(--font); padding: 4px 6px; border-radius: 6px; background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -1px 0 var(--line-2); margin: 0 1px; }

.rail { width: var(--rail-w); flex: none; background: var(--rail-bg); color: var(--rail-ink); display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 12px; position: relative; z-index: 45; transition: width .22s var(--ease); overflow: hidden; }
html[data-rail="licht"] .rail { box-shadow: 1px 0 0 var(--line); }
.rail-top { display: flex; align-items: center; gap: 12px; padding: 2px 2px 18px; min-width: 0; }
.logo { width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; border-radius: 13px; background: var(--cream); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); flex: none; }
html[data-rail="licht"] .logo { box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.logo img { width: 31px; height: auto; display: block; }
.rail-co { min-width: 0; display: flex; flex-direction: column; }
.rail-co b { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-co small { color: var(--rail-ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-nav { display: grid; gap: 2px; }
.rail-link { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 11px; color: var(--rail-ink-2); text-decoration: none; font-size: 14px; font-weight: 500; border: 0; background: none; cursor: pointer; width: 100%; text-align: left; white-space: nowrap; transition: background .15s, color .15s; }
.rail-link .ic { width: 20px; height: 20px; }
.rail-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rail-link:hover { background: var(--rail-hover); color: var(--rail-ink); }
.rail-link.active { background: var(--rail-on); color: var(--rail-ink); font-weight: 600; }
.rail-link.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.badge { background: var(--orange); color: var(--brand); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 7px; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.3; }
.badge:empty { display: none; }
.rail-group { display: grid; gap: 1px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rail-line); }
.rail-group h6 { font-size: 12px; font-weight: 600; color: var(--rail-ink-2); padding: 0 12px 6px; opacity: .85; white-space: nowrap; }
.rail-quick { display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 12px; border: 0; background: none; border-radius: 10px; color: var(--rail-ink-2); font-size: 13.5px; cursor: pointer; text-align: left; white-space: nowrap; transition: background .15s, color .15s; }
.rail-quick span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.rail-quick:hover { background: var(--rail-hover); color: var(--rail-ink); }
.rail-quick b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-quick b.hot { background: var(--orange); color: var(--brand); padding: 1px 7px; border-radius: 99px; }
.rail-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--rail-line); }
.me-card { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-top: 6px; border: 0; border-radius: 12px; background: var(--rail-hover); color: var(--rail-ink); cursor: pointer; text-align: left; min-width: 0; transition: background .15s; }
.me-card:hover, .me-card.active { background: var(--rail-on); }
.me-card > span { display: flex; flex-direction: column; min-width: 0; }
.me-card b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card small { font-size: 12px; color: var(--rail-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .avatar { background: var(--cream); color: var(--brand); box-shadow: none; }
html[data-rail="licht"] .me-card .avatar { background: color-mix(in srgb, var(--av) 13%, var(--paper)); color: color-mix(in srgb, var(--av) 85%, #000); }

/* ingeklapt menu */
html[data-menu="dicht"] .rail { padding: 16px 10px 12px; align-items: center; }
html[data-menu="dicht"] .rail-co, html[data-menu="dicht"] .rail-group, html[data-menu="dicht"] .rail-link span, html[data-menu="dicht"] .me-card > span { display: none; }
html[data-menu="dicht"] .rail-top { padding: 2px 0 18px; }
html[data-menu="dicht"] .rail-link { width: 52px; justify-content: center; padding: 0; }
html[data-menu="dicht"] .rail-link.active::before { left: -10px; }
html[data-menu="dicht"] .rail-nav, html[data-menu="dicht"] .rail-foot { justify-items: center; width: 100%; }
html[data-menu="dicht"] .me-card { padding: 6px; background: none; }
html[data-menu="dicht"] .badge { position: absolute; top: 3px; right: 2px; padding: 1px 5px; min-width: 17px; font-size: 10px; box-shadow: 0 0 0 2px var(--rail-bg); }
html[data-menu="dicht"] .rail-collapse .ic { transform: scaleX(-1); }
html[data-menu="dicht"] .rail { overflow: visible; }
html[data-menu="dicht"] .rail-link[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 60; }

/* bovenbalk */
.topbar { display: flex; align-items: center; gap: 8px; height: 62px; flex: none; padding: 0 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); position: relative; z-index: 30; }
.top-logo { display: none; }
.cmdk-btn { display: flex; align-items: center; gap: 10px; width: min(480px, 100%); height: 40px; padding: 0 8px 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); color: var(--muted); cursor: pointer; font-size: 14px; text-align: left; transition: border-color .15s, background .15s; }
.cmdk-btn:hover { border-color: var(--line-2); background: var(--card); }
.cmdk-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; }
.dot-badge { position: absolute; top: 4px; right: 3px; background: var(--orange); color: var(--brand); font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); }
.dot-badge:empty { display: none; }
.demo-pill { background: var(--note); color: var(--note-ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; cursor: pointer; border: 0; font-family: inherit; box-shadow: inset 0 0 0 1px var(--note-line); }
.demo-pill:hover { box-shadow: inset 0 0 0 1px var(--note-ink); }
.keep-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.keep-list li { display: flex; gap: 10px; align-items: flex-start; }
.keep-list .ic { color: #2E7D4F; margin-top: 1px; }
#new-btn { margin-left: 4px; }

/* popovers */
.popover hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.me-menu { min-width: 260px; }
.popover.notif { width: 390px; padding: 0; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.notif-head b { font-family: var(--display); font-size: 16px; }
.notif-head .btn { width: auto !important; padding: 0 10px !important; }
.notif-list { max-height: min(62vh, 520px); overflow: auto; padding: 6px; }
.popover .notif-item { align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 12px; }
.notif-item.new { background: var(--plum-tint); }
.notif-item.new b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 7px; vertical-align: 2px; }
.notif-item > .grow { display: flex; flex-direction: column; gap: 1px; }
.notif-item small { color: var(--muted); font-size: 12px; }
.notif-item b { font-size: 14px; }
.notif-snip { color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--sunk); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.k-dringend .notif-ic { background: var(--orange-soft); color: var(--orange-ink); }
.k-toegewezen .notif-ic { background: var(--plum-soft); color: var(--plum); }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 36px 20px; color: var(--muted); text-align: center; }
.notif-empty .ic { color: var(--good); margin-bottom: 6px; }
.notif-empty b { color: var(--ink); font-family: var(--display); font-size: 16px; }

/* zoeken (Ctrl K) */
.palette-wrap { align-items: start; padding-top: 11vh; }
.palette { width: min(640px, 100%); background: var(--card); border-radius: 20px; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); overflow: hidden; animation: rise .2s var(--ease); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 62px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-input input { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 17px; padding: 0 !important; color: var(--ink); }
.pal-results { max-height: min(54vh, 480px); overflow: auto; padding: 6px 8px 10px; }
.pal-group h6 { font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 12px 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.pal-item.on { background: var(--plum-tint); }
.pal-item.on .pal-ic { background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--plum); }
.pal-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sunk); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.pal-item b { display: block; font-size: 14.5px; font-weight: 500; }
.pal-item small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pal-foot { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--sunk); font-size: 12px; color: var(--muted); }
.pal-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 20px; color: var(--muted); text-align: center; }
.pal-empty b { color: var(--ink); font-family: var(--display); font-size: 16px; margin-top: 6px; }

/* ================================================================ VANDAAG */
.today { padding: 28px 40px 64px; max-width: 1360px; margin: 0 auto; }
.today-skel { height: 250px; border-radius: var(--r-xl); background: var(--sunk); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.today-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--brand); color: var(--cream); border-radius: var(--r-xl); padding: 32px 36px 30px; box-shadow: 0 18px 36px -24px rgba(66, 10, 56, .55); }
.today-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 120% at 0% 0%, #5A1550 0%, transparent 65%); }
.today-hero .hero-ribbon { right: -6%; bottom: -40%; width: 64%; opacity: .75; }
.th-copy small { color: var(--cream-2); font-size: 14px; font-weight: 500; display: block; }
.th-copy small::first-letter { text-transform: uppercase; }
.th-copy h1 { font-size: 40px; letter-spacing: -.035em; margin: 6px 0 10px; }
.th-copy p { color: var(--cream-2); font-size: 17px; line-height: 1.5; max-width: 640px; margin: 0; }
.th-copy p b { color: var(--cream); font-weight: 600; }
.th-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.th-stats span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(254, 252, 246, .09); color: var(--cream-2); font-size: 13px; backdrop-filter: blur(6px); }
.th-stats b { color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.th-round { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-right: 6px; }
.ring-wrap { position: relative; width: 148px; height: 148px; border-radius: 50%; background: rgba(20, 2, 16, .28); backdrop-filter: blur(8px); }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(254, 252, 246, .13); }
.ring-fg { stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-txt b { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-txt small { color: var(--cream-2); font-size: 12.5px; margin-top: 2px; }
.ring-cap { font-size: 13px; font-weight: 600; color: var(--cream-2); }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 26px; align-items: start; }
.today-main { display: grid; gap: 28px; min-width: 0; }
.today-side { display: grid; gap: 14px; position: sticky; top: 0; }
.round-sec > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.round-sec h2 { font-size: 19px; display: flex; align-items: center; gap: 9px; }
.round-sec h2 .ic { color: var(--plum); }
.round-sec:first-child h2 .ic { color: var(--orange); }
.round-sec > header .btn { margin-left: auto; }
.count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--sunk-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.count.hot { background: var(--orange); color: var(--brand); }
.round-list { display: grid; gap: 12px; }
.round-card { position: relative; overflow: hidden; background: var(--card); border-radius: var(--r-lg); padding: 18px 20px 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); transition: opacity .3s, transform .3s var(--ease), box-shadow .2s; }
.round-card:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); }
.round-card.urgent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange); }
.round-card > header { display: flex; align-items: center; gap: 12px; }
.round-card > header b { font-size: 15.5px; display: block; }
.round-card > header small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-when { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.rc-quote { margin: 14px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--line-2); color: var(--ink-2); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rc-reply { position: relative; margin-top: 14px; padding: 12px 16px 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--plum) 4%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plum) 12%, transparent); }
.rc-reply::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #7A3570, var(--orange)); }
.rc-reply-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.rc-reply-head .ic { color: var(--orange); }
.rc-reply-head b { font-family: var(--display); color: var(--plum); font-size: 14px; font-weight: 600; }
.rc-reply-head span { color: var(--muted); }
.rc-text { margin-top: 8px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rc-edit { margin-top: 8px; min-height: 120px; resize: none; font-size: 14.5px; line-height: 1.6; }
.rc-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.round-card.is-done { background: var(--good-soft); box-shadow: none; padding: 14px 20px; }
.round-card.is-done::before { display: none; }
.rc-done { display: flex; align-items: center; gap: 10px; color: var(--good); font-weight: 600; font-size: 14.5px; }
.round-card.gone { opacity: 0; transform: translateY(-6px) scale(.99); }
.round-done { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 42px 20px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); color: var(--muted); text-align: center; }
.round-done .ic { color: var(--good); margin-bottom: 6px; }
.round-done b { font-family: var(--display); color: var(--ink); font-size: 17px; }
.mini-panel { padding: 18px 18px 14px; }
.mini-panel > header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mini-panel h2 { font-size: 15.5px; flex: 1; }
.mini-list { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 1px; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; text-decoration: none; color: var(--ink); }
.mini-list a:hover { background: var(--sunk); }
.mini-list b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mini-list time.late { color: var(--orange-ink); font-weight: 600; }
.ch-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ch-bars li { display: grid; grid-template-columns: 18px 92px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.ch-bars i { height: 8px; border-radius: 99px; background: linear-gradient(var(--c), var(--c)) no-repeat left / var(--w) 100%, var(--sunk-2); }
.ch-bars b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ======================================================= MIJN INSTELLINGEN */
.me-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100%; }
.me-nav { padding: 28px 16px; border-right: 1px solid var(--line); position: sticky; top: 0; align-self: start; height: 100%; }
.me-id { display: flex; align-items: center; gap: 14px; padding: 4px 10px 22px; }
.me-id .avatar { width: 52px; height: 52px; font-size: 18px; }
.me-id b { display: block; font-family: var(--display); font-size: 17px; }
.me-id small { color: var(--muted); font-size: 13px; }
.me-nav nav { display: grid; gap: 2px; }
.me-nav nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; text-decoration: none; color: var(--ink-2); font-size: 14px; transition: background .15s; }
.me-nav nav a .ic { color: var(--muted); }
.me-nav nav a:hover { background: var(--plum-tint); }
.me-nav nav a.active { background: var(--card); color: var(--plum); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.me-nav nav a.active .ic { color: var(--plum); }
.me-nav .hint { display: block; padding: 18px 12px 0; line-height: 1.5; }
.me-body { padding: 36px 48px 64px; max-width: 880px; width: 100%; }
.me-head { margin-bottom: 22px; }
.me-head h1 { font-size: 30px; }
.me-head .lead { color: var(--muted); font-size: 15px; margin-top: 6px; }
.me-body .panel + .panel { margin-top: 14px; }
.set-block h2 { font-size: 16.5px; margin-bottom: 4px; }
.set-block h2 + .choice, .set-block h2 + .swatches { margin-top: 14px; }
.set-block .muted.small { margin: 0 0 14px; }
.set-block .switch-label.row:first-child { padding-top: 0; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.prof-row { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw span { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .15s var(--ease); }
.sw:hover span { transform: scale(1.06); }
.sw input:checked + span { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.sw input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 5px; }
.swatches.big { gap: 18px; }
.swatches.big .sw span { width: 46px; height: 46px; border-radius: 14px; }
.swatches.big small { font-size: 12.5px; color: var(--muted); }
.sw input:checked ~ small { color: var(--ink); font-weight: 600; }
.sw span.sw-light { box-shadow: inset 0 0 0 1px var(--line-2); }
.sw input:checked + span.sw-light { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.sw span.sw-accent { background: linear-gradient(135deg, var(--plum) 50%, var(--plum-3) 50%); }
.choice { display: grid; gap: 12px; }
.ch-opt { cursor: pointer; }
.ch-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ch-opt > span { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px 10px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.ch-opt > span:hover { border-color: var(--line-3); }
.ch-opt b { font-size: 14px; font-weight: 600; padding: 0 4px; }
.ch-opt input:checked + span { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum) inset; }
.ch-opt input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.choice.themes { grid-template-columns: repeat(3, 1fr); }
.tp { display: flex; height: 92px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tp-rail { width: 22%; }
.tp-main { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.tp-main i { display: block; height: 8px; border-radius: 4px; }
.tp-main i:nth-child(1) { width: 55%; height: 11px; }
.tp-main i:nth-child(2) { width: 85%; }
.tp-main i:nth-child(3) { width: 70%; }
.tp-light { background: #FEFCF6; }
.tp-light .tp-rail { background: #420A38; }
.tp-light .tp-main i { background: #ECE4D8; }
.tp-light .tp-main i:nth-child(1) { background: #26101F; opacity: .8; }
.tp-dark { background: #140A12; }
.tp-dark .tp-rail { background: #1F0B1B; box-shadow: 1px 0 0 #2F1F2B; }
.tp-dark .tp-main i { background: #2F1F2B; }
.tp-dark .tp-main i:nth-child(1) { background: #F4EBF0; opacity: .8; }
.tp-auto { background: linear-gradient(115deg, #FEFCF6 50%, #140A12 50%); }
.tp-auto .tp-rail { background: #420A38; }
.tp-auto .tp-main i { background: linear-gradient(115deg, #ECE4D8 50%, #2F1F2B 50%); }
.tp-auto .tp-main i:nth-child(1) { background: linear-gradient(115deg, #26101F 50%, #F4EBF0 50%); opacity: .8; }
.choice.seg-choice { display: inline-flex; gap: 2px; background: var(--sunk); padding: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.seg-choice .ch-opt > span { flex-direction: row; padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; }
.seg-choice .ch-opt b { font-weight: 500; font-size: 13.5px; padding: 0; color: var(--ink-2); }
.seg-choice .ch-opt input:checked + span { background: var(--card); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.seg-choice .ch-opt input:checked + span b { color: var(--plum); font-weight: 600; }
.choice.cards3 { grid-template-columns: repeat(3, 1fr); }
.cards3 .ch-opt > span { flex-direction: row; align-items: center; padding: 14px 16px; }
.cards3 .ch-opt .ic { color: var(--plum); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0 14px; }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.keys li:last-child { border-bottom: 0; }
.keys li span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ================================================================ COMPACT */
html[data-density="compact"] body { font-size: 14px; }
html[data-density="compact"] .conv { padding: 9px 10px; gap: 10px; }
html[data-density="compact"] .conv-snip { -webkit-line-clamp: 1; }
html[data-density="compact"] .conv-meta { margin-top: 5px; }
html[data-density="compact"] .data td { padding: 9px 14px; }
html[data-density="compact"] .data th { padding: 10px 14px; }
html[data-density="compact"] .panel { padding: 18px; }
html[data-density="compact"] .std, html[data-density="compact"] .dash, html[data-density="compact"] .today { padding-top: 24px; }
html[data-density="compact"] .rail-link { height: 36px; }
html[data-density="compact"] .round-card { padding: 14px 16px 12px; }
html[data-density="compact"] .round-list { gap: 8px; }
html[data-density="compact"] .messages { gap: 8px; }
html[data-density="compact"] .btn { min-height: 36px; }
html[data-density="compact"] .topbar { height: 54px; }

/* ================================================================ DONKER */
html[data-theme="dark"] .avatar { background: color-mix(in srgb, var(--av) 40%, var(--card)); color: color-mix(in srgb, var(--av) 30%, #fff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
html[data-theme="dark"] .tag[style] { filter: saturate(.9) brightness(.92); }
html[data-theme="dark"] .bubble { box-shadow: 0 0 0 1px var(--line); }
html[data-theme="dark"] .msg.out .bubble { box-shadow: none; }
html[data-theme="dark"] .logo-tile, html[data-theme="dark"] .logo { box-shadow: none; }
html[data-theme="dark"] .rc-reply::before { background: linear-gradient(180deg, #C86A86, var(--orange)); }
html[data-theme="dark"] .auth-card .auth-wordmark, html[data-theme="dark"] .logo-word .wordmark { background: var(--cream); padding: 8px 12px; border-radius: 12px; box-sizing: content-box; }
html[data-theme="dark"] .empty-thread::before { opacity: .3; }
html[data-theme="dark"] select { background-color: var(--card); }

/* ================================================================ RESPONSIEF (schil) */
@media (max-width: 1100px) {
  html[data-menu="open"] { --rail-w: 76px; }
  html[data-menu="open"] .rail { padding: 16px 10px 12px; align-items: center; }
  html[data-menu="open"] .rail-co, html[data-menu="open"] .rail-group, html[data-menu="open"] .rail-link span, html[data-menu="open"] .me-card > span, .rail-collapse { display: none !important; }
  html[data-menu="open"] .rail-link { width: 52px; justify-content: center; padding: 0; }
  html[data-menu="open"] .rail-nav, html[data-menu="open"] .rail-foot { justify-items: center; width: 100%; }
  html[data-menu="open"] .me-card { padding: 6px; background: none; }
  html[data-menu="open"] .badge { position: absolute; top: 3px; right: 2px; padding: 1px 5px; min-width: 17px; font-size: 10px; box-shadow: 0 0 0 2px var(--rail-bg); }
  .today-grid { grid-template-columns: 1fr; }
  .today-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .me-page { grid-template-columns: 230px minmax(0, 1fr); }
  .me-body { padding: 30px 28px 48px; }
  .today { padding: 24px 28px 48px; }
}
@media (max-width: 760px) {
  :root, html[data-menu] { --rail-w: 0px; }
  .shell { flex-direction: column-reverse; }
  .rail { width: 100% !important; height: 66px; flex-direction: row; align-items: center !important; padding: 0 8px env(safe-area-inset-bottom) !important; gap: 0; overflow: visible; }
  .rail-top, .rail-group, .rail-collapse { display: none !important; }
  .rail-nav { display: flex; flex: 1; justify-content: space-around; }
  .rail-link { flex-direction: column; justify-content: center; gap: 3px; height: 56px; width: auto !important; flex: 1; padding: 0 !important; font-size: 11px; }
  .rail-link span { display: block !important; flex: none; }
  .rail-link .ic { width: 22px; height: 22px; }
  .rail-link.active::before { left: 30%; right: 30%; top: -5px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .rail-foot { display: flex !important; margin: 0; padding: 0 0 0 6px; border: 0; }
  .rail-foot .rail-link { display: none; }
  .me-card { margin: 0; padding: 6px !important; background: none !important; }
  .me-card > span { display: none !important; }
  .badge { position: absolute; top: 4px; left: 54%; padding: 1px 5px; min-width: 17px; font-size: 10px; box-shadow: 0 0 0 2px var(--rail-bg); }
  .topbar { padding: 0 12px; height: 58px; gap: 6px; }
  .top-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--cream); box-shadow: 0 0 0 1px var(--line); flex: none; }
  .top-logo img { width: 26px; }
  .cmdk-btn { width: auto; flex: 1; }
  .cmdk-btn kbd { display: none; }
  #new-btn span, .demo-pill { display: none; }
  #new-btn { width: 40px; padding: 0; }
  .popover.notif { width: auto; }
  .palette-wrap { padding-top: 12px; }
  .today { padding: 14px 12px 40px; }
  .today-hero { grid-template-columns: 1fr; padding: 22px 20px; gap: 16px; }
  .th-copy h1 { font-size: 28px; }
  .th-copy p { font-size: 15px; }
  .th-round { flex-direction: row; justify-content: flex-start; }
  .ring-wrap { width: 92px; height: 92px; }
  .ring-txt b { font-size: 28px; }
  .today-hero .hero-ribbon { width: 150%; right: -50%; bottom: -12%; opacity: .4; }
  .rc-when { display: none; }
  .round-card { padding: 14px 14px 12px; }
  .rc-actions .btn.ghost[data-act="skip"] { padding: 0 8px; }
  .me-page { grid-template-columns: 1fr; }
  .me-nav { position: static; height: auto; border: 0; padding: 18px 12px 0; }
  .me-nav nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .me-nav nav a { white-space: nowrap; flex: none; box-shadow: 0 0 0 1px var(--line); }
  .me-nav .hint, .me-id { display: none; }
  .me-body { padding: 16px 12px 40px; }
  .choice.themes, .choice.cards3, .set-grid { grid-template-columns: 1fr; }
  .choice.themes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tp { height: 64px; }
  .prof-row { flex-direction: column; align-items: flex-start; }
}

/* ================================================================ KLANTFICHE */
.fiche-hero { display: flex; align-items: center; gap: 22px; padding: 26px 28px; background: var(--card); border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); position: relative; overflow: hidden; flex-wrap: wrap; }
.fiche-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--plum) 10%, transparent), transparent 70%); pointer-events: none; }
.fiche-hero h1 { font-size: 32px; letter-spacing: -.03em; }
.fiche-hero .lead { color: var(--muted); font-size: 15px; margin-top: 4px; }
.fiche-src { margin-top: 10px; }
.fiche-actions { display: flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.fiche-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 14px 0 22px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.fiche-stats > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fiche-stats > div + div { border-left: 1px solid var(--line); }
.fiche-stats small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.fiche-stats b { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fiche-stats b.txt { font-size: 17px; padding-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-stats b.is-open { color: var(--orange-ink); }
.fiche-stats b.chs { display: flex; gap: 8px; padding-top: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px 12px; font-size: 14.5px; font-weight: 500; color: var(--muted); cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--plum); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--plum); }
.tabs button span { font-size: 11.5px; font-weight: 700; background: var(--sunk-2); color: var(--ink-2); padding: 1px 7px; border-radius: 99px; }
.fiche-page .timeline a { padding: 14px 12px; }

/* klantpaneel in de inbox */
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 16px; border-radius: var(--r); background: var(--sunk); }
.side-stats > div { padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.side-stats > div + div { border-left: 1px solid var(--line); }
.side-stats b { font-family: var(--display); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-stats small { color: var(--muted); font-size: 11.5px; }
.side-actions { display: flex; gap: 8px; margin-top: 4px; }
.icon-btn.boxed { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); background: var(--card); }
.side-actions .btn.grow { flex: 1; min-height: 36px; }

/* drukste uren */
.heat-grid { display: grid; grid-template-columns: 30px repeat(16, 1fr); gap: 4px; align-items: center; }
.heat-grid span { font-size: 11.5px; color: var(--muted); }
.heat-grid .hh { text-align: left; white-space: nowrap; }
.heat-grid i { display: block; aspect-ratio: 1.6; max-height: 30px; border-radius: 6px; background: color-mix(in srgb, var(--plum) var(--p), var(--sunk)); }
.heat-grid i[data-n] { cursor: help; }
.heat-grid i:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px 0 0; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.heat-scale { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.heat-scale i { width: 14px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--plum) var(--p), var(--sunk)); }

@media (max-width: 1100px) {
  .fiche-stats { grid-template-columns: repeat(3, 1fr); }
  .fiche-stats > div:nth-child(4) { border-left: 0; }
  .fiche-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .cmdk-btn { min-width: 0; }
  .topbar .grow { display: none; }
  .rail-nav { min-width: 0; }
  .fiche-hero { padding: 18px; gap: 14px; }
  .fiche-hero h1 { font-size: 24px; }
  .fiche-actions { width: 100%; }
  .fiche-stats { grid-template-columns: 1fr 1fr; }
  .fiche-stats > div { padding: 12px 14px; }
  .fiche-stats > div:nth-child(odd) { border-left: 0; }
  .fiche-stats > div:nth-child(4) { border-left: 1px solid var(--line); }
  .fiche-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .heat-grid { grid-template-columns: 22px repeat(16, 1fr); gap: 2px; }
  .heat-grid i { border-radius: 3px; }
  .heat-grid .hh { font-size: 9.5px; }
}
@media (max-width: 760px) {
  html[data-menu] .rail-nav { display: flex; flex: 1; width: auto; min-width: 0; justify-content: space-around; }
  html[data-menu] .rail-link { flex: 1 1 0; min-width: 0; width: auto !important; }
  html[data-menu] .rail-link.active { background: none; color: var(--rail-ink); }
  html[data-menu] .rail-link span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .rail-foot { flex: none; }
  .th-stats span:nth-child(n+3) { display: none; }
  .th-stats { margin-top: 16px; }
  .th-round { gap: 14px; }
}
.wiz-foot { z-index: 5; }
@media (max-width: 760px) { html[data-menu] .rail-foot { width: auto; } }
@media (max-width: 760px) {
  html[data-menu] .rail-link span { display: block !important; }
  html[data-menu] .badge { top: 2px; left: calc(50% + 4px); right: auto; }
}

/* Ochtendronde op gsm: labels onder de naam */
@media (max-width:760px){
  .round-card header{flex-wrap:wrap;row-gap:8px}
  .round-card header .grow{flex:1 1 55%;min-width:0}
  .round-card header .rc-when{order:2}
  .round-card header .tag{order:3}
  .round-card header .tag:first-of-type{margin-left:50px}
}

/* Mail koppelen: Microsoft of andere mailbox */
.mail-pick{display:grid;gap:10px;margin:6px 0 4px}
.mail-opt{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s}
.mail-opt:hover:not(:disabled){border-color:var(--plum);box-shadow:0 0 0 3px var(--plum-tint)}
.mail-opt:disabled{opacity:.55;cursor:not-allowed}
.mail-opt>span:not(.ms-logo){flex:1;display:grid;gap:2px}
.mail-opt small{color:var(--ink-2);font-size:13px}
.mail-opt.main{border-color:color-mix(in srgb,var(--plum) 35%,var(--line));background:color-mix(in srgb,var(--plum) 4%,var(--card))}
.ms-logo{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:22px;height:22px;flex:none}
.ms-logo i:nth-child(1){background:#F25022}.ms-logo i:nth-child(2){background:#7FBA00}.ms-logo i:nth-child(3){background:#00A4EF}.ms-logo i:nth-child(4){background:#FFB900}
.ms-linked{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:12px;background:var(--plum-soft);margin-bottom:12px}
.ms-linked div{display:grid}.ms-linked small{color:var(--ink-2)}
.state.warn{background:color-mix(in srgb,var(--orange) 16%,transparent);color:color-mix(in srgb,var(--orange) 70%,var(--ink))}
.ms-setup{display:grid;gap:10px;padding:16px 18px;border-radius:14px;background:var(--sunk);color:var(--ink)}
.ms-setup ol{margin:0;padding-left:20px;display:grid;gap:6px;font-size:13.5px;color:var(--ink-2)}
.ms-setup a{color:var(--plum);font-weight:600}
.ms-setup .copy{display:inline-flex;align-items:center;gap:6px;border:1px dashed var(--line);background:var(--card);color:var(--ink);border-radius:8px;padding:2px 8px;font:12.5px/1.6 ui-monospace,Consolas,monospace;cursor:pointer;word-break:break-all}
.ms-row{display:flex;gap:8px}.ms-row input{flex:1;min-width:0}
@media (max-width:760px){.ms-row{flex-direction:column}}
.linkish{justify-self:start;background:none;border:0;padding:0 2px;color:var(--ink-2);font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.linkish:hover{color:var(--plum)}
.auto-guard{display:grid;gap:8px;padding:14px 16px;border-radius:14px;background:var(--sunk);margin-bottom:14px}
.auto-guard.on{background:color-mix(in srgb,var(--orange) 10%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orange) 35%,transparent)}
.auto-guard p{margin:0}
.auto-guard.locked{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb,#2E7D4F 9%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,#2E7D4F 25%,transparent)}
.auto-guard.locked .ic{color:#2E7D4F;margin-top:2px}
.auto-guard.locked span{display:grid;gap:2px}.auto-guard.locked small{color:var(--ink-2)}
.hour-row .dash{display:inline;height:auto;min-height:0;margin:0;padding:0;align-self:center;text-align:center}

/* ============================================================ modules & logboek */
.lead-small { color: var(--muted); font-size: 14.5px; margin: -10px 0 20px; max-width: 60ch; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mod-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); cursor: pointer; transition: box-shadow .2s; }
.mod-card.on { box-shadow: 0 0 0 2px var(--plum), var(--shadow-1); }
.mod-card.soon { cursor: default; opacity: .72; box-shadow: 0 0 0 1px var(--line); background: var(--sunk); }
.mod-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--plum-tint); color: var(--plum); }
.mod-card.soon .mod-ic { background: var(--sunk-2); color: var(--muted); }
.mod-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mod-txt b { font-family: var(--display); font-size: 16.5px; font-weight: 600; }
.mod-txt small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.log-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.switch-label.inline { align-items: center; font-size: 14px; }
.log-panel { padding: 6px 20px; }
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.log-list li:last-child { border-bottom: 0; }
.log-list .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.log-list .grow b { font-weight: 600; font-size: 14px; }
.log-list .grow small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); color: var(--ink-2); flex: none; }
.log-list li.sent .log-ic { background: var(--orange-soft); color: var(--orange-ink); }
.log-who { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.log-who small { color: var(--ink-2); font-size: 12.5px; }
.log-who time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.today-grid.one { grid-template-columns: minmax(0, 640px); }
.wk-nets { display: inline-flex; gap: 2px; flex: none; width: 46px; }
.hero-btn { background: #FEFCF6; color: #420A38; border-color: transparent; font-weight: 600; }
.hero-btn:hover { background: #fff; border-color: transparent; }

/* ============================================================ contentstudio */
.ic.net { fill: none; stroke: currentColor; }
.ic.xs { width: 13px; height: 13px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cal { padding: 18px; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.cal-head h2 { font-size: 21px; min-width: 190px; text-align: center; text-transform: capitalize; }
.cal-head .flip .ic { transform: scaleX(-1); }
.cal-head .btn { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cal-dow { background: var(--sunk); padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.cal-day { background: var(--card); min-height: 116px; padding: 6px 6px 30px; position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background .15s; }
.cal-day.out { background: color-mix(in srgb, var(--sunk) 60%, var(--card)); }
.cal-day.out .cal-num { color: var(--muted); opacity: .6; }
.cal-day.past .post-chip { opacity: .7; }
.cal-day.drop, .idea-list.drop { background: var(--plum-tint); }
.cal-num { font-size: 12.5px; font-weight: 600; color: var(--ink-2); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.cal-day.is-today .cal-num { background: var(--orange); color: #fff; }
.cal-add { position: absolute; left: 6px; bottom: 5px; width: 24px; height: 22px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: .15s; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-add:hover { background: var(--plum-tint); color: var(--plum); }
@media (hover: none) { .cal-add { opacity: .7; } }

.post-chip { --st: var(--muted); display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; border: 0; text-align: left; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.25; padding: 5px 7px; border-radius: 8px; background: color-mix(in srgb, var(--st) 11%, var(--card)); color: var(--ink); box-shadow: inset 3px 0 0 var(--st); transition: transform .12s, box-shadow .12s; }
.post-chip:hover { box-shadow: inset 3px 0 0 var(--st), 0 0 0 1px color-mix(in srgb, var(--st) 40%, transparent); }
.post-chip.dragging { opacity: .4; }
.pc-nets { display: inline-flex; gap: 1px; flex: none; }
.pc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.pc-title time { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post-chip.big { flex-wrap: wrap; padding: 10px 12px; font-size: 13.5px; border-radius: 11px; }
.post-chip.big .pc-title { flex-basis: calc(100% - 60px); font-weight: 600; }
.post-chip.big .st { margin-left: auto; }

.st-b-idee { --st: #8A7F88; }
.st-b-concept { --st: #2F6B8F; }
.st-b-ter_goedkeuring { --st: #B7791F; }
.st-b-goedgekeurd { --st: var(--good); }
.st-b-gepubliceerd { --st: var(--plum); }
.st { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; }
.st-idee { background: var(--sunk); color: var(--ink-2); }
.st-concept { background: #E2EDF5; color: #1F4E6E; }
.st-ter_goedkeuring { background: var(--note); color: var(--note-ink); }
.st-goedgekeurd { background: var(--good-soft); color: var(--good); }
.st-gepubliceerd { background: var(--plum-tint); color: var(--plum); }
[data-theme="dark"] .st-concept { background: rgba(95, 160, 210, .15); color: #9CC8EA; }

.ideas { position: sticky; top: 16px; }
.ideas > header { margin-bottom: 6px; }
.ideas h2 { display: flex; align-items: center; gap: 8px; }
.ideas > p { margin: 0 0 14px; }
.idea-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 12px; margin-bottom: 14px; transition: background .15s; }
.idea-empty { color: var(--muted); font-size: 13px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 18px; text-align: center; margin: 0; }

.post-list { max-width: 860px; display: flex; flex-direction: column; gap: 8px; }
.pl-day { font-size: 14px; font-family: var(--font); font-weight: 600; color: var(--ink-2); margin: 18px 0 2px; }
.pl-day::first-letter { text-transform: uppercase; }
.pl-day:first-child { margin-top: 0; }
.post-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.post-row:hover { box-shadow: 0 0 0 1px var(--plum-3), var(--shadow-1); }
.post-row img, .pr-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.pr-ph { display: grid; place-items: center; background: var(--sunk); color: var(--muted); }
.post-row .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.post-row .grow b { font-size: 14.5px; }
.post-row .grow small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* editor */
.modal.xwide { width: min(1040px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.editor { display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 22px 26px 22px; }
.ed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.editor input.ed-title:not([type=checkbox]) { flex: 1; border: 0; background: transparent; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); padding: 4px 0; min-width: 0; border-bottom: 1.5px solid transparent; border-radius: 0; box-shadow: none; }
.editor input.ed-title:not([type=checkbox]):focus { outline: 0; border-bottom-color: var(--plum); box-shadow: none; }
.ed-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; }
.ai-btn { width: 100%; justify-content: center; background: var(--plum-tint); border-color: transparent; color: var(--plum); font-weight: 600; margin: -4px 0 18px; min-height: 44px; }
.ai-btn:hover { background: color-mix(in srgb, var(--plum) 16%, var(--card)); border-color: transparent; }
.ai-btn.busy .ic { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-hint { display: flex; gap: 6px; align-items: flex-start; margin: -10px 0 18px; }
.net-chip span { gap: 7px; }
.net-chip input:checked + span .ic.net { color: currentColor !important; }
.ed-when { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.img-drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; color: var(--ink-2); transition: .15s; }
.img-drop:hover { border-color: var(--plum-3); background: var(--plum-tint); }
.img-drop span { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.img-drop small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.img-has { display: flex; align-items: center; gap: 12px; }
.img-has img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }

.ed-right { background: var(--sunk); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.ed-tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.ed-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.ed-tabs button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.pv-card { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pv-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.pv-who > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pv-who b { font-size: 14px; }
.pv-who small { color: var(--muted); font-size: 12px; }
.pv-av { width: 36px; height: 36px; border-radius: 50%; background: var(--plum); color: var(--on-accent); display: grid; place-items: center; font-family: var(--display); font-weight: 600; flex: none; }
.pv-linkedin .pv-av { border-radius: 8px; }
.pv-text { border: 0 !important; box-shadow: none !important; background: transparent !important; resize: none; width: 100%; padding: 8px 14px 14px; font-size: 14.5px; line-height: 1.55; min-height: 180px; color: var(--ink); }
.pv-text:focus { outline: 0; }
.pv-img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pv-foot small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pv-foot small.over { color: var(--orange-ink); font-weight: 600; }

.ed-status { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.ed-st-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.st-seg { flex-wrap: wrap; }
.ed-pub { display: none; }
.ed-pub.show { display: flex; }
.danger-text { color: var(--orange-ink); }
.editor .modal-foot { align-items: center; }
.editor .modal-foot .grow { flex: 1; }

@media (max-width: 1100px) {
  .cal-layout { grid-template-columns: 1fr; }
  .ideas { position: static; }
}
@media (max-width: 760px) {
  .ed-cols { grid-template-columns: 1fr; }
  .editor { padding: 18px 16px; }
  .editor input.ed-title:not([type=checkbox]) { font-size: 20px; }
  .modal.xwide { max-height: 100vh; border-radius: 18px 18px 0 0; }
  .cal-day { min-height: 70px; padding: 4px 3px 24px; }
  .post-chip { padding: 4px; }
  .post-chip .pc-title { display: none; }
  .post-row { padding: 10px; gap: 10px; }
  .post-row .st { display: none; }
  .log-who { display: none; }
  .head-actions { width: 100%; justify-content: space-between; }
}

/* ============================================================ mailstudio */
.ms-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.ms-step { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); text-decoration: none; transition: box-shadow .15s; }
.ms-step:hover { box-shadow: 0 0 0 1px var(--plum-3); }
.ms-step.on { box-shadow: 0 0 0 2px var(--plum); color: var(--ink); }
.ms-step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--sunk); color: var(--ink-2); }
.ms-step.on .ms-step-n { background: var(--plum); color: var(--on-accent); }
.ms-step-l { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.ms-step b { font-family: var(--display); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.head-actions .icon-btn.on { background: var(--plum-tint); color: var(--plum); }
.ms-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.ms-two.wide-left { grid-template-columns: 1.3fr 1fr; }
.ms-page .panel h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ms-page .panel > header h2 { margin: 0; }
.ms-page .panel + .panel { margin-top: 16px; }
.ms-two .panel + .panel { margin-top: 0; }
.ms-drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; cursor: pointer; margin-top: 14px; transition: .15s; }
.ms-drop:hover, .ms-drop.over { border-color: var(--plum); background: var(--plum-tint); }
.ms-drop span { display: flex; flex-direction: column; font-weight: 600; }
.ms-drop small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ms-result { min-height: 20px; margin: 12px 0 0; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ms-result.good { color: var(--good); }
.ms-result.bad { color: var(--orange-ink); }
label.btn input[type=file] { display: none; }
.ms-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }
.ms-bar { height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; margin: 14px 0 10px; }
.ms-bar i { display: block; height: 100%; background: var(--plum); border-radius: 99px; transition: width .6s var(--ease); }
.ms-prog { margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-list li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ms-list li:last-child { border-bottom: 0; }
.ms-list li > button, .ms-list li > span:first-child { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; min-width: 0; }
.ms-list small { color: var(--muted); font-size: 12.5px; }
.ms-checks { list-style: none; margin: 4px 0 0; padding: 0; }
.ms-checks li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ms-checks li:last-child { border-bottom: 0; }
.ms-checks .grow { display: flex; flex-direction: column; gap: 2px; }
.ms-checks small { color: var(--muted); font-size: 12.5px; }
.ms-ck { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); flex: none; }
.ms-checks li.ok .ms-ck { background: var(--good-soft); color: var(--good); }

.rv { max-width: 760px; }
.rv-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.rv-keys kbd { font: 600 11px var(--font); background: var(--sunk); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; margin: 0 2px 0 8px; }
.rv-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.rv-head h2 { font-size: 22px; margin: 0 0 2px !important; }
.rv-proof { margin: -4px 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--good-soft); }
.rv-proof blockquote { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.rv-proof figcaption { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--good); flex-wrap: wrap; }
.rv-proof a { color: inherit; }
.rv-note { display: flex; gap: 6px; align-items: center; margin: -6px 0 14px; }
.rv-mail { border-top: 1px solid var(--line); padding-top: 12px; }
.rv-mail summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.rv-subj { margin: 12px 0 6px; }
.rv-body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); background: var(--sunk); border-radius: 12px; padding: 14px; }
.rv-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.rv-actions .grow, .modal-foot .grow { flex: 1; }

.ms-filter { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ms-filter .search { flex: 1; min-width: 220px; margin: 0; }
.ms-st { display: inline-flex; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--sunk); color: var(--ink-2); font-family: var(--font); letter-spacing: 0; vertical-align: middle; }
.ms-st-te_controleren { background: var(--note); color: var(--note-ink); }
.ms-st-goedgekeurd { background: var(--good-soft); color: var(--good); }
.ms-st-verzonden { background: var(--plum-tint); color: var(--plum); }
.ms-st-niet_gelukt { background: var(--orange-soft); color: var(--orange-ink); }
.ms-recip { list-style: none; margin: 14px 0; padding: 0; max-height: 340px; overflow: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.ms-recip li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ms-recip li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ms-agree { align-items: center; margin-top: 14px; }
.ms-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 40%); display: flex; justify-content: flex-end; }
.ms-set .panel + .panel { margin-top: 16px; }

@media (max-width: 900px) {
  .ms-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-two, .ms-two.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ms-step { padding: 10px 12px; gap: 8px; }
  .ms-step-l .ic, .ms-step-n { display: none; }
  .ms-step { grid-template-columns: 1fr auto; }
  .ms-step b { font-size: 15px; }
  .rv-keys { display: none; }
}

/* contentstudio 4.2: versies, feedback, goedkeuring, prullenbak */
.ed-ver { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ed-more { border-top: 1px solid var(--line); padding: 10px 0; }
.ed-more:last-of-type { border-bottom: 1px solid var(--line); }
.ed-more > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.ed-more > summary::-webkit-details-marker { display: none; }
.ed-more > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.ed-more[open] > summary::after { transform: rotate(-135deg); }
.ed-more > summary .count { font-size: 12px; font-weight: 600; color: var(--muted); }
.ed-more[open] > summary { margin-bottom: 10px; }
.ed-more .field { margin-top: 12px; }
.ed-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ed-links:empty { display: none; }
.fb-new { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.fb-new textarea { width: 100%; }
.fb-item { background: var(--sunk); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.fb-item p { margin: 0 0 4px; font-size: 14px; white-space: pre-wrap; }
.fb-item small { color: var(--muted); font-size: 12px; }
.fb-item.old { opacity: .65; }
.v-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.v-item:last-child { border-bottom: 0; }
.v-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.v-head button, .v-head > .muted { margin-left: auto; }
.v-item > small { color: var(--muted); font-size: 12px; }
.v-item details summary { cursor: pointer; color: var(--plum); margin-top: 6px; }
.v-text { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.v-text p { margin: 0; font-size: 13px; white-space: pre-wrap; color: var(--ink-2); }
.btn.xs { padding: 3px 9px; min-height: 0; font-size: 12.5px; }
.dot-warn { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-ink); display: inline-block; margin-left: 2px; }
.acc-note { align-items: center; flex-wrap: wrap; margin-top: 12px; background: color-mix(in srgb, var(--orange-ink) 9%, var(--card)); }
.acc-note > span { flex: 1; min-width: 180px; }
.btn.approve { background: var(--good); border-color: var(--good); color: #fff; font-weight: 600; }
.btn.approve:hover { filter: brightness(1.08); }
.appr-ok { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--good); background: var(--good-soft); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.pub-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pub-row { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; background: var(--sunk); border-radius: 10px; padding: 5px 6px 5px 10px; }
.pub-row select { min-height: 0; padding: 4px 30px 4px 8px; font-size: 13px; width: auto; background-position: right 8px center; }
.pub-note { flex-basis: 100%; display: flex; gap: 6px; align-items: center; margin: 0; }
.pc-fb { margin-left: auto; color: var(--orange-ink); display: inline-flex; }
.pr-cat { font-size: 11.5px; font-weight: 500; color: var(--muted); background: var(--sunk); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.tr-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow: auto; }
.tr-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tr-row .grow { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tr-row small { color: var(--muted); font-size: 12px; }
.tr-import { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tr-import h3 { margin: 0 0 4px; font-size: 15px; }
@media (max-width: 760px) {
  .pub-list { width: 100%; }
  .pub-row { flex: 1 1 100%; }
  .pub-row select { margin-left: auto; }
  .ed-status .btn.approve { width: 100%; justify-content: center; }
  #c-more span { display: none; }
}

/* inplannen via Meta */
.soc-panel { margin-bottom: 18px; }
.soc-head { display: flex; align-items: center; gap: 10px; }
.soc-head h2 { margin: 0; font-size: 18px; }
.soc-list { display: flex; flex-direction: column; margin: 10px 0; }
.soc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.soc-row .grow { display: flex; flex-direction: column; flex: 1; }
.soc-row small { color: var(--muted); font-size: 12px; }
.soc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub-row.on { background: var(--good-soft); }
.pub-auto { font-size: 13px; color: var(--good); }
.test-note { background: var(--plum-tint); margin: 0 0 14px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.plan-item { display: flex; flex-direction: column; gap: 8px; background: var(--sunk); border-radius: 14px; padding: 12px 14px; }
.plan-item.off { opacity: .8; }
.plan-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.plan-text { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); max-height: 160px; overflow: auto; }
.plan-item img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.ed-more > summary .count:empty { display: none; }
