/* ============================================================
   Parla (interview-copilot) — "Terrein" (naar curaclimate.com)
   Aard-hoofdstukken: bot/crème canvas · terracotta actie ·
   oxblood zwaar · mint/bosgroen geslaagd · hairline-kolomgrid ·
   pill-labels · viewfinder-CTA's · richting-bewuste slides.
   Schibsted Grotesk (display) + Geist (body).
   ============================================================ */

:root {
  --bone:      #fbfcf7;
  --cream:     #f6f1e4;
  --stone:     #edeee8;
  --mint:      #dbfbd9;
  --mint-soft: #ecfbea;
  --forest:    #2c3a2c;
  --forest-2:  #1f2a1f;
  --oxblood:   #4f1817;
  --terra:     #c96a47;
  --terra-2:   #b85a38;
  --terra-soft:#f3ddd2;

  --bg:        var(--bone);
  --surface:   #ffffff;
  --surface-2: var(--stone);
  --text:      #161613;
  --text-2:    #3a3a33;
  --muted:     #6f6f64;
  --faint:     #9a9a8c;
  --line:      #e3e3da;
  --line-2:    #ecece3;
  --grid-line: rgba(22, 22, 19, .055);

  --accent:      var(--terra);
  --accent-hover:var(--terra-2);
  --accent-soft: var(--terra-soft);

  --green: #2f6b3f; --green-soft: var(--mint); --green-ink: #1e4a2a;
  --amber: #a4690e; --amber-soft: #f6ecd0; --amber-ink: #7c4a08;
  --red:   #8e2f23; --red-soft:   #f3ddd8; --red-ink:   var(--oxblood);

  --shadow-sm: 0 1px 2px rgba(22,22,19,.05);
  --shadow:    0 10px 30px rgba(22,22,19,.09);
  --shadow-lg: 0 28px 70px rgba(22,22,19,.18);
  --ring:      0 0 0 3px rgba(201,106,71,.22);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --disp: "Schibsted Grotesk", "Geist", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  --r-sm: 6px; --r: 9px; --r-lg: 13px; --r-xl: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
/* CURA: architecturale hairline-kolommen over het hele canvas */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) repeat-x left top / 20% 100%,
    linear-gradient(180deg, rgba(246,241,228,.85), rgba(251,252,247,0) 380px);
}
#app { position: relative; z-index: 1; }

