/* Tracker Coaching Search. The AD workspace shell (dark top bar + sidebar, hero band, cards, tables, mobile tab bar) in a
   neutral Tracker skin: tokens come from the vendored AD look (ad-look/tokens.css), Tracker red #cc0001 is the one accent.
   House rules: flat colour, radius 6 or less, weights 400-600, sentence case, hairline tables, tabular numbers. */
:root { --red: #CC0001; --shell: #121417; --shell-2: #16181C; --shell-ink: #E9EBEE; --shell-ink-2: #A9AFB8; --shell-rule: #2A2E35; --pct-lo: #3661AD; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--f-display); -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga", "lnum"; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--shell); color: #FFFFFF; padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
.nil { color: var(--ink-4); font-weight: 400; }
.muted { color: var(--ink-3); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: var(--warn); }
.ic { flex: none; }
.n, td.n, th.n { text-align: right; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- top bar (dark in both displays, like every AD workspace) ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 16px; background: var(--shell); color: var(--shell-ink); border-bottom: 2px solid var(--red); }
.tb-menu { display: none; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--shell-rule); background: transparent; color: var(--shell-ink); place-items: center; }
.tb-brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; padding-right: 16px; border-right: 1px solid var(--shell-rule); height: 36px; flex: none; }
.tb-brand img { width: 30px; height: auto; }
.tb-brand .wm { display: grid; line-height: 1.1; }
.tb-brand .wm b { font: 600 17px/1.1 var(--f-display); letter-spacing: -.01em; }
.tb-brand .wm small { font: 400 12px/1.2 var(--f-display); color: var(--shell-ink-2); }
.tb-hire { min-width: 0; }
.hire-btn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 8px; border-radius: 6px; border: 1px solid var(--shell-rule); background: var(--shell-2); color: var(--shell-ink); max-width: 340px; }
.hire-btn:hover { border-color: #3D434C; }
.hire-btn .hbx { display: grid; text-align: left; min-width: 0; line-height: 1.15; }
.hire-btn small { font-size: 11px; color: var(--shell-ink-2); }
.hire-btn b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark { flex: none; display: inline-grid; place-items: center; border-radius: 4px; font-family: var(--f-display); font-weight: 600; letter-spacing: .01em; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-seg { display: inline-flex; padding: 2px; border-radius: 6px; border: 1px solid var(--shell-rule); }
.tb-seg button { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--shell-ink-2); font-size: 13px; }
.tb-seg button[aria-pressed="true"] { background: #2A2E35; color: #FFFFFF; }
.tb-ask { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 4px; background: var(--red); color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 13.5px; }
.tb-ask:hover { background: #B00001; }
.tb-role { display: grid; padding-left: 12px; border-left: 1px solid var(--shell-rule); line-height: 1.2; }
.tb-role b { font-weight: 500; font-size: 13px; }
.tb-role small { font-size: 11.5px; color: var(--shell-ink-2); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- sidebar ---------- */
.ws-body { display: grid; grid-template-columns: 244px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; background: var(--shell-2); color: var(--shell-ink); border-right: 1px solid var(--shell-rule); scrollbar-width: thin; scrollbar-color: #3D434C transparent; }
.side-in { padding: 16px 12px 20px; min-height: 100%; display: flex; flex-direction: column; }
.side-k { margin: 20px 10px 6px; font-size: 12px; font-weight: 500; color: var(--shell-ink-2); }
.side-k:first-child { margin-top: 2px; }
.side-sport { list-style: none; margin: 0; padding: 0; }
.side-sport a, .side-sport .off, .side-nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 4px; text-decoration: none; color: var(--shell-ink); font-size: 14px; }
.side-sport .off { color: #7E858F; cursor: default; min-height: 30px; font-size: 13px; }
.side-sport .live { margin-left: auto; font-size: 12px; color: #7FD3A6; }
.side-sport .nx { margin-left: auto; font-size: 12px; color: #6C737D; }
.side-sport a.on { background: rgba(255,255,255,.06); }
.side-nav a { color: #C9CDD3; }
.side-nav a:hover { background: rgba(255,255,255,.05); color: #FFFFFF; }
.side-nav a[aria-current="page"] { background: rgba(255,255,255,.09); color: #FFFFFF; font-weight: 500; }
.side-nav a[aria-current="page"] .ic { color: #FF6466; }
.side-foot { margin-top: auto; padding: 20px 10px 0; display: grid; gap: 8px; }
.refreshed { margin: 0; font-size: 12px; color: var(--shell-ink-2); }
.powered { display: flex; align-items: center; gap: 8px; color: var(--shell-ink-2); text-decoration: none; font-size: 12px; }
.powered:hover { color: #FFFFFF; }
.side-scrim { display: none; }

/* ---------- main ---------- */
main { min-width: 0; max-width: 1320px; padding: 24px clamp(16px, 2.4vw, 36px) 72px; outline: none; }
main > * + * { margin-top: 20px; }
.loading { padding: 40px 0; color: var(--ink-3); }
.devbar { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--warn); border-radius: 4px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); font-weight: 600; }

/* ---------- hero band ---------- */
.hero { background: var(--shell); color: #FFFFFF; border-radius: 6px; }
[data-theme="dark"] .hero { background: #181B20; border: 1px solid var(--rule); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 28px 32px; }
.hero-k { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #B9BEC6; }
.hero h1 { margin: 0; color: #FFFFFF; font: 600 28px/1.18 var(--f-display); letter-spacing: -.015em; max-width: 30ch; text-wrap: balance; }
.hero .lede { margin: 12px 0 0; max-width: 68ch; font: 400 15.5px/1.6 var(--f-serif); color: #D5D9DE; }
.hero .lede a { color: #FFFFFF; }
.hero-note { margin: 10px 0 0; max-width: 68ch; font-size: 13.5px; color: #A9AFB8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-stage { display: inline-flex; align-items: center; height: 38px; font-size: 13.5px; color: #D5D9DE; margin-right: 6px; }
.hero-kv { margin: 0; display: grid; gap: 14px; min-width: 200px; padding-left: 24px; border-left: 1px solid #2F343C; }
.hero-kv div { display: grid; gap: 2px; }
.hero-kv dt { font-size: 12px; color: #A9AFB8; }
.hero-kv dd { margin: 0; font: 500 22px/1.15 var(--f-display); font-variant-numeric: tabular-nums lining-nums; color: #FFFFFF; }
.hero-kv dd small { font-size: 13px; font-weight: 400; color: #A9AFB8; margin-left: 2px; }
.hero-kv .nil { color: #8C929B; font-size: 15px; }
.hero-sm .hero-in { padding: 22px 28px; }
.hero-sm h1 { font-size: 24px; }

/* ---------- buttons + fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 4px; border: 1px solid transparent; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn-red { background: var(--red); color: #FFFFFF; }
.btn-red:hover { background: #B00001; }
.btn-quiet { background: transparent; color: #FFFFFF; border-color: #3D434C; }
.btn-quiet:hover { border-color: #6C737D; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.xs { width: 26px; height: 26px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; font-size: 13px; }
.linkbtn:hover { color: var(--ink); text-decoration-color: currentColor; }
select, input[type="text"], input[type="search"], input:not([type]) { height: 34px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); padding: 0 10px; color: var(--ink); min-width: 0; }
select { padding-right: 28px; }
.money-in { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); padding: 0 10px; gap: 4px; color: var(--ink-3); }
.money-in input { border: 0; height: 30px; width: 72px; padding: 0 2px; background: transparent; font-variant-numeric: tabular-nums; color: var(--ink); }
.money-in input:focus { outline: none; }
.money-in:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.money-in.sm input { width: 48px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; min-width: 0; }
.card-h { margin-bottom: 14px; }
.card-h h2, .tbl-h h2, .setup h2 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.005em; }
.sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); max-width: 90ch; }
.source { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.source a { color: var(--ink-2); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); max-width: 80ch; }
.note b { font-weight: 500; color: var(--ink); }
.empty-line { margin: 0; color: var(--ink-3); font-size: 14px; }
.empty-state { padding: 32px 20px; }
.empty-state h2 { margin: 0 0 6px; font-size: 17px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; }
.kv div { display: grid; gap: 2px; min-width: 0; }
.kv dt { font-size: 12px; color: var(--ink-3); }
.kv dd { margin: 0; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.kv dd small { color: var(--ink-3); font-size: 12.5px; }
.kv.wide { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.kv.wide dd { font-size: 18px; font-weight: 500; }

/* ---------- search board ---------- */
.setup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; }
.seg .s { display: none; }
.setup-role { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.fl { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.fh { font-size: 12.5px; color: var(--ink-3); }
.sel-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 8px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); text-align: left; max-width: 360px; }
.sel-btn > span:not(.mark) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sel-btn:hover { background: var(--hover); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-strong); border-radius: 4px; overflow: hidden; width: max-content; max-width: 100%; }
.seg button { height: 34px; padding: 0 12px; border: 0; border-right: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font-size: 13.5px; }
.seg button:last-child { border-right: 0; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--surface); }
.setup-w { border-left: 1px solid var(--rule-soft); padding-left: 28px; }
.sw-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.sl { display: grid; gap: 2px; }
.sl-t { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.sl-t output { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
input[type="range"] { width: 100%; height: 22px; margin: 0; accent-color: var(--red); background: transparent; }
.tbl { padding: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.filters select { min-width: 140px; }
.filters .linkbtn { height: 34px; }
.tbl-h { padding: 16px 20px 10px; }
.more-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px 16px; border-top: 1px solid var(--rule-soft); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
thead th { font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; vertical-align: bottom; }
tbody td, tbody th { padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; text-align: left; font-weight: 400; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
th.l, td.l { text-align: left; }
abbr { text-decoration: none; }
table.rank tbody tr { cursor: pointer; }
table.rank tbody tr:hover td { background-color: var(--hover); }
table.rank td { vertical-align: middle; height: 52px; }
table.rank th:first-child, table.rank td:first-child { padding-left: 20px; }
table.rank th:last-child, table.rank td:last-child { padding-right: 20px; }
.rk { color: var(--ink-3); width: 36px; }
.who a { font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; }
.who a:hover { text-decoration: underline; }
.who small, td small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.comp { width: 92px; }
.comp b { font-weight: 600; font-size: 15px; }
.comp .meter { margin: 4px 0 0 auto; width: 64px; }
.thin { color: var(--ink-3); }
td.sc, th.sc { width: 44px; padding-left: 4px; padding-right: 8px; }
td.sc { color: var(--ink); }
.cost { white-space: nowrap; }
.cv { display: block; font-weight: 500; }
.cv small { display: inline; color: var(--ink-3); font-weight: 400; }
.cs { display: block; font-size: 12px; color: var(--ink-3); }
.cs.warn { color: var(--warn); }
.dd { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }
.segs { display: inline-flex; gap: 2px; }
.segs i { width: 7px; height: 10px; border-radius: 1px; background: var(--chart-ctx-2); }
.segs i.on { background: var(--ink-2); }
.stage { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
td.act { width: 44px; text-align: right; }
.meter { display: block; height: 4px; background: var(--chart-ctx-2); border-radius: 1px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--red); }
.meter.empty { height: 0; background: transparent; border-top: 1px dashed var(--rule-strong); }

/* ---------- dossier ---------- */
table.drivers th { width: 150px; font-weight: 500; color: var(--ink); }
table.drivers td.n { width: 40px; font-weight: 500; }
table.drivers td.m { width: 120px; vertical-align: middle; }
table.drivers td.m .meter { width: 110px; }
table.drivers td.why { color: var(--ink-2); }
.qs { margin: 0; padding: 0 0 0 20px; display: grid; gap: 12px; }
.qs li { padding-left: 4px; }
.qs p { margin: 0; font: 400 15px/1.55 var(--f-serif); color: var(--ink); }
.qs small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.fig { margin: 0 0 14px; }
.fig figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.chart { width: 100%; height: auto; overflow: visible; font-family: var(--f-display); }
.chart .grid { stroke: var(--rule-soft); stroke-width: 1; }
.chart .zero, .chart .base { stroke: var(--rule-strong); stroke-width: 1; }
.chart .tick { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .tick.strong { fill: var(--ink); font-weight: 500; }
.chart .lbl { fill: var(--ink-2); font-size: 12px; }
.chart .lbl.sm { font-size: 11px; }
.chart .lbl.hl { fill: var(--chart); font-weight: 500; }
.chart .ln { fill: none; stroke: var(--chart-ctx); stroke-width: 1.5; }
.chart .ln.hl { stroke: var(--chart); stroke-width: 2; }
.chart .pt { fill: var(--chart-ctx); }
.chart .pt.hl { fill: var(--chart); stroke: var(--surface); stroke-width: 1; }
.chart .bar { fill: var(--chart-ctx); }
.chart .bar.hl { fill: var(--chart); }
.chart .bar.ctx { fill: var(--chart-ctx); }
.chart .band { fill: var(--bg); }
.chart .whisk { stroke: var(--ink-4); stroke-width: 1; }
.chart .med { stroke: var(--ink); stroke-width: 2; }
.chart .mark-l { stroke: var(--ink); stroke-width: 1; }
.chart .mark-l.dash { stroke-dasharray: 3 3; stroke: var(--ink-3); }
table.data { font-size: 13px; }
table.data.lift td { font-size: 14px; }
.hbars { display: grid; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 44px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.hb-t { height: 10px; background: var(--rule-soft); border-radius: 1px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--chart-ctx); }
.hb-t i.hl { background: var(--chart); }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.tree { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tree h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tree ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.dd-t { margin: 22px 0 8px; font-size: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.checklist .ck, .checklist label { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.checklist .ck { cursor: default; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cb { width: 18px; height: 18px; border: 1px solid var(--rule-strong); border-radius: 3px; display: grid; place-items: center; background: var(--surface); color: #FFFFFF; margin-top: 1px; }
.cb.on, .checklist input:checked + .cb { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.checklist input:checked + .cb::after { content: ""; width: 9px; height: 5px; border: solid var(--surface); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.checklist input:focus-visible + .cb { outline: 2px solid var(--focus); outline-offset: 2px; }
.checklist b { display: block; font-weight: 500; font-size: 14px; }
.checklist small { display: block; font-size: 12.5px; color: var(--ink-3); }

/* ---------- compare, cost, carousel ---------- */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.picks.one { grid-template-columns: minmax(0, 360px); }
.pick { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.pick select { width: 100%; }
table.cmp th[scope="row"] { color: var(--ink-2); font-weight: 400; white-space: nowrap; width: 200px; }
table.cmp thead th a { font-size: 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
table.cmp td .meter { width: 90px; margin-top: 4px; }
table.cmp td.best { font-weight: 600; }
table.costs th small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
table.costs th { font-weight: 400; color: var(--ink); font-size: 14px; }
table.costs td { font-size: 16px; vertical-align: middle; }
table.costs tr.total th, table.costs tr.total td { border-top: 1px solid var(--rule-strong); font-weight: 600; font-size: 16px; }
table.costs tr.total td { font-size: 20px; }
tr.sel td { background: var(--hover); }
td.sch { display: flex; align-items: center; gap: 10px; }
td.sch span small { display: block; }
.open-t { color: var(--red); font-weight: 500; }
[data-theme="dark"] .open-t { color: var(--accent); }

/* ---------- pipeline ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(148px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 6px; padding: 10px; min-height: 240px; }
.kcol.over { border-color: var(--ink-3); }
.kcol h2 { display: flex; justify-content: space-between; margin: 2px 4px 10px; font-size: 13.5px; }
.kcol h2 span { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.kcol ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kcard { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 10px; cursor: grab; }
.kcard.drag { opacity: .5; }
.kc-t { display: flex; justify-content: space-between; gap: 8px; }
.kc-t a { font-weight: 500; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.kc-t a:hover { text-decoration: underline; }
.kc-t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.kcard small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.kc-f { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.kc-b { display: inline-flex; gap: 4px; }
.kmore, .kempty { font-size: 12.5px; color: var(--ink-3); padding: 4px; }

/* ---------- ask ---------- */
.ask { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.ask-s h2 { margin: 0 0 8px; font-size: 15px; }
.ask-s ul { list-style: none; margin: 0; padding: 0; }
.ask-s li { border-top: 1px solid var(--rule-soft); }
.ask-s li:first-child { border-top: 0; }
.ask-s .q { display: block; width: 100%; text-align: left; padding: 9px 0; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.ask-s .q:hover { color: var(--red); }
[data-theme="dark"] .ask-s .q:hover { color: var(--accent); }
.ask-f { display: flex; gap: 8px; }
.ask-f input { flex: 1; height: 38px; }
.ans { padding: 18px 0; border-top: 1px solid var(--rule-soft); }
.ask-log .ans:first-child { margin-top: 16px; }
.ans h3 { margin: 0 0 6px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.ans p { margin: 0 0 10px; font: 400 15px/1.6 var(--f-serif); max-width: 75ch; }
.ans a { font-weight: 500; }

/* ---------- popover + toast ---------- */
.pop { position: fixed; z-index: 60; width: 380px; max-height: min(520px, 75vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; box-shadow: var(--shadow-3); color: var(--ink); }
.pop[hidden] { display: none; }
.pop-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px 14px; font-weight: 500; }
.pop-s { display: flex; align-items: center; gap: 8px; margin: 6px 12px 8px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--ink-3); }
.pop-s input { border: 0; flex: 1; height: 34px; padding: 0; background: transparent; }
.pop-s input:focus { outline: none; }
.pop-s:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.pop-l { list-style: none; margin: 0; padding: 0 6px 8px; overflow-y: auto; }
.pop-l button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 4px; background: transparent; text-align: left; }
.pop-l button:hover, .pop-l button[aria-selected="true"] { background: var(--hover); }
.pop-l .pn { flex: 1; min-width: 0; font-size: 14px; }
.pop-l .pn small { display: block; font-size: 12px; color: var(--ink-3); }
.pop-l .po { font-size: 12px; color: var(--ink-3); }
.pop-l .po.open { color: var(--red); }
[data-theme="dark"] .pop-l .po.open { color: var(--accent); }
.pop-l .empty { padding: 12px; color: var(--ink-3); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 10px 14px; border-radius: 4px; background: var(--shell); color: #FFFFFF; font-size: 13.5px; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

@media (max-width: 1180px) {
  .tb-role { display: none; }
  .setup { grid-template-columns: 1fr; }
  .setup-w { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-soft); padding-top: 18px; }
  td.dd-c, th.dd-h { display: none; }
}
@media (max-width: 960px) {
  .ws-body { grid-template-columns: minmax(0, 1fr); }
  .tb-menu { display: inline-grid; }
  .side { position: fixed; top: 62px; left: 0; bottom: 0; z-index: 45; width: 280px; height: auto; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .side-scrim.on { display: block; position: fixed; inset: 62px 0 0 0; z-index: 44; background: rgba(11,12,14,.5); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; background: var(--shell); border-top: 1px solid var(--shell-rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 4px 0; color: var(--shell-ink-2); text-decoration: none; font-size: 11px; }
  .tabbar a[aria-current="page"] { color: #FFFFFF; }
  .tabbar a[aria-current="page"] .ic { color: #FF6466; }
  main { padding-bottom: 96px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .ask-s { order: 2; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  td.sc, th.sc { display: none; }
}
@media (max-width: 700px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .tb-brand { padding-right: 0; border-right: 0; }
  .tb-brand .wm small { display: none; }
  .tb-hire { display: none; }
  .tb-seg .t, .tb-ask .t { display: none; }
  .tb-seg button { padding: 0 8px; }
  .tb-ask { padding: 0 10px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 18px; }
  .hero-sm .hero-in { padding: 18px; }
  .hero h1 { font-size: 23px; }
  .hero-sm h1 { font-size: 21px; }
  .hero .lede { font-size: 15px; }
  .hero-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0 0; border-left: 0; border-top: 1px solid #2F343C; min-width: 0; }
  .hero-kv dd { font-size: 19px; }
  .card { padding: 16px; }
  .tbl { padding: 0; }
  .filters { padding: 14px 16px; }
  .filters label { flex: 1 1 140px; }
  .filters select { min-width: 0; width: 100%; }
  .tbl-h { padding: 14px 16px 8px; }
  table.rank th:first-child, table.rank td:first-child { padding-left: 16px; }
  table.rank th:last-child, table.rank td:last-child { padding-right: 16px; }
  td.act, th.act { display: none; }
  .comp .meter { display: none; }
  .sliders { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 6px; font-size: 13px; }
  .seg .l { display: none; }
  .seg .s { display: inline; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .tree { grid-template-columns: minmax(0, 1fr); }
  table.drivers td.m { display: none; }
  table.drivers th { width: auto; }
  table.drivers tr { display: grid; grid-template-columns: 1fr auto; }
  table.drivers td.why { grid-column: 1 / -1; padding-top: 0; }
  .hb { grid-template-columns: minmax(0, 1fr) 44px; }
  .hb-t { grid-column: 1 / -1; grid-row: 2; }
  .pop.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 80vh; border-radius: 6px 6px 0 0; }
  .kanban { grid-template-columns: repeat(6, 230px); }
}
@media print {
  .topbar, .side, .tabbar, .hero-actions, .devbar { display: none !important; }
  .ws-body { display: block; }
  main { padding: 0; max-width: none; }
  .hero { background: none; color: #000000; border: 1px solid #CCCCCC; }
  .hero h1, .hero .lede, .hero-kv dd { color: #000000; }
  .card { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .side, .toast { transition: none; } }
