/* Hybridconsult demo-app. Zelfde taal als de homepagina:
   inkt is de machine, groen is een mens die heeft gekeken, amber wacht op jou. */
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #ffffff;
  --sunk: #f2f0eb;
  --hover: #f5f3ee;
  --ink: #141413;
  --fg: #2b2b28;
  --muted: #6b6b65;
  --line: #e6e4de;
  --human: #1f6b5c;
  --human-fg: #ffffff;
  --human-soft: rgba(31, 107, 92, .10);
  --attn: #b8650f;
  --attn-soft: rgba(184, 101, 15, .10);
  --shadow: 0 1px 2px rgba(20, 20, 19, .05), 0 20px 50px -20px rgba(20, 20, 19, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --side: 248px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f0f0e; --surface: #171715; --sunk: #222220; --hover: #1d1d1b; --ink: #f4f2ec; --fg: #d8d6cf; --muted: #9a9891; --line: #2c2c29;
    --human: #6cc3ad; --human-fg: #0f0f0e; --human-soft: rgba(108, 195, 173, .14); --attn: #e0a050; --attn-soft: rgba(224, 160, 80, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 50px -20px rgba(0, 0, 0, .8);
  }
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chk { stroke-width: 2; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-human { background: var(--human); color: var(--human-fg); }
.btn-human:hover { background: color-mix(in srgb, var(--human) 88%, var(--ink)); }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--ink); font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: currentColor; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid currentColor; font: 600 11px/1 var(--sans); opacity: .5; }
.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 15px/1.45 var(--sans); resize: none; }
.input:focus { outline: none; border-color: var(--ink); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--ink); font-weight: 600; font-size: 13px; }
.av-h { background: var(--human-soft); color: var(--human); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 11px/20px var(--sans); text-align: center; }
.count-attn { background: var(--attn); color: #fff; }
.count-new { background: var(--human); color: var(--human-fg); }
.close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.close:hover { background: var(--hover); color: var(--ink); }
.close svg { width: 18px; height: 18px; }

/* ===== schil ===== */
.shell { height: 100%; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side { display: flex; flex-direction: column; gap: 28px; padding: 20px 14px 16px; border-right: 1px solid var(--line); background: var(--sunk); min-height: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; padding: 4px 8px; font: 400 24px/1 var(--serif); color: var(--ink); text-decoration: none; }
.wordmark svg { width: 20px; height: 20px; color: var(--human); }
.menu { display: grid; gap: 2px; }
.menu button { width: 100%; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--muted); font-weight: 500; text-align: left; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.menu button:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.menu button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 19, .06); }
.menu svg { width: 19px; height: 19px; flex: none; }
.menu span { flex: 1; }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; border-bottom: 1px solid var(--line); }
.me b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.25; }
.me span { font-size: 12px; color: var(--muted); }
.side-link { text-align: left; padding: 2px 8px; font-size: 13px; color: var(--muted); }
.side-link:hover { color: var(--ink); }
.fict { padding: 0 8px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.tabbar { display: none; }

.main { min-width: 0; min-height: 0; position: relative; }
.view { height: 100%; min-height: 0; }
.split { height: 100%; display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 0; }
.split-3 { grid-template-columns: 320px minmax(0, 1fr) 340px; }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.pane-list { border-right: 1px solid var(--line); background: var(--bg); }
.vhead { flex: none; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.vhead h1, .vhead h2 { font: 400 28px/1.05 var(--serif); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vhead-sm h2 { font-size: 24px; }

/* ===== nakijken ===== */
.queue { flex: 1; overflow-y: auto; padding: 8px; }
.qgroup { padding: 14px 10px 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.qitem { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 10px; border-radius: 12px; text-align: left; transition: background-color 160ms var(--ease); animation: in 400ms var(--ease) both; }
.qitem:hover { background: var(--hover); }
.qitem.is-active { background: var(--surface); box-shadow: 0 1px 2px rgba(20, 20, 19, .06), 0 0 0 1px var(--line); }
.qtop { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.qtop b { color: var(--ink); font-weight: 600; font-size: 14px; }
.qtop time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.qkind { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 1px; }
.qkind.flag { color: var(--attn); font-weight: 600; }
.qkind.flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--attn); }
.qtext { font-size: 13px; color: var(--fg); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

.pane-detail { background: var(--surface); }
#reviewDetail { overflow-y: auto; }
.rd { width: 100%; max-width: 720px; margin: 0 auto; padding: 32px 40px 48px; animation: in 300ms var(--ease) both; }
.rd-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rd-head .back { display: none; }
.rd-head b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.25; }
.rd-head span { font-size: 13px; color: var(--muted); }
.rd-head .link { margin-left: auto; white-space: nowrap; }
.rd-pos { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rd-head .rd-pos + .link { margin-left: 16px; }
.rd-ctx { display: flex; flex-direction: column; gap: 10px; padding: 24px 0 8px; }
.rd-ctx .m { opacity: .72; }
.rd-ctx .m.is-target { opacity: 1; }
.rd-ctx .m.is-target .b { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.flagbox { margin-top: 16px; border-radius: 12px; background: var(--attn-soft); padding: 14px 16px; font-size: 14px; color: var(--ink); }
.flagbox b { color: var(--attn); }
.rd-acts { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.rd-acts .btn { height: 44px; padding: 0 18px; font-size: 15px; }
.rd-acts .sp { flex: 1; }
.nav-keys { display: flex; gap: 4px; }
.nav-keys button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.nav-keys button:hover { background: var(--hover); color: var(--ink); }
.nav-keys button:disabled { opacity: .3; cursor: default; background: none; }
.nav-keys svg { width: 18px; height: 18px; }
.fix { margin-top: 24px; display: grid; gap: 14px; padding: 18px; border-radius: 14px; background: var(--sunk); animation: in 260ms var(--ease) both; }
.fix label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.fix .opt { font-weight: 400; color: var(--muted); }
.fix-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fix .row-btns { display: flex; gap: 8px; align-items: center; }
.fix .row-btns .hintkeys { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.prop { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.prop-head { font-size: 13px; font-weight: 600; color: var(--muted); }
.diff { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.diff .d { display: block; font-size: 12px; color: var(--muted); }
.diff-add { background: var(--human-soft); }
.diff-del { background: var(--sunk); text-decoration: line-through; color: var(--muted); }
.prop-why { margin-top: 10px; font-size: 13px; color: var(--muted); }
.empty { margin: auto; text-align: center; padding: 40px 24px; max-width: 420px; animation: in 400ms var(--ease) both; }
.empty .big { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--human-soft); color: var(--human); }
.empty .big svg { width: 30px; height: 30px; }
.empty h2 { font: 400 40px/1.05 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.empty p { margin-top: 12px; color: var(--muted); }
.empty .btn { margin-top: 24px; }
.queue-empty { padding: 24px 12px; font-size: 14px; color: var(--muted); }

/* ===== berichten ===== */
.m { display: flex; flex-direction: column; gap: 4px; max-width: 78%; animation: in 360ms var(--ease) both; }
.m.no-anim { animation: none; }
.m .who { font-size: 12px; color: var(--muted); padding: 0 4px; }
.m .b { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-client { align-self: flex-start; }
.m-client .b { background: var(--sunk); color: var(--ink); border-bottom-left-radius: 6px; }
.m-machine { align-self: flex-end; align-items: flex-end; }
.m-machine .b { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-right-radius: 6px; }
.m-machine.m-escalate .b { border-color: var(--attn); }
.m-mens { align-self: flex-end; align-items: flex-end; }
.m-mens .b { background: var(--human); color: var(--human-fg); border-bottom-right-radius: 6px; }
.m-mens .who { color: var(--human); font-weight: 600; }
.m-note, .m-whisper { align-self: flex-end; align-items: flex-end; max-width: 70%; }
.m-note .b, .m-whisper .b { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; border-radius: 12px; }
.m-whisper .b { border-color: var(--human); color: var(--ink); }
.m-system { align-self: center; max-width: 90%; }
.m-system .sys { font-size: 12px; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: var(--sunk); }
.m-system.m-in .sys { background: var(--human-soft); color: var(--human); font-weight: 600; }
.m-day { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 0 2px; animation: none; }
.rev { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.rev svg { width: 13px; height: 13px; }
.rev-ok { color: var(--human); font-weight: 600; }
.rev-fixed { color: var(--muted); }
.rev-open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--attn); }
.rev-open button { margin-left: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.rev-open button:hover { text-decoration-color: currentColor; }
.typing .b { display: flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-3px); opacity: .9; } }

/* ===== gesprekken ===== */
.convs { flex: 1; overflow-y: auto; padding: 8px; }
.conv { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 10px; border-radius: 12px; text-align: left; transition: background-color 160ms var(--ease); }
.conv:hover { background: var(--hover); }
.conv.is-active { background: var(--surface); box-shadow: 0 1px 2px rgba(20, 20, 19, .06), 0 0 0 1px var(--line); }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-top b { color: var(--ink); font-weight: 600; font-size: 14px; }
.conv-top time { font-size: 12px; color: var(--muted); }
.conv-sub { font-size: 12px; color: var(--muted); }
.conv-prev { font-size: 13px; color: var(--fg); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.conv-sig { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.conv-sig::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.conv-sig.attn { color: var(--attn); }
.conv-sig.mens { color: var(--human); }
.conv-sig.attn::before { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.thread-pane { background: var(--surface); }
.thead { flex: none; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.thead .back { display: none; }
.back { width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--ink); margin-left: -8px; flex: none; }
.back svg { width: 20px; height: 20px; }
.tid { min-width: 0; flex: 1; }
.tid b, .tid span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tid b { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.25; }
.tid span { font-size: 13px; color: var(--muted); }
.tacts { display: flex; gap: 8px; }
.dossier-toggle { display: none; }
#openClient .sm { display: none; }
.messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.messages > :first-child { margin-top: auto; }

.dock { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--attn-soft); color: var(--ink); font-size: 14px; animation: in 300ms var(--ease) both; }
.alert strong { font-weight: 600; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .6; }
.bar-btns { display: flex; gap: 8px; }
.hint, .composer { display: grid; gap: 8px; animation: in 260ms var(--ease) both; }
.hint label { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row .btn { height: 44px; }
.composer .input { min-height: 44px; max-height: 160px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.you { display: inline-flex; align-items: center; gap: 8px; color: var(--human); font-weight: 600; }
.you i { width: 8px; height: 8px; border-radius: 50%; background: var(--human); }
.concept { padding: 12px 14px; border-radius: 12px; background: var(--sunk); display: grid; gap: 6px; }
.concept span { font-size: 12px; font-weight: 600; color: var(--muted); }
.concept p { font-size: 14px; color: var(--ink); }
.concept .link { justify-self: start; }

.dossier-pane { border-left: 1px solid var(--line); background: var(--bg); }
.dossier-pane .close { display: none; }
.dossier { flex: 1; overflow-y: auto; padding: 4px 20px 32px; }
.ds h3 { font: 600 12px/1 var(--sans); color: var(--muted); padding: 22px 0 8px; }
.ds li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.ds li:first-child { border-top: 0; }
.ds .d { display: block; font-size: 12px; color: var(--muted); }
.ds .by { display: block; font-size: 12px; color: var(--human); margin-top: 2px; }
.ds li.fresh { background: var(--human-soft); margin: 0 -10px; padding: 9px 10px; border-radius: 10px; border-top-color: transparent; animation: in 400ms var(--ease) both; }
.dossier .prop { margin: 16px 0 0; background: var(--surface); }
.dossier .prop .rd-acts { margin-top: 14px; }
.dossier .prop .rd-acts .btn { height: 34px; padding: 0 12px; font-size: 13px; }

/* ===== aanpak ===== */
.page { height: 100%; overflow-y: auto; }
.vhead-page { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); z-index: 1; padding: 0 40px; }
.aanpak { max-width: 760px; padding: 16px 40px 64px; }
.ap h2 { font: 400 26px/1.1 var(--serif); color: var(--ink); padding: 32px 0 12px; }
.ap li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.ap li .by { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ap li.learned { background: var(--human-soft); margin: 0 -14px; padding: 14px; border-radius: 12px; border-top-color: transparent; }
.ap li.learned + li.learned { margin-top: 8px; }
.ap li.learned .by { color: var(--human); font-weight: 600; }
.ap .none { color: var(--muted); }

/* ===== zo ziet de cliënt het ===== */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; align-items: stretch; padding: 16px; background: rgba(20, 20, 19, .22); animation: fade 200ms var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.phone { width: 390px; max-width: 100%; display: flex; flex-direction: column; background: var(--bg); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; animation: slide 360ms var(--spring) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.phone-head b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.25; }
.phone-head span { font-size: 13px; color: var(--muted); }
.phone-head .close { margin-left: auto; }
.phone-thread { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-thread > :first-child { margin-top: auto; }
.phone-thread .m { max-width: 84%; }
.phone-thread .c-me { align-self: flex-end; align-items: flex-end; }
.phone-thread .c-me .b { background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.phone-thread .c-ai { align-self: flex-start; }
.phone-thread .c-ai .b { background: var(--sunk); color: var(--ink); border-bottom-left-radius: 6px; }
.phone-thread .c-coach { align-self: flex-start; }
.phone-thread .c-coach .b { background: var(--human-soft); color: var(--ink); border-bottom-left-radius: 6px; }
.phone-thread .c-coach .who { color: var(--human); font-weight: 600; }
.phone-foot { padding: 12px 16px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; background: var(--surface); }

/* ===== toast en finale ===== */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 380px; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); animation: toast 420ms var(--spring) both; }
@keyframes toast { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.toast .av { background: var(--attn); color: #fff; }
.toast b { display: block; font-weight: 600; }
.toast p { font-size: 14px; opacity: .8; margin-top: 2px; }
.toast .btn { margin-top: 10px; background: var(--bg); color: var(--ink); }
.toast .close { color: inherit; opacity: .6; margin: -6px -6px 0 auto; flex: none; }

.finale { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(20, 20, 19, .4); animation: fade 240ms var(--ease) both; }
.finale-box { width: 100%; max-width: 520px; padding: 40px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); animation: toast 420ms var(--spring) both; }
.finale-box h2 { font: 400 44px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.finale-box p { margin-top: 16px; font-size: 16px; }
.finale-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* ===== kleinere schermen ===== */
@media (max-width: 1320px) {
  .split-3 { grid-template-columns: 300px minmax(0, 1fr); }
  .dossier-toggle { display: inline-flex; }
  .dossier-pane { position: absolute; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100%; z-index: 20; box-shadow: var(--shadow); transform: translateX(105%); transition: transform 320ms var(--ease); }
  .dossier-pane .close { display: grid; }
  .main.dossier-open .dossier-pane { transform: none; }
}
@media (max-width: 1080px) {
  :root { --side: 76px; }
  .side { align-items: center; padding: 18px 10px 14px; }
  .wordmark span, .menu span, .me div, .side-link, .fict, .side-foot .btn { display: none; }
  .menu button { width: 48px; height: 44px; justify-content: center; position: relative; padding: 0; }
  .menu .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; padding: 0 5px; }
  .me { border: 0; padding: 0; justify-content: center; }
  .split { grid-template-columns: 300px minmax(0, 1fr); }
  .rd { padding: 28px 28px 40px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .side { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar button { height: 56px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
  .tabbar button.is-active { color: var(--ink); font-weight: 600; }
  .split, .split-3 { grid-template-columns: 1fr; position: relative; }
  .pane-list { border-right: 0; }
  .split .pane-detail { position: absolute; inset: 0; z-index: 5; transform: translateX(100%); transition: transform 300ms var(--ease); }
  .split.show-detail .pane-detail { transform: none; }
  .rd-head .back, .thead .back { display: grid; }
  .rd { padding: 16px 16px 32px; }
  .rd-head { padding-bottom: 14px; }
  .rd-head .link { display: none; }
  .rd-acts .btn { flex: 1; }
  .rd-acts .sp, .nav-keys, .rd-acts kbd, .fix .hintkeys { display: none; }
  .vhead { height: 58px; padding: 0 16px; }
  .vhead h1 { font-size: 26px; }
  .thead { height: 60px; padding: 0 12px; gap: 10px; }
  .thead .av { display: none; }
  #openClient { padding: 0 10px; }
  #openClient .lg { display: none; }
  #openClient .sm { display: inline; }
  .messages { padding: 16px 12px; }
  .m { max-width: 88%; }
  .dock { padding: 10px 12px 12px; }
  .alert { flex-direction: column; align-items: stretch; }
  .dossier-pane { width: 100%; }
  .vhead-page { padding: 0 16px; }
  .aanpak { padding: 8px 16px 48px; }
  .sheet { padding: 0; }
  .phone { width: 100%; border-radius: 0; }
  .toast { left: 16px; right: 16px; bottom: 72px; width: auto; }
  .finale-box { padding: 28px 24px; }
  .finale-box h2 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