h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--text); }
h4 { margin: 0; font-weight: 700; line-height: 1.25; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
.ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
a { color: var(--terra-2); }
::selection { background: var(--mint); }
::placeholder { color: var(--faint); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d4d4c8; border-radius: 99px; border: 3px solid var(--bone); }
::-webkit-scrollbar-thumb:hover { background: #c2c2b4; }
.tnum { font-variant-numeric: tabular-nums; }

/* CURA-reveal: regels/kaarten komen rijzend binnen */
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.view, .tab-body > * { animation: reveal .5s cubic-bezier(.2,.7,.2,1) both; }
.cand-grid > *, .qgroup .qcard, .point, .sresult { animation: reveal .55s cubic-bezier(.2,.7,.2,1) both; }
.cand-grid > :nth-child(1), .qgroup .qcard:nth-child(1) { animation-delay: .03s; }
.cand-grid > :nth-child(2), .qgroup .qcard:nth-child(2) { animation-delay: .08s; }
.cand-grid > :nth-child(3), .qgroup .qcard:nth-child(3) { animation-delay: .13s; }
.cand-grid > :nth-child(4), .qgroup .qcard:nth-child(4) { animation-delay: .18s; }
.cand-grid > :nth-child(5), .qgroup .qcard:nth-child(5) { animation-delay: .23s; }
.cand-grid > :nth-child(n+6), .qgroup .qcard:nth-child(n+6) { animation-delay: .27s; }

/* richting-bewuste hoofdstuk-slides (tabwissel) */
@keyframes slideFromRight { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideFromLeft  { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: translateX(0); } }
.tab-body.slide-right > * { animation: slideFromRight .42s cubic-bezier(.2,.7,.2,1) both; }
.tab-body.slide-left  > * { animation: slideFromLeft  .42s cubic-bezier(.2,.7,.2,1) both; }

/* hoofdstuk-tinten per tab */
.tab-body { transition: background-color .45s ease; }
.tab-body[data-chapter="interview"] { background: var(--bone); }
.tab-body[data-chapter="notes"]     { background: var(--mint-soft); }
.tab-body[data-chapter="dossier"]   { background: var(--cream); }

/* ---------- top bar ---------- */
.topbar {
  height: 62px; background: rgba(251,252,247,.88); backdrop-filter: saturate(150%) blur(10px);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: var(--terra); color: var(--bone);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; font-family: var(--disp);
}
.brand .name { font-family: var(--disp); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1; }
.brand .sub { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.topbar .spacer { flex: 1; }

.mode-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; background: var(--mint); color: var(--green-ink);
}
.mode-badge .dot { width: 7px; height: 7px; border-radius: 1px; }
.mode-badge.live .dot { background: var(--green); }
.mode-badge.demo { background: var(--amber-soft); color: var(--amber-ink); }
.mode-badge.demo .dot { background: var(--amber); }

#user-chip:not(:empty) { display: inline-flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.user-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: var(--mint); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.logout { font-size: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.logout:hover { color: var(--terra-2); }

/* ---------- knoppen: CURA viewfinder-hoekjes + ▪ ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13.5px;
  transition: all .16s ease;
}
.btn::before { content: "▪"; font-size: 8px; color: var(--terra); line-height: 1; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--terra); color: var(--bone); border-color: var(--terra); }
.btn-primary::before { color: var(--bone); }
.btn-primary:hover { background: var(--terra-2); border-color: var(--terra-2); color: var(--bone); }
/* viewfinder-hoekjes op primaire CTA's */
.btn-primary::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  background:
    linear-gradient(var(--text), var(--text)) left top / 9px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) left top / 1.5px 9px no-repeat,
    linear-gradient(var(--text), var(--text)) right top / 9px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) right top / 1.5px 9px no-repeat,
    linear-gradient(var(--text), var(--text)) left bottom / 9px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) left bottom / 1.5px 9px no-repeat,
    linear-gradient(var(--text), var(--text)) right bottom / 9px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) right bottom / 1.5px 9px no-repeat;
  opacity: .55; transition: opacity .16s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-navy { background: var(--forest); color: var(--mint); border-color: var(--forest); }
.btn-navy::before { color: var(--mint); }
.btn-navy:hover { background: var(--forest-2); color: var(--mint); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost::before { content: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-danger { color: var(--oxblood); border-color: #e0c5c0; background: var(--surface); }
.btn-danger::before { color: var(--oxblood); }
.btn-danger:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--cream); }
.btn-danger:hover::before { color: var(--cream); }
.btn .ico { width: 15px; height: 15px; }

/* ---------- generiek ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 46px 26px 90px; }
/* CURA pill-label */
.eyebrow {
  display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-ink); font-weight: 700; background: var(--mint);
  padding: 5px 13px; border-radius: 999px;
}
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- bibliotheek ---------- */
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 34px; }
.lib-head h1 { font-size: 46px; margin-top: 14px; }
.lib-head p { color: var(--muted); max-width: 560px; margin: 12px 0 0; font-size: 15px; }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cand-card { padding: 22px; cursor: pointer; transition: all .18s ease; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--terra); }
.cand-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--terra-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 15px; font-family: var(--disp); }
.cand-card h3 { font-size: 20px; }
.cand-card .role { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cand-card .foot { display: flex; align-items: center; gap: 10px; margin-top: 17px; font-size: 11.5px; color: var(--faint); font-weight: 600; font-family: var(--mono); }
.cand-card .pill { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); }
.cand-card .pill.done { background: var(--mint); color: var(--green-ink); }

.empty { border: 1.5px dashed #cfcfc2; border-radius: var(--r-xl); background: var(--surface); padding: 68px 30px; text-align: center; }
.empty h2 { font-size: 28px; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 52px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--terra); font-size: 12.5px; color: rgba(251,252,247,.85); font-weight: 500; }
.footer a { color: var(--bone); text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }

/* ---------- privacy / voorbereiden ---------- */
.prep-wrap { max-width: 720px; margin: 0 auto; }
.prep-card { padding: 38px; border-radius: var(--r-xl); }
.prep-card h1 { font-size: 30px; margin-top: 14px; }
.privacy h3 { font-size: 17px; margin: 26px 0 6px; }
.privacy p { color: var(--text-2); margin: 0; font-size: 14px; }
.gdpr-hint { font-size: 12.5px; color: var(--green-ink); background: var(--mint-soft); border-radius: var(--r); padding: 11px 14px; margin: 18px 0 0; font-weight: 500; }
.gdpr-hint a { color: var(--terra-2); font-weight: 700; text-decoration: none; }

