/* NextPM — paper, ink and one purple. Serif headlines, sans body, crisp borders. */
:root {
  --paper: #f8f6f0;
  --surface: #ffffff;
  --surface-2: #faf9f5;
  --ink: #141414;
  --ink-2: #44423c;
  --muted: #84817a;
  --line: #e3e0d6;
  --line-strong: #141414;
  --accent: #5a31f4;
  --accent-ink: #ffffff;
  --accent-soft: #eee9ff;
  --accent-deep: #1d0b45;
  --coral: #ff7a59;
  --mint: #6ee7b7;
  --sun: #ffd166;
  --good: #1f7a4d;
  --good-soft: #dcf3e6;
  --warn: #b35a00;
  --warn-soft: #fdebd3;
  --bad: #c0362c;
  --bad-soft: #fde2df;
  --highlight: #fff1b8;
  --radius: 14px;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;

  /* One tag colour per interview type */
  --c-design-bg: #ffe8a3; --c-design-ink: #5c4300;
  --c-metrics-bg: #cdf1e1; --c-metrics-ink: #0b5136;
  --c-rootcause-bg: #ffd9cc; --c-rootcause-ink: #7f2709;
  --c-estimation-bg: #d6e4ff; --c-estimation-ink: #1c3a87;
  --c-strategy-bg: #e7dcff; --c-strategy-ink: #42178f;
  --c-execution-bg: #e6e3da; --c-execution-ink: #33312b;
  --c-behavioral-bg: #fbd8ea; --c-behavioral-ink: #7d1450;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 8px; color: var(--ink); }
h1 { font: 400 44px/1.12 var(--serif); letter-spacing: -0.01em; }
h1 em { font-style: italic; font-weight: 700; }
h2 { font: 700 22px/1.25 var(--serif); }
h3 { font: 600 16px/1.35 var(--sans); }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hand-drawn underline under an emphasised word */
.swoosh { position: relative; white-space: nowrap; }
.swoosh::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -0.32em; height: 0.42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 80 7, 190 5, 297 9' fill='none' stroke='%23ff7a59' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M70 21 C 140 15, 220 14, 262 15' fill='none' stroke='%23ff7a59' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 20;
  max-width: 1180px; margin: 12px auto 0; padding: 10px 14px 10px 20px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 16px/1 var(--serif); font-style: italic; }
nav { display: flex; gap: 4px; }
nav a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; }
nav a:hover { background: var(--surface-2); text-decoration: none; }
nav a.active { background: var(--ink); color: #fff; }

main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 96px; }

