/* The two screens of the new interface: the presenter's board for the Voice AI leg
   (board.html) and the advisor's desktop for the human leg (assist.html). */
:root {
    --plum: #2b1220; --plum-2: #4a1f33; --gold: #c9a14a; --ink: #1d1b22; --text: #3a3640; --muted: #86808c; --faint: #b3aeb8;
    --line: #e8e5e3; --bg: #f3f1ee; --card: #fff; --soft: #f7f6f4;
    --green: #2f7d4f; --green-bg: #e4f2e9; --red: #c0392b; --red-bg: #fbe9e6; --amber: #b9791a; --amber-bg: #fbf0dc;
    --blue: #2c5fa8; --blue-bg: #e6eef9; --indigo: #4c4a9c; --indigo-bg: #ecebf8;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Segoe UI', Arial, Helvetica, sans-serif; font-size: 13px; color: var(--text); background: var(--bg); }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
[hidden] { display: none !important; }

/* ---------- Shared pieces ---------- */
.pill { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 3px 9px; white-space: nowrap; background: var(--blue-bg); color: var(--blue); }
.pill-success { background: var(--green-bg); color: var(--green); }
.pill-warning { background: var(--amber-bg); color: var(--amber); }
.pill-danger { background: var(--red-bg); color: var(--red); }
.pill-info { background: var(--blue-bg); color: var(--blue); }
.pill-muted { background: var(--soft); color: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.panel-head small { color: var(--muted); font-size: 11.5px; }
.panel-body { padding: 12px 14px; overflow-y: auto; min-height: 0; flex: 1; }
.ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--plum-2); font-size: 14px; flex: none; }