.field { margin-top: 24px; }
.field > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--text-2); }
.field .hint { color: var(--faint); font-size: 12.5px; font-weight: 400; }
.input, .textarea, select.input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border .15s, box-shadow .15s; resize: vertical; color: var(--text);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--terra); box-shadow: var(--ring); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg button { border: none; background: transparent; padding: 7px 15px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--forest); color: var(--mint); }

.dropzone { border: 1.5px dashed #cfcfc2; border-radius: var(--r-lg); padding: 30px; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--terra); background: var(--terra-soft); }
.dropzone .ico { width: 28px; height: 28px; color: var(--terra); margin-bottom: 8px; }
.dropzone .file { color: var(--green-ink); font-weight: 700; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 10.5px; margin: 16px 0; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- werkruimte ---------- */
.ws { display: grid; grid-template-columns: 322px 1fr; height: calc(100vh - 62px); }
.ws-rail { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.ws-main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }

.ws-topline { display: flex; align-items: center; gap: 14px; padding: 16px 26px; border-bottom: 1px solid var(--line); background: var(--bone); }
.ws-topline .back { color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ws-topline .back:hover { color: var(--terra-2); }
.ws-topline h2 { font-size: 19px; }
.ws-topline .role-tag { font-size: 13px; color: var(--muted); }
.ws-topline .save { margin-left: auto; font-size: 11px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.ws-topline .save .dot { width: 7px; height: 7px; border-radius: 1px; background: var(--green); }
.ws-topline .save.saving .dot { background: var(--amber); }

.tabs { display: flex; align-items: center; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--bone); }
.tabs button { border: none; background: transparent; padding: 14px 14px 12px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--disp); letter-spacing: -0.01em; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--terra); }
.tabs .sec-no { display: none; }
.tabs .count { font-size: 10.5px; font-weight: 700; background: var(--surface-2); padding: 1px 8px; border-radius: 999px; color: var(--muted); font-family: var(--mono); }
.tabs button.on .count { background: var(--mint); color: var(--green-ink); }
/* CURA-carousel-pijlen voor tabwissel */
.tab-arrows { margin-left: auto; display: inline-flex; gap: 7px; padding: 8px 0; }
.tab-arrows button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface); color: var(--text); display: grid; place-items: center; font-size: 14px;
  transition: all .15s;
}
.tab-arrows button:hover { background: var(--terra); border-color: var(--terra); color: var(--bone); }
.tab-body { flex: 1; overflow-y: auto; padding: 26px; }

/* ---------- cv-rail ---------- */
.cv-head { padding: 22px; border-bottom: 1px solid var(--line-2); }
.cv-head .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--terra-2); display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 14px; font-family: var(--disp); }
.cv-head h3 { font-size: 21px; }
.cv-head .title { color: var(--terra-2); font-weight: 700; font-size: 12px; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.cv-head .headline { color: var(--text-2); font-size: 13px; margin-top: 12px; line-height: 1.55; }
.cv-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 12px; font-size: 11px; color: var(--muted); font-weight: 600; font-family: var(--mono); }
.cv-meta b { color: var(--text); font-weight: 800; }

.cv-sect { padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.cv-sect h4 { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 12px; font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--text-2); font-weight: 600; }
.chip.gold { background: var(--mint); color: var(--green-ink); font-weight: 700; }

.exp { position: relative; padding: 0 0 16px 19px; }
.exp::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: -2px; width: 1px; background: var(--line); }
.exp:last-child::before { display: none; }
.exp .node { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 1px; background: var(--terra); }
.exp .co { font-weight: 700; font-size: 13.5px; }
.exp .ti { color: var(--muted); font-size: 12.5px; }
.exp .pe { font-size: 10.5px; color: var(--faint); margin-top: 2px; font-weight: 600; font-family: var(--mono); }
.exp ul { margin: 7px 0 0; padding-left: 16px; }
.exp li { font-size: 12.5px; color: var(--text-2); margin-bottom: 3px; }

