/* Oefenlijn: schermen in het Texterous design system (accent #009BFF,
   ink #050505, Domine voor koppen, Inter voor tekst en UI). Eén licht thema,
   gemaakt om goed leesbaar te blijven bij schermdelen in Teams (1280 x 720 en
   groter). Fonts staan lokaal in fonts.css, dus de demo werkt ook offline. */

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Domine", Georgia, serif;

  --bg: #FBFBFB;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #f0f0f0;
  --line: #e7e7e7;
  --line-strong: #d4d4d4;

  --ink: #050505;
  --ink-2: #3f3f3f;
  --muted: #6e6e6e;
  --dark: #151515;

  /* Accent #009BFF voor vlakken, balken en accenten; --brand-strong voor
     tekst en knoppen op licht, omdat #009BFF daar te weinig contrast heeft. */
  --brand: #009BFF;
  --brand-strong: #0071BC;
  --brand-soft: #E1F3FF;
  --brand-tint: #F2F9FF;
  --table-tint: #EAF1FB;

  --accent: #0071BC;
  --accent-soft: #E1F3FF;
  --violet: #6250d6;
  --violet-soft: #efedfc;

  --good: #12813a;
  --good-fill: #0ca30c;
  --good-soft: #e7f5ea;
  --warning: #946200;
  --warning-fill: #fab219;
  --warning-soft: #fff4d9;
  --serious: #b04a1f;
  --serious-fill: #ec835a;
  --serious-soft: #fdede5;
  --critical: #b42828;
  --critical-fill: #d03b3b;
  --critical-soft: #fbe8e8;

  --u0: #5b1414;
  --u1: #d03b3b;
  --u2: #cf5a28;
  --u3: #f0b323;
  --u4: #1e8e3e;
  --u5: #4f6b8a;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 2px rgba(5, 5, 5, 0.05);
  --shadow: 0 1px 3px rgba(5, 5, 5, 0.05), 0 6px 20px rgba(5, 5, 5, 0.05);
  --shadow-lg: 0 24px 60px rgba(5, 5, 5, 0.16);
  --topbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 3px solid rgba(0, 155, 255, 0.45); outline-offset: 2px; border-radius: 6px; }

.icon { flex: none; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-strong);
}

