/* Cohezy Leads – zelfde huisstijl als Cohezy Rapportage. Kleuren aanpassen? Wijzig enkel de variabelen hieronder. */
:root {
  --ink: #0B0B0C;
  --ink-2: #1A1A1C;
  --ink-3: #2A2A2D;
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --accent: #FF5A1F;
  --accent-ink: #C93D0B;
  --accent-soft: #FFF1EB;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --line: #E6E4DF;
  --line-2: #D8D5CE;
  --ok: #1E9E5A;
  --ok-soft: #E7F6EE;
  --warn: #B7791F;
  --warn-soft: #FFF6E0;
  --err: #D64545;
  --err-soft: #FDECEC;
  --info: #24408E;
  --info-soft: #EEF3FF;
  --hover: #FBFAF8;
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 8px 24px rgba(11, 11, 12, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 26px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .word { font: 900 18px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.brand .word small { display: block; font: 600 10px/1.4 var(--font); letter-spacing: .18em; color: var(--accent); margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font: 700 10px var(--font); letter-spacing: .16em; text-transform: uppercase; color: #6f6f6f; padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #C9C9C9; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.active { background: var(--ink-3); color: #fff; }
.nav a.active .ico { color: var(--accent); }
.nav a .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav a .count.dim { background: var(--ink-3); color: #C9C9C9; }
.ico { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: none; }
.ico svg { width: 18px; height: 18px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--ink-3); font-size: 12px; color: var(--muted-2); display: grid; gap: 6px; }
.side-foot .row { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.dot.on { background: var(--ok); }
.dot.off { background: #555; }
.dot.demo { background: var(--accent); }
.dot.late { background: var(--err); box-shadow: 0 0 0 3px rgba(214, 69, 69, .15); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 32px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.crumbs { font-size: 13px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs b { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.view { padding: 28px 32px 64px; max-width: 1360px; width: 100%; }
.view.flush { padding: 0; max-width: none; }

/* ---------- typography ---------- */
h1, h2, h3, .h { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; line-height: 1.05; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 14px; font-weight: 800; }
.lead { color: var(--muted); margin: 8px 0 0; max-width: 680px; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.accent { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font: 700 11px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .05s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-3); }
.btn.good { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.good:hover { background: #17824a; border-color: #17824a; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(11, 11, 12, .05); }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.xs { padding: 4px 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .ico svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .v { font: 900 34px/1.1 var(--font-head); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark .l, .stat.dark .s { color: var(--muted-2); }
.stat.dark .v { color: var(--accent); }
.stat.alert .v { color: var(--err); }

/* ---------- client cards ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.client { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; cursor: pointer; text-align: left; }
.client:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.client-top { display: flex; gap: 12px; align-items: center; }
.logo-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; flex: none; font: 900 16px var(--font-head); color: #fff; }
.logo-box.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.logo-box.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 8px; }
.client-name { font-weight: 700; font-size: 15px; }
.client-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; font: 700 10px var(--font); color: #fff; letter-spacing: .02em; flex: none; }
.chip.lg { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
.add-card { border: 1.5px dashed var(--line-2); background: transparent; display: grid; place-items: center; min-height: 170px; color: var(--muted); font-weight: 600; cursor: pointer; border-radius: var(--radius); gap: 8px; }
.add-card:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge.sm { font-size: 11px; padding: 2px 8px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--hover); }
.table td.r, .table th.r { text-align: right; }
.table-wrap { overflow-x: auto; }
.cell-client { display: flex; align-items: center; gap: 10px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field > label, .label { font-weight: 600; font-size: 13px; }
.field .hint { font-size: 12px; color: var(--muted); line-height: 1.45; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--radius-sm); padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 31, .15); }
.input.sm, .select.sm { padding: 7px 10px; font-size: 13px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row > .grow { flex: 1; min-width: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { background: none; border: 0; padding: 12px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--accent); }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: 13px; white-space: nowrap; }
.seg button.active { background: var(--ink); color: #fff; }
.seg button .n { opacity: .6; margin-left: 4px; font-weight: 500; }

/* ---------- callouts / empty ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: #7a2a08; line-height: 1.5; font-size: 13px; align-items: flex-start; }
.callout.info { background: var(--info-soft); color: var(--info); }
.callout.ok { background: var(--ok-soft); color: #145c37; }
.callout.warn { background: var(--warn-soft); color: #7a4f10; }
.callout b { color: inherit; }
.callout .grow { flex: 1; min-width: 0; }
.kbd { font-family: var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; word-break: break-all; }
.var-chip { font-family: var(--mono); font-size: 12px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.var-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.codebox { background: var(--ink); color: #e8e8e8; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(11, 11, 12, .55); display: grid; place-items: center; padding: 20px; z-index: 100; animation: fade .15s; }
.modal { background: var(--white); border-radius: 20px; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; gap: 12px; }
.modal-body { padding: 18px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 420px; font-weight: 500; animation: fade .2s; border-left: 4px solid var(--accent); line-height: 1.45; }
.toast small { display: block; color: var(--muted-2); font-weight: 400; margin-top: 2px; }
.toast.err { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }

.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.section-title h2 { font-size: 15px; }
.section-title .line { flex: 1; height: 1px; background: var(--line); }

.hero { background: var(--ink); color: #fff; border-radius: 22px; padding: 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; margin-bottom: 20px; }
.hero h1 { color: #fff; }
.hero .lead { color: #BDBDBD; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border: 28px solid var(--accent); border-radius: 50%; opacity: .14; }
.hero > * { position: relative; z-index: 1; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.list-item .grow { flex: 1; min-width: 0; }
.pill-list { display: flex; flex-direction: column; gap: 8px; }

details.help { border: 1px solid var(--line); border-radius: 12px; background: var(--hover); padding: 0 14px; margin-bottom: 12px; }
details.help summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 13px; }
details.help ol, details.help ul { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; color: #333; font-size: 13px; }

/* =====================================================================
   Leads-specifiek
   ===================================================================== */

/* inbox: lijst + detail */
.inbox { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: calc(100vh - 61px); }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.inbox-filters { padding: 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.inbox-filters .row .select { flex: 1; min-width: 0; }
.inbox-items { overflow-y: auto; flex: 1; }
.li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; background: transparent; border-left: 3px solid transparent; width: 100%; text-align: left; border-top: 0; border-right: 0; }
.li:hover { background: var(--hover); }
.li.active { background: var(--white); border-left-color: var(--accent); }
.li.unread .li-name { font-weight: 700; }
.li-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-snip { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.li-meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.li-time { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; display: grid; gap: 6px; justify-items: end; align-content: start; }
.li-time.late { color: var(--err); font-weight: 600; }

.detail { overflow-y: auto; min-height: 0; background: var(--white); display: flex; flex-direction: column; }
.detail-head { padding: 20px 28px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; position: sticky; top: 0; background: var(--white); z-index: 5; }
.detail-head h1 { font-size: clamp(22px, 2.4vw, 30px); }
.detail-body { padding: 20px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.detail-side { display: grid; gap: 14px; }
.back-btn { display: none; }

.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--white); }
.panel h3 { font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.qa { display: grid; gap: 10px; }
.qa div { display: grid; gap: 2px; }
.qa .q { font-size: 12px; color: var(--muted); }
.qa .a { font-weight: 500; }

.timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.timer.late { color: var(--err); }
.timer.ok { color: var(--ok); }

/* tijdlijn */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg .m-meta { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg.in { background: var(--paper); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.uit { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.uit .m-meta { color: var(--muted-2); }
.msg.auto { background: var(--accent-soft); color: #5c2006; align-self: flex-end; border-bottom-right-radius: 4px; border: 1px dashed #ffb894; }
.msg.notitie { background: var(--warn-soft); color: #5e3f0b; align-self: stretch; max-width: none; border-radius: 10px; }
.msg.status { align-self: center; background: none; color: var(--muted); font-size: 12px; padding: 2px 0; }

.composer { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--white); }
.composer .textarea { border: 0; border-radius: 0; min-height: 90px; box-shadow: none; }
.composer-bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--hover); flex-wrap: wrap; }
.composer-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); }
.composer-tabs button { background: none; border: 0; padding: 8px 10px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.composer-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* onderwerp-banner */
.topic-banner { border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.topic-banner.vacature { background: var(--warn-soft); color: #5e3f0b; border: 1px solid #f1d9a6; }
.topic-banner.onbekend { background: var(--accent-soft); color: #6a2507; border: 1px solid #ffd2bd; }
.topic-banner b { font-size: 15px; }
.topic-banner .row .btn { background: rgba(255,255,255,.7); }

/* score-knoppen */
.score { display: inline-flex; gap: 4px; }
.score button { border: 1px solid var(--line-2); background: var(--white); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); }
.score button.on.heet { background: var(--err); border-color: var(--err); color: #fff; }
.score button.on.warm { background: var(--warn); border-color: var(--warn); color: #fff; }
.score button.on.koud { background: var(--info); border-color: var(--info); color: #fff; }

/* balken */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .lbl { display: flex; gap: 8px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.bar.accent > i { background: var(--accent); }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* reden-keuze */
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.reason { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--white); cursor: pointer; text-align: left; font-weight: 600; }
.reason:hover { border-color: var(--line-2); }
.reason.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FFFCFA; }

/* kanaalmatrix */
.cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.cap::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cap.yes { color: var(--ok); }
.cap.part { color: var(--warn); }
.cap.no { color: var(--muted-2); }

.login { min-height: 100vh; display: grid; place-items: center; padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--ink); }
.login .card { width: min(420px, 100%); padding: 32px; }

.demo-bar { background: var(--ink); color: #fff; font-size: 12px; padding: 8px 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-bar .select { width: auto; padding: 4px 10px; font-size: 12px; background: var(--ink-2); color: #fff; border-color: var(--ink-3); }
.demo-bar b { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .detail-body { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .grid.cols-3, .grid.side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .burger { display: block; }
  .topbar { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); top: env(safe-area-inset-top, 0px); }
  .view { padding: 20px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
  .demo-bar { padding: 8px 16px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .top-actions .btn .lbl { display: none; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: auto; }
  .inbox.has-sel .inbox-list { display: none; }
  .inbox:not(.has-sel) .detail { display: none; }
  .inbox-items { overflow: visible; }
  .detail-head, .detail-body { padding-left: 16px; padding-right: 16px; }
  .detail-head { position: static; }
  .back-btn { display: inline-flex; }
  .bar-row { grid-template-columns: 150px minmax(0, 1fr) 32px; }
  .toasts { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  .toast { max-width: none; }
  .msg { max-width: 92%; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .grid.cols-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat .v { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