.flag { display: flex; gap: 9px; padding: 10px 12px; border-radius: var(--r); margin-bottom: 7px; font-size: 12.5px; }
.flag .tag { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; height: fit-content; white-space: nowrap; font-weight: 800; }
.flag.standout { background: var(--mint-soft); } .flag.standout .tag { background: var(--mint); color: var(--green-ink); }
.flag.gap, .flag.short_tenure { background: var(--amber-soft); } .flag.gap .tag, .flag.short_tenure .tag { background: #ecd9a8; color: var(--amber-ink); }
.flag.claim { background: var(--red-soft); } .flag.claim .tag { background: #e6c3bb; color: var(--oxblood); }
.flag.note { background: var(--surface-2); } .flag.note .tag { background: #ddddd2; color: var(--muted); }
.flag .dtl { color: var(--text-2); }

/* ---------- vragen ---------- */
.qgroup { margin-bottom: 30px; }
.qgroup-head h3 { font-size: 21px; }
.qcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 17px; margin-bottom: 10px; background: var(--surface); transition: all .16s; }
.qcard:hover { border-color: var(--terra); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.qcard.asked { opacity: .55; background: var(--surface-2); }
.qcard .top { display: flex; gap: 12px; align-items: flex-start; }
.qcard .q { font-size: 14.5px; line-height: 1.55; flex: 1; font-weight: 550; }
.qcard .why { font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--terra-soft); }
.qcard .meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.q-link { font-size: 10px; color: var(--terra-2); background: var(--terra-soft); padding: 3px 9px; border-radius: 999px; font-weight: 700; font-family: var(--mono); }
.toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 11px; color: var(--muted); user-select: none; white-space: nowrap; flex: none; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.toggle .box { width: 18px; height: 18px; border-radius: 3px; border: 1.5px solid #c9c9bb; display: grid; place-items: center; background: var(--surface); transition: all .15s; }
.toggle.on .box { background: var(--forest); border-color: var(--forest); color: var(--mint); }
.toggle.on { color: var(--green-ink); }
.cq-add-row { display: flex; gap: 8px; margin-top: 4px; }

.own-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.own-panel h4 { font-size: 15px; margin-bottom: 4px; font-family: var(--disp); }
.custom-q { display: flex; gap: 8px; align-items: center; padding: 9px 12px; background: var(--surface-2); border-radius: var(--r); margin-bottom: 7px; font-size: 13px; }
.custom-q .x { margin-left: auto; color: var(--faint); cursor: pointer; }
.custom-q .x:hover { color: var(--oxblood); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1120px) { .split { grid-template-columns: 1fr; } }

/* ---------- recorder ---------- */
.recorder { position: sticky; top: 0; }
.rec-card { padding: 17px; border-radius: var(--r-xl); }
.rec-hint { font-size: 10.5px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 7px; font-weight: 600; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.rec-hint::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--green); }
.rec-bar { display: flex; align-items: center; gap: 11px; margin: 13px 0; }
.rec-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--terra); color: var(--bone); border: none; font-weight: 800; font-size: 13.5px; transition: all .15s;
  font-family: var(--disp);
}
.rec-btn:hover { background: var(--terra-2); }
.rec-btn .pulse { width: 8px; height: 8px; border-radius: 1px; background: rgba(251,252,247,.9); }
.rec-btn.recording { background: var(--oxblood); }
.rec-btn.recording .pulse { animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.rec-timer { font-size: 13.5px; color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--mono); }

.transcript { background: var(--surface-2); border-radius: var(--r); padding: 14px; height: 330px; overflow-y: auto; font-size: 13.5px; line-height: 1.6; }
.transcript:empty::before { content: "Het transcript verschijnt hier zodra je opneemt of het voorbeeld afspeelt…"; color: var(--faint); }
.t-line { margin-bottom: 9px; display: flex; gap: 8px; }
.t-line .t-time { font-family: var(--mono); font-size: 10px; color: var(--faint); flex: none; padding-top: 3px; }
.t-line .t-who { font-weight: 800; font-size: 13px; }
.t-line.kandidaat .t-who { color: var(--terra-2); }
.t-line.recruiter .t-who { color: var(--text); }
.t-line.notitie { background: var(--amber-soft); border-radius: var(--r-sm); padding: 8px 11px; }
.t-line.notitie .t-who { color: var(--amber-ink); }
.t-line.notitie .t-text { font-style: italic; }
.t-line .t-text { color: var(--text-2); }
.t-interim { color: var(--faint); font-style: italic; }
.qn-row { margin-top: 10px; }
.qn-row .input { background: var(--amber-soft); border-color: #e6d4a8; }
.qn-row .input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(164,105,14,.15); }
.rec-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notice { font-size: 12.5px; color: var(--amber-ink); background: var(--amber-soft); padding: 10px 13px; border-radius: var(--r); margin-top: 10px; font-weight: 500; }
.notice code { font-family: var(--mono); font-size: 11.5px; }