/* ------------------------------------------------------------ topbar */

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar);
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 13px; border-radius: 9px;
  color: var(--ink-2); font-weight: 550; font-size: 14px;
}
.nav a:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand-strong); }
body.in-call .nav { opacity: 0.45; pointer-events: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.demo-pill {
  font-size: 12px; font-weight: 600; color: var(--brand-strong);
  background: var(--brand-soft); padding: 5px 10px; border-radius: 999px;
}
.api-status {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 12px 5px 10px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.api-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.api-status.ok .dot { background: var(--good-fill); box-shadow: 0 0 0 3px rgba(12, 163, 12, 0.15); }
.api-status.error .dot { background: var(--critical-fill); box-shadow: 0 0 0 3px rgba(208, 59, 59, 0.15); }
.logout[hidden] { display: none; }
body.in-call .logout { opacity: 0.45; pointer-events: none; }

main { max-width: 1320px; margin: 0 auto; padding: 32px 32px 64px; }
main:focus { outline: none; }
main.wide { max-width: 1560px; padding: 20px 24px 24px; }

/* ------------------------------------------------------------ basics */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { flex: 1; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head p { color: var(--ink-2); margin-top: 6px; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:hover { background: var(--surface-2); border-color: #bdbdbd; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(5, 5, 5, 0.25); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-danger { background: var(--critical-fill); border-color: var(--critical-fill); color: #fff; }
.btn-danger:hover { background: var(--critical); border-color: var(--critical); }
.btn-call { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-call:hover { background: #12863d; border-color: #12863d; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 40px; padding: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 550;
  background: var(--surface-3); color: var(--ink-2);
}
.chip-brand { background: var(--brand-soft); color: var(--brand-strong); }
.chip-outline { background: transparent; border: 1px solid var(--line-strong); }
.chip-button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); }
.chip-button:hover { border-color: var(--line-strong); }
.chip-button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 7px;
  font-size: 12.5px; font-weight: 650; line-height: 1.4;
}
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-serious { background: var(--serious-soft); color: var(--serious); }
.badge-critical { background: var(--critical-soft); color: var(--critical); }
.badge-neutral { background: var(--surface-3); color: var(--ink-2); }
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }

.level {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.level .bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.level .bars i { display: block; width: 4px; border-radius: 2px; background: var(--line-strong); }
.level .bars i:nth-child(1) { height: 7px; }
.level .bars i:nth-child(2) { height: 10px; }
.level .bars i:nth-child(3) { height: 13px; }
.level .bars i.on { background: var(--brand); }

/* urgentie */
.u-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 9px;
  background: var(--surface-3); font-weight: 600; font-size: 13px; color: var(--ink);
}
.u-code {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--u5);
}
.u-code.U0 { background: var(--u0); }
.u-code.U1 { background: var(--u1); }
.u-code.U2 { background: var(--u2); }
.u-code.U3 { background: var(--u3); color: #3a2a00; }
.u-code.U4 { background: var(--u4); }
.u-code.U5 { background: var(--u5); }
.u-code.none { background: var(--line-strong); color: var(--ink-2); }

/* formulieren */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 9px; padding: 9px 11px; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 155, 255, 0.18);
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

.segmented { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.segmented button:disabled { opacity: 0.45; cursor: not-allowed; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* toasts en modals */
#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 420px; padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px;
  animation: toast-in 0.25s ease-out;
}
.toast.error { background: #3b0d0d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(5, 5, 5, 0.42); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 24px;
  animation: fade-in 0.15s ease-out;
}
.modal {
  width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease-out;
}
.modal-wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal-head h2 { flex: 1; font-size: 20px; }
.modal-body { padding: 16px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 24px 22px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

details > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: ""; margin-left: auto; width: 7px; height: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s;
}
details[open] > summary::after { transform: rotate(-135deg); }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); border: 1px solid var(--brand-soft);
  color: var(--ink-2); font-size: 14px;
}
.callout .icon { color: var(--brand); margin-top: 2px; }
.callout.warning { background: var(--warning-soft); border-color: #f6e3b0; }
.callout.warning .icon { color: var(--warning); }

/* ------------------------------------------------------------ overzicht */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center;
  padding: 24px 0 8px;
}
.hero h1 { font-size: 44px; line-height: 1.1; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .meta { display: flex; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-visual { position: relative; min-height: 480px; }
.mock-call {
  position: absolute; left: 0; top: 10px; width: 80%;
  padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.mock-call .who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mock-bubble { padding: 10px 13px; border-radius: 13px; font-size: 13.5px; margin-bottom: 9px; max-width: 88%; }
.mock-bubble.caller { background: var(--surface-3); border-top-left-radius: 4px; }
.mock-bubble.short { max-width: 48%; }
.mock-bubble.me { background: var(--brand-strong); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.mock-score {
  position: absolute; right: 0; bottom: 0; width: 58%;
  padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.mock-score .big { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.mock-bar { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mock-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 22px; }
.step .num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--ink-2); margin-top: 6px; font-size: 14px; }

.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.evidence .card { padding: 22px; }
.evidence .figure { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.evidence p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.evidence .source { margin-top: 12px; font-size: 12px; color: var(--muted); }

.banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  padding: 30px 34px; border-radius: 18px;
  background: var(--dark);
  color: #fff;
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' seed='3300' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.72'/%3E%3C/svg%3E");
  background-size: 9rem 9rem;
}
.banner > * { position: relative; z-index: 1; }
.banner .eyebrow { color: var(--brand); margin-bottom: 8px; }
.banner h2 { color: #fff; font-size: 26px; }
.banner p { color: rgba(255, 255, 255, 0.75); margin-top: 6px; }
.banner .btn { margin-left: auto; background: #fff; color: var(--ink); border-color: #fff; }
.banner .btn:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }

/* ------------------------------------------------------------ casussen */

.library-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.library-toolbar .input { max-width: 300px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.case-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 18px; cursor: pointer; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.case-card:hover { border-color: #9fd6ff; box-shadow: var(--shadow); transform: translateY(-1px); }
.case-card .top { display: flex; align-items: center; gap: 8px; }
.case-card h3 { font-size: 17px; }
.case-card .summary { color: var(--ink-2); font-size: 14px; flex: 1; }
.case-card .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.case-card .foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.case-card .foot .go { margin-left: auto; color: var(--brand-strong); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.case-card.new {
  border: 1.5px dashed #8fcfff; background: var(--brand-tint);
  align-items: flex-start; justify-content: center; min-height: 250px;
}
.case-card.new .bubble-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand); color: #fff;
}
.case-card.new p { color: var(--ink-2); font-size: 14px; }

.avatar {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-weight: 650; font-size: 12.5px; letter-spacing: 0.02em;
}
.avatar-lg { width: 76px; height: 76px; font-size: 25px; }

/* ------------------------------------------------------------ gesprek */

.call-ready { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.ring-card { padding: 40px 32px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ring {
  position: relative; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; margin: 50px 0 44px;
  background: #16a34a; color: #fff;
}
.ring::before, .ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.45);
  animation: ring-pulse 1.8s ease-out infinite;
}
.ring::after { animation-delay: 0.9s; }
.ring svg { animation: ring-shake 1.8s ease-in-out infinite; }
@keyframes ring-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.75); opacity: 0; } }
@keyframes ring-shake {
  0%, 50%, 100% { transform: rotate(0); }
  5%, 15%, 25% { transform: rotate(-14deg); }
  10%, 20%, 30% { transform: rotate(14deg); }
}
.ring-card h2 { font-size: 26px; }
.ring-card .caller-line { color: var(--ink-2); margin-top: 6px; }
.ring-card .settings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 560px; margin-top: 30px; text-align: left; }
.setting {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-2);
}
.setting .field-label { display: block; margin-bottom: 8px; }
.setting p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ring-card .answer { min-width: 240px; }

.call-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 372px;
  gap: 18px;
  height: calc(100vh - var(--topbar) - 44px);
  min-height: 560px;
}
.call-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }

.caller-card { padding: 22px 20px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.caller-card .avatar-wrap { position: relative; margin-bottom: 14px; }
.caller-card .avatar-wrap::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 3px solid transparent; transition: border-color 0.2s;
}
.caller-card.speaking .avatar-wrap::after { border-color: rgba(42, 120, 214, 0.55); animation: speak-ring 1.1s ease-in-out infinite; }
.caller-card.patient-speaking .avatar-wrap::after { border-color: rgba(98, 80, 214, 0.55); animation: speak-ring 1.1s ease-in-out infinite; }
@keyframes speak-ring { 50% { transform: scale(1.07); } }
.caller-card .name { font-size: 18px; font-weight: 650; }
.caller-card .relation { color: var(--muted); font-size: 13.5px; }
.call-status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 5px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good);
  font-size: 13px; font-weight: 600;
}
.call-status .live { width: 7px; height: 7px; border-radius: 50%; background: var(--good-fill); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.call-timer { font-size: 30px; font-weight: 650; letter-spacing: -0.01em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.caller-card .facts { width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
.caller-card .facts div { display: flex; justify-content: space-between; gap: 10px; }
.caller-card .facts span:first-child { color: var(--muted); }
.caller-card .hangup { margin-top: 16px; width: 100%; }

.coach-card { padding: 18px 18px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.coach-card .card-head { margin-bottom: 12px; }
.coach-card .card-head .icon { color: var(--warning-fill); }
.phase-track { display: flex; gap: 4px; margin-bottom: 6px; }
.phase-track i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); transition: background 0.3s; }
.phase-track i.done { background: #8fcfff; }
.phase-track i.now { background: var(--brand); }
.phase-label { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.coach-tip {
  border-radius: 12px; padding: 13px 14px; font-size: 14px; line-height: 1.5;
  background: var(--warning-soft); color: #4a3500; border: 1px solid #f4dfa5;
  animation: tip-in 0.35s ease-out;
}
.coach-tip.high { background: var(--critical-soft); color: #5c1414; border-color: #f2c6c6; }
.coach-tip.calm { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.coach-tip .label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; opacity: 0.8; }
@keyframes tip-in { from { opacity: 0; transform: translateY(6px); } }
.coach-history { margin-top: 12px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.coach-history div { font-size: 12.5px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line); }

.transcript-card { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.transcript-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.transcript-head h3 { flex: 1; }
.transcript { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.transcript-empty { margin: auto; text-align: center; color: var(--muted); max-width: 380px; font-size: 14px; }
.transcript-empty .icon { margin: 0 auto 12px; color: var(--brand); }
.msg { display: flex; flex-direction: column; max-width: 78%; animation: msg-in 0.2s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.msg .meta strong { color: var(--ink-2); font-weight: 600; }
.msg .text { padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.msg.caller .text { background: var(--surface-3); border-top-left-radius: 5px; }
.msg.patient .text { background: var(--violet-soft); border-top-left-radius: 5px; }
.msg.patient .meta strong { color: var(--violet); }
.msg.triagist { align-self: flex-end; align-items: flex-end; }
.msg.triagist .text { background: var(--brand-strong); color: #fff; border-top-right-radius: 5px; }
.msg.system { align-self: center; max-width: 90%; }
.msg.system .text { background: transparent; color: var(--muted); font-size: 13px; padding: 4px 10px; text-align: center; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b1; animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.moment-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 6px; }

.composer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.mic {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff; box-shadow: 0 2px 8px rgba(0, 113, 188, 0.35);
  transition: background 0.15s, transform 0.1s;
}
.mic:hover { background: var(--brand-strong); }
.mic:disabled { background: var(--line-strong); box-shadow: none; cursor: not-allowed; }
.mic.listening { background: var(--critical-fill); box-shadow: 0 2px 10px rgba(208, 59, 59, 0.4); }
.mic.listening::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(208, 59, 59, 0.5); animation: ring-pulse 1.4s ease-out infinite;
}
.composer .input { height: 48px; border-radius: 12px; font-size: 15px; }
.composer .input.interim { color: var(--ink-2); font-style: italic; }
.composer .btn { height: 48px; border-radius: 12px; }
.composer-hint { font-size: 12px; color: var(--muted); padding: 0 18px 10px; background: var(--surface-2); }

.worksheet { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.worksheet-body { overflow-y: auto; padding: 4px 18px 18px; }
.ws-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ws-section:last-child { border-bottom: 0; }
.ws-section > .ws-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ws-grid .full { grid-column: 1 / -1; }
.ws-grid .input { padding: 7px 10px; font-size: 13.5px; }
.abcde-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.abcde-row .key { font-weight: 700; color: var(--brand-strong); }
.abcde-row .hint { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tri { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 2px; gap: 2px; }
.tri button { border: 0; background: transparent; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tri button.on-stabiel { background: var(--good-soft); color: var(--good); }
.tri button.on-instabiel { background: var(--critical-fill); color: #fff; }
.urgency-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.urgency-picker button {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px;
  padding: 6px 4px 5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0;
  font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.25;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.urgency-picker button small { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.urgency-picker button:hover { border-color: var(--ink-2); }
.urgency-picker button.selected { color: #fff; border-color: transparent; }
.urgency-picker button.selected small { color: rgba(255, 255, 255, 0.85); }
.urgency-picker button.selected.U0 { background: var(--u0); }
.urgency-picker button.selected.U1 { background: var(--u1); }
.urgency-picker button.selected.U2 { background: var(--u2); }
.urgency-picker button.selected.U3 { background: var(--u3); color: #3a2a00; }
.urgency-picker button.selected.U3 small { color: #5a4300; }
.urgency-picker button.selected.U4 { background: var(--u4); }
.urgency-picker button.selected.U5 { background: var(--u5); }
.urgency-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; min-height: 19px; }
.followups { display: grid; gap: 4px; }
.followups label { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.followups label:hover { background: var(--surface-2); }
.followups input { accent-color: var(--brand); width: 16px; height: 16px; }
.followups label.checked { background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; }

/* evaluatie */
.evaluating { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; max-width: 1180px; margin: 10px auto 0; }
.eval-items { padding: 22px 24px; }
.eval-phase { margin-top: 16px; }
.eval-phase:first-of-type { margin-top: 6px; }
.eval-phase h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.eval-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.eval-row .nr { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.eval-row.pending { color: var(--muted); }
.eval-row.scored { animation: msg-in 0.25s ease-out; }
.eval-side { padding: 22px 24px; position: sticky; top: calc(var(--topbar) + 20px); }
.stage { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.stage .state { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--line-strong); color: #fff; }
.stage.done .state { background: var(--good-fill); border-color: var(--good-fill); }
.stage.active .state { border-color: var(--brand); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.stage .title { font-weight: 600; font-size: 14px; }
.stage .sub { font-size: 12.5px; color: var(--muted); }
.stage.pending .title { color: var(--muted); }
.stage.failed .state { background: var(--critical-fill); border-color: var(--critical-fill); }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 16px; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width 0.4s ease; }

/* scorebolletjes */
.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dots i.on { box-shadow: none; }
.dots.s0 i.on, .dots.s1 i.on { background: var(--critical-fill); }
.dots.s2 i.on { background: var(--warning-fill); }
.dots.s3 i.on, .dots.s4 i.on { background: var(--good-fill); }
.score-label { font-size: 12.5px; font-weight: 600; min-width: 84px; text-align: right; color: var(--ink-2); }

/* ------------------------------------------------------------ rapport */

.report-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.report-head h1 { font-size: 30px; margin: 6px 0 8px; }
.report-head .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.report-head .meta span { display: inline-flex; align-items: center; gap: 6px; }
.report-head > div:first-child { flex: 1; min-width: 0; }
.report-head .actions { margin-left: auto; display: flex; gap: 8px; flex: none; justify-content: flex-end; }

.kpi-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.score-hero { padding: 22px 24px; display: flex; gap: 22px; align-items: center; }
.ring-score { position: relative; width: 132px; height: 132px; flex: none; }
.ring-score svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring-score .value { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-score .value strong { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.ring-score .value small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.score-hero h3 { font-size: 15px; }
.score-hero p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.split .label { font-size: 12.5px; color: var(--muted); }
.split .val { font-size: 18px; font-weight: 650; }
.meter { height: 6px; border-radius: 3px; background: var(--brand-soft); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

.verdict-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.verdict-card .compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.verdict-card .compare .side { display: flex; flex-direction: column; gap: 6px; }
.verdict-card .compare .side .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.verdict-card .compare .arrow { color: var(--muted); }
.verdict-card .explain { font-size: 13.5px; color: var(--ink-2); }
.verdict-card .fu { font-size: 14px; font-weight: 600; line-height: 1.35; }

.phase-bars { display: grid; gap: 14px; }
.phase-bar .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.phase-bar .top strong { font-weight: 650; }
.hbar { height: 10px; border-radius: 0 5px 5px 0; background: var(--surface-3); position: relative; }
.hbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 5px 5px 0; background: var(--accent); }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.list-check .mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.mark.good { background: var(--good-soft); color: var(--good); }
.mark.warn { background: var(--warning-soft); color: var(--warning); }
.mark.bad { background: var(--critical-soft); color: var(--critical); }
.improve { border-left: 3px solid var(--warning-fill); padding: 2px 0 2px 14px; }
.improve + .improve { margin-top: 16px; }
.improve .point { font-weight: 600; font-size: 14.5px; }
.say {
  margin-top: 8px; padding: 10px 13px; border-radius: 10px; background: var(--brand-tint);
  font-size: 14px; color: var(--brand-strong); display: flex; gap: 9px; align-items: flex-start;
}
.say .icon { margin-top: 3px; }

.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flag-item { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.flag-item .title { font-weight: 600; font-size: 14px; }
.flag-item .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.k-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.k-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.k-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.k-table tr.phase-row td { background: var(--table-tint); font-weight: 650; font-size: 13px; color: var(--ink-2); padding: 8px 12px; }
.k-table .nr { width: 36px; color: var(--muted); font-variant-numeric: tabular-nums; }
.k-table .item { width: 34%; font-weight: 550; }
.k-table .item .type { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.k-table .score { width: 170px; }
.k-table .score .dots { margin-bottom: 4px; }
.k-table .quote { display: block; margin-top: 6px; color: var(--muted); font-style: italic; font-size: 13px; }

.transcript-review { display: flex; flex-direction: column; gap: 12px; max-height: 620px; overflow: auto; padding-right: 6px; }
.transcript-review .msg { max-width: 82%; }
.transcript-review .msg .text { font-size: 14px; }

.disclaimer { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 28px; }

/* ------------------------------------------------------------ dashboard */

.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { padding: 18px 20px; }
.stat .label { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.stat .value { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.stat .delta { font-size: 12.5px; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.delta.up-good, .delta.down-good { color: var(--good); }
.delta.up-bad, .delta.down-bad { color: var(--critical); }
.stat .spark { margin-top: 10px; }
.chart-card { padding: 20px 22px; }
.chart-card .card-head { margin-bottom: 4px; }
.chart-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .key-line { width: 16px; height: 2px; border-radius: 2px; }
.legend .key-box { width: 11px; height: 11px; border-radius: 3px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text.axis { font-size: 11.5px; fill: var(--muted); font-family: var(--font); }
.chart .grid line { stroke: #ececec; stroke-width: 1; }
.chart .baseline { stroke: #cfcfcf; stroke-width: 1; }
.chart .end-label { font-size: 12px; font-weight: 600; fill: var(--ink-2); font-family: var(--font); }
.chart .val-label { font-size: 12px; font-weight: 600; fill: var(--ink-2); font-family: var(--font); }
.chart .cat-label { font-size: 13px; fill: var(--ink-2); font-family: var(--font); }
.tooltip {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 9px; padding: 8px 11px;
  font-size: 12.5px; box-shadow: var(--shadow-lg); min-width: 120px;
  opacity: 0; transition: opacity 0.1s;
}
.tooltip.show { opacity: 1; }
.tooltip .t-title { color: rgba(255, 255, 255, 0.7); font-size: 11.5px; margin-bottom: 4px; }
.tooltip .t-row { display: flex; align-items: center; gap: 8px; }
.tooltip .t-row strong { font-size: 13.5px; }
.tooltip .t-key { width: 12px; height: 2px; border-radius: 1px; }
.heat { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.heat th { font-weight: 600; color: var(--ink-2); font-size: 12px; padding: 4px 6px; text-align: center; }
.heat th.rowh { text-align: left; white-space: nowrap; padding-right: 12px; font-size: 13px; }
.heat td { text-align: center; border-radius: 6px; height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: default; }
.heat td:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.heat-scale { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.heat-scale .ramp { display: flex; }
.heat-scale .ramp i { width: 26px; height: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warning); background: var(--warning-soft); padding: 4px 10px; border-radius: 8px; font-weight: 600; }

/* ------------------------------------------------------------ aanpak */

.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how .card { padding: 20px; }
.how .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.how p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 20px 22px; display: flex; gap: 16px; }
.pillar .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.pillar p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.tl-step { position: relative; padding: 0 22px 0 0; }
.tl-step .bar { height: 6px; border-radius: 3px; background: var(--brand); margin-bottom: 16px; }
.tl-step:nth-child(2) .bar { background: #4dbaff; }
.tl-step:nth-child(3) .bar { background: #a6dcff; }
.tl-step .when { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tl-step h3 { margin: 4px 0 8px; }
.tl-step ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.sources { font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; padding-left: 20px; margin: 0; }

/* ------------------------------------------------------------ inloggen */

main.login {
  max-width: 420px; min-height: 100vh; padding: 48px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.login .brand { justify-content: center; }
.login-card { gap: 16px; padding: 28px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 26px; margin-bottom: 6px; }
.login-card .btn { width: 100%; }
.login-foot { text-align: center; }

/* ------------------------------------------------------------ responsief */

@media (max-width: 1280px) {
  .call-layout { grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 14px; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 1100px) {
  .hero, .call-ready, .evaluating { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .call-layout { grid-template-columns: 1fr; height: auto; }
  .kpi-row, .grid-3, .grid-4, .steps, .evidence, .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 8px 9px; }
  .brand-text small { display: none; }
}
@media (max-width: 760px) {
  main { padding: 20px 16px 48px; }
  .topbar { gap: 12px; padding: 0 16px; overflow-x: auto; }
  .demo-pill { display: none; }
  .kpi-row, .grid-2, .grid-3, .grid-4, .steps, .evidence, .how, .pillars, .timeline, .flags { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .ring-card .settings { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ print */

@media print {
  body { background: #fff; font-size: 12px; }
  .topbar, .report-head .actions, #toast-root, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .transcript-review { max-height: none; overflow: visible; }
}
