/* Lumen demo, styled after the Lumen beta design (Montisoro). Light, warm canvas; brand blue accents. */
:root {
  --canvas: #EFEDE8; --top: #FBFAF6; --panel: #E9E7E2; --card: #FFFEFB; --card-2: #F6F5F1;
  --ink: #1F1F1C; --ink-2: #3B3A36; --muted: #75726B; --faint: #A29F97; --line: #ECE9E2; --line-2: #DEDBD3;
  --brand: #1F3FD4; --brand-d: #0020C1; --brand-soft: #EEF1FD; --brand-line: #C9D1F6;
  --good: #1B6C47; --mid: #8C5B07; --mid-bg: #F5F1E8; --low: #B32F3F; --low-soft: #FBF1F1;
  --shadow: 0 1px 2px rgba(40, 36, 28, .06), 0 2px 8px rgba(40, 36, 28, .05);
  --mono: "Ubuntu Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 "DM Sans", system-ui, sans-serif; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
svg { width: 16px; height: 16px; flex: none; }
h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* top bar */
.top { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: var(--top); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.logo { height: 22px; width: auto; display: block; }
.top-div { width: 1px; height: 22px; background: var(--line-2); }
.top-title { font-weight: 500; font-size: 15px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-status { font-size: 12.5px; color: var(--muted); }
.langswitch { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--canvas); }
.langswitch button { border: 0; background: none; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.langswitch button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 600; flex: none; border: 1px solid var(--line); }
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; background: var(--brand-soft); color: var(--brand-d); border: 0; }

/* buttons, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 500; font-size: 13.5px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: #CBC7BE; }
.btn.primary { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #001A9E; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.btn .red, svg.red { color: var(--low); }
.btn.on { background: var(--mid-bg); border-color: #E2D6BD; color: var(--mid); }
.icon-btn { border: 0; background: none; padding: 4px; border-radius: 8px; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn.ghost { cursor: default; }
.icon-btn.boxed { background: var(--card); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 10px; cursor: default; }
.field { display: grid; gap: 5px; }
.field .lbl { font-size: 12px; color: var(--muted); }
.field.inline { margin-top: 12px; }
input[type=text], input[type=tel], input[type=password], select { padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--brand-line); outline-offset: 0; border-color: var(--brand); }
.screen { min-height: calc(100vh - 52px); }

/* 0 · password */
.lock { display: grid; place-items: center; padding: 24px 16px; }
.lock-card { width: 340px; max-width: 100%; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 30px 28px 26px; display: grid; gap: 14px; }
.lock-logo { height: 40px; justify-self: center; }
.lock-sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: -6px; margin-bottom: 4px; }
.lock-msg { margin: -4px 0 0; min-height: 18px; font-size: 12.5px; color: var(--low); }