.speaker-roles:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 13px; margin: 11px 0; background: var(--mint-soft); border-radius: var(--r); }
.spk-head { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); width: 100%; font-weight: 800; font-family: var(--mono); }
.spk-head span { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; font-family: var(--sans); }
.spk { display: flex; align-items: center; gap: 8px; }
.spk-id { font-size: 12px; color: var(--text-2); font-weight: 700; }
.spk-seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; }
.spk-seg button { border: none; background: transparent; padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 700; }
.spk-seg button.on { background: var(--forest); color: var(--mint); }

/* hoge-nauwkeurigheid Azure ---------- */
.aa { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.aa-head { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 11px; font-weight: 800; font-family: var(--mono); }
.aa-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 9px; }
.aa-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.seg-sm button { padding: 5px 12px; font-size: 12px; }
.aa-status:not(:empty) { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-top: 4px; font-weight: 600; }

/* ---------- notities ---------- */
.notes-empty { text-align: center; padding: 60px 20px; }
.notes-empty .ico { width: 40px; height: 40px; color: var(--terra); margin-bottom: 12px; }
.notes-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 1120px) { .notes-grid { grid-template-columns: 1fr; } }
.note-block { margin-bottom: 30px; }
.note-block > h3 { font-size: 10.5px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.note-block > h3 .ico { width: 14px; height: 14px; color: var(--terra); }

.summary-card { padding: 22px 24px; background: var(--forest); border-radius: var(--r-lg); }
.summary-card p { margin: 0; color: var(--mint-soft); font-size: 15.5px; line-height: 1.65; font-weight: 450; }

.assess-side .gauge-card { padding: 24px; text-align: center; background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); }
.gauge { --val: 0; width: 126px; height: 126px; margin: 6px auto 14px; border-radius: 50%; background: conic-gradient(var(--terra) calc(var(--val)*1%), var(--surface-2) 0); display: grid; place-items: center; position: relative; }
.gauge::after { content: ""; position: absolute; inset: 10px; background: var(--surface); border-radius: 50%; }
.gauge .num { position: relative; z-index: 1; font-size: 32px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; font-family: var(--disp); }
.gauge .num small { font-size: 13px; color: var(--muted); font-weight: 600; }
.rec-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.rec-badge.sterk_aanbevolen { background: var(--forest); color: var(--mint); }
.rec-badge.aanbevolen { background: var(--mint); color: var(--green-ink); }
.rec-badge.twijfel { background: var(--amber-soft); color: var(--amber-ink); }
.rec-badge.niet_aanbevolen { background: var(--oxblood); color: var(--cream); }