/* Sentiment bar */
.mood { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mood-face { font-size: 15px; color: var(--amber); }
.mood-track { position: relative; flex: 1; max-width: 260px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #d9534f, #e0a43a 50%, #3a9a62); }
.mood-track i { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transform: translate(-50%, -50%); transition: left 0.6s ease; }
.mood b { color: var(--ink); font-weight: 600; }
.mood .intent { margin-left: auto; color: var(--muted); }
.mood .intent b { color: var(--plum-2); }

/* Chat bubbles */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 86%; animation: rise 0.35s ease; }
.msg-who { font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.msg-text { padding: 9px 12px; border-radius: 10px; line-height: 1.4; }
.msg-in { align-self: flex-start; }
.msg-in .msg-text { background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.msg-out { align-self: flex-end; align-items: flex-end; }
.msg-out .msg-text { background: var(--plum); color: #fff; }
.msg-advisor .msg-text { background: var(--plum-2); }
.empty { color: var(--faint); font-size: 12px; text-align: center; padding: 22px 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Label, value, pill rows */
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid #f1efed; animation: rise 0.35s ease; }
.row:last-child { border-bottom: 0; }
.row-label { grid-column: 1 / -1; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.row-value { color: var(--ink); font-size: 13px; }
.row .pill { align-self: start; }

/* ---------- Board (Voice AI leg) ---------- */
.shell { height: 100vh; display: flex; flex-direction: column; padding: 14px 16px 12px; gap: 10px; }
.stage { display: flex; align-items: center; gap: 14px; }
.stepbadge { width: 58px; height: 58px; border-radius: 10px; background: var(--plum); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.stepbadge small { font-size: 9px; letter-spacing: 0.14em; opacity: 0.75; }
.stepbadge b { font-size: 22px; line-height: 1; margin-top: 2px; }
.stage-text { flex: 1; min-width: 0; }
.stage-text h1 { font-size: 22px; font-weight: 500; color: var(--ink); }
.stage-text p { color: var(--muted); margin-top: 3px; }
.phases { display: flex; align-items: center; gap: 0; flex: none; }
.phases li { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12.5px; }
.phases li + li::before { content: ''; width: 26px; height: 1px; background: var(--line); margin: 0 8px; }
.phases li span { width: 20px; height: 20px; border-radius: 50%; background: #ebe8e6; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.phases li.on { color: var(--ink); font-weight: 600; }
.phases li.on span { background: var(--plum); color: #fff; }
.phases li.was span { background: var(--green); color: #fff; }

.console { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.appbar { display: flex; align-items: center; gap: 10px; background: var(--plum); color: #fff; padding: 10px 16px; }
.appbar .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); }
.appbar b { font-size: 15px; font-weight: 600; flex: 1; }
.timer { background: rgba(255, 255, 255, 0.12); border-radius: 6px; padding: 3px 9px; font-variant-numeric: tabular-nums; font-size: 12px; }
.livepill { background: var(--gold); color: #3a2a08; border-radius: 20px; padding: 4px 12px; font-size: 11.5px; font-weight: 700; }
.livepill.is-off { background: rgba(255, 255, 255, 0.18); color: #fff; }
.statusbar { padding: 7px 16px; font-size: 12.5px; background: var(--blue-bg); color: var(--blue); }
.statusbar.is-error { background: var(--red-bg); color: var(--red); }
.statusbar.is-ok { background: var(--green-bg); color: var(--green); }

.tabs { display: flex; gap: 26px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 12px 0 10px; color: var(--muted); font-size: 13.5px; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--green); }
.tabs button.seen { color: var(--text); }

.track { display: flex; padding: 14px 40px 12px; }
.track li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12px; color: var(--faint); text-align: center; }
.track li::before { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li span { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: var(--faint); transition: all 0.4s ease; }
.track li.done { color: var(--ink); font-weight: 600; }
.track li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.track li.done::before { background: var(--green); }
.track li.now { color: var(--ink); font-weight: 600; }
.track li.now span { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }

.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; padding: 4px 14px 14px; }
.stack { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }

.queue-live { border: 1px solid #cfe5d7; background: var(--green-bg); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.queue-live b { color: var(--ink); display: block; }
.queue-live small { color: var(--muted); }
.queue-live .ring { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; animation: pulse 1.6s ease infinite; flex: none; }
.queue-live button { margin-left: auto; border: 0; background: var(--green); color: #fff; border-radius: 6px; padding: 6px 14px; font-weight: 600; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.45); } 50% { box-shadow: 0 0 0 7px rgba(47, 125, 79, 0); } }
.sub-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin: 4px 0 8px; }
.sub-head small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.match { background: var(--soft); border-radius: 8px; padding: 8px 11px; color: var(--muted); margin-bottom: 10px; }
.match b { color: var(--green); }
.match.is-default b { color: var(--amber); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.pair small { display: block; color: var(--muted); font-size: 11px; }
.pair b { color: var(--ink); font-weight: 600; }

.events li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1efed; animation: rise 0.35s ease; }
.events li:last-child { border-bottom: 0; }
.events .ev-ico { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--blue-bg); color: var(--blue); }
.events .ev-ok .ev-ico { background: var(--green-bg); color: var(--green); }
.events .ev-flag .ev-ico { background: var(--red-bg); color: var(--red); }
.events .ev-call .ev-ico { background: var(--amber-bg); color: var(--amber); }
.events b { display: block; color: var(--ink); font-weight: 600; }
.events small { color: var(--muted); }
.events time { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }

.ready-top { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); }
.ready-top b { font-size: 22px; color: var(--ink); font-weight: 600; }
.meter { height: 6px; border-radius: 6px; background: #ece9e6; overflow: hidden; margin: 8px 0 10px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c4692a, var(--green)); transition: width 0.6s ease; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ticks li { display: flex; align-items: center; gap: 7px; color: var(--faint); }
.ticks li::before { content: ''; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #d6d2ce; flex: none; }
.ticks li.done { color: var(--ink); }
.ticks li.done::before { content: '✓'; background: var(--green); border-color: var(--green); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }

.foot { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.foot .tag { background: var(--plum); color: #fff; border-radius: 6px; padding: 4px 9px; font-size: 11.5px; font-weight: 700; }
.foot .where { color: var(--ink); font-weight: 600; }
.foot .hint { display: flex; align-items: center; gap: 8px; color: var(--muted); flex: 1; min-width: 0; }
.foot .hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.foot .mini { width: 150px; height: 5px; border-radius: 5px; background: #ece9e6; overflow: hidden; flex: none; }
.foot .mini i { display: block; height: 100%; background: var(--green); transition: width 0.6s ease; }
.ghost { border: 0; background: none; color: var(--text); padding: 7px 10px; }
.btn { border: 1px solid var(--line); background: var(--soft); color: var(--text); border-radius: 8px; padding: 8px 16px; }
.btn-main { border: 0; background: var(--plum); color: #fff; border-radius: 8px; padding: 9px 18px; font-weight: 600; }

/* ---------- Advisor desktop (human leg) ---------- */
.desk { min-height: 100vh; padding: 12px 14px 16px; }
.alert { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid #efd4cf; border-left: 4px solid var(--red); border-radius: 10px; padding: 9px 14px; margin-bottom: 12px; color: var(--ink); }
.alert.is-calm { border-color: #cfe5d7; border-left-color: var(--green); }
.alert .ico { background: var(--red-bg); color: var(--red); }
.alert.is-calm .ico { background: var(--green-bg); color: var(--green); }
.alert .state { margin-left: auto; }
.acols { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.colname { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); margin: 2px 0 9px; }
.colname span { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; letter-spacing: 0; font-weight: 700; }
.colname span.ai { background: var(--blue); }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.box-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #fff; }
.box-head h2 { font-size: 14px; font-weight: 600; flex: 1; }
.box-head small { font-size: 11px; opacity: 0.85; }
.box-head .ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.head-plum { background: var(--plum-2); } .head-blue { background: var(--blue); } .head-indigo { background: var(--indigo); } .head-green { background: var(--green); }
.box-body { padding: 12px 14px; }

.agent { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #f1efed; }
.agent:last-child { border-bottom: 0; }
.agent > div { min-width: 0; }
.agent .tag2 { width: 26px; height: 26px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.agent b { display: block; color: var(--ink); font-weight: 600; font-size: 12.5px; }
.agent small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 4px; }
.agent em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.agent em.run { color: var(--blue); } .agent em.wait { color: var(--faint); }

.inner { border: 1px solid var(--line); border-left: 3px solid var(--plum-2); border-radius: 10px; margin: 12px; overflow: hidden; }
.inner-head { display: flex; align-items: center; gap: 9px; padding: 10px 13px; background: var(--soft); }
.inner-head h3 { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; }
.inner-head small { color: var(--muted); font-size: 11px; }
.inner-head .ico { background: var(--plum); color: #fff; }
.snap { display: flex; align-items: center; gap: 12px; padding: 12px 13px 4px; flex-wrap: wrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.snap-who { flex: 1; min-width: 150px; }
.snap-who b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.snap-who small { color: var(--muted); font-size: 11.5px; }
.kpi { background: var(--soft); border-radius: 9px; padding: 7px 12px; text-align: center; min-width: 66px; }
.kpi b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.kpi small { color: var(--muted); font-size: 10.5px; }
.kpi.is-risk { background: var(--red-bg); } .kpi.is-risk b { color: var(--red); }
.kpi.is-warm { background: var(--amber-bg); } .kpi.is-warm b { color: var(--amber); }
.kpi.is-good { background: var(--green-bg); } .kpi.is-good b { color: var(--green); }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 9px; padding: 9px 12px; margin: 10px 13px; line-height: 1.45; }
.note b { color: var(--ink); }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 13px; }
.quad div { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.quad b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.quad small { color: var(--muted); font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 13px 12px; }
.chip { font-size: 11px; border-radius: 20px; padding: 3px 10px; background: var(--soft); color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.chip.good { background: var(--green-bg); color: var(--green); } .chip.good::before { background: var(--green); }
.chip.warn { background: var(--amber-bg); color: var(--amber); } .chip.warn::before { background: var(--amber); }
.chip.bad { background: var(--red-bg); color: var(--red); } .chip.bad::before { background: var(--red); }

.seg { display: flex; gap: 4px; flex: 1; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.seg button i { font-style: normal; font-size: 10.5px; background: var(--ink); color: #fff; border-radius: 10px; padding: 0 6px; margin-left: 4px; }
.pane { padding: 12px 13px; max-height: 360px; overflow-y: auto; }
.pane ul.dots { display: grid; gap: 6px; }
.pane ul.dots li { padding-left: 14px; position: relative; line-height: 1.4; color: var(--ink); }
.pane ul.dots li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--plum-2); }
.pane h4 { margin: 12px 0 6px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pane h4:first-child { margin-top: 0; }
.journey li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f1efed; }

.nba { background: linear-gradient(160deg, #5a2238, #3a1424); color: #fff; padding: 14px; }
.nba h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.nba p { opacity: 0.85; margin-top: 5px; line-height: 1.4; font-size: 12.5px; }
.nba .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.nba .facts div { background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 7px 9px; }
.nba .facts small { display: block; font-size: 10px; opacity: 0.75; }
.nba .facts b { font-size: 13px; font-weight: 600; }
.nba .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.nba button { border: 0; border-radius: 7px; padding: 7px 13px; font-weight: 600; font-size: 12px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.nba button.primary { background: #fff; color: var(--plum); }
.nba ul { margin-top: 10px; display: grid; gap: 5px; font-size: 12px; opacity: 0.9; }
.nba ul li::before { content: '• '; }

.reply { border: 1px solid var(--line); border-left: 3px solid var(--indigo); border-radius: 9px; padding: 9px 11px; margin-bottom: 9px; background: #fbfbfe; animation: rise 0.35s ease; }
.reply:last-child { margin-bottom: 0; }
.reply-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.reply-top small { color: var(--indigo); font-weight: 700; font-size: 11px; }
.reply-top span { font-size: 10px; font-weight: 700; border-radius: 20px; padding: 2px 8px; background: #eeedf1; color: var(--muted); }
.reply.now .reply-top span { background: var(--indigo); color: #fff; }
.reply.said { opacity: 0.55; border-left-color: var(--green); }
.reply.said .reply-top span { background: var(--green-bg); color: var(--green); }
.reply p { line-height: 1.45; color: var(--ink); }
.reply .acts { display: flex; gap: 6px; margin-top: 8px; }
.reply button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 11.5px; color: var(--text); }
.know li { padding: 8px 0; border-bottom: 1px solid #f1efed; }
.know li:last-child { border-bottom: 0; }
.know b { display: block; color: var(--ink); font-weight: 600; }
.know small { color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.todo li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.todo label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.todo input { margin: 2px 0 0; }
.todo .is-done { color: var(--faint); text-decoration: line-through; }
.todo h4 { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
.todo h4:first-child { margin-top: 0; }
details.box > summary { cursor: pointer; padding: 11px 14px; font-weight: 600; color: var(--ink); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; padding: 0 14px 12px; font-size: 12px; }
dl.kv dt { color: var(--muted); font-weight: 600; } dl.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 1150px) {
    .acols { grid-template-columns: minmax(0, 1fr) 320px; }
    .acols > aside.agents-col { grid-column: 1 / -1; order: 3; }
    .agents-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 800px) {
    .acols { grid-template-columns: 1fr; }
    .quad { grid-template-columns: 1fr 1fr; }
    .shell { height: auto; }
    .cols { grid-template-columns: 1fr; }
    .phases { display: none; }
}

/* Advisor leg: Assist AI cards, the proposal draft and the advisor's guide. */
.acard { border: 1px solid var(--line); border-left: 3px solid var(--indigo); border-radius: 9px; padding: 9px 11px; margin-bottom: 9px; background: #fbfbfe; animation: rise 0.4s ease; }
.acard:last-child { margin-bottom: 0; }
.acard.is-new { box-shadow: 0 0 0 3px var(--indigo-bg); }
.acard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; }
.acard-top b { color: var(--ink); font-size: 13px; }
.acard-top time { color: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.acard ul { display: grid; gap: 4px; }
.acard li { position: relative; padding-left: 13px; line-height: 1.4; color: var(--text); }
.acard li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); }
.acard.k-why { border-left-color: var(--amber); background: #fffcf5; } .acard.k-why li::before { background: var(--amber); }
.acard.k-know { border-left-color: var(--green); background: #f8fcf9; } .acard.k-know li::before { background: var(--green); }
.acard.k-note, .acard.k-proposal { border-left-color: var(--plum-2); background: #fcf8fa; } .acard.k-note li::before, .acard.k-proposal li::before { background: var(--plum-2); }
.nba.is-live { animation: rise 0.4s ease; }
.nba .eyebrow { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-bottom: 4px; }
.alloc { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.alloc th { text-align: left; color: var(--muted); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.03em; padding: 0 6px 5px 0; }
.alloc td { padding: 5px 6px 5px 0; border-top: 1px solid #f1efed; vertical-align: top; color: var(--ink); }
.alloc td small { color: var(--muted); display: block; }
.plan-tag { display: inline-block; border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: 10.5px; background: var(--soft); color: var(--text); white-space: nowrap; }
.plan-tag.t-up { background: var(--indigo-bg); color: var(--indigo); } .plan-tag.t-pro { background: var(--amber-bg); color: var(--amber); } .plan-tag.t-extra { background: var(--green-bg); color: var(--green); }
.prop h4 { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.prop h4:first-child { margin-top: 0; }
.bb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bb div { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.bb div.sel { border-color: var(--green); background: var(--green-bg); }
.bb b { display: block; color: var(--ink); font-size: 12px; } .bb small { color: var(--muted); font-size: 11px; }
.checks2 { display: grid; gap: 5px; }
.checks2 li { display: flex; align-items: center; gap: 7px; color: var(--faint); }
.checks2 li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #d6d2ce; flex: none; }
.checks2 li.run::before { border-color: var(--blue); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.checks2 li.ok { color: var(--ink); } .checks2 li.ok::before { content: '✓'; background: var(--green); border-color: var(--green); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.guide-line { padding: 6px 0 6px 10px; border-left: 2px solid var(--line); margin-bottom: 6px; line-height: 1.4; color: var(--muted); font-size: 12px; }
.guide-line b { display: block; font-size: 10px; letter-spacing: 0.05em; color: var(--faint); }
.guide-line.you { border-left-color: var(--plum-2); color: var(--ink); }
.guide-line.next { background: var(--indigo-bg); border-left-color: var(--indigo); border-radius: 0 6px 6px 0; }
.guide-line.played { opacity: 0.45; }
.guide-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.guide-acts button, .guide-acts a { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 10px; font-size: 11.5px; color: var(--text); text-decoration: none; }
.guide-acts button.main { background: var(--indigo); border-color: var(--indigo); color: #fff; font-weight: 600; }
.guide-acts small { color: var(--faint); font-size: 11px; }

/* Demo controls for the advisor leg, under the sentiment bar: playback when no audio is coming in. */
.reply .why { display: block; color: var(--faint); font-size: 10.5px; margin-top: 5px; }

/* Advisor desktop: the three columns scroll on their own, and every block can be folded away. */
@media (min-width: 1151px) {
    body.desk-page { overflow: hidden; }
    .desk { height: 100vh; min-height: 0; display: flex; flex-direction: column; }
    .desk > .alert { flex: none; }
    .desk > .acols { flex: 1; min-height: 0; align-items: stretch; }
    .acols > aside, .acols > main { min-height: 0; overflow-y: auto; padding: 0 4px 16px 0; scrollbar-width: thin; }
    .colname { position: sticky; top: 0; z-index: 2; background: var(--bg); margin: 0 0 9px; padding: 2px 0 4px; }
}
.box-head, .inner-head { cursor: pointer; user-select: none; }
.box-head::after, .inner-head::after { content: '▾'; font-size: 13px; opacity: 0.75; margin-left: 4px; transition: transform 0.2s ease; }
.box.collapsed > .box-head::after, .inner.collapsed > .inner-head::after { transform: rotate(-90deg); }
.box.collapsed > :not(.box-head) { display: none !important; }
.inner.collapsed > :not(.inner-head) { display: none !important; }
.box-head:hover, .inner-head:hover { filter: brightness(1.06); }
.inner-head .seg button { cursor: pointer; }
