/* Customer Discovery Studio: Hypothesis Board world. Light, hairline, tabular. */
:root {
  --ground: #f5f4f0;
  --panel: #ffffff;
  --panel-2: #fafaf7;
  --ink: #14171c;
  --ink-2: #4a505a;
  --ink-3: #646a74;
  --rule: #e4e2db;
  --rule-strong: #cfccc3;

  --primary: #1d3a8f;
  --primary-ink: #ffffff;
  --primary-soft: #eef1fb;
  --primary-line: #c7d0ef;

  --signal: #ffd84d;          /* reserved: "changed" only */
  --signal-soft: #fff5cc;
  --signal-ink: #6b5200;

  --lead: #1c7c54;  --lead-soft: #e5f3ec;
  --emerge: #2f6690; --emerge-soft: #e6eff6;
  --mixed: #a3620a; --mixed-soft: #fbf0df;
  --against: #b4332b; --against-soft: #fbe9e7;
  --thin: #59677a; --thin-soft: #edf0f4;
  --none: #7c828c; --none-soft: #f0f0ed;

  --seg-small: #0e7c86;
  --seg-larger: #5b4bc4;

  --radius: 10px;
  --radius-sm: 6px;
  --lift: 0 1px 2px rgba(20, 23, 28, .05), 0 6px 18px -8px rgba(20, 23, 28, .10);
  --ease: cubic-bezier(.16, 1, .3, 1);

  font-family: "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  accent-color: var(--primary);
  caret-color: var(--primary);
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--rule-strong) transparent; }
body { margin: 0; background: var(--ground); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--primary-soft); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.num, table, .board, .tab-num { font-variant-numeric: tabular-nums; }
.cond { font-stretch: 85%; font-variation-settings: "wdth" 85; }
.shell { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar + steps ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { color: var(--ink); flex: none; }
.brand-name { font-weight: 650; letter-spacing: -.01em; font-size: 15.5px; }
.brand-case { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--ink); background: var(--panel); border: 1px solid var(--ink); padding: 3px 10px; border-radius: 4px; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; font-variation-settings: "wdth" 85; }