/* 1 · prepare */
.prep { padding: 18px 20px 28px; }
.prep-wrap { max-width: 1060px; margin: 0 auto; display: grid; gap: 14px; }
.alert { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #E3A5AC; border-radius: 10px; background: var(--card); color: var(--low); font-size: 13px; }
.alert.ok { border-color: #B7D3C4; color: var(--good); }
.prep-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prep-meta { font-size: 13px; color: var(--muted); }
.prep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: stretch; }
.prep-col { display: grid; gap: 14px; align-content: start; }
.pcard { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard h3 { margin-bottom: 10px; }
.pcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.pcard-head h3 { margin-bottom: 6px; }
.pcard.grow { flex: 1; }
.prep-col:last-child { display: flex; flex-direction: column; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.contact { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; text-align: left; }
.contact .avatar { width: 28px; height: 28px; font-size: 10.5px; background: var(--card-2); }
.contact b { display: block; font-weight: 500; font-size: 13.5px; }
.contact small { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.contact.sel { border-color: var(--brand); background: var(--brand-soft); }
.contact.sel .avatar { background: var(--brand-d); color: #fff; border-color: var(--brand-d); }
.prow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.prow .role { margin-left: auto; font-size: 12px; color: var(--muted); }
input.bare { border: 0; padding: 2px 4px; margin-left: -4px; field-sizing: content; min-width: 2ch; max-width: 220px; background: transparent; font-weight: 400; }
.cb { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line-2); display: inline-grid; place-items: center; color: transparent; background: #fff; flex: none; }
.cb svg { width: 13px; height: 13px; }
.cb.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.pfoot { display: flex; justify-content: flex-end; padding-top: 12px; margin-top: auto; }
.toggle { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-weight: 500; font-size: 13.5px; }
.toggle.on { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.toggle.on .cb { background: #fff; border-color: #fff; color: var(--brand-d); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plist { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.plist li { counter-increment: q; display: grid; grid-template-columns: 20px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist li::before { content: counter(q); font-size: 12.5px; color: var(--muted); padding-top: 1px; }
.plist .pq { font-weight: 500; }
.plist .pw { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.prep-actions { display: flex; justify-content: flex-end; }
.prep-actions .btn { padding: 11px 22px; font-size: 14.5px; }

/* 2 · call: three columns */
.call { display: grid; grid-template-columns: 288px minmax(0, 1fr) 340px; gap: 16px; padding: 16px; height: calc(100vh - 52px); min-height: 560px; }
.panel { background: var(--panel); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; min-height: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.02); }
.left { overflow-y: auto; gap: 10px; }
.phead { display: flex; align-items: center; gap: 10px; padding: 2px 2px 2px; }
.pwho { min-width: 0; }
.pname { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnum { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.phead .ic-sm { color: var(--muted); }
.phead .icon-btn { margin-left: auto; }
.rec { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.rec-body { padding: 13px 12px 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.pill.live i { background: var(--brand-d); box-shadow: 0 0 0 0 rgba(0, 32, 193, .45); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,32,193,.45); } 70% { box-shadow: 0 0 0 7px rgba(0,32,193,0); } 100% { box-shadow: 0 0 0 0 rgba(0,32,193,0); } }
.timer { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 8px; }
.timer b { font-family: var(--mono); font-weight: 400; font-size: 34px; letter-spacing: .01em; line-height: 1.1; }
.timer span { font-size: 12.5px; color: var(--muted); }
.meters { display: grid; gap: 4px; margin-bottom: 12px; }
.meter { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.meter span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 4px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; transition: width .12s linear; }
.rec-actions { display: none; gap: 6px; flex-wrap: wrap; }
.rec-actions .btn { padding: 6px 9px; font-size: 12.5px; gap: 5px; flex: 1 1 auto; min-width: 0; justify-content: center; white-space: nowrap; }
.rec-actions .btn svg { width: 13px; height: 13px; }
.call[data-phase=pre] .rec-actions.pre, .call[data-phase=live] .rec-actions.live, .call[data-phase=after] .rec-actions.after { display: flex; }
.rec-stop { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--card-2); padding: 11px 14px; font-weight: 500; font-size: 13.5px; cursor: pointer; text-align: left; }
.rec-stop:disabled { color: var(--faint); cursor: default; }
.rec-stop svg { width: 14px; height: 14px; }
.consent { margin: 0 4px; font-size: 12.5px; color: var(--muted); min-height: 18px; }
.sect summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 4px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.sect summary::-webkit-details-marker { display: none; }
.sect summary svg { color: var(--muted); transition: transform .15s; }
.sect[open] summary svg { transform: rotate(180deg); }
.sect-card { background: var(--card); border-radius: 12px; padding: 11px 12px; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); }
.sect-card .k { font-size: 12px; color: var(--muted); margin-top: 8px; }
.sect-card .k:first-child { margin-top: 0; }
.present { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.present li { display: flex; align-items: center; gap: 9px; }
.present .cb { width: 17px; height: 17px; border-radius: 4px; }
.present .cb svg { width: 11px; height: 11px; }
.present .role { color: var(--muted); margin-left: -4px; }

/* middle */
.mid { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.next { background: var(--card); border-radius: 14px; padding: 16px 20px 15px; box-shadow: var(--shadow); }
.next-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 13px; font-weight: 500; }
.link svg { width: 13px; height: 13px; }
.next-q { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 6px 0 4px; }
.next-why { font-size: 13.5px; color: var(--muted); }
.next.conflict .next-why { color: var(--mid); }
.qcard { flex: 1; min-height: 0; overflow-y: auto; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 8px 6px; }
.qs { list-style: none; margin: 0; padding: 0; }
.q { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 13px 12px; position: relative; transition: background .4s; }
.q + .q::before { content: ""; position: absolute; top: 0; left: 42px; right: 12px; border-top: 1px solid var(--line); }
.q.conflict { background: var(--mid-bg); border-radius: 10px; }
.q.conflict::before, .q.conflict + .q::before { display: none; }
.q .ic { display: grid; place-items: center; width: 18px; height: 20px; color: var(--good); }
.q .ic svg { width: 16px; height: 16px; }
.q.conflict .ic::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mid); }
.q.heard .ic::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--brand); background: var(--brand-soft); }
.q.open .ic::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #C8C4BB; }
.q .qt { font-weight: 500; color: var(--ink); }
.q.open .qt { color: var(--ink-2); font-weight: 400; }
.q .tag { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.q .qa { margin-top: 3px; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.q .qa .tm { font-family: var(--mono); font-size: 13px; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; cursor: pointer; white-space: nowrap; }
.q.conflict .qa .tm { color: var(--muted); text-decoration: none; }
.q .qw { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.q .more { justify-self: start; border: 0; background: none; padding: 2px 0; color: var(--mid); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.q .more svg { width: 13px; height: 13px; transition: transform .15s; }
.q.expanded .more svg { transform: rotate(180deg); }
.q .model-answer { display: none; font-size: 12.5px; color: var(--mid); }
.q.expanded .model-answer { display: block; }
.q.flash { background: var(--brand-soft); border-radius: 10px; }
.notes { list-style: none; margin: 4px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); }
.notes:empty { display: none; }
.note { display: grid; grid-template-columns: 22px minmax(0, 1fr) 24px; gap: 8px; padding: 9px 12px; align-items: start; }
.note > svg { color: var(--ink-2); margin-top: 2px; }
.note b { display: block; font-weight: 500; font-size: 13px; }
.note p { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.note .icon-btn { color: var(--ink-2); }
.composer { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 12px; box-shadow: var(--shadow); }
.composer input { flex: 1; border: 0; background: transparent; padding: 7px 6px; outline: none; }
.composer input:focus { outline: none; }
.send { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--brand-d); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send svg { width: 15px; height: 15px; }

/* right: transcript */
.right { padding: 0; overflow: hidden; }
.rhead { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; }
.rhead .k { font-size: 12px; color: var(--muted); }
.rname { font-weight: 600; font-size: 15px; }
.tabs { display: flex; align-items: flex-end; gap: 8px; padding: 0 0 0 0; }
.tab { background: var(--card); padding: 9px 22px 8px; border-radius: 12px 12px 0 0; font-weight: 600; font-size: 13.5px; }
.tab-note { margin-left: auto; padding: 0 14px 9px; font-size: 12px; color: var(--muted); }
.tx-scroll { flex: 1; min-height: 0; overflow-y: auto; background: var(--card); padding: 10px 14px 14px; scroll-behavior: smooth; }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.line { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.line .meta { display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; color: var(--muted); margin: 10px 2px 4px; }
.line .meta b { font-weight: 600; color: var(--ink-2); }
.line .ts { font-family: var(--mono); font-size: 13px; }
.line .tag { font-size: 10.5px; color: var(--faint); cursor: default; }
.line .text { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; max-width: 86%; box-shadow: 0 1px 2px rgba(40,36,28,.05); font-size: 13.5px; }
.line.cont .meta { display: none; }
.line.cont { margin-top: 6px; }
.line.you { align-items: flex-end; }
.line.you .text { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.line.hit .text { outline: 2px solid var(--brand-line); }
.newsince { display: flex; align-items: center; gap: 10px; color: var(--brand); font-size: 12px; font-weight: 500; margin: 14px 0 4px; }
.newsince::before, .newsince::after { content: ""; flex: 1; border-top: 1px solid var(--brand-line); }
.interim { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; flex: none; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); 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 { 50% { opacity: 1; } }
.empty { color: var(--faint); font-size: 13px; padding: 14px 4px; }

/* 3 · summary */
.sum { padding: 22px 20px 32px; }
.sum-wrap { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.sum-wrap > .prep-meta { margin-top: -8px; }
.sum-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.fold summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h3 { margin: 0; }
.fold summary .cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.fold summary svg { color: var(--brand); transition: transform .15s; }
.fold[open] summary svg { transform: rotate(180deg); }
.fold[open] .present { margin-top: 12px; }
.group { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-weight: 500; }
.group summary::-webkit-details-marker { display: none; }
.group summary .cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.group summary svg { color: var(--brand); transition: transform .15s; }
.group[open] summary svg { transform: rotate(180deg); }
.group .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.group.answered .dot { background: var(--good); } .group.conflict .dot { background: var(--mid); }
.group.open .dot { border: 1.5px solid #C8C4BB; } .group.points .dot { background: var(--brand); }
.group ul { list-style: none; margin: 0; padding: 0 14px 6px 32px; }
.group li { padding: 8px 0; border-top: 1px solid var(--line); }
.group li .gq { font-weight: 500; font-size: 13.5px; }
.group li .ga { font-size: 13px; color: var(--muted); margin-top: 2px; }
.group li .ga .tm { font-family: var(--mono); font-size: 13px; margin-left: 6px; }
.sum-actions { display: flex; gap: 8px; align-items: center; }
.sum-actions .spacer { flex: 1; }

@media (max-width: 1100px) {
  .call { grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 12px; padding: 12px; }
  .prep-grid { grid-template-columns: 1fr; }
}

/* editable questions on Voorbereiden */
.plist li { grid-template-columns: 20px 1fr 24px; }
.plist [contenteditable] { outline: none; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; cursor: text; }
.plist [contenteditable]:hover { background: var(--canvas); }
.plist [contenteditable]:focus { background: #fff; box-shadow: 0 0 0 2px var(--brand-soft, #E7EAFB); }
.plist [contenteditable]:empty::before { content: attr(data-ph); color: var(--muted); font-weight: 400; }
.qdel { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; height: 24px; }
.qdel:hover { background: var(--canvas); color: var(--ink); }
.qtools { display: flex; gap: 8px; padding: 10px 0 2px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.sm { padding: 5px 12px; font-size: 12.5px; }
.topback { margin-left: 6px; }
.topback svg { width: 14px; height: 14px; }
