/* Change Assessor — Sangoo-huisstijl. Gesprek boven (2/3), kaartenstrook onder (1/3). */
:root {
  /* Sangoo: blauw is de enige accentkleur; status-kleuren dragen alleen betekenis. */
  --paper: #FFFFFF;          /* achtergrond: wit */
  --surface: #FFFFFF;
  --surface-2: #F7F7F7;      /* heel lichte vlakken */
  --ink: #1A1A1A;            /* near-black */
  --ink-2: #333333;
  --muted: #555555;          /* slate */
  --muted-2: #8A8A8A;
  --line: #E0E0E0;           /* rule-gray */
  --line-2: #CFCFCF;
  --accent: #009FD4;         /* sangoo-blue */
  --accent-2: #0086B3;
  --accent-soft: #E6F5FB;
  --accent-ink: #fff;
  --ok: #1FA37A;             /* status-green: gedekt */
  --ok-soft: #E4F5EF;
  --gap: #E6A100;            /* status-amber: nog open */
  --gap-soft: #FBF0D6;
  --wink: #F5A800;           /* hex-yellow: één keer, als knipoog */
  --user: #E6F5FB;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -14px rgba(0, 0, 0, .18);
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --radius: 10px;
  --dock-h: 50vh;            /* het paneel met kaartjes krijgt de helft van het scherm */
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* --- Topbar ------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand img { height: 26px; width: auto; display: block; }
.session-title {
  color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 260px; padding-left: 14px; border-left: 1px solid var(--line);
}
.session-title:empty { display: none; }

.rounds { display: flex; gap: 6px; flex: 1; justify-content: center; min-width: 0; }
.round-pill {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted);
  padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; max-width: 220px; overflow: hidden;
}
.round-pill .num {
  width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--muted); flex: none;
}
.round-pill .label { overflow: hidden; text-overflow: ellipsis; }
.round-pill.done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.round-pill.done { color: var(--ink-2); }
.round-pill.current { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.round-pill.current .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress-hint { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.progress-hint:empty { display: none; }

/* --- Knoppen ------------------------------------------------------------- */
button {
  font: inherit; cursor: pointer; border: none; border-radius: 9px;
  padding: 9px 14px; background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transition: background .15s, transform .05s;
}
button:hover { background: var(--accent-2); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: default; }
button.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); font-weight: 500; }
button.ghost:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn {
  background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid transparent;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-btn:disabled { opacity: .3; }

/* --- Werkruimte: gesprek boven, dock onder ------------------------------------ */
.workspace { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.conversation { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Oudere berichten vervagen naar boven achter een wit verloop; scrollen blijft gewoon werken. */
.chat {
  flex: 1; overflow-y: auto; padding: 56px 24px 8px;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 860px; width: 100%; margin: 0 auto;
  min-height: 0; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
}
.chat::-webkit-scrollbar { display: none; }

/* Berichten: geen kaders, geen avatars — alleen een klein label en de tekst. */
.msg { display: flex; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .body { min-width: 0; max-width: 720px; }
.msg .who { font-size: 11px; color: var(--muted-2); margin-bottom: 3px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.msg .text em { font-style: normal; font-weight: 600; }  /* huisstijl: geen italic */
.msg.user { justify-content: flex-end; }
.msg.user .body { max-width: 70%; text-align: right; }
.msg.user .text { color: var(--muted); font-size: 15px; font-weight: 300; }
.msg.user .who { color: var(--accent); }
.msg .status { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .35; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Eindresultaat: het verhaal in stappen, als document in het gesprek */
.msg.deliverable .body { max-width: 740px; width: 100%; }
.msg.deliverable .who { color: var(--accent); }
.msg.deliverable .text {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; white-space: normal; font-size: 15px;
}
.msg.deliverable .text.streaming { white-space: pre-wrap; font-weight: 300; color: var(--muted); }
.msg.deliverable .text h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin: 18px 0 6px; }
.msg.deliverable .text h2:first-child { margin-top: 0; }
.msg.deliverable .text p { margin: 0 0 8px; line-height: 1.6; }
.msg.deliverable .text ul { margin: 0 0 8px; padding-left: 20px; }
.msg.deliverable .text li { margin-bottom: 4px; }
.deliv-actions { display: flex; gap: 8px; margin-top: 8px; }
.deliv-actions button { font-size: 12.5px; padding: 5px 11px; }

/* Kaart: reflectie vanuit de ontvanger */
.msg.framing .body { max-width: 740px; width: 100%; }
.msg.framing .text {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
  font-weight: 300; font-size: 16px; line-height: 1.6;
}
.msg.framing .text em { font-weight: 400; }
.msg.framing .who { color: var(--accent); }

/* Hoofdstuk-scheiding */
.chapter {
  display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .18em; font-weight: 400; margin-top: 4px;
}
.chapter::before, .chapter::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chapter b { color: var(--accent); font-weight: 600; }

/* --- Composer --------------------------------------------------------------- */
.composer-wrap { max-width: 860px; width: 100%; margin: 0 auto; padding: 6px 24px 12px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.quick-replies:empty { display: none; }
.chip {
  background: var(--surface); color: var(--accent-2); border: 1px solid var(--accent);
  border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600;
  animation: rise .2s ease-out;
}
.chip:hover { background: var(--accent-soft); }
.chip.primary { background: var(--accent); color: #fff; }
.chip.primary:hover { background: var(--accent-2); }
.chip.subtle { border-color: var(--line-2); color: var(--muted); font-weight: 500; background: transparent; }
.chip.subtle:hover { background: var(--surface-2); color: var(--ink); }

.composer {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 14px;
  padding: 6px 6px 6px 14px;
}
.composer:focus-within { background: var(--surface); border-color: var(--line-2); }
#input {
  flex: 1; resize: none; font: inherit; font-size: 15.5px; line-height: 1.5; color: var(--ink);
  background: transparent; border: none; padding: 6px 0; max-height: 160px;
}
#input:focus { outline: none; }
#input::placeholder { color: var(--muted-2); }
#send-btn { width: 36px; height: 36px; padding: 0; border-radius: 10px; display: grid; place-items: center; flex: none; }

.report-bar {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 9px 14px; margin-bottom: 8px; border-radius: 12px;
  background: var(--ok-soft); color: #0d6a4d; font-weight: 500;
}
.report-bar .report-actions { display: flex; gap: 8px; }
.report-bar button.ghost { background: var(--surface); font-size: 13px; padding: 6px 12px; }

/* Aanwijzing in het dock tijdens het nakijken van de kaartjes */
.dock-note {
  font-size: 12.5px; color: var(--accent-2); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 7px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; animation: rise .3s ease-out;
}

/* --- Dock: tabblad met antwoordkaartjes ------------------------------------------ */
.dock {
  flex: none; height: var(--dock-h); min-height: 300px; max-height: 56vh;
  display: flex; flex-direction: column; background: var(--surface);
  border-top: 1px solid var(--line);
}
.dock-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px;
  padding: 10px 12px 11px; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { background: transparent; color: var(--ink); }
.tab.active { color: var(--accent-2); border-bottom-color: var(--accent); }
.tab .count { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-counter { color: var(--muted-2); font-size: 12px; font-weight: 600; padding-bottom: 9px; white-space: nowrap; }
.card-counter:empty { display: none; }

/* Voortgangsbolletjes in het tabblad */
.dots-row { display: inline-flex; gap: 4px; align-items: center; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent;
  transition: background .2s, border-color .2s;
}
.dot.covered { background: var(--ok); border-color: var(--ok); }
.dot.gap { background: var(--gap); border-color: var(--gap); }
.dot.optional { border-style: dashed; }
.dot.pop { animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.8); } 100% { transform: scale(1); } }

/* Carrousel: één kaart per keer, breedte gelijk aan het gesprek, pijltjes ernaast */
.dock-stage {
  flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 8px;
  width: 100%; max-width: 928px; margin: 0 auto; padding: 12px 18px 6px;
}
.card-nav {
  flex: none; align-self: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line-2);
}
.card-nav:hover { background: var(--surface-2); color: var(--accent-2); border-color: var(--accent); }
.card-nav:disabled { opacity: .35; background: var(--surface); color: var(--muted); border-color: var(--line); }
.cards {
  flex: 1; min-width: 0; min-height: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px;
}
.cards:focus { outline: none; }
.card {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; overflow-y: auto; scrollbar-width: thin;
}
.card.covered { border-top: 3px solid var(--ok); }
.card.gap { border-top: 3px solid var(--gap); }
.card.open { border-style: dashed; color: var(--muted-2); }
.card.pop { animation: cardin .35s ease-out; }
@keyframes cardin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card-head { display: flex; gap: 8px; align-items: flex-start; }
.card .mark {
  width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); font-size: 11px; color: #fff;
}
.card.covered .mark { background: var(--ok); border-color: var(--ok); }
.card.gap .mark { background: var(--gap); border-color: var(--gap); }
.card.open .mark { border-style: dashed; }
.card-point { font-size: 12.5px; color: var(--muted); line-height: 1.4; font-weight: 600; }
.card.open .card-point { color: var(--muted-2); font-weight: 500; }
.card-point.placeholder { color: var(--muted-2); font-weight: 500; }
.card.optional .card-point::after { content: " · optioneel"; color: var(--muted-2); font-weight: 400; font-size: 11px; }
.card-summary { font-size: 14px; line-height: 1.5; white-space: pre-wrap; color: var(--ink); }
.card-quote { color: var(--muted); font-size: 12.5px; font-weight: 300; }
.card-quote::before { content: "“"; } .card-quote::after { content: "”"; }
.card-foot { margin-top: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; letter-spacing: .2px; }
.tag.gap { background: var(--gap-soft); color: #8a6200; }
.tag.edited { background: var(--ok-soft); color: #0d6a4d; }
.card-edit {
  background: transparent; color: var(--muted); padding: 2px 8px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; border-radius: 999px; margin-left: auto;
}
.card-edit:hover { color: var(--accent-2); border-color: var(--line-2); background: var(--surface-2); }
.card-editor textarea {
  width: 100%; min-height: 64px; resize: vertical; font: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: 8px;
}
.card-editor textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.card-editor .row { display: flex; gap: 6px; margin-top: 6px; }
.card-editor .row button { font-size: 12.5px; padding: 5px 11px; }

.empty { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; line-height: 1.5; padding: 4px 2px; font-weight: 300; margin: auto; text-align: center; max-width: 46ch; }
.empty b { color: var(--ink-2); font-weight: 600; }

/* Verhaal-tab */
.story-view { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 18px; max-width: 860px; }
.story-round { margin-bottom: 18px; }
.story-round h4 {
  margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent); font-weight: 400;
}
.story-text { font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
.story-text.fresh { animation: glow 1.6s ease-out; }
@keyframes glow { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

/* --- Verhaal in stappen: eigen volledig scherm (leeg blad) ------------------ */
.story-screen {
  position: fixed; inset: 0; z-index: 25; overflow-y: auto; background: var(--paper);
  transition: opacity .5s ease, transform .5s ease;
}
.story-screen.leaving { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.story-screen-inner { max-width: 720px; margin: 0 auto; padding: 76px 24px 96px; }
.story-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 400; margin-bottom: 10px; }
.story-heading { font-size: 30px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; margin: 0 0 40px; }
.story-heading:empty { margin-bottom: 8px; }
.story-doc { font-size: 16px; line-height: 1.7; color: var(--ink); }
.story-doc.streaming { white-space: pre-wrap; font-weight: 300; color: var(--muted); }
.story-doc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin: 34px 0 10px; }
.story-doc h2:first-child { margin-top: 0; }
.story-doc h3 { font-size: 16px; margin: 22px 0 8px; }
.story-doc p { margin: 0 0 14px; }
.story-doc ul { margin: 0 0 14px; padding-left: 22px; }
.story-doc li { margin-bottom: 6px; }
.story-doc code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.story-screen-actions { display: flex; gap: 10px; margin-top: 48px; flex-wrap: wrap; }
.story-hint { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 300; line-height: 1.5; max-width: 60ch; }
@media (max-width: 900px) {
  .story-screen-inner { padding: 48px 20px 72px; }
  .story-heading { font-size: 24px; }
}

/* --- Startscherm --------------------------------------------------------- */
/* Eén vraag per scherm; Enter of de knop gaat naar de volgende. Het scherm vervaagt
   naar het gesprek zodra de laatste vraag beantwoord is. */
.start {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto;
  background: var(--paper);
  display: flex; justify-content: center; align-items: center; padding: 32px 20px;
  transition: opacity .45s ease, transform .45s ease;
}
/* Voor beheerders: de weg naar /admin, ook als het startscherm de kop bedekt. */
.start-admin {
  position: absolute; top: 14px; right: 18px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 8px;
}
.start-admin:hover { background: var(--surface-2); color: var(--ink); }
/* Proefgesprek op een conceptversie (enkel beheerders). */
.trial-badge { font-size: 12.5px; font-weight: 600; color: var(--accent-2); white-space: nowrap; }
.start-trial { position: absolute; top: 20px; left: 22px; }
.start.leaving { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.start-card { width: min(640px, 100%); padding: 0 8px; }
.start-brand { margin-top: 56px; }
.start-brand img { height: 36px; width: auto; display: block; }
.start-intro:empty { display: none; }
.start-form { display: flex; flex-direction: column; gap: 18px; }

.intake-progress { display: flex; align-items: center; gap: 12px; }
.intake-bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 220px; }
.intake-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
#intake-counter { font-size: 12px; color: var(--muted-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Vragen schuiven van onder naar boven; wat wegschuift vervaagt achter het wit. */
.intake-step {
  position: relative; min-height: 170px; padding-top: 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 12px), transparent 100%);
}
.field { display: flex; flex-direction: column; gap: 10px; }
/* De intro als eerste stap: zelfde plek en beweging als de vragen. */
.field.intro { gap: 0; color: var(--ink-2); font-size: 16px; font-weight: 300; line-height: 1.55; max-width: 54ch; }
.field.intro p { margin: 0 0 14px; }
.field.intro p:last-child { margin-bottom: 0; }
.field.entering { animation: stepin 1s cubic-bezier(.2,.7,.2,1) .1s both; }
.field.entering.from-top { animation-name: stepin-top; }
.field.leaving { position: absolute; left: 0; right: 0; top: 28px; pointer-events: none; animation: stepout-up 1s ease-in-out forwards; }
.field.leaving.down { animation-name: stepout-down; }
@keyframes stepin { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes stepin-top { from { opacity: 0; transform: translateY(-44px); } to { opacity: 1; transform: none; } }
@keyframes stepout-up { to { opacity: 0; transform: translateY(-80px); } }
@keyframes stepout-down { to { opacity: 0; transform: translateY(80px); } }
.field .q { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -.1px; }
.field .q em { font-weight: 400; color: var(--muted); font-style: normal; font-size: 14.5px; letter-spacing: 0; display: block; margin-top: 4px; }
.field .opt { font-size: 12.5px; color: var(--muted-2); font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--surface);
  border: none; border-radius: 0; padding: 10px 2px; resize: none;
  caret-color: var(--accent);   /* de cursor valt op, ook in een leeg veld */
}
.field input:focus, .field textarea:focus { outline: none; }
.field textarea { min-height: 96px; line-height: 1.5; }
.start-error { color: #C4363A; font-size: 13.5px; font-weight: 500; }
.start-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
#start-btn { padding: 11px 22px; font-size: 15px; }
.keyhint { font-size: 12.5px; color: var(--muted-2); }
.keyhint b { font-weight: 600; color: var(--muted); }
.start-intro.hidden + .start-form { padding-top: 0; }

/* --- Aanmelden ----------------------------------------------------------- */
.start.login { z-index: 30; }
.login .field input { border-bottom: 1px solid var(--line-2); }
.login .field input:focus { border-bottom-color: var(--accent); }
.login-msg { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 54ch; }
#login-btn { padding: 11px 22px; font-size: 15px; }

/* Het gesprek schuift zacht in beeld zodra de intake klaar is. */
.workspace.entering .conversation, .workspace.entering .dock { animation: rise .5s ease-out; }

/* Contextkaartjes (intake) in het dock */
.card.context { border-top: 3px solid var(--accent); color: var(--ink); }
.card.context .mark { background: var(--accent); border-color: var(--accent); font-size: 10px; }
.card.context .card-summary:empty::before { content: "(niet ingevuld)"; color: var(--muted-2); }
.tab .ctx-mark { font-size: 11px; color: var(--accent); }

/* --- Rapport ---------------------------------------------------------------- */
dialog#report-dialog {
  width: min(860px, 92vw); max-height: 88vh; padding: 0;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(20, 20, 20, .4); }
.report-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface);
}
.report-actions { display: flex; gap: 8px; }
.report-content { padding: 22px 30px 30px; overflow-y: auto; max-height: 74vh; font-size: 15px; }
.report-content h1 { font-size: 26px; font-weight: 700; }
.report-content h2 { font-size: 18px; margin-top: 26px; color: var(--accent); }
.report-content h3 { font-size: 15.5px; margin-top: 18px; }
.report-content code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.report-content ul { padding-left: 20px; }

/* --- Responsief --------------------------------------------------------------- */
@media (max-width: 1100px) { .round-pill .label { display: none; } .round-pill { padding-right: 6px; } }
@media (max-width: 900px) {
  .session-title, .progress-hint { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field .q { font-size: 18px; }
  .dock-stage { padding-left: 10px; padding-right: 10px; }
  .start-card { padding: 26px 22px; }
  .start h1 { font-size: 28px; }
}

/* PDF / afdrukken: enkel het verhaal in stappen, zonder knoppen. */
@page { margin: 2cm; }
@media print {
  html, body.printing-story { height: auto !important; overflow: visible !important; }
  body.printing-story > *:not(#story-screen) { display: none !important; }
  body.printing-story #story-screen { position: static !important; overflow: visible !important; height: auto !important; }
  .story-screen-actions, .story-hint { display: none !important; }
  .story-screen-inner { padding: 0 !important; max-width: none !important; }
}