.point { display: flex; gap: 12px; padding: 14px 15px; border-radius: var(--r-lg); margin-bottom: 9px; background: var(--surface); border: 1px solid var(--line); }
.point .ic { width: 26px; height: 26px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.point.s .ic { background: var(--mint); color: var(--green-ink); }
.point.c .ic { background: var(--amber-soft); color: var(--amber-ink); }
.point .pt { font-weight: 700; font-size: 14px; }
.point .ev { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.point .lk { font-size: 10.5px; color: var(--terra-2); margin-top: 7px; display: inline-block; font-weight: 700; font-family: var(--mono); }
.sev { font-size: 9px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-left: 8px; font-weight: 800; letter-spacing: .06em; }
.sev.hoog { background: var(--oxblood); color: var(--cream); }
.sev.midden { background: var(--amber-soft); color: var(--amber-ink); }
.sev.laag { background: var(--surface-2); color: var(--muted); }

.pq { padding: 12px 14px; border-left: 3px solid var(--line); margin-bottom: 8px; background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
.pq.asked { border-left-color: var(--terra); }
.pq.skip { opacity: .55; }
.pq .pq-q { font-size: 13px; font-weight: 700; }
.pq .pq-a { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pq .pq-as { font-size: 12px; color: var(--text-2); margin-top: 4px; font-weight: 500; }
.sig-list { padding-left: 18px; margin: 8px 0 0; }
.sig-list li { font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--mint); color: var(--green-ink); font-size: 12px; font-weight: 700; margin: 0 6px 6px 0; }

/* ---------- dossier ---------- */
.search-box { position: relative; margin-bottom: 18px; }
.search-box input { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.search-box input:focus { outline: none; border-color: var(--terra); box-shadow: var(--ring); }
.search-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.sresult { padding: 13px 15px; border-radius: var(--r); margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); }
.sresult .src { font-size: 9.5px; color: var(--terra-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; font-weight: 800; font-family: var(--mono); }
.sresult .snip { font-size: 13px; color: var(--text-2); }
.hl { background: var(--mint); color: var(--green-ink); border-radius: 3px; padding: 0 3px; font-weight: 700; }

.ask-wrap { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips-row .ex { cursor: pointer; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: all .15s; }
.chips-row .ex:hover { border-color: var(--terra); color: var(--terra-2); background: var(--terra-soft); }
.chat { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: var(--r-lg); font-size: 13.5px; line-height: 1.55; }
.bubble.user { align-self: flex-end; background: var(--forest); color: var(--mint-soft); border-bottom-right-radius: 4px; font-weight: 500; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text-2); }
.bubble.bot .cursor { display: inline-block; width: 7px; height: 14px; background: var(--terra); margin-left: 1px; vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
/* mini-markdown in antwoorden: rustige alinea's en bullets */
.bubble.bot p { margin: 0 0 8px; }
.bubble.bot p:last-child { margin-bottom: 0; }
.bubble.bot ul { margin: 0 0 8px; padding-left: 18px; }
.bubble.bot ul:last-child { margin-bottom: 0; }
.bubble.bot li { margin-bottom: 4px; }
.bubble.bot li:last-child { margin-bottom: 0; }
.bubble.bot strong { color: var(--text); font-weight: 700; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.ask-form { display: flex; gap: 10px; }
.ask-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }
.ask-form input:focus { outline: none; border-color: var(--terra); box-shadow: var(--ring); }

/* ---------- overlay: CURA-laadscherm ---------- */
.spinner { width: 18px; height: 18px; border: 2.5px solid #ddddd0; border-top-color: var(--terra); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: #ddddd0; border-top-color: var(--terra); }
@keyframes spin { to { transform: rotate(360deg); } }
.overlay { position: fixed; inset: 0; background: var(--cream); display: grid; place-items: center; z-index: 100; animation: reveal .3s ease both; }
.overlay::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, var(--grid-line) 1px, transparent 1px) repeat-x left top / 20% 100%; }
.overlay .box { background: transparent; border-radius: 0; padding: 0; text-align: center; box-shadow: none; max-width: 460px; position: relative; }
.overlay .box .spinner { display: none; }
.overlay .box h3 { font-family: var(--disp); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.overlay .box h3::after { content: ""; display: block; width: 56px; height: 3px; background: var(--terra); margin: 18px auto 0; }
.overlay .box p { color: var(--muted); margin: 14px 0 0; font-size: 13.5px; }
.overlay .steps { margin-top: 26px; text-align: left; font-size: 13px; display: inline-block; }
.overlay .steps div { padding: 5px 0; color: var(--faint); display: flex; gap: 9px; align-items: center; font-weight: 500; }
.overlay .steps .st-ic { width: 16px; text-align: center; flex: none; }
.overlay .steps div.done .st-ic { color: var(--green); }
.overlay .steps div.active .st-ic { color: var(--terra); }
.overlay .steps div.active { color: var(--text); font-weight: 700; }
.overlay .steps div.done { color: var(--green-ink); }
.overlay .pct { position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; color: var(--text-2); font-weight: 600; }
.overlay .pct::before { content: "▪ "; color: var(--terra); font-size: 9px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--forest); color: var(--mint-soft); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 200; font-size: 13px; font-weight: 700; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .ws { grid-template-columns: 1fr; height: auto; }
  .ws-rail { border-right: none; border-bottom: 1px solid var(--line); max-height: 380px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
