:root {
  --bg: #0b0f17;
  --panel: #121826;
  --panel2: #182033;
  --line: #24304a;
  --text: #dbe4f3;
  --muted: #8592ab;
  --accent: #4cc3ff;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5d6c;
  --mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.brand small { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 11px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-size: 13px; }
nav a.active, nav a:hover { background: var(--panel2); color: var(--text); text-decoration: none; }
.status { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
main { padding: 18px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 18px; margin: 0 0 14px; }
h2 { font-size: 14px; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel2); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-family: var(--mono); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.pill.info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
button, a.button { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; }
a.button { display: inline-block; text-decoration: none; }
button:hover, a.button:hover { border-color: var(--accent); }
button.primary, a.button.primary { background: var(--accent); color: #04121c; border-color: var(--accent); font-weight: 600; }
.banner-emergency { background: color-mix(in srgb, var(--bad) 18%, transparent); border: 1px solid var(--bad); color: var(--text); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }
button.danger { color: var(--bad); }
button:disabled { opacity: .45; cursor: not-allowed; }
input, textarea, select { background: #0e1421; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; width: 100%; }
textarea { min-height: 70px; resize: vertical; }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.row input, .row textarea { flex: 1 1 200px; width: auto; }
.top select { width: auto; min-width: 160px; }
.transcript { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.turn { padding: 7px 10px; border-radius: 8px; max-width: 88%; background: var(--panel2); }
.turn.caller { align-self: flex-end; background: #1d2a44; }
.turn.operator { background: #2a2140; border: 1px solid #5a4690; }
.turn.system { align-self: center; background: transparent; color: var(--muted); font-size: 12px; }
.turn .meta { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.turn.cut { border-right: 3px solid var(--warn); }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.toasts { position: fixed; bottom: 16px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 20; max-width: 420px; }
.toast { background: var(--panel2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; }
.card.step.done { opacity: .8; }
.card.secret .preview { word-break: break-all; user-select: all; }
.toast.err { border-color: var(--bad); }
.login { max-width: 360px; margin: 80px auto; }
.preview { background: #0e1421; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 6px; }
.hours { display: grid; grid-template-columns: 60px 1fr; gap: 6px 10px; align-items: center; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 13px; }
.kv div:nth-child(odd) { color: var(--muted); }
ul.plain { margin: 4px 0; padding-left: 18px; }
.sim-mic.on { background: var(--bad); color: #fff; border-color: var(--bad); }

/* Analytics (#579). Dunne marks, 2px tussenruimte, afgeronde data-uiteinden op de basislijn. */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.tile-label { color: var(--muted); font-size: 12px; }
.tile-value { font-size: 24px; font-weight: 600; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tile-sub { color: var(--muted); font-size: 12px; }
.vbars-plot { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.vbar-slot { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 3px; }
.vbar-slot:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.vbar { width: 100%; background: #3987e5; border-radius: 4px 4px 0 0; min-height: 0; }
.vstack { width: 100%; display: flex; flex-direction: column; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; }
.vstack .seg { min-height: 2px; }
.vbars-axis { display: flex; gap: 2px; }
.vbar-tick { flex: 1 1 0; min-width: 3px; font-size: 10px; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: visible; }
.sent-positief { background: #3987e5; }
.sent-neutraal { background: #4b5263; }
.sent-negatief { background: #c98500; }
.sent-boos { background: #d03b3b; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12px; margin: 6px 0; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.heat-wrap { overflow-x: auto; }
.heat { display: grid; grid-template-columns: 26px repeat(24, minmax(12px, 1fr)); gap: 2px; min-width: 420px; }
.heat-cell { height: 18px; border-radius: 3px; background: var(--panel2); }
.heat-cell:hover { outline: 1px solid var(--text); }
.heat-hour, .heat-day { font-size: 10px; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar-row { display: grid; grid-template-columns: 120px 1fr 90px; gap: 8px; align-items: center; }
.hbar-track { height: 12px; }
.hbar { height: 100%; background: #3987e5; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar-value { text-align: right; color: var(--muted); }
@media (forced-colors: active) { .vbar, .hbar, .seg, .heat-cell, .swatch { forced-color-adjust: none; border: 1px solid CanvasText; } }