.steps { display: flex; gap: 2px; margin-bottom: -1px; }
.step { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px 12px; color: var(--ink-3); font-weight: 550; font-size: 14px; }
.step .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule-strong); display: grid; place-items: center; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.step:hover:not(:disabled) { color: var(--ink); }
.step[aria-current="step"] { color: var(--ink); border-bottom-color: var(--ink); }
.step[aria-current="step"] .n { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.done .n { background: var(--lead); border-color: var(--lead); color: #fff; }
.step:disabled { cursor: not-allowed; opacity: .5; }
.step .sub { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.steps .spacer { flex: 1; }
.pathline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); padding-bottom: 8px; }
.pathline b { color: var(--ink); font-weight: 600; }
.pathline .sep { color: var(--rule-strong); }

/* ---------- Page heading ---------- */
main { padding-top: 28px; padding-bottom: 32px; outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.page-head h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; text-wrap: balance; max-width: 820px; }
.page-head p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; max-width: 760px; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); }
.panel-head h2 { font-size: 16px; font-weight: 650; letter-spacing: -.005em; }
.panel-head p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.panel-body { padding: 18px 22px 22px; }
.panel-foot { padding: 12px 22px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); background: var(--panel-2); border-radius: 0 0 var(--radius) var(--radius); }
.stack > * + * { margin-top: 20px; }
.cols-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---------- Controls ---------- */
.segmented { display: inline-flex; background: #ecebe6; border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: baseline; transition: background .2s var(--ease), color .2s; }
.segmented button small { font-weight: 450; color: var(--ink-3); font-size: 12px; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(20,23,28,.12), 0 0 0 1px rgba(20,23,28,.04); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 550; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.tab .c { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.tab:hover { border-color: var(--rule-strong); color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab[aria-pressed="true"] .c { color: #c9ccd2; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule-strong); background: var(--panel); padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--panel-2); border-color: #b9b5aa; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover:not(:disabled) { background: #172f75; border-color: #172f75; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover:not(:disabled) { background: #ecebe6; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; }

.actionbar { position: sticky; bottom: 0; z-index: 5; margin-top: 24px; background: rgba(245,244,240,.92); backdrop-filter: saturate(1.2) blur(8px); border-top: 1px solid var(--rule); }
.actionbar .shell { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.actionbar .hint { color: var(--ink-3); font-size: 13px; margin-left: auto; }
.actionbar .hint + .btn { margin-left: 0; }
.actionbar .grow { margin-left: auto; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.t-leading { color: var(--lead); background: var(--lead-soft); }
.t-emerging { color: var(--emerge); background: var(--emerge-soft); }
.t-conflicted { color: var(--mixed); background: var(--mixed-soft); }
.t-thin { color: var(--thin); background: var(--thin-soft); }
.t-against { color: var(--against); background: var(--against-soft); }
.t-none { color: var(--none); background: var(--none-soft); }
.seg-tag { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.seg-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-3); }
.seg-tag.small::before { background: var(--seg-small); }
.seg-tag.larger::before { background: var(--seg-larger); }
.type-tag { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.id { font-weight: 700; font-size: 12px; font-stretch: 85%; font-variation-settings: "wdth" 85; color: var(--ink-2); background: #efeee9; border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.fu-tag { font-size: 11.5px; font-weight: 650; color: var(--emerge); background: var(--emerge-soft); padding: 2px 8px; border-radius: 4px; }

/* ---------- Step 1: funnel chart ---------- */
.chart-wrap { padding: 8px 22px 6px; }
.funnel-svg { width: 100%; height: auto; display: block; overflow: visible; }
.funnel-svg text { font-family: inherit; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 18px; white-space: nowrap; flex: none; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
table.data td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
table.data th:first-child, table.data td:first-child { text-align: left; padding-left: 22px; }
table.data th:last-child, table.data td:last-child { padding-right: 22px; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.hl { background: #f3f2ed; }
table.data th { white-space: nowrap; }
.loss-list { display: grid; }
.loss { padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.loss:last-child { border-bottom: 0; }
.loss-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.loss-val { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-stretch: 85%; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.loss-meter { height: 8px; border-radius: 4px; background: #ecebe6; overflow: hidden; margin: 10px 0 8px; display: flex; }
.loss-meter span { display: block; height: 100%; }
.loss p { font-size: 13px; color: var(--ink-2); }
.note-box { margin: 0 22px 20px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.note-box b { color: var(--ink); }

/* ---------- Step 1: evidence ---------- */
.ev-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote { padding: 18px 22px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.quote:nth-child(2n) { border-right: 0; }
.quote-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.quote .who { margin-top: auto; font-size: 12.5px; color: var(--ink-3); }
.quote .who b { color: var(--ink-2); font-weight: 600; }
.theme { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: #efeee9; padding: 2px 8px; border-radius: 4px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 22px 10px; font-size: 13px; font-weight: 650; border-bottom: 1px solid var(--rule); background: var(--panel-2); }
.sub-head span { color: var(--ink-3); font-weight: 500; }
table.tickets td { text-align: left; vertical-align: top; }
table.tickets td:nth-child(2) { white-space: nowrap; }
.empty-row { padding: 22px; color: var(--ink-3); font-size: 14px; }

.mix-chart { display: grid; gap: 18px; }
.mix-row h3 { font-size: 13px; font-weight: 600; margin-bottom: 7px; display: flex; justify-content: space-between; }
.mix-row h3 span { color: var(--ink-3); font-weight: 500; }
.mix-bar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; gap: 2px; }
.mix-bar > div { display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; font-variant-numeric: tabular-nums; }
.mix-key { display: grid; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.mix-key div { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; }
.mix-key i { width: 10px; height: 10px; border-radius: 2px; }
.mix-key b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Step 2: hypothesis board ---------- */
.board-panel .panel-head { align-items: center; }
.board { display: grid; }
.b-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 224px 196px 108px 104px; align-items: center; gap: 0 16px; padding: 0 22px; min-height: 72px; border-bottom: 1px solid var(--rule); text-align: left; background: var(--panel); border-left: 0; border-right: 0; border-top: 0; width: 100%; position: relative; transition: background .2s var(--ease); }
.b-row.h { min-height: 38px; background: var(--panel-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; cursor: default; }
button.b-row:hover { background: #fbfbf8; }
button.b-row[aria-checked="true"] { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.b-row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.b-rank { font-size: 24px; font-weight: 650; font-stretch: 80%; font-variation-settings: "wdth" 80; color: var(--ink); font-variant-numeric: tabular-nums; }
.b-rank.na { color: var(--rule-strong); }
.b-hyp { padding: 12px 0; min-width: 0; }
.b-hyp .t { display: flex; min-width: 0; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; }
.b-hyp .s { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule-strong); flex: none; display: grid; place-items: center; background: #fff; }
[aria-checked="true"] .radio { border-color: var(--primary); }
[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.balance { display: grid; gap: 5px; }
.balance-bar { display: flex; height: 10px; gap: 2px; }
.balance-bar span { display: block; height: 100%; border-radius: 2px; }
.balance-bar .s { background: var(--lead); }
.balance-bar .m { background: #d89a3c; }
.balance-bar .a { background: var(--against); }
.balance-bar .z { background: #ecebe6; flex: 1; }
.balance-legend { display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.balance-legend b { color: var(--ink); font-weight: 650; }
.fit { font-size: 13px; font-variant-numeric: tabular-nums; }
.fit .bar { height: 4px; background: #ecebe6; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.fit .bar span { display: block; height: 100%; background: var(--ink-2); }
.fit.none { color: var(--ink-3); }
.chg { font-size: 11.5px; font-weight: 650; color: var(--signal-ink); background: var(--signal); padding: 3px 8px; border-radius: 4px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.chg .ico { width: 12px; height: 12px; stroke-width: 2.2; }
.board-empty { padding: 10px 22px 12px; font-size: 13px; color: var(--ink-2); background: var(--panel-2); border-bottom: 1px solid var(--rule); display: flex; gap: 8px; align-items: center; }

.detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-col { padding: 16px 20px 20px; border-right: 1px solid var(--rule); }
.d-col:last-child { border-right: 0; }
.d-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; display: flex; justify-content: space-between; margin-bottom: 12px; }
.d-col h3 span { font-variant-numeric: tabular-nums; }
.d-col.sup h3 { color: var(--lead); }
.d-col.mix h3 { color: var(--mixed); }
.d-col.mis h3 { color: var(--against); }
.ev { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.ev:first-of-type { border-top: 0; padding-top: 0; }
.ev-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 5px; }
.ev .none { color: var(--ink-3); font-size: 13.5px; }
.gap-item { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.gap-item:first-of-type { border-top: 0; padding-top: 0; }
.gap-item .ico { color: var(--against); margin-top: 2px; }
.followup { border-top: 1px solid var(--rule); padding: 14px 22px 18px; background: #f6faf9; border-radius: 0 0 var(--radius) var(--radius); }
.followup h3 { font-size: 12.5px; font-weight: 650; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.followup h3 span { color: var(--ink-3); font-weight: 450; }
.followup .ev { border-top: 0; padding: 4px 0; max-width: 900px; }
.stats-line { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.stats-line b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; }

/* ---------- Step 2: interview planner ---------- */
table.cands td { vertical-align: middle; }
table.cands tr.row { cursor: pointer; }
table.cands tr.row:hover td { background: #fbfbf8; }
table.cands tr.row.on td { background: var(--primary-soft); }
table.cands tr.row.off td { color: var(--ink-3); }
table.cands td:first-child { width: 44px; }
table.cands td, table.cands th { text-align: left; }
table.cands .t { font-weight: 600; font-size: 14px; }
table.cands .n { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
table.cands tr.row.off .t { color: var(--ink-2); }
.check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--rule-strong); background: #fff; display: grid; place-items: center; }
.check .ico { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.6; opacity: 0; }
.on .check { background: var(--primary); border-color: var(--primary); }
.on .check .ico { opacity: 1; }
input.cb { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.cb-wrap { position: relative; display: inline-grid; }
input.cb:focus-visible + .check { outline: 2px solid var(--primary); outline-offset: 2px; }
input.cb:disabled + .check { opacity: .4; }
.rel { font-size: 12px; font-weight: 600; white-space: nowrap; }
.rel.confirm { color: var(--ink-2); }
.rel.counter { color: var(--mixed); }
.rel.gap { color: var(--emerge); }
.rel.off { color: var(--ink-3); font-weight: 500; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; }
.checks .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.checks .mark .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.checks .ok .mark { background: var(--lead-soft); color: var(--lead); }
.checks .no .mark { background: var(--mixed-soft); color: var(--mixed); }
.checks small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.meter { display: flex; gap: 4px; margin: 2px 0 16px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: #ecebe6; }
.meter span.on { background: var(--lead); }
.sticky { position: sticky; top: 132px; }

/* ---------- Empty / intro ---------- */
.empty { padding: 34px 22px; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.example { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Step 3: brief ---------- */
.brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.doc { padding: 34px 44px 40px; }
.doc-head { padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.doc-head h2 { font-size: 23px; letter-spacing: -.015em; font-weight: 650; margin-top: 10px; text-wrap: balance; }
.doc-head p { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.doc-sec { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 650; padding-top: 2px; }
.doc-sec h3 .pill { margin-top: 8px; text-transform: none; letter-spacing: 0; }
.doc-sec p, .doc-sec li { font-size: 14.5px; line-height: 1.55; max-width: 72ch; }
.doc-sec ul, .doc-sec ol { padding-left: 18px; display: grid; gap: 7px; }
.doc-warn { margin-top: 12px; padding: 10px 12px; background: var(--mixed-soft); border-radius: 6px; font-size: 13.5px; color: #6f4307; }
.doc-warn ul { margin-top: 4px; }
.rail-card { padding: 20px 22px; }
.rail-card + .rail-card { border-top: 1px solid var(--rule); }
.rail-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 650; margin-bottom: 10px; }
.decision-title { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; margin: 10px 0 8px; text-wrap: balance; }
.decision-body { font-size: 14px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 550; }
.copy-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lead); font-weight: 600; min-height: 20px; margin-top: 8px; justify-content: center; }
.copy-status.err { color: var(--against); }

.foot { color: var(--ink-3); font-size: 12.5px; padding-top: 8px; padding-bottom: 36px; max-width: 1320px; }

/* ---------- Motion ---------- */
.b-row.flip { transition: transform .5s var(--ease); }
@keyframes chg-in { 0% { transform: scale(.85); box-shadow: 0 0 0 6px rgba(255,216,77,.55); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(255,216,77,0); } }
.b-row.changed .chg { animation: chg-in .9s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .b-row.flip { transition: none; }
  .b-row.changed .chg { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .b-row { grid-template-columns: 40px minmax(0, 1fr) 150px 170px 80px; }
  .b-row > :nth-child(6) { display: none; }
  .brief-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { padding: 0 16px; }
  .cols-main, .detail, .quotes { grid-template-columns: 1fr; }
  .quote { border-right: 0; }
  .d-col { border-right: 0; border-bottom: 1px solid var(--rule); }
  .brand-case, .step .sub { display: none; }
  .steps { overflow-x: auto; }
  .step { padding: 10px 10px 12px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 23px; }
  .b-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 10px 16px; gap: 6px 12px; }
  .b-row.h { display: none; }
  .b-row > .b-balance { grid-column: 2 / -1; }
  .b-row > .b-fit { display: none; }
  .doc { padding: 22px 18px; }
  .doc-sec { grid-template-columns: 1fr; gap: 8px; }
  .sticky { position: static; }
  table.data th:first-child, table.data td:first-child { padding-left: 14px; }
  .table-scroll { overflow-x: auto; }
  .actionbar .hint { display: none; }
}

table.data td:first-child, .seg-tag, .theme { white-space: nowrap; }
table.tickets th { text-align: left; }
.b-status .pill { white-space: nowrap; }
.b-row > span { min-width: 0; }
.b-row.h > span { white-space: nowrap; }
table.cands tr.row.full td { color: var(--ink-3); }
.h3-aside { display: block; text-transform: none; letter-spacing: 0; font-weight: 450; font-size: 12.5px; margin-top: 4px; }

/* Phone refinements */
@media (max-width: 900px) {
  .cols-main, .detail, .quotes, .brief-layout { grid-template-columns: minmax(0, 1fr); }
  .panel-head { flex-wrap: wrap; padding: 16px 16px 12px; }
  .panel-body { padding: 16px; }
  .segmented { flex-wrap: wrap; }
  .segmented button small { display: none; }
  .step { white-space: nowrap; font-size: 13px; gap: 6px; }
  .steps .pathline { display: none; }
  .brand-name { font-size: 14.5px; }
  .b-row { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 16px; gap: 6px 10px; align-items: start; }
  .b-row > .b-status, .b-row > .b-balance, .b-row > .b-chg { grid-column: 2; }
  .b-row > .b-chg:empty { display: none; }
  .b-hyp { padding: 0; }
  .b-rank { font-size: 20px; }
  .chart-wrap { padding: 8px 12px 4px; }
  .legend { flex-wrap: wrap; white-space: normal; }
  .quote, .loss, .sub-head { padding-left: 16px; padding-right: 16px; }
  .note-box { margin: 0 16px 16px; }
  .d-col { padding: 14px 16px 16px; }
  .actionbar .shell { padding-top: 10px; padding-bottom: 10px; }
}
.btn { white-space: nowrap; }

/* ---------- Review fixes: gate-board voice ---------- */
.b-row.h { font-size: 12.5px; letter-spacing: .08em; color: var(--ink-2); font-variation-settings: "wdth" 75; font-weight: 650; min-height: 40px; }
.id { font-variation-settings: "wdth" 75; letter-spacing: .02em; }
.b-hyp .t { font-size: 16.5px; font-variation-settings: "wdth" 85; font-weight: 650; }
.b-hyp .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.b-row { min-height: 78px; }
.b-status .pill { font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.fit, .balance-legend, .stats-line b, .loss-val, table.data td, .mix-key b, .mix-bar > div, .tab .c, .chg { font-variation-settings: "wdth" 85; }
.fit b { font-size: 15px; }
.balance-legend b { font-size: 13.5px; }
.funnel-svg text { font-variation-settings: "wdth" 85; }
table.data th { font-variation-settings: "wdth" 80; }
.chg { font-size: 12px; text-transform: none; }
.board-controls { display: flex; align-items: center; gap: 20px; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.board-title h2 { font-size: 16px; font-weight: 650; }
.board-title p { font-size: 13px; color: var(--ink-3); }
.board-title { border-left: 1px solid var(--rule); padding-left: 20px; }
.short { display: none; }
/* decision + boarding-pass stub */
.decision-title { font-size: 20px; margin: 0 0 8px; }
.decision-meta { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.stub > div { padding: 12px 14px 10px; border-right: 1px solid var(--rule); min-width: 0; }
.stub > div:first-child { padding-left: 22px; }
.stub > div:last-child { border-right: 0; }
.stub dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 650; font-variation-settings: "wdth" 80; }
.stub dd { margin: 2px 0 0; font-size: 19px; font-weight: 650; font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stub-name { padding: 0 22px 14px; font-size: 13px; color: var(--ink-2); }
.perf { position: relative; height: 1px; margin: 0; border-top: 1.5px dashed var(--rule-strong); }
.perf::before, .perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 1px solid var(--rule); }
.perf::before { left: -9px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -9px; clip-path: inset(0 50% 0 0); }
@media (max-width: 900px) {
  .step .full, .segmented .full { display: none; }
  .step .short, .segmented .short { display: inline; }
  .board-controls { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .board-title { border-left: 0; padding-left: 0; }
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .segmented button { justify-content: center; }
}
@media (max-width: 900px) { .btn .full { display: none; } .btn .short { display: inline; } }

/* Mid-width: keep step tabs on one line */
.step { white-space: nowrap; }
@media (max-width: 1200px) { .steps .pathline { display: none; } }
@media (max-width: 1200px) { .segmented button small { display: none; } }
@media (min-width: 901px) and (max-width: 1100px) {
  .b-row { grid-template-columns: 36px minmax(0, 1fr) 216px 156px 104px; }
  .b-row > :nth-child(6) { display: block; }
  .b-row > :nth-child(5) { display: none; }
}