/* ---------- Building blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.section { margin-top: 28px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 3px 3px 0 var(--ink); }
.btn.primary:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { box-shadow: 3px 3px 0 var(--bad); }
.btn.small { padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.btn.primary.small { box-shadow: 2px 2px 0 var(--ink); }
.btn.full { width: 100%; }
.btn.icon { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 18px; }
.btn.recording { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: none; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button.on { background: var(--ink); color: #fff; }

select, textarea, input[type="text"] {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { line-height: 1.6; }
select:focus, textarea:focus, input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill.good { background: var(--good-soft); border-color: transparent; color: var(--good); }
.pill.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.diff-easy { color: var(--good); }
.pill.diff-medium { color: var(--warn); }
.pill.diff-hard { color: var(--bad); }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.tag:hover { text-decoration: none; }
.cat-design { background: var(--c-design-bg); color: var(--c-design-ink); }
.cat-metrics { background: var(--c-metrics-bg); color: var(--c-metrics-ink); }
.cat-rootcause { background: var(--c-rootcause-bg); color: var(--c-rootcause-ink); }
.cat-estimation { background: var(--c-estimation-bg); color: var(--c-estimation-ink); }
.cat-strategy { background: var(--c-strategy-bg); color: var(--c-strategy-ink); }
.cat-execution { background: var(--c-execution-bg); color: var(--c-execution-ink); }
.cat-behavioral { background: var(--c-behavioral-bg); color: var(--c-behavioral-ink); }

/* ---------- Bank: hero ---------- */
.hero { text-align: center; padding: 18px 0 30px; }
.hero h1 { font-size: 56px; max-width: 820px; margin: 0 auto 22px; }
.hero p { max-width: 620px; margin: 0 auto; color: var(--ink-2); font-size: 18px; }
.hero .stats { display: inline-flex; gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.hero .stats div { padding: 10px 22px; border-left: 1px solid var(--line); text-align: left; }
.hero .stats div:first-child { border-left: 0; }
.hero .stats strong { display: block; font: 700 22px/1.2 var(--serif); }
.hero .stats span { font-size: 13px; color: var(--muted); }

/* Category cards */
.catgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
@media (max-width: 1100px) { .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.catcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1.5px solid transparent; color: var(--ink); background: var(--surface); border-color: var(--line); transition: transform 0.08s, box-shadow 0.08s; }
.catcard:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
.catcard.on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.catcard .name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.catcard .meta { font-size: 13px; color: var(--muted); }
.swatch { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 16px; line-height: 1; }
.catcard .bar { width: 100%; }

.bank { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.bank-side { position: sticky; top: 96px; }
.bank-side h3 { margin-bottom: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input[type="text"] { flex: 1 1 130px; width: auto; padding-left: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2384817a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center; }
.filters select { width: auto; flex: 0 1 auto; }
label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; padding: 0 4px; }
label.check input { accent-color: var(--accent); }

.cat-intro { border-left: 4px solid var(--accent); }
.cat-intro h2 { font-size: 26px; }

.qsection-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.qsection-title { font: 700 19px/1.2 var(--serif); color: var(--ink); flex: 1; }
.bar { display: block; width: 96px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.qrow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background 0.1s; }
.qrow:last-child { border-bottom: 0; }
.qrow:hover { background: var(--surface-2); }
.status { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfcbbf; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.status.done { background: var(--good); border-color: var(--good); }
.qmain { flex: 1; min-width: 0; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.qmain:hover { text-decoration: none; }
.qmain:hover .qtitle { color: var(--accent); }
.qtitle { font-weight: 600; font-size: 16px; line-height: 1.4; }
.qmeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.co { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.company-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; border-radius: 3px; background: #fff; padding: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.save { background: none; border: 0; font-size: 20px; line-height: 1; color: #bdb9ad; cursor: pointer; padding: 4px; }
.save:hover { color: var(--ink); }
.save.on { color: var(--accent); }
.seeall { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.side-score { display: flex; align-items: baseline; gap: 8px; }
.side-score strong { font: 700 40px/1 var(--serif); }
.next-card { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.next-card .eyebrow { color: #c9b6ff; }
.next-card a:not(.btn) { color: #fff; font: 700 18px/1.35 var(--serif); }
.next-card .muted { color: #b9aed6; }

/* ---------- Question page ---------- */
.crumb { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.qpage { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.qpage h1 { font-size: 38px; }
.practice { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.practice textarea { min-height: 260px; resize: vertical; }
.practice .label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 6px; }
.callout { border: 1px solid #d6c9fb; background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--accent-deep); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 14px 10px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding: 22px 24px; }
.tabpanel h3 { font: 700 18px/1.3 var(--serif); }
.steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 40px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface); }
ul.steps li::before { content: "✓"; border-color: var(--good); color: var(--good); }
table.rubric td { vertical-align: top; font-size: 14px; }
.locked { text-align: center; padding: 26px 10px; }
.locked .lock { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 20px; }

/* ---------- Interview ---------- */
.interview { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - 150px); min-height: 520px; gap: 14px; }
.ibar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timer { font: 700 20px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.timer.low { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.chat { overflow-y: auto; padding: 8px 4px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 72%; padding: 12px 16px; border-radius: 16px; white-space: pre-wrap; line-height: 1.55; }
.msg.interviewer { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.candidate { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.pending { color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 10px; box-shadow: 4px 4px 0 var(--ink); }
.composer textarea { border: 0; resize: none; min-height: 46px; max-height: 160px; padding: 11px 8px; box-shadow: none; }
.interim { font-size: 14px; color: var(--muted); min-height: 20px; padding: 0 4px 6px; }

/* ---------- Report ---------- */
.report { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.report h1 { font-size: 34px; }
.score-card { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.score-card .muted, .score-card .small { color: #c4b9e4; }
.score-hero { display: flex; align-items: baseline; gap: 8px; }
.score-hero .big { font: 700 64px/1 var(--serif); letter-spacing: -0.02em; }
.dim { padding: 16px 0; border-top: 1px solid var(--line); }
.dim:first-of-type { border-top: 0; padding-top: 4px; }
.dim-head { display: flex; align-items: center; gap: 12px; }
.dim-head h3 { margin: 0; flex: 1; }
.meter { display: flex; gap: 3px; }
.meter span { width: 24px; height: 8px; border-radius: 4px; background: var(--line); }
.meter span.on { background: var(--accent); }
.dim-score { font-variant-numeric: tabular-nums; font-weight: 700; width: 34px; text-align: right; }
.quote { font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 12px; margin: 10px 0 6px; font-style: italic; }
.turnlink { font-size: 12px; font-weight: 700; font-style: normal; cursor: pointer; background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 6px; padding: 2px 8px; }
.turnlink:hover { background: var(--accent); color: #fff; }
.fix { border-left: 3px solid var(--ink); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.fix:last-child { margin-bottom: 0; }
.transcript-panel { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.tline { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.tline .who { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.tline.candidate .who { color: var(--accent); }
.tline.flash { background: var(--highlight); transition: background 0.3s; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 5px 0; font-size: 15px; }
.checklist .ok { color: var(--good); font-weight: 700; }
.checklist .no { color: var(--muted); }
.model-answer { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; white-space: pre-wrap; font: 400 16px/1.65 var(--serif); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; gap: 12px; padding: 90px 0; text-align: center; }

/* ---------- Progress ---------- */
.cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cattile { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--ink); }
.cattile:hover { text-decoration: none; border-color: var(--ink); }
.cattile .t { font-weight: 700; font-size: 14px; }
.cattile .big { font: 700 32px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.cattile.on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.chart-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-card .delta { font-size: 13px; font-weight: 500; color: var(--muted); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .pt.drill { fill: var(--surface); stroke: var(--accent); }
.chart .hit { fill: transparent; cursor: pointer; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity 0.1s; }
.tooltip.show { opacity: 1; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
td.num { font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }

@media (max-width: 980px) {
  .bank, .qpage, .report { grid-template-columns: minmax(0, 1fr); }
  .bank-side, .practice, .transcript-panel { position: static; max-height: none; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  main { padding: 24px 16px 72px; }
  .topbar { margin: 8px 8px 0; top: 8px; gap: 10px; padding: 8px 10px 8px 14px; }
  h1, .qpage h1, .report h1 { font-size: 30px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero .stats div { padding: 8px 14px; }
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qrow { flex-wrap: wrap; padding: 14px; }
  .qrow .btn { display: none; }
  .filters select { flex: 1 1 45%; }
  .msg { max-width: 90%; }
  .multiples { grid-template-columns: 1fr; }
  .score-hero .big { font-size: 48px; }
}
.interview { max-width: 920px; margin: 0 auto; }
.ibar { flex-wrap: nowrap; }
.ibar > div:first-child { flex: 1; min-width: 0; }
.ibar .spacer { display: none; }
@media (max-width: 620px) { .ibar { flex-wrap: wrap; } }
.report-title { font-size: 30px; line-height: 1.2; max-width: 960px; margin: 2px 0 0; }

.cat-critique { background: #e0f2f1; color: #0f4f4a; }
.cat-pricing { background: #fff0c2; color: #6b4a00; }
.cat-vision { background: #ffe1cf; color: #7a3410; }
.cat-technical { background: #dfe3ea; color: #26303f; }
.catgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Voice bar */
.voicebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 4px 10px; font-size: 14px; color: var(--ink-2); min-height: 30px; }
.voicebar[data-state="error"] .vstate { color: var(--bad); font-weight: 600; }
.voicebar[data-state="listening"] .vstate { color: var(--accent); font-weight: 600; }
.level { width: 80px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.level span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.08s; }
.voicebar:not([data-state="listening"]) .level { opacity: 0.35; }
.btn.mic { flex: none; }
.btn.mic.recording { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 54, 44, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(192, 54, 44, 0); } }
.interview { grid-template-columns: minmax(0, 1fr); }
.interview > * { min-width: 0; }
@media (max-width: 620px) {
  .ibar { flex-wrap: wrap; gap: 8px; }
  .ibar > div:first-child { flex-basis: 100%; }
  .timer { font-size: 16px; padding: 6px 8px; }
  .interview { height: calc(100vh - 110px); }
}
select.mini { width: auto; padding: 3px 6px; font-size: 13px; border-radius: 6px; margin-left: 4px; }
.voicebar[data-state="transcribing"] .vstate { color: var(--accent); }


/* ================= Colour refresh ================= */
/* Hero: deep violet band with a faint grid, white serif type, coral underline */
.hero {
  position: relative; overflow: hidden; text-align: center;
  margin: 0 0 22px; padding: 34px 24px 30px; border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(120% 120% at 15% 0%, #4b23c9 0%, #2a0f6b 45%, #170634 100%);
  box-shadow: 0 30px 60px -30px rgba(29, 11, 69, 0.55);
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,89,0.35), transparent 65%); pointer-events: none; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { color: #fff; font-size: 46px; margin: 10px auto 14px; max-width: 860px; }
.hero h1 em { color: #fff; }
.hero p { color: rgba(255,255,255,0.78); max-width: 640px; font-size: 18px; }
.hero .stats { margin-top: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.hero .stats div { border-left-color: rgba(255,255,255,0.16); }
.hero .stats strong { color: #fff; }
.hero .stats span { color: rgba(255,255,255,0.65); }

/* Category cards: tinted in their own colour */
.catgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.catcard { border: 1.5px solid transparent; padding: 16px; gap: 6px; min-height: 132px; }
.catcard .swatch { background: rgba(255,255,255,0.7); width: 34px; height: 34px; border-radius: 10px; font-size: 17px; margin-bottom: 4px; }
.catcard .name { font-size: 15px; }
.catcard .meta { color: inherit; opacity: 0.7; font-weight: 500; }
.catcard .bar { background: rgba(255,255,255,0.65); margin-top: auto; }
.catcard.all { background: var(--ink); color: #fff; }
.catcard.all .swatch { background: rgba(255,255,255,0.12); color: #fff; }
.catcard.all .bar { background: rgba(255,255,255,0.18); }
.catcard.all .bar span { background: var(--mint); }
.catcard:hover, .catcard.on { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.tint-design { background: #fff1c7; color: #4f3a00; } .tint-design .bar span { background: #e0a400; }
.tint-metrics { background: #d6f5e6; color: #08462f; } .tint-metrics .bar span { background: #12a26a; }
.tint-rootcause { background: #ffe1d7; color: #7a2408; } .tint-rootcause .bar span { background: #ff7a59; }
.tint-estimation { background: #dde8ff; color: #183482; } .tint-estimation .bar span { background: #3d6ef5; }
.tint-strategy { background: #ebe3ff; color: #3a1686; } .tint-strategy .bar span { background: #7b4dff; }
.tint-execution { background: #ecebe6; color: #2f2d27; } .tint-execution .bar span { background: #6b6759; }
.tint-behavioral { background: #fde0ee; color: #761347; } .tint-behavioral .bar span { background: #e0468f; }
.tint-critique { background: #d5f3f4; color: #0c4a4d; } .tint-critique .bar span { background: #14a3a8; }
.tint-pricing { background: #f8f3c4; color: #554c00; } .tint-pricing .bar span { background: #c9b300; }
.tint-vision { background: #ffe5d1; color: #73360b; } .tint-vision .bar span { background: #f08a3c; }
.tint-technical { background: #e2e6ee; color: #232c3b; } .tint-technical .bar span { background: #56657d; }

/* Section headers pick up their category colour */
.qsection { border-top: 4px solid var(--line); }
.sec-design { border-top-color: #e0a400; } .sec-metrics { border-top-color: #12a26a; } .sec-rootcause { border-top-color: #ff7a59; }
.sec-estimation { border-top-color: #3d6ef5; } .sec-strategy { border-top-color: #7b4dff; } .sec-execution { border-top-color: #6b6759; }
.sec-behavioral { border-top-color: #e0468f; } .sec-critique { border-top-color: #14a3a8; } .sec-pricing { border-top-color: #c9b300; }
.sec-vision { border-top-color: #f08a3c; } .sec-technical { border-top-color: #56657d; }
.qsection-head { background: var(--surface); }
.qsection-head .swatch { width: 30px; height: 30px; }

/* Difficulty: dot + label */
.pill.diff { background: var(--surface); gap: 6px; }
.pill.diff i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill.diff-easy { color: #12804f; } .pill.diff-medium { color: #c26a00; } .pill.diff-hard { color: #d1352b; }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* Filters on one row */
.filters { flex-wrap: wrap; }
label.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
label.toggle input { accent-color: var(--accent); }
label.toggle.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Sidebar */
.next-card { background: linear-gradient(160deg, #2a0f6b, #170634); border: 0; position: relative; overflow: hidden; }
.next-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,89,0.35), transparent 65%); }
.next-card .eyebrow { color: var(--mint); }
.next-card .btn { background: var(--coral); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); position: relative; z-index: 1; }

/* Primary actions get a touch more weight */
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: #4b22e6; }
.practice { box-shadow: 6px 6px 0 var(--accent-deep); }
.score-card { background: radial-gradient(120% 140% at 0% 0%, #4b23c9 0%, #2a0f6b 50%, #170634 100%); }
nav a.active { background: var(--accent-deep); }
.logo { background: var(--accent); }
.msg.candidate { background: var(--accent-deep); }

@media (max-width: 620px) {
  .hero { padding: 40px 18px 34px; border-radius: 18px; }
  .hero h1 { font-size: 38px; }
}

/* Preserve visibility semantics for controls with styled display rules. */
[hidden] { display: none !important; }
.voicebar { flex-wrap: wrap; }
.interview details textarea { width: 100%; margin: 8px 0; }

/* ---------------------------------------------------------------- Review screen
   Score and summary at a glance, two feedback cards, then collapsible detail. */
.review { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; }
.review-head { display: grid; gap: 10px; }
.review-actions { flex-wrap: wrap; gap: 10px; }
.review-score { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.score-side { display: grid; gap: 10px; justify-items: start; }
.pill.on-dark { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.review-score .summary { font-size: 17px; line-height: 1.55; margin: 0 0 18px; color: #fff; }
.dimbars { display: grid; gap: 8px; }
.dimbar { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; font-size: 14px; color: #e7e0fb; }
.dimbar b { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.review-score .meter span { background: rgba(255, 255, 255, 0.18); }
.review-score .meter span.on { background: var(--mint); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fb h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 6px; }
.fb h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.fb.good h2::before { background: var(--good); }
.fb.improve h2::before { background: var(--warn); }
.fb-item { padding: 12px 0; border-top: 1px solid var(--line); }
.fb-item:first-of-type { border-top: 0; }
.fb-item p { margin: 0 0 6px; }
.fb-item .try { color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
details.evidence > summary, .fold > summary, .dim-fold > summary { list-style: none; }
details.evidence > summary::-webkit-details-marker, .fold > summary::-webkit-details-marker, .dim-fold > summary::-webkit-details-marker { display: none; }
details.evidence > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }
details.evidence > summary::before, .fold > summary::after, .dim-fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
details.evidence[open] > summary::before, .dim-fold[open] > summary::before { transform: rotate(45deg); }
.practice-next { display: flex; align-items: center; gap: 18px; justify-content: space-between; background: var(--accent-soft); border-color: transparent; }
.practice-next p { margin: 6px 0 0; font-size: 16px; }
.practice-next .btn { flex: none; white-space: nowrap; }
.fold { padding: 0; }
.fold > summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; }
.fold > summary h2 { margin: 0; font-size: 20px; flex: 1; }
.fold > summary::after { color: var(--muted); transform: rotate(45deg); }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold-meta { font-size: 13px; color: var(--muted); }
.fold-body { padding: 0 22px 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.dim-fold { border-top: 1px solid var(--line); }
.dim-fold:first-child { border-top: 0; }
.dim-fold > summary { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--ink); }
.dim-fold > summary::before { color: var(--muted); }
.dim-fold .dim-score { width: auto; }
.dim-body { padding: 0 0 14px 24px; }
.dim-body p { margin: 0 0 8px; }
.practice-row { padding: 12px 0; border-top: 1px solid var(--line); }
.practice-row:first-of-type { border-top: 0; }
.practice-row p { margin: 4px 0; }
.pill.observed { background: var(--good-soft); border-color: transparent; color: var(--good); }
.review-chat { display: grid; gap: 10px; max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.bubble.candidate { justify-self: end; background: var(--accent-soft); border-color: transparent; }
.bubble .who { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.bubble.candidate .who { color: var(--accent); }
.bubble.flash { background: var(--highlight); transition: background 0.3s; }
.facts { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.review-foot { display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
  .review-score, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .practice-next { flex-direction: column; align-items: flex-start; }
  .bubble { max-width: 92%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fold > summary { padding: 16px; } .fold-body { padding: 14px 16px 16px; }
}

/* ---------------------------------------------------------------- Interview controls */
.ifoot { display: grid; gap: 8px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; }
.tools-gap { flex: 1; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.extras { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }
.extras .extra { flex: 1 1 260px; min-width: 0; }
.extras .extra > summary { color: var(--muted); font-weight: 600; }
.extras .extra[open] > summary { color: var(--ink-2); }
.btn.ghost:hover { transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- Feedback loading */
.ending-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(248, 246, 240, 0.86); backdrop-filter: blur(6px); animation: fade-in 0.2s ease-out; }
.ending-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 28px 22px; box-shadow: 0 30px 60px -30px rgba(29, 11, 69, 0.4); display: grid; justify-items: center; gap: 12px; text-align: center; }
.ending-card h2 { margin: 4px 0 0; font-size: 22px; }
.ending-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.ending-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; transition: color 0.2s; }
.ending-steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.ending-steps li.now { color: var(--ink); font-weight: 600; }
.ending-steps li.now::before { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.ending-steps li.done { color: var(--ink-2); }
.ending-steps li.done::before { border-color: var(--good); background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.inline-loading { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.inline-loading[hidden] { display: none; }
.inline-loading .spinner { width: 22px; height: 22px; border-width: 2.5px; flex: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ending-overlay { animation: none; } .ending-steps li.now::before, .inline-loading .spinner { animation-duration: 2.4s; } }
.ending-card .spinner.is-done { animation: none; border-color: var(--good); }

/* ---------------------------------------------------------------- Brand */
.brand-icon { display: block; width: 30px; height: 30px; mix-blend-mode: multiply; }
.brand-name { font: 700 23px/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.brand-name span { color: var(--accent); }
@media (max-width: 620px) { .brand-icon { width: 26px; height: 26px; } .brand-name { font-size: 20px; } }

/* ---------------------------------------------------------------- Interview room (call layout)
   A dark stage with two tiles; whoever is speaking lights up. Transcript lives in the side panel. */
.room { --stage: #16151a; --tile: #24222b; --tile-2: #2e2b37; --on-dark: #f4f2ec; --on-dark-2: #b9b4c8; --glow: #7b5bff; --end: #e5484d;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; height: calc(100dvh - 128px); min-height: 560px; max-width: 1360px; margin: 0 auto; }
.room-top { display: flex; align-items: center; gap: 16px; padding: 4px 4px 0; }
.room-q { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.room-cat { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.room-prompt { margin: 0; font: 400 18px/1.35 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { flex: none; display: flex; align-items: center; gap: 10px; }
.room-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.room-ghost { font: 600 14px var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.room-ghost:hover { border-color: var(--ink); }
.room-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; min-height: 0; }
.room.panel-closed .room-main { grid-template-columns: minmax(0, 1fr); }
.room.panel-closed .side { display: none; }

.stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 14px; padding: 18px 18px 16px; border-radius: 22px; background: var(--stage); min-height: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; align-content: center; align-items: center; }
.tile { position: relative; display: grid; place-items: center; border-radius: 18px; background: var(--tile); overflow: hidden; aspect-ratio: 4 / 3; max-height: 100%; min-height: 200px; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color 0.2s, background 0.3s; }
.tile .avatar { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(84px, 13vw, 132px); aspect-ratio: 1; border-radius: 50%; color: #fff; }
.tile.ai .avatar { background: linear-gradient(160deg, #6a45ff, #3c1fb0); }
.tile.ai .avatar svg { width: 54%; height: 54%; }
.tile.me .avatar { background: #3a3744; font: 700 clamp(22px, 2.6vw, 30px)/1 var(--sans); letter-spacing: -0.01em; }
.tile .halo { position: absolute; left: 50%; top: 50%; width: clamp(84px, 13vw, 132px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(1); background: radial-gradient(circle, rgba(123, 91, 255, 0.55), rgba(123, 91, 255, 0) 70%); opacity: 0; transition: opacity 0.2s, transform 0.12s; pointer-events: none; }
.tile-state { position: absolute; top: 14px; left: 16px; font-size: 13px; font-weight: 600; color: var(--on-dark-2); }
.nameplate { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.45); color: var(--on-dark); font-size: 14px; font-weight: 600; }
.nameplate-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); color: var(--on-dark-2); }
.mic-off { display: none; width: 18px; height: 18px; color: #ff8a8d; }
.mic-off svg, .dock-btn svg { width: 100%; height: 100%; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--glow); opacity: 0.35; }

/* Speaking: ring, halo and moving bars on the active tile. */
.room[data-ai="speaking"] .tile.ai, .room[data-me="speaking"] .tile.me { outline-color: var(--glow); background: var(--tile-2); }
.room[data-ai="speaking"] .tile.ai .halo { opacity: 1; animation: halo 1.6s ease-in-out infinite; }
.room[data-me="speaking"] .tile.me .halo { opacity: 1; transform: translate(-50%, -50%) scale(calc(1.15 + var(--lvl, 0.3) * 0.9)); }
.room[data-ai="speaking"] .tile.ai .bars i, .room[data-me="speaking"] .tile.me .bars i { opacity: 1; animation: bar 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: 0.15s !important; }
.bars i:nth-child(3) { animation-delay: 0.3s !important; }
.room[data-ai="thinking"] .tile.ai .tile-state::after { content: ""; display: inline-block; width: 18px; margin-left: 2px; animation: dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
.room[data-ai="speaking"] .tile.ai .tile-state, .room[data-me="speaking"] .tile.me .tile-state { color: #c9b9ff; }
.room[data-me="muted"] .tile.me .mic-off, .room[data-me="typing-mode"] .tile.me .mic-off { display: inline-block; }
@keyframes halo { 0%, 100% { transform: translate(-50%, -50%) scale(1.15); } 50% { transform: translate(-50%, -50%) scale(1.55); } }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes dots { 0% { width: 0; } 100% { width: 18px; } }

.room-status { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 30px; color: var(--on-dark-2); font-size: 14px; }
.room-status .level { width: 70px; background: rgba(255, 255, 255, 0.12); }
.room[data-me="muted"] .room-status .level, .room[data-me="typing-mode"] .room-status .level { display: none; }
.room-cta { font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; border: 0; background: var(--glow); color: #fff; cursor: pointer; }
.room-cta[hidden] { display: none; }

.dock { justify-self: center; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.dock-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.12); margin: 0 2px; }
.dock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: #3a3744; color: var(--on-dark); font: 600 14px var(--sans); cursor: pointer; transition: background 0.15s; }
.dock-btn:hover { background: #4a4656; }
.dock-btn[hidden] { display: none; }
.dock-btn.labelled svg { width: 18px; height: 18px; flex: none; }
.dock-btn:not(.labelled) svg { width: 20px; height: 20px; }
.dock-btn.mic { width: 52px; height: 52px; padding: 0; background: #e5484d; }
.dock-btn.mic .icon { display: inline-flex; width: 22px; height: 22px; }
.dock-btn.mic .icon.on { display: none; }
.dock-btn.mic.recording { background: #3a3744; animation: none; box-shadow: 0 0 0 3px var(--glow); }
.dock-btn.mic.recording .icon.on { display: inline-flex; }
.dock-btn.mic.recording .icon.off { display: none; }
.dock-btn[aria-pressed="true"] { background: #4a4656; }
.dock-end { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--end); color: #fff; font: 700 14px var(--sans); cursor: pointer; }
.dock-end:hover { background: #d63c41; }
.dock-end:disabled { opacity: 0.6; cursor: default; }

.side { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.side-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.side-tabs button { flex: 1; font: 600 14px var(--sans); padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.side-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.side-pane { display: grid; align-content: start; gap: 12px; padding: 14px; overflow-y: auto; min-height: 0; }
.side-pane[data-pane="transcript"] { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; padding: 0; overflow: hidden; }
.side-pane[hidden] { display: none; }
.side .chat { padding: 14px; gap: 10px; overflow-y: auto; min-height: 0; }
.side .msg { max-width: 88%; font-size: 15px; padding: 10px 13px; }
.side .composer { margin: 0 12px 12px; box-shadow: none; border: 1px solid var(--line); border-radius: 14px; padding: 6px; align-items: center; }
.side .composer textarea { min-height: 40px; padding: 9px 8px; font-size: 15px; }
.side textarea#rt-scratchpad { width: 100%; resize: vertical; }
.side .check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.side-field { display: grid; gap: 6px; }

@media (max-width: 900px) {
  .room { height: auto; min-height: 0; }
  .room-main { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 520px; }
  .side { height: 60vh; }
  .room-prompt { white-space: normal; font-size: 16px; }
  .room-top { flex-wrap: wrap; }
  .room-q { flex: 1 1 100%; flex-direction: column; gap: 4px; }
  .room-meta { flex: 1 1 100%; justify-content: flex-end; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 170px; }
  .dock { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .dock-btn.labelled span { display: none; }
  .dock-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .room .halo, .room .bars i, .room .tile-state::after { animation: none !important; } }

main#app:has(.room) { padding-bottom: 16px; }
@media (max-width: 620px) { .tile { aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 620px) { .tile .avatar, .tile .halo { width: 64px; } .tile.me .avatar { font-size: 18px; } .tile { place-items: center; padding-bottom: 28px; } }
.hero p { text-wrap: balance; }
.update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); }

/* ---------- Sign-in ---------- */
.account { position: relative; flex: none; margin-left: auto; }
.account:empty { display: none; }
.avatar-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--sans); cursor: pointer; }
.avatar-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.35); }
.account-who { display: grid; gap: 2px; margin-bottom: 12px; overflow-wrap: anywhere; }
.account-who span { color: var(--muted); font-size: 13px; }
.auth-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(20, 20, 20, 0.45); backdrop-filter: blur(3px); animation: auth-in 0.18s ease-out; }
.auth-card { position: relative; width: min(420px, 100%); padding: 32px 28px 24px; text-align: center; background: var(--surface); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5); }
.auth-card h2 { margin: 14px 0 8px; font-size: 24px; }
.auth-card > p.muted { margin: 0 0 22px; }
.auth-card .callout { text-align: left; }
.auth-icon { border-radius: 12px; }
.auth-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.auth-close:hover { background: var(--surface-2); color: var(--ink); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #1f1f1f; font: 600 15px/1.2 var(--sans); }
.google-btn:hover { text-decoration: none; background: #f8f9fa; border-color: #c6c9cc; }
.google-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.auth-card .auth-fine { margin: 18px 0 0; }
@keyframes auth-in { from { opacity: 0; } }
@media (max-width: 620px) { .account { margin-left: auto; } }
@media (max-width: 420px) {
  .topbar { gap: 6px; padding-left: 12px; }
  .brand { gap: 6px; }
  .brand-icon { width: 22px; height: 22px; }
  .brand-name { font-size: 18px; }
  nav { gap: 2px; }
  nav a { padding: 6px 9px; font-size: 14px; }
  #signin-top { padding: 6px 11px; }
}

/* ---------- Question bank: company rail + one list ---------- */
.co-rail { position: sticky; top: 96px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; padding: 16px 10px 10px; }
.co-rail h3 { margin: 0 8px 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.co-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; }
.co-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.co-item:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.co-item.on { background: var(--ink); color: #fff; }
.co-item.on .co-count { color: rgba(255, 255, 255, 0.7); }
.co-item.none { opacity: 0.45; }
.co-item .company-logo { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.co-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; flex: none; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.co-item.on .co-icon { background: rgba(255, 255, 255, 0.15); border-color: transparent; color: #fff; }
.co-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.list-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list-title h2 { margin: 0; font-size: 24px; }
.list-title .company-logo { width: 26px; height: 26px; border-radius: 6px; }
.list-head .filters { margin: 0; }
.qlist .seeall { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 14px/1 var(--sans); }
.qlist .seeall:hover { background: var(--surface-2); }
@media (max-width: 980px) {
  .co-rail { position: static; max-height: none; padding: 10px; }
  .co-rail h3 { display: none; }
  .co-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 6px; scrollbar-width: none; }
  .co-item { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
  .co-item.none { display: none; }
}
