/* ============================================================================
   HitchAI — Opportunities module (browse grid + pipeline boards).
   Tokens come from ../explorer/hitch-tokens.css; only module-local additions
   are declared here. Ported from mockups/opportunities.html and made real.
   ========================================================================== */
/* The status hues. --blue was the only one declared here, but this module has
   been SPENDING --green, --red and --nd2 for months — the verdict bands
   (Pursue = green, No bid = nd2), the "new" flag, and the 14-day deadline red.
   An undefined custom property makes `color: var(--nd2)` invalid at
   computed-value time, so those rules silently fell back to inherited ink:
   Pursue printed the same cream as everything around it, No bid's dot rendered
   with a transparent background and simply wasn't there, and a deadline inside
   two weeks never went red. The values are the platform's (explorer/profile.css
   carries the same set), tuned only where this module uses a hue as TEXT and
   the platform value was picked as a fill — every one of these ends up as a
   verdict word in the results grid, so each is held to 4.5:1 against --panel in
   both themes (--nd2 lifted from #8f8c83, which landed at 4.3:1 once the muted
   bands mix it into --ink-faint). */
:root { --blue: #6fb0e8; --green: #6bbf59; --red: #e07b7b; --nd2: #96938a; --field: #0c0e11; }
/* (the dimmer --ink-dim/--ink-faint contrast pilot was promoted into the
   shared hitch-tokens.css on 2026-07-13 — no opps-local override needed) */
/* appearance.js toggles body.light and overrides the shared tokens; the
   module-local ones flip here so form fields and chips stay readable.
   The dark hues are tuned for a near-black field and go muddy on cream, so
   light mode takes the darker end of the same palette — far enough down that
   each clears 4.5:1 on the parchment (the platform's light --nd2, #a29e94, is a
   fill value and runs at 2.4:1 as type). --accent is deliberately absent: it is
   the platform accent and stays #e8a13c for fills, with --accent-text carrying
   the readable amber. See the --vc/--vct split in opps-v2.css. */
body.light { --field: #fffdf8; --blue: #2b6cb0; --green: #2f7a26; --red: #a2352d; --nd2: #807c72; }
body.light .topbar { background: linear-gradient(90deg, #fffdf8, #f5f2ea); }
body.light thead th { background: #efeadd; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; min-height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: rgba(232, 161, 60, .3); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2"/></filter><rect width="240" height="240" filter="url(%23n)"/></svg>'); }
.app { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- topbar (explorer shell) ---------- */
/* ⚠ THE TOPBAR MUST OUTRANK .rail (z-index:100, below) OR THE GLOBAL NAV LOSES
   TO THE PAGE. It sat at 30 while the rail was raised to 100 for its own
   popover fight, and nothing noticed because the topbar itself is only 55px
   tall and the rail starts below it. What DOES reach down is a module menu:
   the nav's `.bgroup__panel` hangs out of the topbar over the workspace, and
   it is `position:static; z-index:auto`, so it cannot escape its parent's
   stacking context — the whole menu, and the rail's scrollbar with it, painted
   in the wrong order and the rail's scrollbar drew a grey bar straight down
   the middle of the open "President's Budget" menu.
   105/106 rather than a big jump: the pair has to stay ABOVE the rail and
   BELOW the tour and Ask Hitch overlays (200-210), and .pb-drawer has to keep
   covering the topbar the way it always has — it is a full-height panel with
   its own header at top:0, so its rank relative to the topbar is deliberate
   and is preserved here, just moved up as a pair. */
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, #0c0d10, #0a0b0d); position: sticky; top: 0; z-index: 105; }
.brand { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.brand b { color: var(--accent-ink,var(--accent)); font-style: italic; font-weight: 400; }
.modnav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.viewnav__btn { font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.viewnav__btn:hover { color: var(--ink); border-color: var(--ink-dim); }
.viewnav__btn.on { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.topbar__spacer { flex: 1; }
.fresh-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; white-space: nowrap; }
.fresh-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.fresh-pill .samplechip { font-size: .6875rem; letter-spacing: .12em; color: var(--blue); border: 1px dashed rgba(111, 176, 232, .5); border-radius: 4px; padding: 1px 5px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* account chip (mounted by store.js) */
.acctbar { display: flex; align-items: center; gap: .5rem; margin-left: .3rem; }
.acctbar__chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: .35rem .8rem; background: none; cursor: pointer; white-space: nowrap; }
.acctbar__chip:hover { color: var(--ink); border-color: var(--ink-dim); }
@media (max-width: 1180px) { .acctbar { display: none; } }

/* ---------- workspace ---------- */
.workspace { display: grid; grid-template-columns: 284px 1fr; flex: 1; min-height: 0; }
/* z-index is load-bearing, not decorative. .rail is `position: sticky`,
   which always opens its own stacking context — with no explicit z-index
   that context sits at stack level 0 ("auto"), and a v2-pop filter popover
   escapes the rail's overflow via `position: fixed` (v2PopFitFixed, app.js)
   but stays confined to THIS stacking context for paint order regardless.
   #main's results table is fully un-positioned, but that did not save it:
   measured live, its plain <span class="sc"> score badges still painted
   ON TOP of a fixed, z-index:70 popover nested in the rail — "Where it came
   from" rendered with its own Clear/Done footer bleeding "88 / 100" and
   other row score badges straight through it, reported as a "rail UI
   conflict". A number this high is a wide margin over anything the rail's
   own popovers use (.v2-pop is 70), not a value tuned to this one bug. */
.rail { border-right: 1px solid var(--line-soft); background: var(--bg-soft); padding: 16px 14px 40px; overflow-y: auto; max-height: calc(100vh - 57px); position: sticky; top: 57px; z-index: 100; }
.rail h3 { font-family: var(--mono); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); font-weight: 500; margin: 20px 0 9px; }
.rail h3:first-child { margin-top: 2px; }
.rail h3 small { color: var(--ink-faint); letter-spacing: .06em; text-transform: none; float: right; font-weight: 400; }

/* rail pipeline cards (both views) */
.plcard { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px; cursor: pointer; transition: border-color .2s; position: relative; }
.plcard:hover { border-color: var(--ink-dim); }
.plcard.on { border-color: rgba(232, 161, 60, .55); background: rgba(232, 161, 60, .07); }
.plcard b { display: block; font-size: .82rem; font-weight: 500; color: var(--ink); padding-right: 26px; }
.plcard small { color: var(--ink-faint); font-size: .6875rem; line-height: 1.45; display: block; margin-top: 2px; }
.bdanger { margin-left: 0; }
.bdanger:hover { color: var(--warn) !important; border-color: rgba(224, 123, 123, .5); }
.newpl { width: 100%; border: 1px dashed var(--line); border-radius: 10px; padding: 7px; color: var(--ink-faint); font-size: .72rem; font-family: var(--mono); letter-spacing: .06em; transition: .2s; }
.newpl:hover { border-color: var(--accent); color: var(--accent-ink,var(--accent)); }
.plsync { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; line-height: 1.6; margin-top: 8px; }
.plsync a { color: var(--ink-dim); border-bottom: 1px dotted var(--ink-faint); }
.plsync a:hover { color: var(--accent-ink,var(--accent)); }

/* the lens block (rail top): reuses the .tgrow toggles; the edit line matches .plsync */
.lensedit { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; line-height: 1.6; margin: 6px 0 2px; }
.lensedit a { color: var(--ink-dim); border-bottom: 1px dotted var(--ink-faint); }
.lensedit a:hover { color: var(--accent-ink,var(--accent)); }

/* filters */
.fgroup { margin-bottom: 13px; }
.fgroup label { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.tgrow { display: flex; flex-wrap: wrap; gap: 4px; }
.tg { background: transparent; border: 1px solid var(--line); color: var(--ink-dim); border-radius: 7px; padding: 3px 8px; font-family: var(--mono); font-size: .6875rem; transition: .15s; white-space: nowrap; }
.tg:hover { color: var(--ink); border-color: var(--ink-dim); }
.tg.on { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.tg small { opacity: .65; margin-left: 3px; }
select.fsel { width: 100%; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: .78rem; font-family: var(--sans); font-weight: 400; }
select.fsel:focus { outline: none; border-color: var(--accent); }

/* ---------- rail: quick toggles + top group ---------- */
.qtoggles { display: flex; gap: 6px; margin: 4px 0 14px; }
.qtog { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--field); border: 1px solid var(--line); color: var(--ink-dim); border-radius: 9px; padding: 7px 8px; font-size: .72rem; font-weight: 400; transition: .15s; white-space: nowrap; }
.qtog:hover { color: var(--ink); border-color: var(--ink-dim); }
.qtog.on { background: rgba(232, 161, 60, .13); border-color: var(--accent); color: var(--accent-soft); }
.qtog small { font-family: var(--mono); font-size: .6875rem; opacity: .7; }

/* ---------- rail: filters header + reset ---------- */
.railhead { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.railhead h3 { margin: 0; }
.railreset { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px dotted var(--ink-faint); transition: .15s; }
.railreset:hover { color: var(--accent-ink,var(--accent)); border-color: var(--accent); }

/* ---------- reusable multi-select filter picker ---------- */
.fpick { position: relative; margin-bottom: 11px; }
.fpick > label { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.fpbtn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: .78rem; font-weight: 400; transition: .15s; text-align: left; }
.fpbtn:hover { border-color: var(--ink-dim); }
.fpbtn.has { border-color: var(--accent); background: rgba(232, 161, 60, .07); }
.fpick.open .fpbtn { border-color: var(--accent); }
.fpsum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpsum b { font-family: var(--mono); font-size: .6875rem; color: var(--accent-soft); font-weight: 500; }
.fpcar { flex: 0 0 auto; color: var(--ink-faint); font-size: .7rem; transition: transform .15s; }
.fpick.open .fpcar { transform: rotate(180deg); color: var(--accent-ink,var(--accent)); }
.fppop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 5px); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 16px 40px rgba(0,0,0,.42); padding: 8px; }
.fpsearch { width: 100%; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .76rem; font-weight: 400; margin-bottom: 7px; }
.fpsearch:focus { outline: none; border-color: var(--accent); }
.fplist { max-height: 264px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.fpopt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; cursor: pointer; transition: background .12s; }
.fpopt:hover { background: rgba(127, 127, 127, .1); }
.fpopt.on { background: rgba(232, 161, 60, .12); }
.fpchk { flex: 0 0 14px; width: 14px; text-align: center; color: var(--accent-ink,var(--accent)); font-size: .72rem; }
.fpol { flex: 1; font-size: .77rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpopt.on .fpol { color: var(--ink); }
.fpol em { color: var(--ink-faint); font-style: normal; font-size: .72rem; }
.fpn { flex: 0 0 auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.fpempty { padding: 8px 10px; font-size: .74rem; color: var(--ink-faint); font-style: italic; }
.fpclear { display: block; width: 100%; margin-top: 6px; padding: 5px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; color: var(--ink-faint); transition: .15s; }
.fpclear:hover { color: var(--accent-ink,var(--accent)); }

/* ---------- agency canonical tree (inside the agency popover) ---------- */
.agtree { max-height: 300px; overflow-y: auto; margin-top: 2px; }
.agnode { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 7px; cursor: pointer; line-height: 1.4; transition: background .12s; }
.agnode:hover { background: rgba(127, 127, 127, .1); }
.agnode.sel { background: rgba(232, 161, 60, .12); }
.agtog { flex: 0 0 15px; width: 15px; text-align: center; color: var(--ink-faint); font-size: .6875rem; user-select: none; }
.agtog-none { visibility: hidden; }
.agchk { flex: 0 0 12px; width: 12px; text-align: center; color: var(--accent-ink,var(--accent)); font-size: .7rem; }
.agpick { flex: 1; font-size: .77rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agnode.sel .agpick { color: var(--ink); }
.agacr { color: var(--ink-faint); font-size: .6875rem; }
.agcrumb { color: var(--ink-faint); font-size: .6875rem; font-style: italic; opacity: .8; }
.agn { flex: 0 0 auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.agempty { padding: 8px 10px; font-size: .74rem; color: var(--ink-faint); font-style: italic; }

/* ---------- save search + toast ---------- */
.savesearch { width: 100%; margin-top: 16px; border: 1px dashed var(--line); border-radius: 10px; padding: 9px; color: var(--ink-dim); font-size: .74rem; font-family: var(--mono); letter-spacing: .05em; transition: .2s; }
.savesearch:hover { border-color: var(--accent); color: var(--accent-ink,var(--accent)); background: rgba(232, 161, 60, .05); }
.opps-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 9999; background: var(--panel); border: 1px solid var(--accent); color: var(--ink); font-size: .82rem; padding: 11px 18px; border-radius: 11px; box-shadow: 0 14px 40px rgba(0,0,0,.4); opacity: 1; transition: opacity .4s, transform .4s; }
.opps-toast.out { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* ---------- main ---------- */
.main { padding: 22px 26px 70px; min-width: 0; max-width: 1440px; }
/* The pipeline board earns the full viewport: capped, a docked WON/lost rail sits
   stranded against a wide right-hand gutter, its vertical-text button the only
   thing left to click through to reach it. Browse keeps its cap — a results table
   is prose and wants a line length; a board is columns and wants the width.
   ⚠ THE COMPOUND SELECTORS ARE LOAD-BEARING. opps-v2.css (1560px) and
   opps-rail.css (1400px) both cap `.main` at the same two-class specificity as a
   bare `body.boardmode`, and both load after this file — so a bare rule LOSES on
   load order and does nothing. Since 2026-08-29 the board carries the rail, so
   body.v2rail is the one that was silently winning. Three classes beat two
   regardless of order, the same way opps-rail.css's own collapse rule does. */
body.boardmode .main,
body.boardmode.v2 .main,
body.boardmode.v2rail .main { max-width: none; }
.headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.headrow h1 { font-family: var(--serif); font-weight: 400; font-size: 2.15rem; letter-spacing: .005em; }
.headrow h1 em { color: var(--accent-ink,var(--accent)); font-style: italic; }
.headrow .lead { color: var(--ink-dim); font-size: .86rem; margin-top: 4px; }
.fresh { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; text-align: right; line-height: 1.8; }
.fresh b { color: var(--ink-dim); font-weight: 500; }

/* what's-new strip */
.wnew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--panel); padding: 10px 14px; }
.wnew .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex: none; }
.wnew .cap { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); }
.wnchip { font-size: .74rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 3px 11px; transition: .15s; }
.wnchip b { color: var(--ink); font-weight: 500; }
.wnchip:hover { border-color: var(--accent); color: var(--ink); }
/* The strip's chips set REAL filters now (the two recency ones write a durable
   window rather than parking in the keyword box, where any keystroke used to
   clear them), so the one you are on has to look like it. Matches .vchip.on
   below — the AI-triage row directly under this one has always shown its
   selection, and two adjacent chip rows behaving differently reads as a bug. */
.wnchip.on { border-color: var(--accent); color: var(--ink); background: var(--accent-soft, rgba(212,160,74,.12)); }
.wnchip.on b { color: var(--accent-text, var(--accent)); }

/* KPI band */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin: 14px 0 0; }
.kpi { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 11px 13px; }
.kpi .l { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.kpi .v { font-family: var(--serif); font-size: 1.7rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: .6875rem; color: var(--ink-faint); margin-top: 1px; }
.kpi.hot .v { color: var(--accent-ink,var(--accent)); }
.kpi.ctx { opacity: .75; }

/* triage row */
.triage { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 16px 0 0; }
.triage .cap { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-right: 2px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 3px 11px; transition: .15s; }
.vchip:hover { border-color: var(--ink-dim); color: var(--ink); }
.vchip.on { border-color: var(--accent); color: var(--ink); background: rgba(232, 161, 60, .1); }
.vdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.vdot.relevant { background: var(--good); }
.vdot.review { background: var(--accent); }
.vdot.noise { background: var(--ink-faint); }
.kwai { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .4); border-radius: 4px; padding: 1px 4px; margin-left: 4px; vertical-align: 1px; }

/* table */
.tablewrap { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--panel); }
.tabletools { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
/* the search box only — not the checkboxes nested in the column chooser */
.tabletools > input { flex: 1; min-width: 180px; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: .8rem; font-weight: 400; }
.tabletools > input:focus { outline: none; border-color: var(--accent); }
.tabletools > input::placeholder { color: var(--ink-faint); }
.tabletools .count { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; white-space: nowrap; }
/* column chooser: a small popover anchored to the "Columns" button */
.colpick { position: relative; }
.colbtn { background: var(--field); color: var(--ink-dim); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: .6875rem; font-family: var(--mono); letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.colbtn:hover { border-color: var(--accent); color: var(--ink); }
/* THE v1 SCOPE SWITCH — All / Open / Archive, `state.open`, the same three
   states #v2-scope carries on the v2 board. Three `.colbtn`s butted into one
   segmented control rather than a new component: this toolbar is made of
   .colbtn and the switch should not be the one thing in it that isn't.
   `.on` is shared with #qhist below, so the selected state reads the same as
   every other engaged button on this bar. */
.v1scope { display: inline-flex; }
.v1scope .colbtn { border-radius: 0; margin-left: -1px; }
.v1scope .colbtn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.v1scope .colbtn:last-child { border-radius: 0 8px 8px 0; }
.v1scope .colbtn.on { position: relative; z-index: 1; }
.colmenu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px; min-width: 168px; box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.colmenu.open { display: block; }
.colopt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: .74rem; color: var(--ink-dim); cursor: pointer; white-space: nowrap; }
.colopt:hover { background: rgba(232, 161, 60, .08); color: var(--ink); }
.colopt input { flex: none; width: 13px; height: 13px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { position: sticky; top: 0; background: #0e1115; z-index: 2; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); font-weight: 500; text-align: left; padding: 8px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th.sorth { cursor: pointer; user-select: none; transition: color .12s; }
thead th.sorth:hover { color: var(--ink); }
thead th.sorth.on { color: var(--accent-ink,var(--accent)); }
thead th.sorth .caret { display: inline-block; margin-left: 4px; font-size: .7rem; letter-spacing: 0; }
tbody td { padding: 8px 11px; border-bottom: 1px solid var(--line-soft); font-size: .78rem; vertical-align: top; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: rgba(232, 161, 60, .07); }
tbody tr.sel { background: rgba(232, 161, 60, .12); }
td.posted { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); white-space: nowrap; }
.typechip { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }
.typechip.award { color: var(--good); border-color: rgba(107, 191, 89, .35); }
.typechip.recompete { color: var(--blue); border-color: rgba(111, 176, 232, .35); }
.typechip.ota { color: #b592e0; border-color: rgba(155, 130, 224, .40); }
/* PIEE-only: open on DoD's PIEE and not synopsized on SAM.gov — the
   scarcest inventory in the grid, so it reads as a find, not a warning */
.typechip.piee { color: var(--warn, #d9a441); border-color: rgba(217, 164, 65, .38); }
/* Hanford-only: same idea, DOE's H2C RFP page instead of PIEE (hanford_collect.py) */
.typechip.hanford { color: var(--blue); border-color: rgba(111, 176, 232, .35); }
.srcchip { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; color: var(--warn, #d9a441);
  border: 1px solid rgba(217, 164, 65, .3); border-radius: 4px; padding: 1px 4px; margin-left: 6px; white-space: nowrap; }
/* GAO protest signals: a pending protest reads hot (the award is in flux);
   a sustained one reads as a win (the decision did not stand); history is dim */
.typechip.protest { color: var(--warn); border-color: rgba(224, 123, 123, .45); }
.protflag { white-space: nowrap; }
.protflag.on { color: var(--warn); }
.protflag.win { color: var(--good); }
.protsum { font-size: .8rem; color: var(--ink-dim); margin-bottom: 6px; }
.protrow { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .78rem; }
.protrow .pp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.protrow .pchip { font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink-dim); white-space: nowrap; }
.protrow .pchip.pending { color: var(--warn); border-color: rgba(224, 123, 123, .45); }
.protrow .pchip.sustained, .protrow .pchip.granted { color: var(--good); border-color: rgba(107, 191, 89, .35); }
.protrow .pm { color: var(--ink-faint); font-size: .6875rem; white-space: nowrap; }
.protfoot { margin-top: 8px; font-size: .6875rem; color: var(--ink-faint); line-height: 1.5; }
td.title { min-width: 300px; max-width: 520px; }
td.title .t { color: var(--ink); font-weight: 400; line-height: 1.4; }
td.title .t mark { background: rgba(232, 161, 60, .16); color: var(--accent-soft); border-radius: 3px; padding: 0 2px; }
td.title .sub { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 2px; }
.sollink { color: var(--accent-soft); text-decoration: none; }
.sollink:hover { text-decoration: underline; color: var(--accent-ink,var(--accent)); }
td.agency { color: var(--ink-dim); font-size: .72rem; max-width: 170px; }
td.agency small { display: block; color: var(--ink-faint); font-size: .6875rem; }
td.sa { font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); white-space: nowrap; }
.ddl { font-family: var(--mono); font-size: .6875rem; white-space: nowrap; border-radius: 6px; padding: 2px 7px; border: 1px solid var(--line); color: var(--ink-dim); }
.ddl.warn { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .45); }
.ddl.hot { color: var(--warn); border-color: rgba(224, 123, 123, .45); }
.ddl.done { color: var(--ink-faint); border-style: dashed; }
/* an ESTIMATE is never styled like an actual date: dashed border, tilde text */
.ddl.est { color: var(--accent-soft); border-style: dashed; border-color: rgba(232, 161, 60, .4); font-style: italic; }
td.val { font-family: var(--mono); font-size: .6875rem; white-space: nowrap; }
.vcell { color: var(--ink); }
.vcell.dim { color: var(--ink-faint); }
.vcell.yours { color: var(--blue); border-bottom: 1px dotted rgba(111, 176, 232, .5); }
td.leadcell { text-align: center; }
td.actcell { max-width: 160px; overflow: hidden; }
.actchip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; border-radius: 6px; padding: 2px 7px; white-space: nowrap; border: 1px solid var(--line); color: var(--ink-dim); }
.actchip.now { color: var(--good); border-color: rgba(107, 191, 89, .45); background: rgba(107, 191, 89, .07); }
.actchip.digest { color: var(--accent-soft); border-color: rgba(232, 161, 60, .35); }
.actchip.intel { color: var(--ink-faint); border-style: dashed; }
.actchip.gated { color: var(--ink-faint); border-style: dashed; text-decoration: line-through; }
/* position band — "how you stand", a small tag ahead of the action chip */
.postag { display: inline-block; vertical-align: middle; margin-right: 5px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: 2px 6px; white-space: nowrap; border: 1px solid var(--line); color: var(--ink-dim); cursor: default; }
.postag.favorite, .postag.defend { color: var(--good); border-color: rgba(107, 191, 89, .45); background: rgba(107, 191, 89, .07); }
.postag.contender { color: var(--accent-soft); border-color: rgba(232, 161, 60, .35); }
.postag.sub { color: var(--accent-soft); border-color: rgba(232, 161, 60, .3); border-style: dashed; }
.postag.longshot { color: var(--ink-faint); border-style: dashed; }
/* the fit gate held this row — not a weak position, no position at all */
.postag.held { color: var(--ink-faint); border-style: dotted; }
.postag.locked { color: var(--ink-faint); border-style: dashed; text-decoration: line-through; }
.leadstar { font-size: .85rem; color: var(--ink-faint); width: 28px; height: 28px; border-radius: 50%; transition: .15s; }
.leadstar:hover { color: var(--accent-ink,var(--accent)); background: rgba(232, 161, 60, .1); }
.leadstar.on { color: var(--accent-ink,var(--accent)); }
.amend { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--blue); border: 1px solid rgba(111, 176, 232, .4); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
/* add-to-pipeline, from the grid — sits beside the watch star */
td.pipecell { text-align: center; }
.pipeadd { font-size: .8rem; color: var(--ink-faint); width: 28px; height: 28px; border-radius: 50%; transition: .15s; }
.pipeadd:hover { color: var(--accent-ink,var(--accent)); background: rgba(232, 161, 60, .1); }
.pipeadd.on { color: var(--accent-ink,var(--accent)); }
.pipemenu { display: none; position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px; min-width: 208px; max-width: 300px; box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.pipemenu.open { display: block; }
.pipemsg { font-family: var(--mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 8px 7px; }
.pipeopt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px; font-size: .76rem; color: var(--ink-dim); text-align: left; transition: .15s; }
.pipeopt:hover { background: rgba(232, 161, 60, .08); color: var(--ink); }
.pipeopt .pk { flex: none; width: 13px; color: var(--ink-faint); font-size: .7rem; }
.pipeopt.on .pk { color: var(--accent-ink,var(--accent)); }
.pipeopt .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeopt .pstage { flex: none; font-family: var(--mono); font-size: .52rem; letter-spacing: .06em; color: var(--accent-ink,var(--accent)); }
.pipeopt.newpl { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 8px; border-radius: 0 0 6px 6px; }
.pipenew { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.pipenew input { flex: 1; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: .74rem; font-weight: 400; }
.pipenew input:focus { outline: none; border-color: var(--accent); }
.stagechip { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .4); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.srcline { font-size: .6875rem; color: var(--ink-faint); margin-top: 10px; line-height: 1.6; }
.srcline a { color: var(--ink-dim); border-bottom: 1px dotted var(--ink-faint); }
.srcline a:hover { color: var(--accent-ink,var(--accent)); }
.empty { padding: 34px; text-align: center; color: var(--ink-faint); font-size: .8rem; }

/* ---------- slide-over detail ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 6, 8, .55); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s; }
body.open .scrim { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 0; right: 0; height: 100%; width: 500px; max-width: 96vw; background: var(--bg-soft); border-left: 1px solid var(--line); z-index: 41; transform: translateX(103%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
body.open .sheet { transform: translateX(0); }
.sheet__head { padding: 16px 20px 14px; border-bottom: 1px solid var(--line-soft); position: relative; }
.sheet__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.sheet__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; font-weight: 400; }
.sheet__sol { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 6px; letter-spacing: .04em; }
.sheet__close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-dim); font-size: .85rem; transition: .2s; }
.sheet__close:hover { color: var(--ink); border-color: var(--ink-dim); }
.sheet__body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; }
.sheet__body h4 { font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); font-weight: 500; margin: 18px 0 8px; }
.sheet__body h4:first-child { margin-top: 0; }
.ddlbar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: var(--panel); }
.ddlbar .big { font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ddlbar .big.hot { color: var(--warn); }
.ddlbar .big.warn { color: var(--accent-ink,var(--accent)); }
.ddlbar .big.est { color: var(--accent-soft); font-style: italic; font-size: 1.1rem; }
.ddlbar small { color: var(--ink-faint); font-size: .6875rem; line-height: 1.45; }
.aiblock { border: 1px solid rgba(232, 161, 60, .3); border-radius: 9px; padding: 10px 12px; background: rgba(232, 161, 60, .05); }
.aiblock .verdictrow { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.aiblock .verdictrow b { font-size: .8rem; font-weight: 500; text-transform: capitalize; }
.aiblock p { font-size: .76rem; color: var(--ink-dim); line-height: 1.55; }
.metagrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.metagrid div { background: var(--panel); padding: 8px 11px; }
.metagrid .k { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 2px; }
.metagrid .val { font-size: .76rem; color: var(--ink); font-weight: 400; word-break: break-word; }
.metagrid .span2 { grid-column: 1 / -1; }
.pend { border: 1px dashed var(--line); border-radius: 9px; padding: 11px 13px; color: var(--ink-faint); font-size: .74rem; line-height: 1.55; }
.descblock { font-size: .78rem; color: var(--ink-dim); line-height: 1.6; white-space: pre-wrap; }
.pend a { color: var(--ink-dim); border-bottom: 1px dotted var(--ink-faint); }
.pend a:hover { color: var(--accent-ink,var(--accent)); }
.crow { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 7px 2px; font-size: .75rem; }
.crow:last-child { border-bottom: none; }
.crow .nm { color: var(--ink); }
.crow .em { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); text-align: right; word-break: break-all; }
.vrow { display: flex; align-items: baseline; gap: 9px; padding: 6px 2px; border-bottom: 1px solid var(--line-soft); font-size: .72rem; }
.vrow:last-child { border-bottom: none; }
.vrow .vtag { font-family: var(--mono); font-size: .6875rem; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .35); border-radius: 4px; padding: 1px 6px; flex: none; }
.vrow .when { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); flex: none; }
.vrow .chg { color: var(--ink-dim); }
.awardbox { border: 1px solid rgba(107, 191, 89, .3); border-radius: 9px; padding: 11px 13px; background: rgba(107, 191, 89, .05); margin-bottom: 6px; }
.awardbox:last-of-type { margin-bottom: 0; }
.incbox { border: 1px solid rgba(111, 176, 232, .35); border-radius: 9px; padding: 10px 13px; background: rgba(111, 176, 232, .05); margin-bottom: 6px; }
.incbox .to { font-size: .82rem; color: var(--ink); font-weight: 400; }
.incbox small { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); display: block; margin-top: 4px; }
.awardbox .amt { font-family: var(--serif); font-size: 1.5rem; color: var(--good); }
.awardbox .to { font-size: .8rem; color: var(--ink); margin-top: 2px; }
.awardbox small { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); display: block; margin-top: 5px; }
.xlink { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; margin-bottom: 6px; transition: .15s; cursor: pointer; }
.xlink:hover { border-color: var(--accent); }
.xlink .mod { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .35); border-radius: 4px; padding: 2px 6px; flex: none; }
.xlink .what { font-size: .74rem; color: var(--ink-dim); line-height: 1.4; }
.xlink .arrow { margin-left: auto; color: var(--ink-faint); font-size: .8rem; }
.sheet__foot { display: flex; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line-soft); background: var(--bg-soft); }
.btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent); border: 1px solid var(--accent); color: #1a1206; border-radius: 100px; padding: 7px 16px; font-weight: 500; font-size: .8rem; transition: .25s; }
.btn:hover { background: var(--accent-soft); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-dim); background: transparent; }

/* actionability (sheet block + profile card) */
.actblock { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--panel); }
.actblock.now { border-color: rgba(107, 191, 89, .45); background: rgba(107, 191, 89, .05); }
.actblock.gated { border-style: dashed; }
.actblock .actline { display: flex; align-items: baseline; gap: 10px; }
.actblock .actline b { font-size: .84rem; font-weight: 500; }
.actblock.now .actline b { color: var(--good); }
.actblock .actscore { margin-left: auto; font-family: var(--serif); font-size: 1.15rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.actblock p { font-size: .74rem; color: var(--ink-faint); margin-top: 4px; }
.factors { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.factor { font-size: .6875rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 2px 9px; cursor: default; }
.factor b { color: var(--ink); font-weight: 500; }
.factor.pos { border-color: rgba(107, 191, 89, .3); }
.factor.pos b { color: var(--good); }
.actcard.now { border-color: rgba(107, 191, 89, .45); background: rgba(107, 191, 89, .04); }
.actcard.gated, .actcard.none { border-style: dashed; }
.actcard .actverdict { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.actcard.now .actverdict { color: var(--good); }
.actcard.gated .actverdict, .actcard.none .actverdict { color: var(--ink-faint); }
.actcard .actends { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 4px; letter-spacing: .03em; }
/* position line on the detail action card — band label + the "why" */
.actpos { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.actpos .posband { font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; border: 1px solid var(--line); color: var(--ink-dim); }
.actpos.favorite .posband, .actpos.defend .posband { color: var(--good); border-color: rgba(107, 191, 89, .45); background: rgba(107, 191, 89, .07); }
.actpos.contender .posband, .actpos.sub .posband { color: var(--accent-soft); border-color: rgba(232, 161, 60, .35); }
.actpos.longshot .posband, .actpos.locked .posband { color: var(--ink-faint); border-style: dashed; }
.actpos .poswhy { font-size: .72rem; color: var(--ink-faint); }

/* pipeline section inside the slide-over + profile page */
.plsect { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--panel); }
.plsect.bare { border: none; background: none; padding: 0; }
.plsect .plrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.plsect select { flex: 1; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: .74rem; font-family: var(--sans); font-weight: 400; }
.plsect select:focus { outline: none; border-color: var(--accent); }
.stagerow { display: flex; flex-wrap: wrap; gap: 5px; }
.stage { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; transition: .15s; white-space: nowrap; }
.stage:hover { color: var(--ink); border-color: var(--ink-dim); }
.stage.on { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.plsect .plmeta { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; margin-top: 8px; line-height: 1.6; }
.plsect .plremove { color: var(--ink-faint); font-size: .6875rem; border-bottom: 1px dotted var(--ink-faint); margin-left: 8px; }
.plsect .plremove:hover { color: var(--warn); }

/* ---------- pipeline board (kanban) ---------- */
/* board + manage own the full width: the app rail hides */
body.boardmode .workspace { grid-template-columns: 1fr; }
body.boardmode .rail { display: none; }

/* the pipeline selector tabs (top of the board) */
.pltabs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.pltab { font-size: .78rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 5px 14px; transition: .15s; display: inline-flex; align-items: center; gap: 7px; }
.pltab small { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.pltab:hover { color: var(--ink); border-color: var(--ink-dim); }
.pltab.on { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.pltab.on small { color: rgba(26, 18, 6, .7); }
.pltab.ghost { border-style: dashed; color: var(--ink-faint); }
.pltab.ghost:hover { color: var(--accent-ink,var(--accent)); border-color: var(--accent); }
.pltab-form { margin-top: 0; max-width: 260px; }
.boardsub { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; margin-bottom: 10px; }
.boardsub b { color: var(--accent-soft); }
.scopeclear { color: var(--ink-faint); font-size: .6875rem; width: 18px; height: 18px; border-radius: 50%; }
.scopeclear:hover { color: var(--warn); }

/* metrics + signals band under the board */
.pmetrics { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.pmcap { font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); margin-bottom: 10px; }
.sigs { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; }
.sigrow { display: flex; align-items: baseline; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--line-soft); font-size: .76rem; cursor: pointer; transition: background .12s; }
.sigrow:last-child { border-bottom: none; }
.sigrow:hover { background: rgba(232, 161, 60, .07); }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; }
.sdot.hot { background: var(--warn); box-shadow: 0 0 0 3px rgba(224, 123, 123, .15); }
.sdot.warn { background: var(--accent); }
.sdot.info { background: var(--ink-faint); }
.stext { color: var(--ink); font-weight: 400; white-space: nowrap; }
.stitle { color: var(--ink-faint); font-size: .6875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* manage page */
.mcard { max-width: 760px; margin-bottom: 14px; }
.stgedit { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.stgchip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; }
.stgname { font-family: var(--mono); font-size: .6875rem; color: var(--ink); padding: 0 4px; }
.stgname small { color: var(--ink-faint); }
.stgmv, .stgx { color: var(--ink-faint); font-size: .6875rem; width: 18px; height: 18px; border-radius: 5px; transition: .15s; display: inline-flex; align-items: center; justify-content: center; }
.stgmv:hover, .stgx:hover { color: var(--ink); background: rgba(244, 241, 234, .07); }
.stgx.danger:hover { color: var(--warn); }
.mcard .bconfirm { margin-top: 10px; }
.mcard .m-del { margin-left: 0; margin-top: 10px; display: inline-block; }

.boardhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.boardhead h1 { font-family: var(--serif); font-weight: 400; font-size: 2.15rem; }
.boardhead h1 em { color: var(--accent-ink,var(--accent)); font-style: italic; }
.boardhead .bcount { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; }
.boardhead .brename { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); border-bottom: 1px dotted var(--ink-faint); margin-left: auto; }
.boardhead .brename:hover { color: var(--accent-ink,var(--accent)); }
.brename-input { font-family: var(--serif); font-size: 1.6rem; background: var(--field); color: var(--ink); border: 1px solid var(--accent); border-radius: 10px; padding: 4px 12px; min-width: 0; flex: 1; max-width: 440px; }
.brename-input:focus { outline: none; }
.bconfirm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; border: 1px solid rgba(224, 123, 123, .45); border-radius: 10px; background: rgba(224, 123, 123, .06); padding: 10px 14px; font-size: .78rem; color: var(--ink-dim); }
.bconfirm b { color: var(--ink); }
.bconfirm input { background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .78rem; min-width: 180px; }
.bconfirm input:focus { outline: none; border-color: var(--warn); }
.bconfirm .bdel-go { background: var(--warn); border-color: var(--warn); color: #2a0e0e; }
.bconfirm .bdel-go:disabled { opacity: .4; cursor: not-allowed; }
.bd-npform { max-width: 320px; margin: 0 auto 12px; }
.board { display: flex; gap: 10px; margin-top: 4px; overflow-x: auto; align-items: flex-start; padding-bottom: 16px; }
.col { flex: 1 1 240px; min-width: 220px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 9px; min-height: 120px; transition: border-color .15s, background .15s; }
.col.dragover { border-color: var(--accent); background: rgba(232, 161, 60, .05); }
.col.sel { border-color: rgba(232, 161, 60, .5); }
.col__head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 8px; cursor: pointer; }
.col__head:hover .col__name { color: var(--ink); }
.col__name { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); font-weight: 500; }
.col__sum { font-family: var(--mono); font-size: .6875rem; color: var(--accent-soft); margin-left: auto; }
.col__n { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-left: auto; }
.col__sum + .col__n { margin-left: 6px; }
.col.won .col__name { color: var(--good); }
.col.lost .col__name { color: var(--warn); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 7px; cursor: grab; transition: border-color .15s; }
.card:hover { border-color: var(--ink-dim); }
.card.dragging { opacity: .4; }
.card .ct { font-size: .74rem; color: var(--ink); line-height: 1.35; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .cm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.card .cm .ddl { font-size: .6875rem; padding: 1px 6px; }
.card .cacts { display: flex; align-items: center; gap: 4px; margin-top: 7px; }
.card .cbtn { font-size: .6875rem; color: var(--ink-faint); width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.card .cbtn:hover { color: var(--ink); background: rgba(244, 241, 234, .06); }
.card .cbtn.danger:hover { color: var(--warn); }
.card .cstage { margin-left: auto; background: var(--field); color: var(--ink-dim); border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: .6875rem; padding: 2px 5px; max-width: 110px; }
.card .cnotes { width: 100%; margin-top: 7px; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: .7rem; font-family: var(--sans); font-weight: 400; line-height: 1.45; resize: vertical; min-height: 52px; }
.card .cnotes:focus { outline: none; border-color: var(--accent); }
/* the side panel's Add note button (0263): a plain small button, not the dashed "+" of .wsadd */
.dcard .wsaddnote { margin-top: 6px; font: inherit; font-size: .78rem; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer; }
.dcard .wsaddnote:disabled { opacity: .5; cursor: default; }
/* the side panel's notes journal, as the server writes it (0263): newest first, who and when above each; it scrolls past 16em */
.dcard .notelog { white-space: pre-wrap; font-size: .8rem; line-height: 1.5; color: var(--ink-dim); max-height: 16em; overflow-y: auto; margin-bottom: 8px; overflow-wrap: anywhere; }
.card .notepeek { margin-top: 6px; font-size: .6875rem; color: var(--ink-dim); line-height: 1.45; border-left: 2px solid var(--line); padding-left: 7px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* ---- capture: the compact line on a kanban card (migration 0031) ---- */
.card .ccap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.card .ccap .cgate { text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--ink-dim); }
.card .ccap .cgate.pursue { color: var(--good); border-color: rgba(107, 191, 89, .45); }
.card .ccap .cgate.teammate { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .45); }
.card .ccap .cgate.no_bid { color: var(--warn); border-color: rgba(217, 140, 95, .45); }
.card .ccap .cgate.rec { border-style: dashed; }
.card .ccap .cpw { color: var(--ink-dim); }
.card .ccap .cpw.prov { opacity: .75; }
.card .ccap .cq { color: var(--accent-ink,var(--accent)); }
.card .ccap .cst { color: var(--warn); }

.col .colempty { border: 1px dashed var(--line-soft); border-radius: 9px; padding: 14px 8px; text-align: center; font-size: .6875rem; color: var(--ink-faint); font-family: var(--mono); letter-spacing: .05em; }
.showmore { width: 100%; border: 1px dashed var(--line); border-radius: 9px; padding: 6px; color: var(--ink-faint); font-size: .6875rem; font-family: var(--mono); letter-spacing: .05em; transition: .15s; }
.showmore:hover { color: var(--accent-ink,var(--accent)); border-color: var(--accent); }
.boardsub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btools { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.btools .pltab.tgl { border-radius: 8px; padding: 4px 11px; font-size: .7rem; }
.boardempty { margin-top: 26px; border: 1px dashed var(--line); border-radius: 14px; padding: 46px 20px; text-align: center; color: var(--ink-dim); }
.boardempty h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.boardempty p { font-size: .8rem; color: var(--ink-faint); margin: 0 auto 16px; line-height: 1.6; }

/* board loading skeleton — shown while the pipeline store is still announcing */
/* the board's saved copy (index.html HITCH_PB_PAINT): read-only until the store's first draw replaces it */
.pb-cached { position: relative; pointer-events: none; }
.pb-cached-note { position: absolute; top: -22px; right: 0; font-size: 0.75rem; color: var(--ink-faint); }
.pb-skel { display: grid; grid-template-columns: repeat(4, minmax(0, 260px)); gap: 14px; margin-top: 26px; }
.pb-skelcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* one sweep, two shapes: the board's columns and the search page's bands
   (.v2-skel, opps-v2.css) — a loading page should not change vocabulary
   depending on which view you opened */
.pb-skel .ln, .v2-skel .ln { border-radius: 11px; border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, var(--panel) 40%, var(--line-soft) 50%, var(--panel) 60%);
  background-size: 200% 100%; animation: pb-skel-sweep 1.3s ease-in-out infinite; }
.pb-skel .ln.head { height: 22px; width: 65%; border: 0; }
.pb-skel .ln.card { height: 74px; }
@keyframes pb-skel-sweep { from { background-position: 130% 0; } to { background-position: -70% 0; } }
@media (prefers-reduced-motion: reduce) { .pb-skel .ln, .v2-skel .ln { animation: none; } }
@media (max-width: 720px) { .pb-skel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- opportunity profile (full page, ?opp=<key>) ---------- */
body.detailmode .workspace { grid-template-columns: 1fr; }
body.detailmode .rail { display: none; }
.backbtn { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 4px 12px; transition: .2s; margin-bottom: 18px; display: inline-flex; }
.backbtn:hover { color: var(--ink); border-color: var(--ink-dim); }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.hero__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 2.35rem; line-height: 1.16; letter-spacing: .005em; }
.hero__ids { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 10px; letter-spacing: .03em; line-height: 1.7; }
.hero__actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.hero__main { flex: 1 1 300px; min-width: 0; }
.hero__ids b { color: var(--ink-dim); font-weight: 500; }
/* pipeline picker in the header — wraps to its own full-width row under the
   title/actions, set off by a hairline */
.hero__pipe { flex: 1 1 100%; display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.hero__pipe-label { flex: none; font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); padding-top: 6px; }
.hero__pipe .plsect { flex: 1; min-width: 0; }
.hero__pipe .plsect .plrow { margin-bottom: 8px; }
.hero__pipe .plsect select { max-width: 280px; }
.hero__pipe .plsect .plmeta { margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 9px; margin: 18px 0 22px; }
.fact { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 11px 13px; }
.fact .l { font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.fact .v { font-size: .92rem; color: var(--ink); margin-top: 4px; font-weight: 400; line-height: 1.35; }
.fact .v small { color: var(--ink-dim); font-size: .72rem; font-weight: 400; }
.fact.deadline { border-color: rgba(232, 161, 60, .4); background: rgba(232, 161, 60, .06); }
.fact.deadline .v { font-family: var(--serif); font-size: 1.5rem; color: var(--accent-ink,var(--accent)); font-variant-numeric: tabular-nums; }
.fact.est { border-style: dashed; }
.fact.est .v { color: var(--accent-soft); font-style: italic; }
/* ---- Key facts, the "situation console" (redesign; app.js keyFactsCard) ---- */
.kfcard .kf-read { font-family: var(--serif); font-size: 1.32rem; font-weight: 400; line-height: 1.5; letter-spacing: .005em; color: var(--ink); margin: 2px 0 16px; }
.kfcard .kf-read .rd-pos.favorite, .kfcard .kf-read .rd-pos.defend { color: var(--good); }
.kfcard .kf-read .rd-pos.contender { color: var(--accent-soft); }
.kfcard .kf-read .rd-pos.longshot, .kfcard .kf-read .rd-pos.sub { color: var(--ink-dim); }
.kfcard .kf-read .rd-pos.locked { display: none; }
.kf-situ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kf-tile { position: relative; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--field); padding: 12px 14px; }
.kf-tile.hot { border-color: rgba(232, 161, 60, .4); background: rgba(232, 161, 60, .05); }
.kf-tile .kf-tl { font-family: var(--mono); font-size: .6875rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.kf-tile .kf-tv { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.kf-tile.hot .kf-tv { color: var(--accent-ink,var(--accent)); }
.kf-tile .kf-tv.sm { font-size: 1.15rem; }
.kf-tile .kf-tv.dim { color: var(--ink-faint); }
.kf-tile .kf-tv .postag { font-size: .82rem; letter-spacing: .02em; padding: 3px 10px; margin-right: 0; vertical-align: 2px; }
.kf-tile .kf-ts { font-size: .72rem; color: var(--ink-dim); margin-top: 7px; line-height: 1.4; }
.kf-tile .kf-good { color: var(--good); }
.kf-tile:hover .ovbtn { opacity: .85; }
.kf-brief { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.kf-row { display: flex; gap: 14px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.kf-row:last-child { border-bottom: none; }
.kf-row:hover .ovbtn { opacity: .85; }
.kf-row .kf-k { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); width: 78px; flex: none; padding-top: 3px; }
.kf-row .kf-v { font-size: .92rem; color: var(--ink); line-height: 1.5; }
.kf-row .kf-v b { font-weight: 500; }
.kf-sub { color: var(--ink-dim); font-size: .82rem; }
.kf-good { color: var(--good); }
.kf-pin { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; text-transform: uppercase; margin-left: 2px; }
.kf-codes { margin-top: 13px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 5px 14px; }
.kf-codes span b { color: var(--ink-dim); font-weight: 400; }
@media (max-width: 640px) { .kf-situ { grid-template-columns: 1fr; } .kfcard .kf-read { font-size: 1.18rem; } }
.cols { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dcard { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 18px; }
.dcard > h2 { font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); font-weight: 500; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.dcard > h2 .kw { color: var(--ink-faint); letter-spacing: .06em; font-weight: 400; margin-left: auto; text-transform: none; }
.descbody { font-size: .84rem; color: var(--ink); line-height: 1.65; white-space: pre-wrap; }
.docrow { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 8px 2px; font-size: .78rem; }
.docrow:last-child { border-bottom: none; }
.docrow .dn { color: var(--ink); }
.docrow .dm { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-left: auto; white-space: nowrap; }
.docrow a { border-bottom: 1px dotted var(--ink-faint); }
.docrow a:hover { color: var(--accent-ink,var(--accent)); }
.docrow .fext { flex: none; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; color: var(--accent-soft); border: 1px solid rgba(232, 161, 60, .3); border-radius: 4px; padding: 2px 5px; min-width: 34px; text-align: center; }

/* document intelligence (AI extraction) — capture-oriented IA (design panel 2026-07-17):
   hero read → summary → competition → deal shape → capability fit → framed notes.
   Reuses the Solicitation Review vocabulary (.revgates/.revtiles/.revlist/.tagrow). */
.intelcard { border-color: rgba(232, 161, 60, .28); }
.intelkick { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.intelhead { font-size: 1.02rem; color: var(--ink); line-height: 1.35; font-weight: 500; margin-bottom: 11px; }
.intelsum { font-size: .84rem; color: var(--ink); line-height: 1.62; }
/* grounding provenance: doc-grounded read vs the labeled description-only fallback */
.intelground { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.intelground--docs { color: var(--accent-soft); }
/* archived-history mode (opt-in server search over the FY2015+ cold tier) */
.colbtn.qhist.on { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: rgba(232, 161, 60, .08); }
/* the selected scope wears exactly what an engaged #qhist wears — one "this is
   set" appearance on this toolbar, not two */
.v1scope .colbtn.on { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: rgba(232, 161, 60, .08); }
.histrow > td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
/* which of the reader's filters the cold-tier query could actually apply. Both
   UIs paint it (v1 as its own row, v2 inside the count line), because the chip
   row above goes on showing filters this endpoint never received — most visibly
   when a saved market is REOPENED in archive scope with its author's filters
   restored in full. */
.histscope { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-faint); line-height: 1.5; }
tr > td > .histscope { padding: 8px 12px 2px; }
.histtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.histhead { font-size: .95rem; color: var(--ink); font-weight: 500; line-height: 1.35; }
/* The archived title is the row's door to its own page. It inherits the heading's
   type entirely — the row already reads as a result, and restyling the text on the
   way to becoming a link would make Archive rows look like a different kind of
   thing from Live ones. Only the hover says "this goes somewhere". */
.histlink { color: inherit; text-decoration: none; }
.histlink:hover { color: var(--accent-ink,var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
.histlink:focus-visible { outline: 1px solid var(--accent-soft); outline-offset: 2px; border-radius: 2px; }
.histkick { display: inline-block; font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 4px; padding: 1px 5px; margin-right: 7px; vertical-align: 1px; }
.histdate { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); white-space: nowrap; }
.histmeta { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--ink-faint); margin-top: 4px; }
.histfact { margin-top: 7px; font-size: .82rem; color: var(--ink); line-height: 1.55; }
.histfact__g { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; margin-right: 6px; }
.histfact__g.docs { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
/* threat verdict: the wired/sole-source competition read is red, NOT gold — gold is
   reserved site-wide for "this is ours to win" (market matches) */
.revgate.warn { border-color: rgba(217, 140, 95, .4); background: rgba(217, 140, 95, .06); }
.revgate.warn .gk, .revgate.warn .gv { color: var(--warn, #d98c5f); }
/* capability pill that hits your active market — the single gold accent */
.tag.hit { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: rgba(232, 161, 60, .07); }
/* signpost to the authoritative compliance record on the sibling card */
.intelsign { font-size: .74rem; color: var(--ink-faint); line-height: 1.5; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.intelsign b { color: var(--ink-dim); font-weight: 500; }
.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 13px; }
.factchip { border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); padding: 8px 10px; }
.factchip .fk { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.factchip .fv { display: block; font-size: .82rem; color: var(--ink); margin-top: 3px; font-weight: 400; line-height: 1.35; }
.factchip .fv .ssauth { color: var(--ink-faint); font-size: .74rem; }
.tagrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tagrow-l { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 2px; }
.tag { font-size: .72rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 2px 10px; }
.keypoints { margin: 13px 0 0; padding-left: 18px; }
.keypoints li { font-size: .8rem; color: var(--ink); line-height: 1.55; margin-bottom: 5px; }
.keypoints li::marker { color: var(--accent-soft); }

/* CLIN/SLIN line items inside the intelligence card (opps-clin-extraction §6a) */
.clinbox { margin-top: 15px; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.clinhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.clinhead .clh-t { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.clinhead .clh-c { font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); margin-left: auto; }
.clinhead .clh-hit { color: var(--accent-ink,var(--accent)); }
.clinlist { border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; max-height: 300px; overflow-y: auto; }
.clinrow { display: flex; align-items: baseline; gap: 10px; padding: 6px 11px; border-bottom: 1px solid var(--line-soft); }
.clinrow:last-child { border-bottom: none; }
.clinrow .cln { font-family: var(--mono); font-size: .6875rem; color: var(--ink); flex: none; width: 4.4rem; }
.clinrow.slin .cln { padding-left: 1.3rem; color: var(--ink-dim); position: relative; }
.clinrow.slin .cln::before { content: "└"; position: absolute; left: .45rem; color: var(--ink-faint); }
.clinrow .clt { font-size: .78rem; color: var(--ink-dim); line-height: 1.35; }
.clinrow .clo { margin-left: auto; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); flex: none; }
.clinrow .clo.option { color: var(--accent-soft); }
.clinrow.hit { background: rgba(232, 161, 60, .09); }
.clinrow.hit .clt, .clinrow.hit .cln { color: var(--accent-soft); }
.clhitflag { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .4); border-radius: 4px; padding: .04rem .3rem; margin-left: .4rem; white-space: nowrap; }
/* coverage read — "you cover N of M line items", with the uncovered ones named.
   Sits between the head and the list so the ratio reads before the rows it is
   counting. The gold left rule is the same accent the matched rows carry; the
   hidden-match variant (.sub) goes blue, matching the "Team" verdict band the
   same signal produces in the browse view. */
.clincvg { border-left: 2px solid var(--accent); background: rgba(232, 161, 60, .06); border-radius: 0 7px 7px 0; padding: 8px 11px 9px; margin-bottom: 9px; }
.clincvg.sub { border-left-color: var(--blue); background: rgba(111, 176, 232, .07); }
.clincvg .cvg-h { font-size: .78rem; color: var(--ink-dim); line-height: 1.45; }
.clincvg .cvg-h b { font-family: var(--mono); font-size: .82rem; color: var(--ink); font-weight: 500; }
.clincvg .cvg-k { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); margin-bottom: 3px; }
.clincvg.sub .cvg-k { color: var(--blue); }
.clincvg .cvg-q { color: var(--ink-faint); }
.clincvg .cvg-g { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-top: 7px; }
.clincvg .cvg-gl { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.clincvg .cvg-i { font-size: .72rem; color: var(--ink-dim); }
.clincvg .cvg-i b { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); font-weight: 400; margin-right: .25rem; }
.clincvg .cvg-more { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.clincvg .cvg-f { font-size: .72rem; color: var(--ink-faint); line-height: 1.5; margin-top: 6px; }

/* Compliance Snapshot — the solicitation-review card (design §11b Option 1;
   mockups/opps-compliance-snapshot.html). Restrained: ink chips, gold only on
   genuine warnings (unparsed pricing workbook, mandatory events). */
/* per-row classification tag on the Documents card (WD · rev, Pricing · not
   parsed, SF30, DD254...) — the file classifications live WITH the file list */
.docrow .dmtag { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line-soft); border-radius: 5px; padding: .1rem .4rem; white-space: nowrap; flex: none; }
.docrow .dmtag.warn { color: var(--warn, #d98c5f); border-color: rgba(217, 140, 95, .35); }
.revgates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.revgate { display: inline-flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; min-width: 7.5rem; }
.revgate .gk { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.revgate .gv { font-size: .8rem; color: var(--ink); }
.revgate .gs { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.revtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 14px; }
.revtile { border: 1px solid var(--line-soft); border-radius: 9px; padding: .5rem .65rem; }
.revtile .tk { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.revtile .tv { font-size: .8rem; color: var(--ink); line-height: 1.35; }
.revtile .ts { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 3px; }
.reveval { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin-bottom: 13px; }
.reveval .ee { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .12rem .45rem; }
.reveval .eq { font-size: .82rem; line-height: 1.5; color: var(--ink-dim); font-style: italic; margin-top: 7px; }
.revlist { margin-bottom: 11px; }
.revlist .rl-t, .revline .rl-t { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 4px; }
.revlist ul { margin: 0; padding-left: 17px; }
.revlist li { font-size: .78rem; color: var(--ink-dim); line-height: 1.5; margin-bottom: 3px; }
.revlist li::marker { color: var(--ink-faint); }
.revline { font-size: .78rem; color: var(--ink-dim); margin-bottom: 11px; }
.revnf { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: 9px; line-height: 1.5; }

/* ============================================================================
   RICH AI SURFACES — the two AI-driven cards (Capture Intelligence + Solicitation
   Review) get the Intel site's visual language (explorer/intel.html): per-category
   colored rails, radial washes, hover-lift, serif signal numbers. System signal:
   the Capture card glows WARM gold (opportunity / win) and the Review card glows
   COOL cyan (compliance / risk). The six-hue palette drives category color via --cc.
   ========================================================================== */
.intelcard, .revcard {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --c-cyber: #4fb8d8; --c-clear: #b98ce8; --c-risk: #f0705a;
  --c-bond: #e8a13c; --c-source: #5ec98c; --c-ip: #6fb0e8; --c-slate: #9aa7b8; --c-elig: #e8a13c;
  position: relative; overflow: hidden;
}
/* card identity glow — warm for Capture, cool for Review */
.intelcard {
  border-color: rgba(232, 161, 60, .3);
  background:
    radial-gradient(90% 190px at 16% -10%, rgba(232, 161, 60, .13), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--panel)), var(--panel));
}
.revcard {
  border-color: rgba(79, 184, 216, .26);
  background:
    radial-gradient(90% 190px at 16% -10%, rgba(79, 184, 216, .12), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--c-cyber, #4fb8d8) 4%, var(--panel)), var(--panel));
}
.revcard > h2 { color: var(--c-cyber, #4fb8d8); }
.revcard > h2 .kwai, .intelcard > h2 .kwai { text-shadow: 0 0 14px currentColor; }

/* hero read (Capture): serif headline + a summary that feels like the centerpiece */
.intelkick { color: var(--accent-soft); }
.intelhead { font-family: var(--serif); font-weight: 400; font-size: 1.42rem; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 13px; }
.intelcard .intelsum {
  font-size: .9rem; line-height: 1.68; color: var(--ink);
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 2px 0 2px 15px;
  background: linear-gradient(90deg, rgba(232, 161, 60, .05), transparent 70%);
  border-radius: 0 8px 8px 0;
}

/* the --cc category rail: a colored left bar + tinted well + colored label, applied
   to gates (both cards) and the routed key-point lists */
.revgate { position: relative; overflow: hidden; padding-left: calc(.7rem + 5px); transition: transform .16s var(--ease), border-color .16s, box-shadow .16s; }
.revgate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc, var(--ink-faint)); }
.revgate[class*="rail-"] { border-color: color-mix(in srgb, var(--cc) 30%, var(--line)); background: color-mix(in srgb, var(--cc) 8%, transparent); }
.revgate[class*="rail-"] .gk { color: var(--cc); }
.revgate:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .85); }
.revgate.warn .gv { color: var(--c-risk); font-weight: 500; }
.rail-cyber { --cc: var(--c-cyber); } .rail-clear { --cc: var(--c-clear); } .rail-risk { --cc: var(--c-risk); }
.rail-bond { --cc: var(--c-bond); } .rail-source { --cc: var(--c-source); } .rail-ip { --cc: var(--c-ip); }
.rail-slate { --cc: var(--c-slate); } .rail-elig { --cc: var(--c-elig); }

/* deal-shape / logistics tiles — hover-lift, a colored top hairline, serif money */
.revtile { position: relative; overflow: hidden; transition: transform .16s var(--ease), border-color .16s, box-shadow .16s; }
.revtile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 75%); opacity: .5; }
.revtile:hover { transform: translateY(-2px); border-color: var(--ink-dim); box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .8); }
.revtile.tile-money .tv { font-family: var(--serif); font-size: 1.5rem; color: var(--accent-ink,var(--accent)); line-height: 1.1; }
.revtile.tile-money::after { background: linear-gradient(90deg, var(--accent), transparent 75%); opacity: .8; }
.revtile.tile-date::after { background: linear-gradient(90deg, var(--c-cyber), transparent 75%); }
.revtile.tile-warn { border-color: rgba(240, 112, 90, .4); }
.revtile.tile-warn::after { background: linear-gradient(90deg, var(--c-risk), transparent 75%); opacity: .85; }
.revtile.tile-warn .tv { color: var(--c-risk); }

/* capability pills (Capture) — cool cyan by default, gold + glow on a market match */
.intelcard .tagrow-l { color: var(--c-cyber); }
.intelcard .tag { border-color: color-mix(in srgb, var(--c-cyber) 28%, var(--line)); color: color-mix(in srgb, var(--c-cyber) 45%, var(--ink)); transition: .14s; }
.intelcard .tag.hit { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: rgba(232, 161, 60, .1); box-shadow: 0 0 16px -4px rgba(232, 161, 60, .5); }

/* routed key-point notes (Capture) — clear the tags above; each bucket a colored rail */
.intelnotes { margin-top: 18px; }
.intelnotes .revlist[class*="rail-"] { border-left: 2px solid var(--cc); padding-left: 13px; }
.intelnotes .revlist[class*="rail-"] .rl-t { color: var(--cc); }

/* evaluation quote (Review) — a serif hero moment with a gold rail + wash */
.reveval { border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(232, 161, 60, .06), transparent 70%); border-radius: 0 10px 10px 0; padding: 11px 0 11px 14px; }
.reveval .eq { font-family: var(--serif); font-size: 1.06rem; font-style: italic; line-height: 1.5; color: var(--ink-dim); }
.reveval .ee { color: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* document-map chips (Review) — a small colored dot per type, warm-warn for unparsed */
.revdm .dmchip { transition: border-color .14s, color .14s; }
.revdm .dmchip .t { color: var(--c-slate); }

/* legibility — the faint sub-labels (--ink-faint) sit on the cards' tinted glow,
   which drops their contrast below readable; raise them to --ink-dim and give the
   Review card's plain list eyebrows a cool tint (matches the card identity) */
.revcard .revlist .rl-t, .revcard .revline .rl-t { color: color-mix(in srgb, var(--c-cyber) 34%, var(--ink-dim)); }
.revcard .revnf { color: var(--ink-dim); font-size: .6875rem; letter-spacing: .02em; }
.intelcard .intelsign { color: var(--ink-dim); }
.intelcard .revgate .gs, .revcard .revgate .gs,
.intelcard .revtile .ts, .revcard .revtile .ts { color: var(--ink-dim); }
/* substantive list content (pass/fail rules, required-at-offer, scope notes) at
   full ink — this is what a reviewer actually reads */
.revcard .revlist li, .revcard .revline { color: var(--ink); }
.intelcard .revlist li { color: var(--ink-dim); }

/* row-level hidden line-item match badge in the browse table */
.hiddenmatch { margin-top: 5px; font-size: .72rem; color: var(--ink-dim); line-height: 1.4; }
.hiddenmatch .hm-k { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .35); border-radius: 100px; padding: .06rem .4rem; margin-right: .45rem; white-space: nowrap; }
.hiddenmatch b { color: var(--ink); font-weight: 500; }
.lineage { position: relative; margin-left: 6px; padding-left: 20px; }
.lineage::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.lnode { position: relative; padding: 0 0 16px; }
.lnode:last-child { padding-bottom: 0; }
.lnode::before { content: ""; position: absolute; left: -20px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-faint); }
.lnode.done::before { border-color: var(--ink-dim); background: var(--ink-faint); }
.lnode.current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(232, 161, 60, .18); }
.lnode.future::before { border-style: dashed; }
.lnode .lt { font-size: .82rem; color: var(--ink); font-weight: 400; }
.lnode.current .lt { color: var(--accent-soft); }
.lnode.future .lt { color: var(--ink-faint); font-style: italic; }
.lnode .lm { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 2px; letter-spacing: .03em; }
.lnode .lm b { color: var(--ink-dim); font-weight: 500; }
.lnode .lm a { border-bottom: 1px dotted var(--ink-faint); }
.lnode .lm a:hover { color: var(--accent-ink,var(--accent)); }
.kvrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .76rem; }
.kvrow:last-child { border-bottom: none; }
.kvrow .k { color: var(--ink-faint); font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.kvrow .v { color: var(--ink); text-align: right; font-weight: 400; line-height: 1.4; word-break: break-word; }
.kvrow .v small { display: block; color: var(--ink-faint); font-size: .6875rem; }

/* workspace cards (team · notes · tiebacks) */
.wsform { display: flex; gap: 6px; margin-top: 10px; align-items: stretch; }
.wsform:first-of-type { margin-top: 0; }
.ovlbl { flex: 0 0 56px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); align-self: center; }
.wsform select { flex: 0 0 auto; max-width: 46%; background: var(--field); color: var(--ink-dim); border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font-size: .7rem; font-family: var(--mono); }
.wsform select:focus, .wsform input:focus { outline: none; border-color: var(--accent); }
.wsform input { flex: 1; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: .76rem; font-weight: 400; }
.wsform input::placeholder { color: var(--ink-faint); }
.wsadd { flex: 0 0 30px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-faint); font-size: .9rem; transition: .15s; }
.wsadd:hover { border-color: var(--accent); color: var(--accent-ink,var(--accent)); }
.wsx { color: var(--ink-faint); font-size: .6875rem; width: 20px; height: 20px; border-radius: 50%; transition: .15s; vertical-align: 1px; }
.wsx:hover { color: var(--warn); background: rgba(224, 123, 123, .1); }
.linkkind { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); border: 1px solid rgba(111, 176, 232, .35); border-radius: 4px; padding: 2px 6px; flex: none; }
#wscards { gap: 16px; }
#wscards:empty { display: none; }
#ws-notes { width: 100%; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .76rem; font-family: var(--sans); font-weight: 400; line-height: 1.55; resize: vertical; min-height: 74px; }
#ws-notes:focus { outline: none; border-color: var(--accent); }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 1fr; }
  .rail { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ============================================================================
   Opportunity detail redesign (2026-07-13) — ported from
   mockups/opportunity-layout-v4.html. Pipeline stepper · full description +
   See more · surfaced facts with inline Adjust · metrics top↔rail toggle.
   ========================================================================== */

/* ① pipeline stepper (in .hero__pipe, replacing the old select+stagerow) */
.hero__pipe { align-items: center; }
.pipewrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.piperow { display: flex; align-items: center; gap: 7px; flex: none; }
.pipepick { max-width: 220px; background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .82rem; font-family: var(--sans); font-weight: 500; }
.pipepick:focus { outline: none; border-color: var(--accent); }
.piperemove { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-faint); font-size: .8rem; transition: .18s; }
.piperemove:hover { color: var(--warn); border-color: var(--warn); }
.pipetrack { position: relative; flex: 1; min-width: 260px; display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 2px 2px; }
.piperail { position: absolute; left: 12px; right: 12px; top: 13px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pipetrack.hasright .piperail { right: 128px; }
.pipetrack.hasleft .piperail { left: 128px; }
/* width is always var(--fillw) (correct even if animations don't run); the
   sweep is a transform reveal so a frozen/headless renderer never masks it */
.pipefill { position: absolute; inset: 0 auto 0 0; width: var(--fillw, 0); transform-origin: left center; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent)); background-size: 200% 100%; animation: pipeshimmer 2.4s linear infinite, pipegrow .75s var(--ease); box-shadow: 0 0 12px rgba(232, 161, 60, .55); }
@keyframes pipeshimmer { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
@keyframes pipegrow { from { transform: scaleX(0); } }
.pnode { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.pnode .pdot { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-faint); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.pnode .pdot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .4s var(--ease); }
/* max-width + ellipsis is the safety net at EVERY width: the label is nowrap
   and the node is min-width:0, so without it a track with more stages than it
   has room for draws its labels on top of one another — and, because they
   overflow the track rather than fill it, the overflow escapes to the page. */
.pnode .plbl { font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; color: var(--ink-faint); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: color .4s var(--ease); }
.pnode:hover .pdot { border-color: var(--ink-dim); }
.pnode.done .pdot { border-color: var(--accent); background: rgba(232, 161, 60, .14); }
.pnode.done .pdot::after { background: var(--accent); }
.pnode.done .plbl { color: var(--ink-dim); }
.pnode.cur .pdot { border-color: var(--accent); background: var(--accent); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(232, 161, 60, .18), 0 0 16px rgba(232, 161, 60, .5); animation: pnodepop .5s var(--ease) both; }
@keyframes pnodepop { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(232, 161, 60, .4); } 60% { transform: scale(1.35); } }
.pnode.cur .pdot::after { background: #1a1206; }
.pnode.cur .plbl { color: var(--accent-soft); font-weight: 500; }
.pterm { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 5px; flex: none; width: 100px; padding-left: 16px; border-left: 1px dashed var(--line); margin-left: 6px; }
.pterm .tbtn { font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 100px; padding: 4px 0; transition: .18s; }
.pterm .tbtn:hover { color: var(--ink); border-color: var(--ink-dim); }
.pterm .tbtn.won.on { background: var(--good); border-color: var(--good); color: #0a1206; font-weight: 500; box-shadow: 0 0 14px rgba(123, 191, 123, .4); }
.pterm .tbtn.lost.on { background: var(--warn); border-color: var(--warn); color: #1a0606; font-weight: 500; box-shadow: 0 0 14px rgba(217, 140, 95, .4); }
/* leading No-Bid chicklet — mirrors Won/Lost but on the left, neutral when chosen */
.pterm.left { padding-left: 0; padding-right: 16px; border-left: none; border-right: 1px dashed var(--line); margin-left: 0; margin-right: 6px; }
.pterm .tbtn.nobid.on { background: var(--ink-dim); border-color: var(--ink-dim); color: var(--bg); font-weight: 500; box-shadow: 0 0 14px rgba(154, 152, 143, .3); }
/* "Cancelled" docks in the same left rail as "No bid" and must not read as the
   same act: no-bid is our decision, cancelled is the Government pulling the
   solicitation. Same rail, outlined instead of filled. */
.pterm .tbtn.cancelled.on { background: rgba(154, 152, 143, .14); border-color: var(--ink-dim); color: var(--ink); font-weight: 500; }

/* NARROW SCREENS — the rail becomes a wrapped row of stage pills.
   One node per stage stops fitting somewhere around 900px: nodes collapsed to
   a bare 12px dot each while their nowrap labels overlapped, and since the
   labels overflowed the track instead of filling it, nothing clipped them —
   the PAGE scrolled sideways instead. Pills wrap onto as many lines as the
   stages need, so nothing overlaps at any stage count and every stage stays
   tappable. The connecting rail is dropped here on purpose — a line swept
   across a multi-row wrap describes nothing. Progress still reads: done pills
   keep the accent dot, the current one stays filled.
   This is the opportunities app's own copy. The opportunity dossier's pipeline bar
   was redesigned on 2026-10-29 (contracts/app/frontend/hitch-page.css, "THE
   PIPELINE BAR") and no longer shares these rules. */
@media (max-width: 900px) {
  .hero__pipe { flex-direction: column; align-items: stretch; gap: 8px; }
  .pipewrap { gap: 10px; }
  .piperow { flex: 1 1 100%; }
  .pipepick { flex: 1; min-width: 0; max-width: 420px; }
  .pipetrack { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: 6px; padding: 2px 0; }
  .piperail { display: none; }
  .pnode { flex: 0 0 auto; flex-direction: row; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; }
  .pnode .pdot { width: 12px; height: 12px; }
  .pnode .pdot::after { width: 4px; height: 4px; }
  .pnode .plbl { font-size: .6875rem; }
  .pnode.done { border-color: rgba(232, 161, 60, .35); }
  .pnode.cur { border-color: var(--accent); background: rgba(232, 161, 60, .12); }
  /* the desktop dot grows and pops against a bare rail; inside a pill both the
     scale and the 5px ring break the pill's edge, so neither runs here */
  .pnode.cur .pdot { transform: none; box-shadow: 0 0 10px rgba(232, 161, 60, .45); animation: none; }
  .pterm, .pterm.left { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; gap: 6px; width: auto; border: none; padding: 0; margin: 0; }
  .pterm .tbtn { padding: 6px 14px; }
  /* dashed until chosen — what keeps No bid / Won / Lost reading as outcomes
     off the track once the dashed divider that said so is gone */
  .pterm .tbtn:not(.on) { border-style: dashed; }
}

/* ⑤ facts strip header + inline Adjust override */
#topMetrics { margin: 18px 0 22px; }
.factshead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.factshead h2 { font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); font-weight: 500; }
.factsub { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .03em; }
.layoutbtn { margin-left: auto; font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; transition: .2s; }
.layoutbtn:hover { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .5); }
#topMetrics .facts { margin: 0; }
.fact { position: relative; }
.fact.deadline .v, .mrow.hot .mv:first-child { font-variant-numeric: tabular-nums; }
.fact.yours { border-color: rgba(123, 191, 123, .4); background: rgba(123, 191, 123, .05); }
.fact.yours .v { color: var(--ink); font-style: normal; }
.ovbtn { margin-top: 7px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px dotted var(--ink-faint); opacity: 0; transition: .15s; }
.fact:hover .ovbtn, .mrow:hover .ovbtn { opacity: .85; }
.fact.yours .ovbtn, .mrow.yours .ovbtn { opacity: .8; color: var(--good); border-color: var(--good); }
.ovbtn:hover { color: var(--accent-ink,var(--accent)); border-color: var(--accent); }
.ovedit { display: inline-flex; gap: 5px; margin-top: 6px; }
.ovedit input { min-width: 0; width: 120px; background: var(--field); border: 1px solid rgba(232, 161, 60, .5); border-radius: 6px; padding: 5px 8px; font-size: .82rem; color: var(--ink); font-family: var(--sans); }
.ovedit input:focus { outline: none; }
.ovedit button { font-family: var(--mono); font-size: .6875rem; color: var(--accent-ink,var(--accent)); flex: none; }

/* ③ description clamp + See more */
.descbody.clamped { max-height: 8.6em; overflow: hidden; position: relative; }
.descbody.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(180deg, rgba(16, 18, 22, 0), var(--panel)); }
.seemore { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); border: 1px solid rgba(232, 161, 60, .4); border-radius: 100px; padding: 5px 13px; transition: .2s; }
.seemore:hover { background: rgba(232, 161, 60, .09); }
.seemore .chev { transition: transform .3s var(--ease); }
.seemore.open .chev { transform: rotate(180deg); }

/* ⑥ rail Metrics table (shown when metrics moved off the top) */
.railmetrics { display: none; }
body.opps-metrics-rail #topMetrics { display: none; }
body.opps-metrics-rail .railmetrics { display: block; }
.railmetrics > h2 .minibtn { margin-left: auto; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; text-transform: none; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px; transition: .2s; }
.railmetrics > h2 .minibtn:hover { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .5); }
.mrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.mrow:last-child { border-bottom: none; }
.mrow.hot { background: linear-gradient(90deg, rgba(232, 161, 60, .08), transparent); margin: 0 -6px; padding-left: 6px; padding-right: 6px; border-radius: 6px; }
.mk { font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 5px; padding-top: 2px; flex: none; max-width: 50%; }
.mright { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; min-width: 0; }
.mv { font-size: .82rem; color: var(--ink); line-height: 1.3; }
.mrow.hot .mv:first-child { color: var(--accent-ink,var(--accent)); font-weight: 500; }
.mv small { color: var(--ink-faint); font-size: .6875rem; }
.mrow .ovbtn { margin-top: 2px; }

/* ===== Lifecycle timeline (BUILD of mockups/opportunity-lifecycle-timeline)
   the derived procurement spine: oldest top → latest bottom ===== */
.tlswitch { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.tlswitch button { font: inherit; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); background: none; border: none; padding: 4px 10px; cursor: pointer; transition: .18s; }
.tlswitch button.on { background: var(--accent); color: #1a1206; }
.tl { position: relative; margin-top: 4px; container-type: inline-size; }
.tnode { position: relative; padding: 0 0 24px 124px; min-height: 22px; }
.tnode:last-child { padding-bottom: 0; }
.tdate { position: absolute; left: 0; top: 0; width: 84px; text-align: right; font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: var(--ink-faint); line-height: 1.4; }
.tdate b { display: block; color: var(--ink-dim); font-weight: 500; }
.tdot { position: absolute; left: 94px; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-faint); border: 2px solid var(--ink-dim); z-index: 2; }
.tnode::after { content: ""; position: absolute; left: 102px; top: 5px; bottom: -5px; width: 2px; background: var(--line); z-index: 1; }
.tnode:last-child::after { display: none; }
.tdur { position: absolute; left: 103px; top: -13px; transform: translateX(-50%); background: var(--panel); padding: 1px 5px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); white-space: nowrap; z-index: 2; }
.tphase { font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.ttitle { font-size: .92rem; color: var(--ink); line-height: 1.3; }
.tdesc { font-size: .78rem; color: var(--ink-dim); line-height: 1.5; margin-top: 3px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tchip { font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 2px 9px; }
.tchip b { color: var(--ink); font-weight: 500; }
.tchip.warn { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .4); }
.tchip.warn b { color: var(--accent-ink,var(--accent)); }
.tchip.lk { border-style: dashed; cursor: pointer; }
.tchip.lk:hover { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .4); }
.tnode.done .tphase { color: var(--ink-faint); }
.tnode.now .tdot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(232, 161, 60, .16), 0 0 16px rgba(232, 161, 60, .5); animation: tlpulse 2.4s var(--ease) infinite; }
@keyframes tlpulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(232, 161, 60, .16), 0 0 16px rgba(232, 161, 60, .5); } 50% { box-shadow: 0 0 0 8px rgba(232, 161, 60, .06), 0 0 22px rgba(232, 161, 60, .32); } }
.tnode.now .tphase { color: var(--accent-ink,var(--accent)); }
.tnode.now .ttitle { color: var(--accent-soft); }
.tnode.upcoming .tdot { background: var(--bg); border-color: var(--accent); }
.tnode.upcoming::after, .tnode.est::after { background: none; border-left: 2px dashed rgba(232, 161, 60, .45); width: 0; }
.tnode.upcoming .tphase { color: var(--accent-ink,var(--accent)); }
.tnode.est .tdot { background: var(--bg); border-style: dashed; border-color: var(--accent-soft); }
.tnode.est .ttitle { color: var(--ink-dim); }
.tnode.est .tdate { color: var(--ink-faint); font-style: italic; }
.tnode.lead .tbody { border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 9px; background: var(--panel2); padding: 10px 12px; }
.tnode.lead .tdot { background: var(--blue); border-color: var(--blue); }
.tnode.lead .tphase { color: var(--blue); }
.tbreak { position: relative; padding: 0 0 24px 124px; height: 34px; }
.tbreak::after { content: ""; position: absolute; left: 102px; top: 0; bottom: -5px; width: 2px; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 8px); }
.tbreak span { position: absolute; left: 94px; top: 7px; transform: translateX(calc(-50% + 9px)); background: var(--panel); padding: 2px 8px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 100px; white-space: nowrap; }
.ttoday { position: relative; margin: 2px 0 24px; padding-left: 124px; height: 0; }
.ttoday::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed rgba(232, 161, 60, .5); }
.ttoday > span:last-child { position: absolute; left: 124px; top: -9px; background: var(--panel); padding: 0 10px 0 0; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); }
.ttoday .tdot { position: absolute; left: 94px; top: -8px; width: 16px; height: 16px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(232, 161, 60, .6); }
.tlegend { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tlegend .lg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; color: var(--ink-faint); }
.tlegend .lg i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.tlegend .l-done { background: var(--ink-faint); border: 2px solid var(--ink-dim); }
.tlegend .l-now { background: var(--accent); box-shadow: 0 0 7px rgba(232, 161, 60, .5); }
.tlegend .l-up { background: var(--bg); border: 2px solid var(--accent); }
.tlegend .l-est { background: var(--bg); border: 2px dashed var(--accent-soft); }
.tlegend .l-inc { background: var(--blue); }
/* Narrow layout keys off the timeline's OWN width (container query), not the
   viewport — the lifecycle renders inside the ~424px slide-over sheet, which
   stays narrow even on a wide desktop, so a viewport media query never fired
   there and the content was crushed into the remaining gutter. */
@container (max-width: 440px) {
  .tnode, .tbreak, .ttoday { padding-left: 100px; }
  .tdate { width: 62px; }
  .tdot, .ttoday .tdot { left: 72px; } .tnode::after, .tbreak::after { left: 80px; } .tdur { left: 81px; }
  .ttoday > span:last-child { left: 100px; } .tbreak span { left: 72px; }
}
/* Very narrow (small phones): drop the left date gutter entirely and let the
   date sit inline above the milestone, so titles get the full width. */
@container (max-width: 340px) {
  .tnode, .tbreak, .ttoday { padding-left: 30px; }
  .tdate { position: static; width: auto; text-align: left; margin-bottom: 4px; }
  .tdate b { display: inline; }
  .tdot, .ttoday .tdot { left: 2px; } .tnode::after, .tbreak::after { left: 10px; } .tdur { left: 11px; }
  .ttoday { padding-left: 30px; } .ttoday > span:last-child { left: 30px; } .tbreak span { left: 2px; transform: none; }
}

/* ===== edit-layout (BUILD of mockups/opportunity-layout-v5) — drag/hide/
   reorder detail cards across Main + Sidebar zones, like the entity pages ===== */
.editbar { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.editbar .ebsp { flex: 1; }
.savedtag { font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; color: var(--good); opacity: 0; transition: opacity .3s; }
.savedtag.show { opacity: 1; }
.ebtn { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 5px 13px; transition: .2s; }
.ebtn:hover { border-color: var(--ink-dim); }
.ebtn.primary { background: var(--accent); border-color: var(--accent); color: #1a1206; font-weight: 500; }
.ebtn.primary:hover { background: var(--accent-soft); }
.ebtn.ghost { color: var(--ink-dim); }
.editonly { display: none; }
body.lay-editing .editonly { display: inline-flex; }
.addwrap { position: relative; }
.addmenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 210px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); padding: 6px; display: none; }
.addmenu.open { display: block; }
.addmenu .ai { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; font-size: .8rem; color: var(--ink); padding: 8px 10px; border-radius: 8px; transition: .15s; }
.addmenu .ai:hover { background: rgba(232, 161, 60, .08); }
.addmenu .ai .k { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-left: auto; }
.addmenu .empty { font-size: .74rem; color: var(--ink-faint); padding: 10px; text-align: center; }
body.lay-editing .zone { outline: 1px dashed var(--line); outline-offset: 7px; border-radius: 12px; min-height: 40px; }
.acard { position: relative; }
.acard.lay-hide { display: none; }
.card-tools { display: none; position: absolute; top: 9px; right: 10px; gap: 5px; z-index: 4; }
body.lay-editing .card-tools { display: flex; }
.card-tools button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-dim); font-size: .85rem; display: flex; align-items: center; justify-content: center; transition: .15s; }
.card-tools .g { cursor: grab; }
.card-tools button:hover { color: var(--ink); border-color: var(--ink-dim); }
.card-tools .h:hover { color: var(--warn); border-color: var(--warn); }
body.lay-editing .acard { cursor: grab; }
body.lay-editing .acard:hover { border-color: rgba(232, 161, 60, .4); }
body.lay-editing .acard > h2 { padding-right: 58px; }
.acard.laydragging { opacity: .45; border: 1px dashed var(--accent); }

/* Ask Hitch box (rendered by askhitch.js into #askhitch-slot) — defensive
   guard against horizontal scroll: long raw citation filenames + an inline
   .ah-src with white-space:nowrap forced the log wider than the sidebar card.
   Scoped to the slot with id-specificity so it wins without touching the
   parallel session's askhitch.css. */
#askhitch-slot .ah-log { overflow-x: hidden; }
#askhitch-slot .ah-b, #askhitch-slot .ah-msg { min-width: 0; }
#askhitch-slot .ah-src { white-space: normal; overflow-wrap: anywhere; }
#askhitch-slot .ah-cite { overflow-wrap: anywhere; word-break: break-word; }

/* ==========================================================================
   CAPTURE PLAN - the detail card (migration 0031)
   docs/capture-proposal-plan.md, BUILD SPEC. Tier 0 is deterministic: every
   number here is arithmetic over the notice + your lens. Purple marks the
   human-input surface - what the platform asks instead of inventing.
   ========================================================================== */
.capcard .caphead { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.capcard .capgate { flex: none; min-width: 108px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.capcard .capgate .cgl { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.capcard .capgate .cgv { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; margin-top: 3px; text-transform: capitalize; color: var(--ink); }
.capcard .capgate.pursue { border-color: rgba(107, 191, 89, .45); background: rgba(107, 191, 89, .05); }
.capcard .capgate.pursue .cgv { color: var(--good); }
.capcard .capgate.teammate, .capcard .capgate.rec { border-color: rgba(232, 161, 60, .4); background: rgba(232, 161, 60, .05); }
.capcard .capgate.teammate .cgv, .capcard .capgate.rec .cgv { color: var(--accent-ink,var(--accent)); }
.capcard .capgate.no_bid { border-color: rgba(217, 140, 95, .45); }
.capcard .capgate.no_bid .cgv { color: var(--warn); }
.capcard .capwhy { font-size: .8rem; color: var(--ink-dim); line-height: 1.55; padding-top: 2px; }

/* .revgate.warn .gv resolves --c-risk, which is declared only on .intelcard /
   .revcard — re-declare it here so a FAILED hard gate keeps its warning colour
   inside the capture card instead of inheriting the default ink. */
.capcard { --c-risk: var(--warn); }
.capcard .revgate.warn { border-color: rgba(217, 140, 95, .45); }

.capcard .capsec { margin-top: 15px; }
.capcard .capsh { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.capcard .capsh b { color: var(--ink); font-weight: 500; }
.capcard .capprov { color: var(--accent-ink,var(--accent)); text-transform: none; letter-spacing: .02em; }
.capcard .capnote { color: var(--ink-faint); text-transform: none; letter-spacing: .02em; }

.capcard .capfacs { display: flex; flex-direction: column; gap: 9px; }
.capcard .capfac { border-left: 2px solid var(--line); padding-left: 10px; }
.capcard .capfac.human { border-left-color: rgba(178, 143, 208, .55); }
.capcard .cfl { display: flex; align-items: baseline; gap: 8px; }
.capcard .cfn { font-size: .78rem; color: var(--ink); }
.capcard .cfk { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.capcard .cfv { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--ink); }
.capcard .cfbar { height: 4px; border-radius: 2px; background: var(--line-soft); margin: 5px 0 4px; overflow: hidden; }
.capcard .cfbar span { display: block; height: 100%; background: var(--accent); }
.capcard .capfac.human .cfbar span { background: repeating-linear-gradient(90deg, #b28fd0 0 5px, rgba(178, 143, 208, .3) 5px 10px); }
.capcard .cfb { font-size: .6875rem; color: var(--ink-faint); line-height: 1.45; }

.capcard .capq { border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 11px; margin-bottom: 7px; background: var(--field); }
.capcard .capq.done { border-color: rgba(178, 143, 208, .4); }
.capcard .cqt { font-size: .78rem; color: var(--ink); line-height: 1.45; }
.capcard .cqw { font-size: .6875rem; color: var(--ink-faint); line-height: 1.4; margin-top: 3px; }
.capcard .cqo { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.capcard .cqbtn { font-family: var(--mono); font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px; transition: .15s; }
.capcard .cqbtn:hover { color: var(--ink); border-color: var(--ink-dim); }
.capcard .cqbtn.on { color: #1a1206; background: #b28fd0; border-color: #b28fd0; }
.capcard .cqbtn:disabled { opacity: .5; }

.capcard .capblk { margin-bottom: 11px; }
.capcard .cbt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.capcard .capstale { color: var(--warn); letter-spacing: .02em; text-transform: none; }
.capcard .cbb { font-size: .78rem; color: var(--ink-dim); line-height: 1.6; }
.capcard .cbb p { margin: 0 0 6px; }
.capcard .cbb ul { margin: 0 0 6px; padding-left: 16px; }
.capcard .cbb li { margin-bottom: 3px; }
.capcard .cbb b { color: var(--ink); font-weight: 500; }

.capcard .capacts { display: flex; flex-direction: column; }
.capcard .capact { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.capcard .capact:last-child { border-bottom: none; }
.capcard .cad { flex: none; width: 74px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); padding-top: 1px; }
.capcard .cat { font-size: .76rem; color: var(--ink); line-height: 1.45; }
.capcard .caw { display: block; font-size: .6875rem; color: var(--ink-faint); margin-top: 2px; line-height: 1.4; }

.capcard .capbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.capcard .capbtn { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; transition: .15s; }
.capcard .capbtn:hover { color: var(--accent-ink,var(--accent)); border-color: var(--accent); }
.capcard .capbtn.on { color: #1a1206; background: var(--accent); border-color: var(--accent); }
.capcard .capbtn.pri { color: #1a1206; background: var(--accent); border-color: var(--accent); }
.capcard .capbtn:disabled { opacity: .5; }
.capcard .capdec .capnote { margin-top: 7px; font-family: var(--mono); font-size: .6875rem; }

/* tier upgrade block */
.capcard .capupg { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; background: var(--field); }
.capcard .capupg .capnote { display: block; line-height: 1.5; }
.capcard .capbar { height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; margin-top: 9px; }
.capcard .capbar span { display: block; height: 100%; width: 34%; background: var(--accent); animation: capslide 1.1s ease-in-out infinite; }
@keyframes capslide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
.capcard .capnotes { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft); font-size: .72rem; color: var(--ink-faint); line-height: 1.55; }
.capcard .capnotes div { margin-bottom: 3px; }
.capcard .capfoot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); line-height: 1.5; }
@media (max-width: 620px) { .capcard .caphead { flex-direction: column; } }

/* ============================================================================
 * capture v2 — the sourced-brief experience (rebuilt from mockups/capture-plan-v2.html).
 * Scoped under .capv2 (itself inside .dcard.capcard, so existing .capcard .cbb /
 * .capbtn / .capsh / .capbar rules still apply to reused bits). Colours ride the
 * upstream theme tokens (explorer/hitch-tokens.css) so light + dark both work;
 * --purple is the only local accent (the "only you know this" marker).
 * ========================================================================== */
.capv2 { --purple: #b28fd0; margin-top: 4px; }
.capv2 .you { color: var(--purple); } .capv2 .gold { color: var(--accent-ink,var(--accent)); }
.capv2 .up { color: var(--good); } .capv2 .down { color: var(--warn); }
.capv2 .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* vitals */
.capv2 .vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 4px 0 6px; }
.capv2 .vital { background: var(--field); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 74px; }
.capv2 .vital.pw { background: linear-gradient(160deg, rgba(232, 161, 60, .08), transparent); }
.capv2 .vital.conv { background: linear-gradient(160deg, rgba(107, 191, 89, .10), transparent); }
.capv2 .vital.vred { background: linear-gradient(160deg, rgba(217, 140, 95, .10), transparent); }
.capv2 .vl { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }
.capv2 .vv { font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--ink); }
.capv2 .vital.pw .vv { color: var(--accent-ink,var(--accent)); } .capv2 .vital.conv .vv { color: var(--good); } .capv2 .vital.vred .vv { color: var(--warn); }
.capv2 .vv.mono { font-family: var(--mono); font-size: 1rem; font-weight: 500; }
.capv2 .vs { font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); line-height: 1.4; }
.capv2 .cvbar { display: flex; gap: 2px; margin-top: 3px; }
.capv2 .cvbar b { height: 5px; border-radius: 2px; background: var(--accent); opacity: .9; cursor: pointer; transition: .2s; }
.capv2 .cvbar b:hover { opacity: 1; box-shadow: 0 0 0 2px rgba(232, 161, 60, .25); }
.capv2 .cvbar b.hum { background: var(--purple); opacity: .55; }

/* sub-tabs + panels */
.capv2 .captabbar { display: flex; gap: 2px; align-items: center; border-bottom: 1px solid var(--line); margin: 12px 0 18px; flex-wrap: wrap; }
.capv2 .captab { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-dim); padding: 10px 13px; border-bottom: 2px solid transparent; transition: .2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.capv2 .captab:hover { color: var(--ink); }
.capv2 .captab.on { color: var(--ink); border-bottom-color: var(--accent); }
.capv2 .captab .cnt { font-size: .6875rem; color: var(--ink-faint); }
.capv2 .captab.on .cnt { color: var(--accent-ink,var(--accent)); }
.capv2 .cappanel { display: none; }
.capv2 .cappanel.on { display: block; animation: capfade .3s ease; }
@keyframes capfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* verdict / read prose */
.capv2 .verdict { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--ink); margin-bottom: 10px; }
.capv2 .verdict.sm { font-size: 1.35rem; }
.capv2 .read { font-size: .9rem; line-height: 1.65; color: var(--ink-dim); }
.capv2 .read.sm { font-size: .8rem; margin-bottom: 14px; }
.capv2 .read p { margin: 0 0 7px; } .capv2 .read b { color: var(--ink); font-weight: 500; }

/* call row (overview) */
.capv2 .callrow { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 4px 0 22px; }
.capv2 .callstamp { border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 17px; text-align: center; min-width: 140px; }
.capv2 .callstamp.conv { border-color: rgba(107, 191, 89, .5); background: radial-gradient(circle at 50% 0%, rgba(107, 191, 89, .1), transparent 70%); }
.capv2 .callstamp.vred { border-color: rgba(217, 140, 95, .5); }
.capv2 .callstamp .cl { font-family: var(--mono); font-size: .6875rem; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; }
.capv2 .callstamp .cw { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; margin: 6px 0 3px; }
.capv2 .callstamp.conv .cw { color: var(--good); } .capv2 .callstamp.vred .cw { color: var(--warn); }
.capv2 .callstamp .cn { font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); }
.capv2 .callstamp .cmicro { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 8px; letter-spacing: .03em; line-height: 1.7; }

/* section rule */
.capv2 .section { display: flex; align-items: center; gap: 11px; margin: 26px 0 13px; }
.capv2 .section .sk { font-family: var(--mono); font-size: .6875rem; color: var(--accent-ink,var(--accent)); }
.capv2 .section .sn { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.capv2 .section .rule { flex: 1; height: 1px; background: var(--line-soft); }
.capv2 .section .cnt { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .09em; }

/* cards + board */
.capv2 .board { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.capv2 .card { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; margin-bottom: 13px; }
.capv2 .card.hl { border-color: rgba(232, 161, 60, .35); box-shadow: 0 0 0 1px rgba(232, 161, 60, .1), 0 8px 40px rgba(232, 161, 60, .04); }
.capv2 .board .card { margin-bottom: 0; }
.capv2 .c-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.capv2 .c-head .ic { font-size: .9rem; color: var(--ink-dim); }
.capv2 .c-head h3 { font-size: .88rem; font-weight: 500; color: var(--ink); letter-spacing: .01em; margin: 0; }
.capv2 .c-head .r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.capv2 .srcbadge { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em; padding: 2px 7px; border-radius: 100px; color: var(--ink-dim); border: 1px solid var(--line); white-space: nowrap; }
.capv2 .srcbadge.live { color: var(--good); border-color: rgba(107, 191, 89, .4); }
.capv2 .srcbadge.pub { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .4); }
.capv2 .srcbadge.hum { color: var(--purple); border-color: rgba(178, 143, 208, .45); }
.capv2 .srcbadge.rd { color: var(--blue); border-color: rgba(111, 176, 232, .4); }
.capv2 .callout { font-size: .76rem; color: var(--ink-dim); margin-top: 11px; line-height: 1.55; }
.capv2 .callout.small { font-size: .6875rem; color: var(--ink-faint); }
.capv2 .callout b { color: var(--accent-soft); font-weight: 500; }
.capv2 .sub-h { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin: 14px 0 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

/* list rows */
.capv2 .lrow { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.capv2 .card > .lrow:first-of-type { border-top: none; }
.capv2 .lic { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; font-size: .78rem; background: rgba(255, 255, 255, .04); color: var(--ink-dim); flex: none; font-family: var(--mono); }
.capv2 .lic.award { background: rgba(107, 191, 89, .1); color: var(--good); }
.capv2 .lic.opp { background: rgba(232, 161, 60, .1); color: var(--accent-ink,var(--accent)); }
.capv2 .lic.mark { background: rgba(111, 176, 232, .1); color: var(--blue); }
.capv2 .lic.hum { background: rgba(178, 143, 208, .1); color: var(--purple); }
.capv2 .lic.risk { background: rgba(217, 140, 95, .12); color: var(--warn); }
.capv2 .ltitle { font-size: .8rem; color: var(--ink); line-height: 1.35; }
.capv2 .lmeta { display: flex; gap: 9px; flex-wrap: wrap; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 3px; }
/* let the middle grid column shrink so a long "why" wraps within it instead of
   overflowing the row on one line (min-width:auto would let it grow to content) */
.capv2 .lrow > div:nth-child(2) { min-width: 0; }
.capv2 .lmeta .lwhy { flex-basis: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.capv2 .lmeta .via { color: var(--accent-ink,var(--accent)); opacity: .8; }
.capv2 .lright { text-align: right; white-space: nowrap; }
.capv2 .pill-due { font-family: var(--mono); font-size: .6875rem; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; }
.capv2 .pill-due.soon { color: var(--warn); border-color: rgba(217, 140, 95, .4); background: rgba(217, 140, 95, .06); }
.capv2 .pill-due.ok { color: var(--good); border-color: rgba(107, 191, 89, .4); }

/* pwin bars */
.capv2 .bar-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; margin-bottom: 11px; }
.capv2 .bar-row .bl { font-size: .78rem; color: var(--ink); }
.capv2 .bar-val { font-family: var(--mono); font-size: .72rem; color: var(--ink-dim); text-align: right; }
.capv2 .bar-track { grid-column: 1 / -1; height: 6px; background: rgba(255, 255, 255, .05); border-radius: 100px; overflow: hidden; }
.capv2 .bar-fill { height: 100%; border-radius: 100px; background: var(--ink-faint); }
.capv2 .bar-fill.on { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.capv2 .bar-fill.hum { background: repeating-linear-gradient(90deg, var(--purple) 0 6px, rgba(178, 143, 208, .35) 6px 12px); }
.capv2 .bar-basis { grid-column: 1 / -1; font-size: .6875rem; color: var(--ink-faint); line-height: 1.45; margin-top: 2px; }
.capv2 .tagd { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 5px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.capv2 .tagd.data { color: var(--blue); border-color: rgba(111, 176, 232, .4); }
.capv2 .tagd.you { color: var(--purple); border-color: rgba(178, 143, 208, .45); }

/* fronts */
.capv2 .fronts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.capv2 .front { background: var(--field); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; text-align: left; transition: .2s; display: flex; flex-direction: column; gap: 6px; min-height: 112px; }
.capv2 .front:hover { border-color: var(--accent); transform: translateY(-2px); }
.capv2 .front .fk { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .11em; color: var(--accent-ink,var(--accent)); }
.capv2 .front .ff { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1; }
.capv2 .front .fd { font-size: .74rem; color: var(--ink-dim); line-height: 1.45; flex: 1; }
.capv2 .front .fgo { font-family: var(--mono); font-size: .6875rem; color: var(--accent-ink,var(--accent)); }

/* price buckets */
.capv2 .buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.capv2 .bkt { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: 9px; padding: 11px; text-align: center; }
.capv2 .bkt.pt { border-color: rgba(232, 161, 60, .5); background: rgba(232, 161, 60, .06); }
.capv2 .bkt .bv { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); } .capv2 .bkt.pt .bv { color: var(--accent-ink,var(--accent)); }
.capv2 .bkt .bl { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-top: 4px; }

/* question queue — one card per question, read top-to-bottom: the question, why
   it moves the number, then the answers. `display:block` is stated so no other
   .qrow rule can impose a column layout on it.
   The board is a multi-column rather than a two-cell grid so the browser
   balances the columns by height; a card never breaks across the gutter. */
.capv2 .qboard { columns: 2; column-gap: 13px; }
.capv2 .qboard .qrow { break-inside: avoid; -webkit-column-break-inside: avoid; }
.capv2 .qrow { display: block; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, .02); padding: 12px 13px; margin-bottom: 9px; }
.capv2 .qrow.done { border-color: rgba(178, 143, 208, .4); }
.capv2 .qrow .qt { font-size: .81rem; color: var(--ink); line-height: 1.45; }
.capv2 .qrow .qm { font-size: .69rem; color: var(--ink-faint); line-height: 1.5; margin-top: 5px; }
.capv2 .qrow .opts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.capv2 .opt { font-family: var(--mono); font-size: .6875rem; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; transition: .15s; }
.capv2 .opt:hover { color: var(--ink); border-color: var(--ink-dim); }
.capv2 .opt.onx { color: #1a1206; background: var(--purple); border-color: var(--purple); }
.capv2 .qrow .eff { font-family: var(--mono); font-size: .6875rem; color: var(--purple); margin-top: 8px; }

/* decision + deepen + hints */
.capv2 .capdec .capbtns { margin-top: 2px; }
/* the decision + deepen controls reuse the .cap* button classes, which were
   scoped to the retired .capcard wrapper — restate them for .capv2 so they are
   styled in the live full-page view and the dossier embed (not run-together text). */
.capv2 .capbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.capv2 .capbtn { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: .15s; }
.capv2 .capbtn:hover { color: var(--accent-ink,var(--accent)); border-color: var(--accent); }
.capv2 .capbtn.on { color: #1a1206; background: var(--accent); border-color: var(--accent); }
.capv2 .capbtn.pri { color: #1a1206; background: var(--accent); border-color: var(--accent); }
.capv2 .capbtn:disabled { opacity: .5; }
.capv2 .capsh { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.capv2 .capsh .capnote { color: var(--ink-faint); text-transform: none; letter-spacing: .02em; }
.capv2 .capbar { height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; margin-top: 8px; }
.capv2 .capbar span { display: block; height: 100%; width: 34%; background: var(--accent); animation: capslide 1.1s ease-in-out infinite; }
.capv2 .capnotes { margin-top: 10px; font-size: .72rem; color: var(--ink-faint); line-height: 1.55; }
.capv2 .capupg { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.capv2 .cap-hint { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
.capv2 .cap-link { font-family: var(--mono); font-size: .6875rem; color: var(--accent-ink,var(--accent)); border-bottom: 1px solid rgba(232, 161, 60, .4); }
.capv2 .cap-link:hover { color: var(--accent-soft); }
.capv2 .foot-note { margin-top: 30px; padding-top: 15px; border-top: 1px solid var(--line-soft); font-size: .6875rem; color: var(--ink-faint); line-height: 1.6; }
.capv2 .foot-note b { color: var(--ink-dim); font-weight: 500; }

@media (max-width: 720px) {
  .capv2 .vitals { grid-template-columns: repeat(2, 1fr); }
  .capv2 .board, .capv2 .fronts, .capv2 .callrow { grid-template-columns: 1fr; }
  .capv2 .qboard { columns: 1; }
  .capv2 .buckets { grid-template-columns: 1fr; }
}

/* ---- the live capture VIEW (state.view === "capture"): full-page brief off
   the board, plus the masthead and the board entry affordances ------------- */
.capv2.capfull { max-width: 1180px; margin: 0 auto; }
.capv2.capfull .vitals { grid-template-columns: 1.3fr 1.2fr 1fr 1fr 1fr 1.1fr; }
.capmast { max-width: 1180px; margin: 8px auto 4px; }
.capmast__kick { font-family: var(--mono); font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.capmast__kick .rule { width: 26px; height: 1px; background: var(--accent); opacity: .6; }
.capmast__title { font-family: var(--serif); font-size: 2.3rem; line-height: 1.02; color: var(--ink); margin: 0; }
.capmast__by { margin-top: 9px; color: var(--ink-dim); font-size: .72rem; font-family: var(--mono); letter-spacing: .02em; }
.capmast__chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.capmast .dchip { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .6875rem; padding: 3px 9px; border-radius: 100px; color: var(--ink); border: 1px solid var(--line); }
.capmast .dchip.term { color: var(--accent-soft); border-color: rgba(232, 161, 60, .35); background: rgba(232, 161, 60, .07); }
/* An undecided set-aside is still worth showing — blanking it would read as
   full-and-open — but it is not a term of the deal the way "SDVOSBC" is, so it
   drops out of the accent lane and reads as the placeholder it is. */
.capmast .dchip.term.tbd {
  color: var(--ink-faint); border-color: var(--line); background: none;
  font-style: italic; cursor: help;
}
.capmast__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }

/* board card: the capture chip + the ◈ Plan button are entry points */
.ccap { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; transition: border-color .15s; }
.ccap:hover { border-color: var(--accent); }
.ccap-go { font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink,var(--accent)); margin-left: auto; }
.cbtn-cap { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .4); font-family: var(--mono); font-size: .6875rem; }
.cbtn-cap:hover { background: rgba(232, 161, 60, .1); }

@media (max-width: 900px) {
  .capv2.capfull .vitals { grid-template-columns: repeat(2, 1fr); }
  .capmast__title { font-size: 1.9rem; }
}

/* ---- capture-plan first-load loader (Ask-Hitch family; .ask-loading /
   .ask-loadmsg / .ask-loadsub come from global-search.css) ------------------ */
.cap-loading { min-height: 360px; justify-content: center; }
/* the Ask Hitch dotted sphere (hitch-sphere.js paints the canvas) */
.cap-orb { width: 60px; height: 60px; margin-bottom: 4px; }

/* ---- embed mode (?embed=1): the dossier CAPTURE tab iframes the capture view,
   so strip the site chrome and show only the brief ------------------------- */
body.embed .grain, body.embed .topbar, body.embed .rail { display: none !important; }
/* NO colour override here — the embed FOLLOWS the dossier's theme, which the
   dossier passes (?theme=) and postMessages on toggle, applied as body.light. So
   it matches the dossier in both light and dark. The backdrop comes from the
   base `html, body { background: var(--bg) }` rule, which tracks the theme. */
body.embed .app, body.embed .workspace { display: block; gap: 0; }
body.embed .main { padding: 16px 18px; }
body.embed .capv2.capfull { max-width: none; }

/* The team a board belongs to (Phase C / 0044). Rendered only when the user is
   on more than one team — otherwise it repeats on every tab and says nothing. */
.pltab .plteam{
  display:block; font-style:normal; font-family:var(--mono,monospace);
  font-size:.6875rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-faint,#6b675d); margin-top:2px;
}
.pltab.on .plteam{ color:inherit; opacity:.7; }

/* An ARCHIVED board (migration 0063) is not in the tab strip at all — it only
   appears there when you opened it on purpose from Manage, and then it has to
   say what it is, because a historical board looks exactly like a live one. */
.pltab.arch{ border-style:dashed; }
.pltab .plarch{
  display:block; font-style:normal; font-family:var(--mono,monospace);
  font-size:.6875rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-faint,#6b675d); margin-top:2px;
}
.pltab.on .plarch{ color:inherit; opacity:.7; }
.boardsub.arch{ color:var(--ink-dim); }
.boardsub.arch b{ color:var(--accent-soft); }

/* ============================================================================
   BOARD v3 — the redesigned pipeline manager (design/pipeline-manager-redesign.md).
   Everything pb-prefixed; ?board=classic never loads this DOM. The classic
   board styles above stay untouched for the fallback.
   ========================================================================== */
:root { --pb-hot: #e5484d; --pb-hot-dim: rgba(229, 72, 77, .14); --pb-accent-dim: rgba(232, 161, 60, .14); }
body.light { --pb-hot: #b3261e; --pb-hot-dim: rgba(179, 38, 30, .1); --pb-accent-dim: rgba(138, 90, 16, .12); }

.pb-ic { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2.5px; }
.pb-ic.sm { width: 13px; height: 13px; }

/* ---- carried over from the deleted strip: the chips, the filter box and
   the button shape the bar and its popovers still use ---- */


/* ---- THE BAR (v3.2) — TWO rows, split by job, not by size:
     row 1 (.pb-bar)  WHAT AM I LOOKING AT — board · money · cards | find · manage
     row 2 (.pb-work) WHAT DO I DO         — chair · count · alarm | the queue

   v3.1 put all five in one row. Four of them are fixed-width or nearly so, so
   the queue — the only part that is the product — got whatever remained, which
   at real window widths is nothing: reported and reproduced at 1758px with the
   chips clipped to "Confirm th…" beside "KC-135 …", and the whole row still
   overflowing. Hierarchy is still carried by TYPEFACE rather than size (the
   headline is the only serif and the only accent), which is what keeps the cost
   to one extra row rather than the ~120px the deleted strip took.
   HEIGHT, MEASURED LIKE FOR LIKE — border box PLUS the outer margins, in the
   real container at 1600px, v3.1 driven from its own commit rather than from
   arithmetic: v3.1 58px (44 + 4 + 10); v3.2 with capture ON 94px (4 + 34 + 6 +
   40 + 10), so **+36px**; v3.2 with capture OFF 48px, i.e. 10px LESS than v3.1.
   ⚠ An earlier version of this note said "+22px", which compared v3.2's two
   border boxes against v3.1's box PLUS its margins — two different questions
   given one number. Measure both ends the same way or do not quote a delta.
   See pbBarHtml for the full reasoning. ---- */
.pb-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  min-height: 34px; margin: 4px 0 0; }
/* the header's bottom margin belongs to whichever row ENDS the header — .pb-work
   normally, and .pb-bar itself when capture is off and there is no second row.
   Set by pbBarHtml, which is the only thing that knows; see its comment. */
.pb-bar.solo { margin-bottom: 10px; }

.pb-id { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  flex: 1 1 auto; min-width: 0; }
.pb-idbtn { display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pb-idbtn:hover { color: var(--accent-ink,var(--accent)); }
.pb-idbtn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* inline now, not on its own line: row one holds only identity and the two
   whole-board controls, so the money and the card count fit beside the name */
.pb-id .meta { font-family: var(--mono); font-size: .7rem;
  color: var(--ink-dim); white-space: nowrap; font-variant-numeric: tabular-nums;
  padding-left: 10px; border-left: 1px solid var(--line-soft); }
.pb-car { font-style: normal; font-size: .82em; color: var(--ink-faint); }

/* one idiom for every non-default state — scope, filter, table — so there is
   always a visible way back, and you learn the ✕ once for three things */
.pb-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 3px 2px 9px; border-radius: 100px;
  background: var(--pb-accent-dim); border: 1px solid rgba(232, 161, 60, .4); color: var(--accent-soft);
  font-size: .7rem; white-space: nowrap; max-width: 20ch; overflow: hidden; }
.pb-tag button { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: inherit; flex: none; }
.pb-tag button:hover { background: rgba(232, 161, 60, .25); color: var(--ink); }

.pb-bar-r { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.pb-bar-r .pb-search input { width: 120px; }

/* ---- ROW TWO: the work. The whole width, because the queue is the product and
   it is the only thing here that cannot be read at half size.
   ⚠ IT IS ITS OWN QUERY CONTAINER, and that is the fix for a defect the first
   cut shipped. How many chips fit depends on how wide THIS ROW is, and the row
   is a grid cell — `body.v2rail .workspace` is `320px 1fr`, or `34px 1fr` once
   the reader collapses the rail, less `.main`'s 52px of padding. So the row is
   the viewport minus 372px or minus 86px, decided by a control the reader
   toggles at runtime, and a @media breakpoint cannot be right for both. It was
   right for neither: measured in the real container at 1758px — the width the
   original complaint's screenshot was taken at — the viewport-keyed rules drew
   THREE chips with 56-62px of title each, which is the ~9-character stub this
   whole change exists to remove. Container queries ask the row how wide it
   actually is. ---- */
.pb-work { display: flex; align-items: center; gap: 16px; min-height: 34px;
  margin: 6px 0 10px; padding-top: 7px; border-top: 1px solid var(--line-soft);
  container-type: inline-size; container-name: pbwork; }
.pb-ask { flex: 0 0 auto; display: flex; align-items: baseline; gap: 8px; }
.pb-ask, .pb-ask button { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--ink); }

/* THE CHAIR PICKER HAS TO LOOK LIKE A CONTROL. It was an italic word inside a
   sentence with a 9px caret and no hit area of its own — reported as a "menu
   that is impossible to use". Same word, same accent, same serif: what is added
   is a target you can hit and a resting hint (the dotted rule) that it opens. */
.pb-lensbtn { display: inline-flex; align-items: baseline; gap: 6px;
  padding: 2px 9px; margin: 0 -3px; border-radius: 8px; border: 1px solid transparent;
  transition: background .15s, border-color .15s; }
.pb-lensbtn em { font-style: italic; color: var(--accent-ink,var(--accent));
  border-bottom: 1px dotted rgba(232, 161, 60, .55); }
.pb-lensbtn:hover, .pb-lensbtn:focus-visible { background: var(--pb-accent-dim); border-color: rgba(232, 161, 60, .4); }
.pb-lensbtn:hover em, .pb-lensbtn:focus-visible em { color: var(--accent-soft); border-bottom-color: transparent; }
.pb-lensbtn .pb-car { color: var(--accent-soft); font-size: .9em; }
.pb-askbtn { padding: 2px 7px; margin: 0 -3px; border-radius: 8px; border: 1px solid transparent;
  transition: background .15s, border-color .15s; }
.pb-askbtn b { font-weight: 400; color: var(--accent-ink,var(--accent)); }
.pb-askbtn:hover, .pb-askbtn:focus-visible { color: var(--accent-ink,var(--accent)); background: var(--pb-accent-dim); border-color: rgba(232, 161, 60, .4); }
.pb-alarm { font-family: var(--mono); font-size: .6875rem; color: var(--warn); white-space: nowrap; }

.pb-work .pb-qchips { flex: 1 1 auto; }
.pb-work .pb-qchip { flex: 0 1 auto; min-width: 0; }

/* popover rows: boards, chairs, and the menu */
.pb-plrow, .pb-lensrow, .pb-menurow { display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 8px; font-size: .8rem; color: var(--ink-dim); text-align: left; }
.pb-plrow:hover, .pb-lensrow:hover, .pb-menurow:hover { background: var(--panel2); color: var(--ink); }
/* the More menu's one <a> — the admin's route to the capture switch. Same row,
   so it must not arrive underlined and blue on top of the shared rule. */
a.pb-menurow { text-decoration: none; color: var(--ink-dim); }
.pb-plrow.on, .pb-lensrow.on { color: var(--ink); }
.pb-plrow .sw, .pb-lensrow .sw { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--line); }
.pb-plrow.on .sw, .pb-lensrow.on .sw { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pb-plrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-plrow .n, .pb-menurow .n { margin-left: auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
.pb-plrow .tag { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft); border: 1px solid rgba(232, 161, 60, .3); border-radius: 100px; padding: 1px 7px; white-space: nowrap; }
.pb-lensrow .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pb-lensrow .tx b { font-weight: 400; color: var(--ink); }
.pb-lensrow .tx i { font-style: normal; font-size: .7rem; color: var(--ink-faint); }
.pb-lensrow .pb-ic { color: var(--ink-faint); }
.pb-lensrow.on .pb-ic { color: var(--accent-ink,var(--accent)); }
.pb-pop .sep { height: 1px; background: var(--line-soft); margin: 6px 8px; }

/* what the column heads inherited from the deleted strip */
.pb-colhead .pb-need { font-family: var(--mono); font-size: .6875rem; color: var(--accent-ink,var(--accent));
  display: inline-flex; align-items: center; gap: 3px; }
.pb-colhead .pb-need::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pb-colhead .pb-need.hot { color: var(--pb-hot); }
.pb-colhead .pb-winmirror { font-family: var(--mono); font-size: .6875rem; color: var(--green); white-space: nowrap; }
.pb-colmenu { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px;
  color: var(--ink-faint); font-size: .8rem; line-height: 1; }
.pb-colmenu:hover, .pb-colhead:hover .pb-colmenu { color: var(--ink); background: var(--hover, rgba(244,241,234,.06)); }

/* shown once per browser, then never again */
.pb-firstrun { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 8px 14px;
  border: 1px dashed var(--line); border-radius: 9px; background: var(--bg-soft);
  font-size: .74rem; color: var(--ink-dim); }
.pb-firstrun b { font-family: var(--mono); color: var(--accent-soft); font-weight: 400; }
.pb-firstrun button { margin-left: auto; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; color: var(--ink-faint); }
.pb-firstrun button:hover { color: var(--ink); background: var(--hover, rgba(244,241,234,.06)); }

/* the drawer's numbers section — where the six tiles went */
.pb-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; padding: 2px 10px 10px; }
.pb-num { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pb-num .k { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); }
.pb-num .v { font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-num .d { font-size: .6875rem; color: var(--ink-faint); }

@media (max-width: 860px) {
  /* the right-hand controls take their own row and WRAP: unwrapped (flex: none) they were
     465px wide on a 390px phone — Signals · filter · Tasks · More — and pushed the whole page
     sideways (measured live 2026-11-12, page scrollWidth 479). The filter box gives first. */
  .pb-bar-r { margin-left: 0; flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .pb-bar-r .pb-search { flex: 1 1 140px; min-width: 0; }
  .pb-bar-r .pb-search input { width: 100%; min-width: 0; }
  .pb-id .meta { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .pb-work { flex-wrap: wrap; gap: 8px 14px; }
}

/* ---- what the bar kept from the deleted strip and toolbar: the queue
   chips, the filter box, and the button shape its popover rows share ---- */
/* A SNAPSHOT-ONLY ROW'S TITLE IS A LINK, IN BOTH TABLES. Its row carries no
   data-topen — there is no in-app sheet to open for a key the grain cannot
   resolve — so the anchor is the only route, and it has to look like one or it
   is the dead click in another costume. Underlined at rest rather than on hover
   for that reason: nothing else about the row says it is different. */
.pb-tablewrap td.t .tt a, .tablewrap td.title .t a {
  color: inherit; text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 2px; text-decoration-color: var(--line);
}
.pb-tablewrap td.t .tt a:hover, .tablewrap td.title .t a:hover {
  color: var(--accent-ink,var(--accent)); text-decoration-color: var(--accent);
}
/* a resolved row's title (data-tsheet) is a link too since 2026-11-21, for Ctrl/⌘-click and
   the ↗ new-tab icon — it reads as it did (the row is already clickable), underlined on hover only */
.pb-tablewrap td.t .tt a[data-tsheet], .tablewrap td.title .t a[data-tsheet] { text-decoration: none; }
.pb-tablewrap td.t .tt a[data-tsheet]:hover, .tablewrap td.title .t a[data-tsheet]:hover { text-decoration: underline; }
.pb-tablewrap td.t .tt a.pb-tnew, .tablewrap td.title .t a.pb-tnew {
  margin-left: 6px; text-decoration: none; color: var(--ink-faint); font-size: .85em; opacity: .55;
}
.pb-tablewrap tr:hover a.pb-tnew, .tablewrap tr:hover a.pb-tnew, a.pb-tnew:focus { opacity: 1; }
.pb-tablewrap td.t .tt a.pb-tnew:hover, .tablewrap td.title .t a.pb-tnew:hover { color: var(--accent-ink,var(--accent)); }
.pb-qchips { display: flex; gap: 8px; align-items: center; overflow: hidden; flex: 0 1 auto; min-width: 0; }
.pb-qchip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-dim);
  white-space: nowrap; flex: none; transition: border-color .15s, background .15s; }
.pb-qchip:hover { border-color: var(--accent); color: var(--ink); }
.pb-qchip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pb-qchip .dot.hot { background: var(--pb-hot); box-shadow: 0 0 8px var(--pb-hot); }
.pb-qchip .dot.warn { background: var(--warn); }
.pb-qchip .dot.info { background: var(--ink-faint); }
/* ⚠ THE VERB DOES NOT SHRINK; ONLY THE TITLE DOES. A wider row was NOT enough
   on its own — measured in Chromium against this stylesheet, three chips on a
   full-width row at 1440px still drew the verb at 90-100px against the 194px
   "Confirm the hard gates in writing" needs, because every part of a chip was
   equally compressible and three chips plus the sentence plus the door do not
   fit whatever row they are given. A chip clipped to "Confirm the h…" is not a
   compressed chip, it is a lie about what is on it — and the verb is the half
   that says what to DO, so it is the half that must survive.
   The verb therefore takes min(its own length, 38ch) and never less; the title
   tail is the compressible part, which is the right order (the chip carries the
   whole thing in its `title`, and clicking it reveals the card). The
   breakpoints below drop a WHOLE chip rather than let the row overflow, so what
   is on screen is always complete — two readable chips and a door to the rest
   beat three squeezed ones.
   38ch is measured against pbTodoFor's own verbs, not picked: they run ~23-47
   characters ("Refresh 3 stale answers" to "Review the 4 pass/fail gates in the
   solicitation"), median around 33, and 38 clears the great majority outright
   while keeping three chips inside a 1440 laptop. */
.pb-qchip b { flex: none; font-weight: 500; color: var(--ink); max-width: 38ch; overflow: hidden; text-overflow: ellipsis; }
.pb-qchip .due { flex: none; font-family: var(--mono); font-size: .6875rem; color: var(--accent-soft); }
.pb-qchip .tail { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 28ch;
  color: var(--ink-faint); font-size: .72rem; }
/* the rest of the queue, as a door rather than three more ellipses. Labelled
   with the WHOLE count, not "+N more", because the breakpoints above change how
   many chips are on screen and a relative number would go wrong with them. */
.pb-qmore { flex: none; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em;
  color: var(--ink-dim); padding: 6px 11px; border-radius: 100px;
  border: 1px dashed var(--line-soft); white-space: nowrap; }
.pb-qmore:hover, .pb-qmore:focus-visible { color: var(--accent-ink,var(--accent)); border-color: var(--accent); border-style: solid; }

/* ⚠ THE BREAKPOINTS COME AFTER THE CHIP'S OWN RULES, AND THAT IS LOAD-BEARING.
   `.pb-qchip { display: none }` and `.pb-qchip { display: flex }` have the same
   specificity, so the one further down the file wins — a container query does
   not outrank anything by being a container query. Written above the chip, the
   narrowest rule was the ONLY one of the four that lost (the other three carry
   a `:nth-child` or a descendant and so out-specify the base rule), which is
   the worst shape to debug: three of four breakpoints working looks like
   working container queries. Measured before the move, rail open at a 1024px
   viewport: row 652 — well under 780 — still drew a chip, with the verb
   spilling past its own pill. */
/* HOW MANY CHIPS FIT, MEASURED IN THE REAL CONTAINER. A chip is only worth
   drawing if BOTH halves read — the verb (what to do) and the tail (on what) —
   and with the verb pinned at its full width the tail is what the remaining room
   buys. Measured in Chromium against this stylesheet, inside the real
   `.workspace` grid, with the real sentence and the real "all N ›" door on the
   row, sweeping the ROW's own width:

   WHAT THE ROW CAN CARRY, with the breakpoints below neutralised so the row's
   own capacity is what is being measured (three chips forced on at every width):

     row 1548 -> tail 111-115px
     row 1386 -> tail  56-62px   (~9 characters — the stub this change exists to
                                  remove; 1386 is the row at a 1758px viewport
                                  with the rail open, which is the width the
                                  original complaint's screenshot was taken at)
     row 1308 -> tail  29-36px
     row 1228 -> tail   1-10px
     row 1148 -> tail       0
     row 1068 -> the VERB itself spills past the chip

   AND WHAT THE SHIPPED SHEET DOES, same harness, breakpoints live:

     row 1548 -> 3 chips, tail 111-115px      row 1148 -> 1 chip,  tail 192px
     row 1386 -> 2 chips, tail      192px     row  994 -> 1 chip,  no tail
     row 1228 -> 2 chips, tail 133-136px      row  728 -> no chips, the door only

   So: the third chip earns its room from ~1500 of ROW, the second from ~1150,
   below ~1050 a chip gives up its title, and below ~780 the chips give way to
   the door before the verb can spill. `:nth-child` and not `:nth-of-type` deliberately — "all N ›" is the
   last child and is NOT a .pb-qchip, so these selectors cannot hide the door to
   the rest of the queue; the narrowest rule hides the CHIPS and not the
   container, for the same reason (an earlier version hid `.pb-qchips` and took
   the door with it, while the comment claimed it could not). */
@container pbwork (max-width: 1500px) { .pb-qchip:nth-child(3) { display: none; } }
@container pbwork (max-width: 1150px) { .pb-qchip:nth-child(2) { display: none; } }
@container pbwork (max-width: 1050px) { .pb-qchip .tail { display: none; } }
@container pbwork (max-width:  780px) { .pb-qchip { display: none; } }
.pb-tbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--line-soft); background: var(--bg-soft); color: var(--ink-dim); font-size: .78rem; white-space: nowrap; }
.pb-tbtn:hover { color: var(--ink); border-color: var(--line); }
a.pb-tbtn { text-decoration: none; }
/* the card's task chip (Pursuit redesign PR 3) */
.pb-foot .fi.pb-tchip { width: auto; padding: 0 8px; font-size: .72rem; text-decoration: none; white-space: nowrap; }
.pb-foot .fi.pb-tchip.late { color: var(--pb-hot); border-color: rgba(229, 72, 77, .45); }
/* the card's owner (0241): the hover's initials chip (.hteam .tm i), at the foot's icon size */
.pb-foot .fi.pb-owner { flex: none; border-radius: 50%; background: var(--panel2); font-size: .6875rem; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-dim); }
.pb-foot .fi.pb-owner.former { background: none; border: 1px dashed var(--line); color: var(--ink-faint); }
.pb-tablewrap td.pb-ownercell { text-align: center; }
.pb-ownav { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  overflow: hidden; background: var(--panel2); color: var(--ink-dim); font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }
.pb-ownav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-ownav.former { background: none; border: 1px dashed var(--line); color: var(--ink-faint); }
/* the chip sits after .icons, in the foot's rightmost slot; on a crowded own card the "On SAM.gov"
   pill (own-opportunity.css, flex: none) gives way to it rather than pushing it out of the foot */
.pb-foot > .fi.pb-owner { margin-left: 4px; }
.pb-foot:has(> .pb-owner) .pb-own-sam { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* …but only after the icons have given way first (rendered 2026-11-05: shrinking both together
   cut the pill to "O…" and left a half-clipped task chip beside it) */
.pb-foot:has(> .pb-owner):has(> .pb-own-sam) > .icons { flex-shrink: 1000; }
.pb-tbtn.sm { padding: 5px 8px; }
.pb-tbtn.danger { color: var(--pb-hot); border-color: rgba(229, 72, 77, .35); }
.pb-tbtn[disabled] { opacity: .45; cursor: default; }
.pb-tbtn .n { font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); }
.pb-search { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-soft); background: var(--bg-soft); color: var(--ink-faint); }
.pb-search input { background: none; border: 0; outline: none; width: 140px; padding: 7px 0; font-size: .78rem; color: var(--ink); }
.pb-search input::placeholder { color: var(--ink-faint); }

/* ---- board + rails ---- */
.pb-boardwrap { display: flex; gap: 10px; align-items: stretch; }
.pb-board { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(238px, 1fr);
  gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
/* the scroll cue (2026-11-19): a fade and a ‹ › button on a side with columns out of view */
.pb-bscroll { flex: 1; min-width: 0; position: relative; display: flex; }
.pb-bscroll > .pb-board { flex: 1; }
.pb-bscroll::before, .pb-bscroll::after { content: ""; position: absolute; top: 0; bottom: 4px; width: 44px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .15s; }
.pb-bscroll::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.pb-bscroll::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.pb-bscroll.can-l::before, .pb-bscroll.can-r::after { opacity: 1; }
.pb-sbtn { position: absolute; top: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer; }
.pb-sbtn:hover { border-color: var(--accent); color: var(--accent-ink,var(--accent)); }
.pb-sbtn[hidden] { display: none; }
.pb-sbtn.l { left: 6px; }
.pb-sbtn.r { right: 6px; }
.pb-rail { flex: none; width: 58px; display: flex; flex-direction: column; gap: 8px; }
.pb-railbtn { flex: 1; min-height: 130px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-faint); padding: 12px 0; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
.pb-railbtn:hover { border-color: var(--accent); color: var(--ink-dim); background: var(--bg-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.pb-railbtn.dragover { border-color: var(--accent); color: var(--ink); background: var(--panel); box-shadow: 0 0 0 2px var(--accent) inset; }
.pb-railbtn .rl { writing-mode: vertical-rl; font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.pb-railbtn .rn { font-family: var(--mono); font-size: .74rem; color: var(--ink-dim); }
.pb-railbtn .rw { font-family: var(--mono); font-size: .6875rem; color: var(--green); }
.pb-railbtn.lost .rw { color: var(--pb-hot); }

.pb-col { display: flex; flex-direction: column; min-width: 0; background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: 13px; transition: border-color .15s, background .15s; }
.pb-col.dragover { border-color: var(--accent); background: var(--panel); }
.pb-col.sel { border-color: rgba(232, 161, 60, .5); }
.pb-col.won { background: linear-gradient(180deg, rgba(107, 191, 89, .05), transparent 40%), var(--bg-soft); }
.pb-col.lost { background: linear-gradient(180deg, rgba(229, 72, 77, .05), transparent 40%), var(--bg-soft); }
.pb-col.offend { background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(244, 241, 234, .012) 14px 15px), var(--bg-soft); }
.pb-colhead { display: flex; align-items: center; gap: 8px; padding: 11px 12px 9px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft); border-radius: 13px 13px 0 0; }
.pb-colhead:hover { background: var(--panel); }
.pb-colhead .nm { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.pb-col.sel .pb-colhead .nm { color: var(--accent-soft); }
.pb-colhead .ct { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); background: var(--panel2); padding: 1px 7px; border-radius: 100px; }
.pb-colhead .sp { flex: 1; }
.pb-colhead .sum { font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); white-space: nowrap; }
.pb-share { height: 2px; margin: 0 12px; border-radius: 1px; background: var(--line-soft); overflow: hidden; flex: none; }
.pb-share i { display: block; height: 100%; background: var(--ink-faint); opacity: .6; }
/* -215px, not -330px: the single bar gave ~150px back, and this is the line
   that turns it into roughly one and a half more cards per column. */
.pb-colbody { min-height: 90px; max-height: calc(100vh - 215px); overflow-y: auto; overflow-x: hidden;
  padding: 9px 9px 12px; display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.pb-colempty { border: 1px dashed var(--line); border-radius: 10px; padding: 18px 10px; text-align: center;
  color: var(--ink-faint); font-size: .7rem; font-family: var(--mono); letter-spacing: .05em; }
.pb-showmore { padding: 7px; border: 1px dashed var(--line-soft); border-radius: 9px; color: var(--ink-faint);
  font-size: .6875rem; font-family: var(--mono); letter-spacing: .05em; }
.pb-showmore:hover { color: var(--ink-dim); border-color: var(--line); background: var(--panel); }

/* ---- cards ---- */
.pb-card { position: relative; border-radius: 11px; background: var(--panel); border: 1px solid var(--line-soft);
  padding: 10px 12px 9px 14px; cursor: grab; transition: border-color .15s, transform .18s ease, box-shadow .18s; }
.pb-card::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: transparent; }
.pb-card.now::before { background: var(--accent); box-shadow: 0 0 10px rgba(232, 161, 60, .55); }
.pb-card.watch::before { background: var(--warn); opacity: .75; }
.pb-card.won::before { background: var(--green); opacity: .7; }
.pb-card.lostc::before { background: var(--pb-hot); opacity: .6; }
.pb-card:hover { border-color: var(--line); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.pb-card.dragging { opacity: .45; cursor: grabbing; }
.pb-card.dim { opacity: .5; }
.pb-card.dim:hover { opacity: .9; }
.pb-card.ghosted { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(244, 241, 234, .014) 10px 11px), var(--panel); }
.pb-card.flash { animation: pbflash 1.6s ease; }
@keyframes pbflash { 0%, 55% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--pb-accent-dim), 0 0 18px rgba(232, 161, 60, .35); } 100% { } }

.pb-act { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 500;
  margin-bottom: 6px; color: var(--accent-soft); min-width: 0; }
.pb-act.watch { color: var(--warn); }
.pb-act.calm { color: var(--ink-faint); font-weight: 400; }
.pb-act.good { color: var(--green); }
.pb-act.bad { color: var(--pb-hot); }
.pb-act .verb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-act .when { margin-left: auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); white-space: nowrap; }
.pb-act .when.now { color: var(--accent-ink,var(--accent)); }
/* the title is an <a> when its row resolves and a <div> when it does not (see
   pbCardHtml) — one rule for both, so a card looks identical either way and the
   link is discoverable by the cursor rather than by underlining every card */
.pb-title { font-size: .8rem; font-weight: 400; color: var(--ink); line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none; }
a.pb-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.pb-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .6875rem; color: var(--ink-dim); min-width: 0; }
.pb-meta .ag { white-space: nowrap; flex: 0 1 auto; min-width: 5ch; overflow: hidden; text-overflow: ellipsis; }
.pb-meta .val { font-family: var(--mono); font-size: .6875rem; color: var(--ink); white-space: nowrap; flex: none; }
.pb-meta .val em { font-style: normal; font-size: .6875rem; color: var(--accent-soft); vertical-align: 2px; margin-left: 2px; }
.pb-meta .due { margin-left: auto; flex: none; white-space: nowrap; }
/* Hitch's value on a card says so ("Hitch est.", or "Hitch $X" after the company's); the company's carries no label (2026-11-23) */
.pb-meta .est { font-size: .6875rem; color: var(--ink-faint); white-space: nowrap; flex: none; }
.pb-figs { display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; font-size: .6875rem; }
.pb-fig { padding: 1px 6px; border-radius: 5px; background: var(--line-soft); color: var(--ink-dim); white-space: nowrap; }
.pb-fcst { margin-left: auto; font-family: var(--mono); font-weight: 700; color: var(--accent-soft); white-space: nowrap; }
.pb-colhead .sum.fc { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.pb-colhead .sum.fc small { font-size: .78em; font-weight: 400; color: var(--ink-faint); }
.pb-hitchv { font-size: .6875rem; color: var(--ink-faint); margin-top: 3px; white-space: nowrap; }
/* the card's owner (0241; on the card again 2026-11-17): a 20px initials circle at the meta line's right end */
.pb-meta .fi.pb-owner { display: grid; place-items: center; width: 20px; height: 20px; margin-left: auto; flex: none; border-radius: 50%;
  background: var(--panel2); font-size: .6875rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-dim); }
.pb-meta .fi.pb-owner { overflow: hidden; }
.fi.pb-owner img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.pb-meta .fi.pb-owner.former { background: none; border: 1px dashed var(--line); color: var(--ink-faint); }
.pb-meta .pb-own-sam + .fi.pb-owner { margin-left: 4px; }
/* an own card GSA eBuy says was cancelled (0290): a finding in the warning colour, never red */
.pb-meta .pb-own-ext + .fi.pb-owner { margin-left: 4px; }
.pb-meta .pb-own-sam + .pb-own-ext { margin-left: 0; }
.pb-meta .pb-own-ext { margin-left: auto; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; color: var(--warn, #d9a441); border: 1px solid rgba(217, 164, 65, .38); border-radius: 3px; padding: 0 4px; }
.pb-notepeek { margin-top: 7px; padding-left: 9px; border-left: 2px solid var(--line); font-size: .6875rem;
  font-style: italic; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-cnotes { margin-top: 7px; width: 100%; min-height: 54px; resize: vertical; background: var(--field);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: .7rem; font-family: var(--sans);
  font-weight: 400; line-height: 1.45; color: var(--ink); }
.pb-cnotes:focus { outline: none; border-color: var(--accent); }
.pb-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; min-width: 0; overflow: hidden; }
.pb-foot .icons { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--ink-faint);
  flex: 0 1 auto; min-width: 0; overflow: hidden; justify-content: flex-end; }
.pb-foot .fi { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: inherit; }
.pb-foot .fi.sig { color: var(--warn); }
.pb-foot .fi.sig.hot { color: var(--pb-hot); }
.pb-foot .fi.qs { font-family: var(--mono); font-size: .6875rem; color: var(--warn); width: auto; padding: 0 3px; }
.pb-foot button.fi:hover { color: var(--ink); background: var(--panel2); }

.pb-pwin { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); flex: none; }
.pb-pwin svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.pb-pwin circle { fill: none; stroke-width: 2.6; }
.pb-pwin .track { stroke: var(--line); }
.pb-pwin .arc { stroke: var(--green); stroke-linecap: round; }
.pb-pwin.mid .arc { stroke: var(--warn); }
.pb-pwin.low .arc { stroke: var(--pb-hot); }
.pb-gate { font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; flex: none; }
.pb-gate.pursue { color: var(--green); border-color: rgba(107, 191, 89, .4); }
.pb-gate.monitor { color: var(--warn); border-color: rgba(217, 140, 95, .35); }
.pb-gate.no_bid { color: var(--pb-hot); border-color: rgba(229, 72, 77, .35); }
.pb-gate.teammate { color: var(--accent-soft); border-color: rgba(232, 161, 60, .35); }
.pb-gate.rec { border-style: dashed; }

/* ---- hover dossier ---- */
/* Option A, "summary sheet" (2026-11-09): header, two big numbers, four fact rows, one button
   and a ⋯ menu. Every colour is a token, so light and dark both hold. */
.pb-hover { position: fixed; z-index: 90; width: 460px; max-height: min(86vh, 780px); overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .2);
  padding: 0; opacity: 0; pointer-events: none; transform: translateY(6px) scale(.985);
  max-width: calc(100vw - 16px);
  /* CLOSED IS HIDDEN, not just transparent (2026-11-12): an invisible 400 px card parked by its last
     card's rect still sat 7-394 px past a 390 px phone's edge, and a screen reader could reach it.
     visibility flips after the fade out, and at once on the way in. */
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.pb-hover.show { opacity: 1; pointer-events: auto; transform: none; visibility: visible;
  transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.pb-hover .hhead { padding: 20px 22px 18px; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.pb-hover .htype { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pb-typechip { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; }
.pb-typechip.recompete { color: var(--accent-soft); border-color: rgba(232, 161, 60, .35); }
.pb-pos { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-dim); white-space: nowrap; }
.pb-pos.favorite { color: var(--green); border-color: rgba(107, 191, 89, .4); }
.pb-pos.contender { color: var(--accent-soft); border-color: rgba(232, 161, 60, .3); }
.pb-pos.longshot { color: var(--ink-faint); }
.pb-pos.defend { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .45); background: var(--pb-accent-dim); }
.pb-pos.sub { color: var(--warn); border-color: rgba(217, 140, 95, .4); }
.pb-pos.held, .pb-pos.locked { color: var(--ink-faint); }
.pb-hover .hsol { font-size: 0.75rem; color: var(--ink-dim); }
.pb-hover .hfit { margin-left: auto; font-size: 0.75rem; color: var(--ink-dim); white-space: nowrap; }
.pb-hover .hfit b { color: var(--ink); font-weight: 600; }
.pb-hover h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5625rem; line-height: 1.15; color: var(--ink); margin: 0;
  text-wrap: pretty; }
/* black in light mode too (Kevin, 2026-11-09) — over appearance.js's injected `body.light h3` gold */
body.light .pb-hover h3 { color: var(--ink); }
.pb-hover .hbuyer { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-dim); }
.pb-hover .hnums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.pb-hover .hnum { padding: 16px 22px; min-width: 0; }
.pb-hover .hnum + .hnum { border-left: 1px solid var(--line-soft); }
.pb-hover .hnum .k { font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.pb-hover .hnum .v { font-size: 1.625rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-top: 4px;
  line-height: 1.15; overflow-wrap: anywhere; }
.pb-hover .hnum .s { font-size: 0.75rem; color: var(--ink-dim); margin-top: 2px; }
.pb-hover .hrows { padding: 6px 22px 10px; }
/* YOUR NUMBERS (2026-11-18): the forecast band over value · share · Pwin; Hitch's figure says so */
.pb-hover .hfc { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 22px;
  background: var(--pb-accent-dim, color-mix(in srgb, var(--accent) 12%, transparent)); border-bottom: 1px solid var(--line-soft); }
.pb-hover .hfc .k { font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); width: 100%; }
.pb-hover .hfc .v { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.pb-hover .hfc .s { font-size: 0.75rem; color: var(--ink-dim); }
.pb-hover .hnums.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-hover .hnums.three .hnum { padding: 14px 16px; }
.pb-hover .hnums.three .hnum:first-child { padding-left: 22px; }
.pb-hover .hnums.three .hnum .v { font-size: 1.375rem; }
.pb-hover .hnum .v .of { font-size: 0.8125rem; font-weight: 500; color: var(--ink-dim); }
.pb-hover .hnum .est { color: var(--ink-faint); }
.pb-hover .hbar { height: 5px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin-top: 6px; }
.pb-hover .hbar i { display: block; height: 100%; background: var(--accent); }
.pb-hover .hnext { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pb-hover .hnext b { font-weight: 600; text-wrap: pretty; }
.pb-hover .hnext small { font-size: 0.75rem; color: var(--ink-dim); }
.pb-hover .hnext .late { color: var(--pb-hot, var(--warn)); }
.pb-hover .hnext .none { color: var(--ink-dim); }
.pb-hover .hrow .v small.dim { font-size: 0.75rem; color: var(--ink-dim); }
.pb-hover .hload { padding: 18px 22px; color: var(--ink-dim); font-size: 0.8125rem; }
.pb-hover .hrow { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 0.8125rem;
  border-bottom: 1px solid var(--line-soft); }
.pb-hover .hrow:last-child { border-bottom: 0; }
.pb-hover .hrow .k { color: var(--ink-dim); flex: none; }
.pb-hover .hrow .v { color: var(--ink); text-align: right; min-width: 0; }
.pb-hover .hacts { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 22px;
  border-top: 1px solid var(--line-soft); background: var(--panel); }
.pb-hover .hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-size: 0.8125rem;
  font-weight: 500; cursor: pointer; text-decoration: none; }
.pb-hover .hbtn:hover { border-color: var(--ink-faint); }
.pb-hover .hbtn.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.pb-hover .hbtn.pri:hover { opacity: .9; }
.pb-hover .hbtn.danger:hover { color: var(--pb-hot); border-color: var(--pb-hot); }
/* a card the reader may not move (0267): the reason, in the menu where the controls would be */
.pb-hover .hlock { font-size: .78rem; color: var(--ink-dim); line-height: 1.4; padding: 6px 2px; text-wrap: pretty; }
.pb-card.locked, .card.locked { cursor: default; }
.pb-hover select.hbtn { appearance: none; text-align: left; }
.pb-hover .hmore { margin-left: auto; }
.pb-hover .hmore > summary { list-style: none; width: 40px; padding: 0; }
.pb-hover .hmore > summary::-webkit-details-marker { display: none; }
/* the ⋯ menu opens UPWARD over the rows, never in the footer's flow (it squeezed the Open button) */
.pb-hover .hmenu { position: absolute; right: 22px; bottom: calc(100% - 6px); width: 230px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--bg-soft);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.pb-hover .hmenu .hbtn { justify-content: flex-start; width: 100%; }
.pb-hover .dot.hot, .pb-sigrow .dot.hot { background: var(--pb-hot); box-shadow: 0 0 8px var(--pb-hot); }
.pb-hover .dot.warn, .pb-sigrow .dot.warn { background: var(--warn); }
.pb-hover .dot.info, .pb-sigrow .dot.info { background: var(--ink-faint); }
.pb-sigrow .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---- stages popover ---- */
/* position:fixed with no height cap: a nine-stage board already fills most of a
   short viewport, and the pipeline list this now also carries is unbounded. */
.pb-pop { position: fixed; z-index: 80; min-width: 250px; max-width: 400px; background: var(--bg-soft);
  max-height: min(70vh, 520px); overflow-y: auto;
  border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  padding: 8px; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; }
.pb-pop.show { opacity: 1; pointer-events: auto; transform: none; }
.pb-pop .cap { font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); padding: 6px 10px 7px; }
.pb-stgrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 9px; font-size: .78rem; color: var(--ink-dim); }
.pb-stgrow:hover { background: var(--panel); color: var(--ink); }
.pb-stgrow .tag { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); letter-spacing: .05em; }
.pb-stgrow .n { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-left: auto; }
.pb-stgrow .sw { width: 26px; height: 15px; border-radius: 100px; background: var(--panel2); position: relative; flex: none;
  border: 1px solid var(--line); transition: background .15s; }
.pb-stgrow .sw::after { content: ""; position: absolute; top: 1px; left: 1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink-faint); transition: left .15s ease, background .15s; }
.pb-stgrow.on .sw { background: var(--pb-accent-dim); border-color: rgba(232, 161, 60, .4); }
.pb-stgrow.on .sw::after { left: 12px; background: var(--accent); }
.pb-pop .foot { border-top: 1px solid var(--line-soft); margin-top: 6px; padding: 8px 10px 4px; font-size: .6875rem; color: var(--ink-faint); line-height: 1.5; }

/* ---- drawer (signals + to-dos) ---- */
/* ⚠ THE SCRIM HAS TO OUTRANK .topbar (105) OR IT STOPS DIMMING THE HEADER.
   It was 100 — under the drawer, over the topbar's old 30 — so opening the
   drawer dimmed the whole page, header included. Raising .topbar past it in
   #997 (for the module menu) left the header bright above a dimmed page, which
   reads as a rendering fault rather than a modal. The trio moves together and
   keeps its original order: rail 100 < topbar 105 < scrim 110 < drawer 111,
   all still under the tour and Ask Hitch overlays (200-210). */
.pb-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(5, 6, 8, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.pb-scrim.show { opacity: 1; pointer-events: auto; }
.pb-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 111; width: min(430px, 92vw);   /* 111: above the scrim's 110, as it was above the scrim's old 100 */
  background: var(--bg-soft); border-left: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55); transform: translateX(102%);
  /* CLOSED IS HIDDEN (2026-11-12): parked off-canvas by its transform it sat at 397-756 px on a
     390 px phone, reachable by Tab and by a screen reader. visibility flips after the slide out. */
  visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s;
  display: flex; flex-direction: column; }
.pb-drawer.show { transform: none; visibility: visible; transition: transform .24s ease, visibility 0s; }
.pb-dhead { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.pb-dhead h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin: 0; }
.pb-dhead h2 em { color: var(--accent-ink,var(--accent)); font-style: italic; }
.pb-dx { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--ink-faint); }
.pb-dx:hover { color: var(--ink); background: var(--panel); }
.pb-dbody { flex: 1; overflow-y: auto; padding: 14px 18px 22px; scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.pb-dbody .sec { margin-bottom: 18px; }
.pb-dbody .sec .cap { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.pb-dbody .empty { color: var(--ink-faint); font-size: .78rem; padding: 4px 10px; }
.pb-sigrow { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; }
.pb-sigrow:hover { background: var(--panel); }
.pb-sigrow .dot { margin-top: 5px; }
.pb-sigrow .tx { font-size: .8rem; color: var(--ink); }
.pb-sigrow .sub { font-size: .6875rem; color: var(--ink-faint); margin-top: 1px; }
.pb-sigrow .due { margin-left: auto; font-family: var(--mono); font-size: .6875rem; color: var(--ink-dim); white-space: nowrap; }

/* ---- table (v3) ---- */
.pb-tablewrap { overflow: auto; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--bg-soft);
  scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.pb-tablewrap table { border-collapse: collapse; width: 100%; font-size: .76rem; }
.pb-tablewrap thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); text-align: left;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 400; }
.pb-tablewrap tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-dim); }
.pb-tablewrap tbody tr[data-topen] { cursor: pointer; }
.pb-tablewrap tbody tr:hover { background: var(--panel); }
.pb-tablewrap tbody tr.dim { opacity: .55; }
.pb-tablewrap tbody tr.dim:hover { opacity: .9; }
.pb-tablewrap td.t .tt { font-weight: 400; color: var(--ink); max-width: 340px; }
.pb-tablewrap td.t .sub { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); margin-top: 2px; }
.pb-tablewrap td.num { font-family: var(--mono); font-size: .7rem; white-space: nowrap; color: var(--ink); }
/* the Stage cell is the shared stage bar (.h-sbar, /assets/css/hitch-table.css) */
.pb-tablewrap .pb-actcell { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-soft); white-space: nowrap; }
.pb-tablewrap .pb-actcell.calm { color: var(--ink-faint); }
.pb-tablewrap .pb-tempty { color: var(--ink-faint); padding: 24px; }
.pb-tablewrap thead th .pb-yours { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--accent-soft); }
.pb-tablewrap .pb-awdv { display: block; font: inherit; color: var(--ink); background: none; border: 0; padding: 0;
  text-align: left; cursor: pointer; }
.pb-tablewrap .pb-awdv .v { border-bottom: 1px dashed var(--ink-faint); }
.pb-tablewrap .pb-awdv:hover .v, .pb-tablewrap .pb-awdv:focus-visible .v { border-bottom-color: var(--accent-soft); color: var(--accent-soft); }
.pb-tablewrap .pb-awdv.add .v { color: var(--accent-soft); }
.pb-tablewrap .pb-awdv .pb-hitchv { display: block; }
.pb-tablewrap .pb-awdv.pb-numv { margin-left: auto; text-align: right; white-space: nowrap; }
.pb-tablewrap thead th.pb-tsort { padding: 0; }
.pb-tablewrap thead th.pb-tsort button { display: flex; align-items: center; gap: 4px; width: 100%; padding: 10px 12px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.pb-tablewrap thead th.pb-tsort button:hover, .pb-tablewrap thead th.pb-tsort.on button { color: var(--ink); }
.pb-tablewrap thead th.pb-tsort button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
.pb-tablewrap .pb-tsarr { font-size: .8em; color: var(--accent-soft); min-width: 1em; }
.pb-tablewrap td.pb-notecell { min-width: 14em; }
/* the table's Columns button sits beside its Table tag and reads as one */
.pb-tag.pb-tcolbtn { gap: 5px; padding: 2px 9px; cursor: pointer; }
.pb-tag.pb-tcolbtn:hover { color: var(--ink); }
#pb-tcolpop { min-width: 290px; max-height: 70vh; overflow: auto; }
.pb-tcolrow { display: flex; align-items: center; gap: 2px; }
.pb-tcolrow .pb-stgrow { flex: 1; }
.pb-tcolrow .pb-stgrow[disabled] { opacity: .7; cursor: default; }
.pb-tcolmv { width: 24px; height: 24px; border-radius: 6px; font-size: .6875rem; color: var(--ink-dim); flex: none; }
.pb-tcolmv:hover:not([disabled]) { background: var(--panel); color: var(--ink); }
.pb-tcolmv[disabled] { opacity: .3; cursor: default; }

/* ---- manage (v3) — drawn as the board it manages ----
   Readable first (Kevin, 2026-11-02, "impossible for old person to read"): no text under ~14px,
   no all-caps mono labels, main text in --ink, secondary in --ink-dim, never --ink-faint.
   (the side column is a div, not an <aside>: body.light paints every aside as the rail)
   Each pipeline is a miniature of its kanban: the board's mono column heads,
   count pills, won/lost tints and dashed closed stages, so the screen reads
   as the board and not as a settings form. Team, archive and trash sit in a
   side column; under 1480px it moves below the boards, so the boards get the full width. */
.pb-back { font-size: .95rem; color: var(--ink-dim); margin-bottom: 10px; display: inline-block; }
.pb-back:hover { color: var(--ink); }
.pb-mg { width: 100%; font-weight: 400; }
.pb-mg-head { margin-bottom: 18px; }
.pb-mg-sub { font-size: 1rem; color: var(--ink-dim); margin-top: 4px; }
.pb-mg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1480px) {
  .pb-mg-grid { grid-template-columns: minmax(0, 1fr); }
  .pb-mg-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 12px; align-items: start; }
  .pb-mg-side > .note.foot { grid-column: 1 / -1; }
}
.pb-mg-rule { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; margin-bottom: 12px;
  border: 1px dashed var(--line); border-radius: 11px; font-size: .92rem; line-height: 1.55; color: var(--ink); }
.pb-mg-rule .pb-ic { color: var(--accent-soft); flex: none; margin-top: 2px; }

.pb-mcard { border: 1px solid var(--line-soft); border-radius: 13px; background: var(--bg-soft); padding: 14px 15px; margin-bottom: 12px; }
.pb-mcard .cap { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.pb-mcard .note { font-size: .88rem; color: var(--ink-dim); line-height: 1.55; padding: 6px 0 0; }
.pb-mcard .sp { flex: 1; }

/* a pipeline: header line in the board bar's voice */
.pb-mp { padding: 12px 14px 12px; transition: border-color .15s; }
.pb-mp:hover { border-color: var(--line); }
.pb-mp .mh { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pb-mp .mh input, .pb-mp .mh .nm { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid transparent; outline: none; padding: 3px 0;
  min-width: 0; width: auto; field-sizing: content; max-width: 100%; }
.pb-mp .mh input { width: 24ch; }
@supports (field-sizing: content) { .pb-mp .mh input { width: auto; min-width: 6ch; } }
.pb-mp .mh input:hover { border-bottom-color: var(--line); }
.pb-mp .mh input:focus { border-bottom-color: var(--accent); }
.pb-mp .mh .meta { font-size: .95rem; color: var(--ink-dim); white-space: nowrap; }
.pb-mp .mh .team { font-size: .8rem; color: var(--accent-soft);
  border: 1px solid var(--line-soft); border-radius: 100px; padding: 1px 7px; }
.pb-mp .mh .pb-tbtn { padding: 7px 12px; font-size: .92rem; color: var(--ink); }
.pb-mp .mh .m-name-save { color: var(--accent-soft); border-color: rgba(232, 161, 60, .45); }
.pb-tbtn.idle { display: none; }
.pb-tbtn.icon { padding: 7px 9px; }
.pb-mp .mh .m-del:hover, .pb-mside .a-del:hover { color: var(--pb-hot); border-color: rgba(229, 72, 77, .35); }

/* the miniature board — open stages share the width; closed stages (No bid,
   Cancelled, Won, Lost) are the board's narrow vertical rails */
.pb-mini { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.pb-mini .mcol { position: relative; flex: 1 1 0; min-width: 118px; display: flex; flex-direction: column; min-height: 128px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); transition: border-color .15s; }
.pb-mini .mcol:hover { border-color: var(--line); }
.pb-mini .mch { display: flex; align-items: center; gap: 6px; padding: 10px 9px 9px 10px; border-bottom: 1px solid var(--line-soft); }
.pb-mini .stgname { flex: 1; min-width: 0; padding: 0; text-align: left; font-size: .9rem; font-weight: 500;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.stgname:hover { color: var(--accent-soft); }
.pb-mini .mch .ct { flex: none; font-size: .88rem; font-weight: 500; color: var(--ink); background: var(--panel2);
  padding: 1px 8px; border-radius: 100px; }
.pb-mini .mcb { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 38px; }
.pb-mini .mcb i { display: block; height: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-soft) 0 2px, var(--panel2) 2px); }
.pb-mini .mcb .more { font-size: .85rem; color: var(--ink-dim); }
/* closed stages: rails */
.pb-mini .mcol.term { flex: 0 0 60px; min-width: 60px; border-style: dashed; background: var(--bg-soft); }
.pb-mini .mcol.term .mch { flex: 1; flex-direction: column-reverse; justify-content: flex-end; gap: 9px; padding: 10px 0; border-bottom: 0; }
.pb-mini .mcol.term .stgname { flex: none; writing-mode: vertical-rl; text-align: center; font-size: .88rem; overflow: visible; }
.pb-mini .mcol.term .mch .ct { background: none; font-size: .95rem; padding: 0; }
.pb-mini .mcol.term .mcb { display: none; }
.pb-mini .mcol.won { background: linear-gradient(180deg, rgba(107, 191, 89, .1), transparent 70%), var(--bg-soft); }
.pb-mini .mcol.lost { background: linear-gradient(180deg, rgba(229, 72, 77, .09), transparent 70%), var(--bg-soft); }
.pb-mini .won .stgname, .pb-mini .won .mch .ct { color: var(--green); }
.pb-mini .lost .stgname, .pb-mini .lost .mch .ct { color: var(--pb-hot); }
/* admin controls, shown on hover */
.pb-mini .mctl { position: absolute; left: 6px; right: 6px; bottom: 5px; display: flex; justify-content: center; gap: 2px;
  padding: 2px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; }
.pb-mini .mcol.term .mctl { left: 3px; right: 3px; flex-direction: column; align-items: center; bottom: 4px; }
.pb-mini .mcol:hover .mctl, .pb-mini .mcol:focus-within .mctl { opacity: 1; transform: none; }
@media (hover: none) { .pb-mini .mctl { opacity: 1; transform: none; } .pb-mini .mcol.term { min-height: 170px; } }
.pb-mini .ctrl { display: grid; place-items: center; width: 28px; height: 26px; border-radius: 6px; color: var(--ink); font-size: 1.1rem; }
.pb-mini .ctrl:hover { color: var(--ink); background: var(--panel2); }
.pb-mini .ctrl.del:hover { color: var(--pb-hot); }
.pb-mini .mcol.add { flex: 0 0 96px; min-width: 96px; border-style: dashed; background: none; justify-content: center; }
.pb-mini .mcol.add:hover, .pb-mini .mcol.add:focus-within { border-color: var(--accent); }
.pb-mini .mcol.add input { background: none; border: 0; outline: none; text-align: center; padding: 10px 6px; width: 100%;
  font-size: .9rem; color: var(--ink); }
.pb-mini .mcol.add input::placeholder { color: var(--ink-dim); }

.pb-mp .mfoot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .92rem; color: var(--ink-dim); flex-wrap: wrap; }
.pb-mp .mfoot input { width: 56px; text-align: center; background: var(--field); border: 1px solid var(--line-soft); border-radius: 7px;
  padding: 5px 6px; color: var(--ink); font-size: .95rem; outline: none; }
.pb-mp .mfoot input:focus { border-color: var(--accent); }
.pb-mp .mfoot .pb-tbtn { padding: 5px 8px; color: var(--accent-soft); border-color: rgba(232, 161, 60, .45); }

/* win odds by stage (0243): a member's read-only line per board (an admin sets them in Account settings). Tokens only. */
.pb-mp .mstagepct { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-dim); }
.pb-mp .mstagepct .k { color: var(--ink); font-weight: 500; }
.pb-mp .mstagepct .hint { font-size: .85rem; line-height: 1.45; color: var(--ink-dim); }
.pb-mp .mstagepct.ro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pb-mp .mstagepct.ro .v { color: var(--ink); }

/* rows: stage rename, confirms, archive/trash lines */
.pb-mcard .mrow { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink); padding: 4px 0; flex-wrap: wrap; }
.pb-mcard .mrow .k { flex: none; font-size: .92rem; color: var(--ink-dim); }
.pb-mcard input[type="email"], .pb-mcard .mrow input:not([type]), .pb-mg-new input {
  background: var(--field); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 11px; color: var(--ink); font-size: .95rem; outline: none; min-width: 0; }
.pb-mcard input:focus, .pb-mg-new input:focus { border-color: var(--accent); }
.pb-mcard .mrow .grow { flex: 1; min-width: 140px; }
.pb-mp > .mrow { margin-top: 10px; }
.pb-mcard .mrow.confirm { border-top: 1px solid var(--line-soft); margin-top: 10px; padding-top: 10px; color: var(--warn); font-size: .92rem; }
.pb-mcard .mrow.confirm > span:first-child { flex-basis: 100%; }

/* new pipeline — the dashed "drop here" of the board */
.pb-mg-new { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 13px; transition: border-color .15s; }
.pb-mg-new:focus-within, .pb-mg-new:hover { border-color: var(--accent); }
.pb-mg-new .plus { color: var(--accent-soft); display: grid; place-items: center; }
.pb-mg-new input { flex: 1; background: none; border: 0; padding: 8px 0; font-size: 1rem; }
.pb-mg-new .pb-tbtn, .pb-mside .pb-tbtn, .pb-mcard .mrow .pb-tbtn { padding: 7px 12px; font-size: .92rem; color: var(--ink); }
.pb-mside .pb-tbtn.icon { padding: 7px 9px; }
.pb-mg .pb-ic.sm { width: 16px; height: 16px; }
.pb-mg-new.ro { font-size: .92rem; color: var(--ink-dim); line-height: 1.5; }
/* an admin's pointer to the company settings (win odds by stage, scorecard) in Account settings */
.pb-mg-new.pb-mg-co { margin-top: 14px; }
.pb-mg-co a { color: var(--accent-soft); }

/* side column */
.pb-mside { padding: 13px 13px 12px; }
.pb-mside .lifeline { gap: 7px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.pb-mside .cap + .lifeline { border-top: 0; }
.pb-mside .lifeline { font-size: .95rem; }
.pb-mside .mrow.lifeline .nm { font-size: .95rem; max-width: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pb-mside .mrow.lifeline .n, .pb-mside .mrow.lifeline .when { flex: none; font-family: var(--sans); font-size: .85rem; color: var(--ink-dim); }
.pb-mside .mrow.lifeline .team { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: .8rem; color: var(--accent-soft); }
.pb-mside .trtoggle { font: inherit; color: inherit; padding: 0; }
.pb-mside .trtoggle:hover { color: var(--ink); }
.pb-mside.trash .cap { margin-bottom: 4px; }
.pb-mg-side > .note.foot { font-size: .88rem; color: var(--ink-dim); line-height: 1.5; padding: 2px 4px; }

/* ---- a board's life after the board (migration 0063) ---- */
/* the banner on an archived board you have opened */
.pb-archnote { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 13px;
  border: 1px dashed var(--line); border-radius: 10px; background: var(--bg-soft);
  font-size: .74rem; color: var(--ink-dim); }
.pb-archnote b { color: var(--accent-soft); }
.pb-archnote .pb-ic { color: var(--ink-faint); flex: none; }
.pb-archnote button { margin-left: auto; flex: none; }
/* the hidden-cards notice — the board's answer to "where did my cards go?".
   Carries the accent (not the dashed neutral .pb-archnote treatment) because
   it is reporting a live narrowing the reader can undo right here, not a
   standing fact about the board. Same shape otherwise, so the two read as one
   family when both are on screen. */
.pb-railhid { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 13px;
  border: 1px solid rgba(232, 161, 60, .38); border-radius: 10px; background: rgba(232, 161, 60, .07);
  font-size: .74rem; color: var(--ink-dim); }
.pb-railhid b { color: var(--accent-soft); font-family: var(--mono); font-weight: 400; }
.pb-railhid-clr { margin-left: auto; flex: none; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); cursor: pointer;
  border: 1px solid rgba(232, 161, 60, .5); border-radius: 100px; padding: 4px 11px;
  background: none; transition: .16s; }
.pb-railhid-clr:hover { background: rgba(232, 161, 60, .14); border-color: var(--accent); }
/* the whole-board action row: copy · archive · delete */
.pb-mcard .mrow.acts { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 10px; }
.pb-mcard .mrow.confirm.copy { color: var(--ink-dim); }
/* the archived and deleted sections */
.pb-mcard.arch { border-style: dashed; }
.pb-mcard.trash { background: none; border-color: var(--line-soft); }
.pb-mcard .cap .pb-ic { vertical-align: -2px; margin-right: 4px; }
.pb-mcard .trtoggle { font-family: inherit; font-size: inherit; letter-spacing: inherit;
  text-transform: inherit; color: var(--ink-faint); padding: 0; }
.pb-mcard .trtoggle:hover { color: var(--ink); }
.mrow.lifeline { gap: 8px; }
.mrow.lifeline .nm { color: var(--ink); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.mrow.lifeline .n, .mrow.lifeline .when { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); white-space: nowrap; }
.mrow.lifeline .team { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-soft); border: 1px solid rgba(232, 161, 60, .3); border-radius: 100px; padding: 2px 8px; white-space: nowrap; }
.mrow.lifeline .sp { flex: 1; }

@media (max-width: 1380px) {
  .pb-board { grid-auto-columns: minmax(212px, 1fr); }
  .pb-rail { width: 36px; }
}
/* (the chip's title tail is dropped by the container query above — it has to be
   the ROW's width that decides, not the viewport's; see that block) */
@media (prefers-reduced-motion: reduce) {
  .pb-card, .pb-hover, .pb-drawer, .pb-pop, .pb-stgrow .sw::after { transition: none; animation: none; }
  .pb-card.flash { animation: none; }
}

/* ============================================================================
   GATE 1 — THE QUALIFICATION BRIEF (?qualify=) and THE COMPANY RECORD
   (?company=1).  Migration 0061 · docs/capture-redesign-design.md Part Two.

   Two new surfaces, one visual system, and it is deliberately the one already
   on the page: platform tokens, hairline rules, one amber accent, serif for the
   verdict and mono for the label. Nothing here introduces a colour.

   THE ONE NEW IDEA is state colour that is NOT the accent: a gate that fails and
   a gate nobody has confirmed have to be distinguishable at a glance, and amber
   cannot carry three meanings. --green / --red already exist as platform tokens;
   `unk` is deliberately grey rather than a third hue, because "we have not
   checked" is an absence, not a warning.
   ========================================================================== */
.qwrap, .cowrap { max-width: 1180px; margin: 0 auto; padding: 0 4px 90px; }

/* ---- the call band ------------------------------------------------------- */
.qcall {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px;
  border: 1px solid var(--line); background: var(--panel); padding: 22px 24px; margin: 18px 0 8px;
}
.qcall.bid { border-left: 3px solid var(--green); }
.qcall.pass { border-left: 3px solid var(--red); }
.qcall.team, .qcall.watch { border-left: 3px solid var(--accent); }
.qcall__k, .qcall__c { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); }
.qcall__v { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 8px 0 6px; color: var(--ink); }
.qcall.bid .qcall__v { color: var(--green); }
.qcall.pass .qcall__v { color: var(--red); }
.qcall.team .qcall__v, .qcall.watch .qcall__v { color: var(--accent-text); }
.qcall__why { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; margin: 0 0 16px; color: var(--ink); }
.qcall__act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qcall__ask { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.qcall__prior { font-size: 0.7812rem; color: var(--ink-faint); margin-top: 12px; }

.qbtn {
  font: inherit; font-size: 0.8125rem; padding: 7px 14px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-dim); border-radius: 3px; cursor: pointer; transition: .15s;
}
.qbtn:hover { color: var(--ink); border-color: var(--ink-faint); }
.qbtn.on { border-color: var(--accent); color: var(--accent-text); }
.qbtn.pri { border-color: var(--accent); color: var(--accent-text); }
.qbtn.pri:hover { background: var(--accent); color: #14110a; }
.qbtn[disabled] { opacity: .5; cursor: default; }
.qbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the answer pills ----------------------------------------------------
   .opt is the three-state answer control used by the qualify brief's asks and
   the company record's relationship grades. It was only ever styled under
   .capv2, so on these pages the global `button { border: none; background:
   none }` reset at the top of this file was the whole appearance — the states
   rendered as run-together words ("none some strong") instead of pills.
   Restated here in the parchment palette; .capv2 keeps its own darker rule. */
.opt {
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1.3; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-dim); background: transparent;
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px;
  cursor: pointer; transition: .15s;
}
.opt:hover { color: var(--ink); border-color: var(--ink-faint); }
.opt.onx { color: #14110a; background: var(--accent); border-color: var(--accent); }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- section headers ----------------------------------------------------- */
.qsec { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 12px; }
.qsec__k { font-family: var(--mono); font-size: 0.6875rem; color: var(--accent-text); letter-spacing: .1em; }
.qsec h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0; letter-spacing: -.01em; }
.qsec__n { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em;
  color: var(--ink-faint); margin-left: auto; text-transform: uppercase; }

/* ---- pills and provenance marks ------------------------------------------ */
.qpill { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 2px 7px; border-radius: 2px; color: var(--ink-faint); white-space: nowrap; }
.qpill.ok { color: var(--green); border-color: var(--green); }
.qpill.bad { color: var(--red); border-color: var(--red); }
.qpill.warn { color: var(--accent-text); border-color: var(--accent); }
.qmark { font-size: 0.6875rem; margin-right: 6px; }
.qmark.sourced { color: var(--green); }
.qmark.derived { color: var(--ink-faint); }
.qmark.you { color: #9b8ec4; }
.qmark.drafted { color: var(--accent-text); }

/* ---- gates --------------------------------------------------------------- */
.qgates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); }
.qgate { background: var(--panel); padding: 15px 16px; }
.qgate.bad { background: color-mix(in srgb, var(--red) 6%, var(--panel)); }
.qgate__h { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.qgate__t { font-size: 0.8438rem; font-weight: 600; color: var(--ink); }
.qgate__d { font-size: 0.7812rem; line-height: 1.5; color: var(--ink-dim); }
.qgate__s { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); margin-top: 7px; letter-spacing: .05em; }

/* ---- the four checks ----------------------------------------------------- */
.qchecks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); }
.qcheck { background: var(--panel); padding: 16px 17px; }
.qcheck__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.qcheck__t { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.qcheck__v { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.qcheck.ok .qcheck__v { color: var(--green); }
.qcheck.bad .qcheck__v { color: var(--red); }
.qcheck__b { font-size: 0.7812rem; line-height: 1.5; color: var(--ink-dim); }
.qcheck__c { font-size: 0.7188rem; color: var(--ink-faint); margin-top: 7px; font-style: italic; }
.qcheck__ex { display: flex; flex-direction: column; gap: 3px; margin-top: 9px;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }

.qnudge { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding: 16px 18px; margin: 14px 0 0; font-size: 0.8438rem; line-height: 1.55; color: var(--ink-dim); }
.qnudge b { color: var(--ink); }
.qnudge .qbtn { margin-left: 6px; }

/* ---- the clock ----------------------------------------------------------- */
.qclock { border: 1px solid var(--line); background: var(--panel); }
/* scoped to .qclock: the capture room's question cards also use .qrow, and an
   unscoped grid here was laying each question out as date/why/pill columns —
   a 130px question, a one-word-per-line "why", and the options in a third column. */
.qclock .qrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.qclock .qrow:last-child { border-bottom: none; }
.qclock .qrow.warn { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.qclock .qrow.bad { background: color-mix(in srgb, var(--red) 6%, transparent); }
.qrow__d { font-family: var(--mono); font-size: 0.75rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.qrow__t { font-size: 0.8438rem; color: var(--ink); font-weight: 600; }
.qrow__x { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); font-weight: 400; }
.qrow__w { font-size: 0.7812rem; color: var(--ink-dim); line-height: 1.5; margin-top: 2px; }
.qrow__v { font-family: var(--serif); font-size: 0.7812rem; color: var(--ink-faint); margin-top: 5px; font-style: italic; }

/* ---- cards --------------------------------------------------------------- */
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.qcard { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; }
.qcard__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 10px; }
.qcard__v { font-size: 0.8438rem; line-height: 1.55; color: var(--ink-dim); }
.qcard__v b { color: var(--ink); }
.qcard__u { font-size: 0.8125rem; color: var(--ink-faint); font-style: italic; }
.qcard__b { font-size: 0.7812rem; line-height: 1.5; color: var(--ink-dim); margin-top: 8px; }
.qcard__l { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }
.qcard .qbtn { margin-top: 12px; }
.qquote { font-family: var(--serif); font-size: 0.875rem; line-height: 1.5; color: var(--ink);
  border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; margin: 12px 0 0; }
.qlist { margin: 0; padding-left: 18px; font-size: 0.7812rem; line-height: 1.6; color: var(--ink-dim); }
.qmoney { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.qmoney:last-child { border-bottom: none; }
.qmoney__h { display: flex; align-items: baseline; gap: 6px; font-size: 0.8125rem; color: var(--ink); }
.qmoney__v { font-family: var(--mono); margin-left: auto; color: var(--accent-text); }
.qmoney__b { font-size: 0.75rem; line-height: 1.5; color: var(--ink-dim); margin-top: 3px; }

/* ---- what only you know -------------------------------------------------- */
.qasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.qask { border: 1px solid var(--line); border-left: 2px solid #9b8ec4; background: var(--panel); padding: 15px 17px; }
.qask.co { border-left-color: var(--accent); }
.qask__t { font-size: 0.875rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.qask__once { display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-text); font-weight: 400; margin-top: 4px; }
.qask__w { font-size: 0.7812rem; line-height: 1.5; color: var(--ink-dim); margin: 7px 0 11px; }
.qask__o { display: flex; flex-wrap: wrap; gap: 6px; }

.qfoot { font-size: 0.75rem; line-height: 1.7; color: var(--ink-faint); border-top: 1px solid var(--line);
  margin-top: 40px; padding-top: 16px; }

/* ---- the decision dialog — not window.prompt() --------------------------- */
.qdlg-back { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: flex;
  align-items: center; justify-content: center; z-index: 9000; padding: 20px; }
.qdlg { background: var(--panel); border: 1px solid var(--line); max-width: 520px; width: 100%;
  padding: 26px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.qdlg__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px; }
.qdlg h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; }
.qdlg__p { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-dim); margin: 0 0 14px; }
.qdlg__g { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }
.qdlg__g li.ok { color: var(--green); }
.qdlg__g li.bad { color: var(--red); }
.qdlg__l { display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.qdlg__t { width: 100%; font: inherit; font-size: 0.8125rem; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); padding: 9px 11px; border-radius: 3px; resize: vertical; }
.qdlg__t:focus { outline: none; border-color: var(--accent); }
.qdlg__a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---- the board card's Gate-1 button -------------------------------------- */
.cbtn-qual { color: var(--accent-text); }

/* ---- the deck control in the capture room -------------------------------- */
.deckctl .capbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.deckctl .deckmsg { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); margin-top: 10px; min-height: 14px; }

/* ============================ THE COMPANY RECORD ========================== */
.cohead { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px;
  border: 1px solid var(--line); background: var(--panel); padding: 22px 24px; margin: 18px 0 14px; }
.cohead__v { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent-text); }
.cohead__k { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
.cohead__r { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; }
.cob { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.cob__d { color: var(--ink-faint); font-size: 0.6875rem; }
.cob.on .cob__d { color: var(--green); }
.cob__t { font-size: 0.8125rem; color: var(--ink-dim); grid-column: 2; }
.cob.on .cob__t { color: var(--ink); }
.cob__t i { font-family: var(--mono); font-style: normal; font-size: 0.6875rem; color: var(--ink-faint); }
.cob__u { grid-column: 2; font-size: 0.7188rem; line-height: 1.45; color: var(--ink-faint); }

.coderive { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--panel2); padding: 14px 18px; font-size: 0.8438rem; color: var(--ink-dim); }
.coderive b { color: var(--ink); }
.coderive .mono { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }
.coderive__d { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); margin-left: 10px; letter-spacing: .06em; }
.coderive .qbtn { margin-left: auto; }
.coderive__n { flex-basis: 100%; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }

/* which company Fit scores — the strip at the top of the record (app.js coFitStrip) */
.cofit { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin: 0 0 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel2);
  padding: 12px 16px; font-size: 0.8438rem; color: var(--ink-dim); }
.cofit b { color: var(--ink); }
.cofit__d { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); letter-spacing: .04em; }
.cofit__warn { display: block; margin-top: 4px; color: var(--ink); }
.cofit__links { margin-left: auto; font-size: 0.7812rem; white-space: nowrap; }
.cofit__links a { color: var(--accent-text); }

.cocerts { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.cocert { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .04em; padding: 5px 10px;
  border: 1px solid var(--line); color: var(--ink-faint); border-radius: 2px; }
.cocert.on { color: var(--green); border-color: var(--green); }
.cosam { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); margin-left: auto; }

.cofields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cofield { display: flex; flex-direction: column; gap: 5px; }
.cofield > span { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); }
.cofield select, .cofield input, .coadd input {
  font: inherit; font-size: 0.8125rem; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); padding: 7px 9px; border-radius: 3px;
}
.cofield select:focus, .cofield input:focus, .coadd input:focus { outline: none; border-color: var(--accent); }
.cohint { font-size: 0.7812rem; line-height: 1.55; color: var(--ink-faint); margin-top: 12px; }
/* Account → Your company, sections 4-6 (?part=facts, step 4a): sub-headings inside section 5 */
.cosub { font-size: 0.875rem; font-weight: 600; margin: 22px 0 10px; color: var(--ink); }
.cosub i { font-style: normal; font-weight: 400; color: var(--ink-faint); margin-left: 6px; font-size: 0.7812rem; }
.cowrap--facts .cofields select:disabled, .cowrap--facts .cofields input:disabled { opacity: .6; cursor: not-allowed; }
.coempty { border: 1px dashed var(--line); padding: 18px; font-size: 0.8125rem; color: var(--ink-faint); line-height: 1.55; }

.cotable { border: 1px solid var(--line); overflow-x: auto; background: var(--panel); }
.cotable table { border-collapse: collapse; width: 100%; font-size: 0.8125rem; min-width: 620px; }
.cotable th { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400; text-align: left; padding: 10px 13px;
  border-bottom: 1px solid var(--line); background: var(--panel2); }
.cotable td { padding: 10px 13px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); vertical-align: top; }
.cotable tr:last-child td { border-bottom: none; }
.cotable td b { color: var(--ink); }
.cotable .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cotable .sm { font-size: 0.6875rem; color: var(--ink-faint); }
.cosel { font: inherit; font-size: 0.75rem; background: var(--bg); color: var(--ink-dim);
  border: 1px solid var(--line); padding: 4px 6px; border-radius: 3px; }

.copeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); margin-bottom: 12px; }
.coperson { background: var(--panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 0.7812rem; color: var(--ink-dim); }
.coperson b { color: var(--ink); font-size: 0.8438rem; }
.coperson .mono { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }
.coav { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.coav.bench { color: var(--green); }
.coav.recruit { color: var(--accent-text); }
.coadd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.coadd input { flex: 1 1 150px; min-width: 120px; }

/* The hairlines between relationship cards are drawn by each card's own 1px
   spread shadow rather than by a background showing through the gaps. Painting
   the CONTAINER meant the cells left over on the last row — 8 offices in a
   3-column grid leaves one — rendered as a filled grey block that read like a
   ninth, broken card. A card now draws its own edges and absence looks empty. */
.corels { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px;
  border: 1px solid var(--line-soft); }
.corel { background: var(--panel); box-shadow: 0 0 0 1px var(--line-soft); padding: 13px 15px; }
/* the name wraps inside its own line so the award count stays on the first one
   instead of being pushed to a row of its own by a long office name */
.corel__n { font-size: 0.8125rem; color: var(--ink-dim); display: flex; align-items: baseline; gap: 8px; }
.corel__t { flex: 1 1 auto; line-height: 1.35; }
.corel__n b { color: var(--ink); }
.corel__a { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); margin-left: auto; flex: none; }
.corel__g { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.corel__s { font-family: var(--mono); font-size: 0.6875rem; color: var(--accent-text); letter-spacing: .06em;
  margin-left: 3px; }

@media (max-width: 760px) {
  .qcall, .cohead { grid-template-columns: 1fr; gap: 14px; }
  .qclock .qrow { grid-template-columns: 1fr; gap: 6px; }
  .coderive .qbtn { margin-left: 0; }
}

/* ============================================================================
   THE WORKING PLAN (M5) — action rows, strategy statements, the teaming tracker.

   0031 rendered the action plan out of a jsonb blob, so every control below is
   new: an owner, a date, a status, a way to close a step. The visual rule is
   that an UNSET control has to look unset — an unassigned owner and an undated
   step are the two things that quietly sink a capture plan, and a select that
   renders identically whether or not it has been answered hides exactly that.
   Hence `.on` on the owner and date fields: set is inked, unset is faint.
   ========================================================================== */
.acgroup { margin-bottom: 12px; }
.acrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--line-soft); align-items: start;
}
.acrow:first-of-type { border-top: none; }
.acrow.done .acrow__t { text-decoration: line-through; color: var(--ink-faint); }
.acrow.auto { opacity: .85; }
.acrow__t { font-size: 0.8438rem; color: var(--ink); line-height: 1.45; }
.acrow__w { font-size: 0.75rem; color: var(--ink-dim); line-height: 1.45; margin-top: 3px; }
.acrow__h { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); margin-top: 4px; letter-spacing: .03em; }
.acrow__c { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.acsel, .acdate {
  font: inherit; font-size: 0.7188rem; background: var(--bg); color: var(--ink-faint);
  border: 1px solid var(--line); padding: 4px 7px; border-radius: 3px; max-width: 150px;
}
.acsel.on, .acdate.on { color: var(--ink); border-color: var(--ink-faint); }
.acsel:focus, .acdate:focus { outline: none; border-color: var(--accent); }
.acsel.st.done { color: var(--green); border-color: var(--green); }
.acsel.st.blocked, .acsel.st.dropped { color: var(--red); }
.acsel.st.in_progress { color: var(--accent-text); border-color: var(--accent); }
.acsel.role { max-width: 100px; }
.acdate.ws { max-width: 62px; text-align: right; }
.acauto { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); border: 1px solid var(--green); padding: 3px 8px; border-radius: 2px; }
.acdel { background: none; border: none; color: var(--ink-faint); font-size: 0.9375rem; line-height: 1;
  cursor: pointer; padding: 2px 5px; border-radius: 3px; }
.acdel:hover { color: var(--red); }
.acdel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acempty { font-size: 0.7812rem; color: var(--ink-faint); font-style: italic; padding: 8px 0; }
.acadd { display: flex; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.acnew { flex: 1; font: inherit; font-size: 0.7812rem; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); padding: 6px 9px; border-radius: 3px; }
.acnew:focus { outline: none; border-color: var(--accent); }

/* ---- strategy statements: drafted until a human approves them ------------ */
.sthead { display: grid; grid-template-columns: 1fr 1.15fr 1fr 118px; gap: 14px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.strow { display: grid; grid-template-columns: 1fr 1.15fr 1fr 118px; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: start; font-size: 0.7812rem;
  line-height: 1.5; color: var(--ink-dim); }
.strow:last-child { border-bottom: none; }
.strow.on { background: color-mix(in srgb, var(--green) 5%, transparent); }
.strow__p b { color: var(--ink); font-weight: 600; }
.strow__t { display: block; font-family: var(--mono); font-size: 0.6875rem; color: var(--accent-text); margin-top: 3px; }
.strow__i { color: var(--ink); }
.strow__b { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.strow__l { font-family: var(--mono); font-size: 0.6875rem; color: var(--green); letter-spacing: .05em; }
.strow__e { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint);
  padding-top: 4px; letter-spacing: .03em; }

/* ---- the teaming tracker: a status ladder, not a notes field ------------- */
.ptrow { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.ptrow:first-of-type { border-top: none; }
.ptrow__n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8438rem; color: var(--ink); }
.ptrow__n b { font-weight: 600; }
.ptrow__w { font-size: 0.75rem; color: var(--ink-dim); margin-top: 4px; }
.ptladder { display: flex; gap: 3px; margin-top: 9px; flex-wrap: wrap; }
.ptstep { font: inherit; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .06em;
  text-transform: uppercase; background: transparent; color: var(--ink-faint);
  border: 1px solid var(--line); padding: 3px 8px; border-radius: 2px; cursor: pointer; transition: .14s; }
.ptstep:hover { color: var(--ink); border-color: var(--ink-faint); }
.ptstep.on { color: var(--accent-text); border-color: var(--accent); }
.ptstep.now { background: var(--accent); color: #14110a; border-color: var(--accent); }
.ptstep.no { margin-left: auto; }
.ptstep.no.now { background: var(--red); border-color: var(--red); color: #fff; }
.ptstep:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.ptcand { display: flex; gap: 14px; align-items: center; padding: 11px 0;
  border-top: 1px solid var(--line-soft); }
.ptcand:first-of-type { border-top: none; }
.ptcand.gap { opacity: .9; }
.ptcand__m { flex: 1; min-width: 0; }
.ptcand__m b { font-size: 0.8438rem; color: var(--ink); }
.ptcand__r { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text); margin-left: 8px; }
.ptcand__w { font-size: 0.75rem; line-height: 1.5; color: var(--ink-dim); margin-top: 3px; }

/* ---- limitations on subcontracting, computed as work share is assigned ---- */
.wsmeter { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.wsmeter__b { position: relative; height: 8px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.wsmeter__b span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.wsmeter.over .wsmeter__b span { background: var(--red); }
.wsmeter__b i { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink-faint); }
.wsmeter__t { font-size: 0.7812rem; color: var(--ink-dim); margin-top: 8px; }
.wsmeter__t b { color: var(--ink); }
.wsmeter.over .wsmeter__t b { color: var(--red); }
.wsmeter__n { font-size: 0.7188rem; line-height: 1.5; color: var(--ink-faint); margin-top: 5px; }

@media (max-width: 760px) {
  .acrow, .strow, .sthead { grid-template-columns: 1fr; }
  .sthead { display: none; }
  .acrow__c { justify-content: flex-start; }
}

/* ============================================================================
   M6 · THE LIVING PLAN — staleness marks, tab dots, and the since-review diff.

   The rule the visuals encode: a mark has to be READ, and a badge that says
   "changed" gets dismissed once and never looked at again. So severity is
   carried in colour (critical borrows --red, high borrows --accent, normal is
   quiet) and the reason is on the row itself, not behind a tooltip.
   ========================================================================== */
.stalerow { cursor: pointer; transition: background .14s; }
.stalerow:hover { background: var(--panel2); }
.stalerow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stalerow.critical { box-shadow: inset 2px 0 0 var(--red); }
.stalerow.high { box-shadow: inset 2px 0 0 var(--accent); }
.stalerow.normal { box-shadow: inset 2px 0 0 var(--line); }

/* the dot on a tab whose chapter moved — the badge belongs where the work is,
   not on a banner at the top of the page */
.captab { position: relative; }
.stdot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-left: 6px; vertical-align: middle; background: var(--ink-faint);
}
.stdot.critical { background: var(--red); }
.stdot.high { background: var(--accent); }
.stdot.normal { background: var(--ink-faint); }
@media (prefers-reduced-motion: no-preference) {
  .stdot.critical { animation: stpulse 2.4s ease-in-out infinite; }
}
@keyframes stpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* what moved since the meeting where something was last decided */
.sincebox { border: 1px solid var(--line); border-left: 2px solid var(--accent);
  background: var(--panel2); padding: 12px 14px; margin-top: 12px; }
.sincebox__h { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 9px; }
.sincerow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 5px 0; border-top: 1px solid var(--line-soft); font-size: 0.75rem; }
.sincerow:first-of-type { border-top: none; }
.sincerow__f { color: var(--ink); flex: 1 1 40%; min-width: 130px; }
.sincerow__w { font-family: var(--mono); color: var(--ink-faint); text-decoration: line-through; }
.sincerow__a { color: var(--ink-faint); }
.sincerow__n { font-family: var(--mono); color: var(--accent-text); }
.sincerow__g { font-family: var(--mono); color: var(--red); }
.sincerow.more { color: var(--ink-faint); font-style: italic; }

/* the server's own alerts (0062) — raised while nobody was looking, so they read
   differently from this session's per-chapter marks: an envelope rather than a
   refresh glyph, and "we told you" rather than a severity word. */
.stalerow.fromserver .lic { opacity: .9; }
.calert {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .04em;
  border: 1px solid var(--accent); color: var(--accent-text);
  padding: 1px 6px; border-radius: 2px; white-space: nowrap;
}
.calert.crit { border-color: var(--red); color: var(--red); }

/* ── the card's first action, and the state that precedes it ───────────────
   Gate 1 was reachable from the board and invisible on it: ◆ Qualify sat in a
   row of six equal icon buttons next to "remove from pipeline", and a pursuit
   nobody had qualified rendered no capture line at all — so the card needing
   the first action carried the least ink. Both are the same mistake, that the
   product knew the next step and did not say it. */
.card .cbtn.pri { color: var(--accent-ink,var(--accent)); border-color: rgba(232, 161, 60, .5); background: rgba(232, 161, 60, .09); font-weight: 600; }
.card .cbtn.pri:hover { background: rgba(232, 161, 60, .16); border-color: var(--accent); }
/* Dashed, because the line is an invitation rather than a reading — every other
   .ccap state reports something the plan knows, and this one reports its
   absence. */
.card .ccap.unqual { border-top-style: dashed; color: var(--accent-ink,var(--accent)); }
.card .ccap.unqual .cunq { text-transform: uppercase; letter-spacing: .08em; }
.card .ccap.unqual:hover { border-color: var(--accent); }
.card .ccap .ccap-go { margin-left: auto; opacity: .8; }

/* ── the decision confirm, anchored to the button that opened it ───────────
   .qdlg-back is a viewport-centered modal and stays the fallback. It is WRONG
   the moment the brief is framed — the dossier's Capture tab and the Company
   Manager both size their iframe to full content height, so `inset: 0` covers
   thousands of pixels and centers the dialog far below what the reader can see.
   All they get is the scrim. Anchored under the call row, there is no viewport
   in the question at all. */
.qdlg-inline { display: block; margin: 14px 0 2px; }
.qdlg-inline .qdlg { max-width: none; width: auto; margin: 0; animation: qdlgin .16s ease-out; }
/* Belt and braces for the sizing bug this rule set was written before: .qcall is
   a `210px 1fr` grid, so a dialog appended to IT rather than to its right column
   auto-places into the 210px verdict rail and renders as a sliver. JS hangs it on
   .qcall__r now; this keeps any future caller that lands on .qcall full-width. */
.qcall > .qdlg-inline { grid-column: 1 / -1; }
@keyframes qdlgin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── the teaming vendor picker ─────────────────────────────────────────────
   The tracker took a typed string when the product owns a contracts database
   that can resolve any vendor to a key and a work history. The panel is
   absolutely positioned against .ptadd so it overlays the workshare meter
   instead of shoving it down the page — a suggestion list that reflows the
   card underneath it makes the thing you were reading move while you read it. */
.ptadd { position: relative; }
.ptsug { display: none; position: absolute; z-index: 40; left: 0; right: 56px; top: calc(100% + 4px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); max-height: 280px; overflow-y: auto; }
.ptsug.on { display: block; }
.ptsug__r { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 7px 10px; cursor: pointer; }
.ptsug__r:last-child { border-bottom: 0; }
.ptsug__r:hover, .ptsug__r:focus-visible { background: rgba(232, 161, 60, .10); }
.ptsug__r span { color: var(--ink); font-size: .8rem; }
.ptsug__r small { color: var(--ink-faint); font-family: var(--mono); font-size: .6875rem; }
.ptsug__n { padding: 9px 11px; color: var(--ink-dim); font-size: .74rem; line-height: 1.45; }

/* ── the workshare meter's evidence ────────────────────────────────────────
   The total is an argument; these rows are what it stands on. Colour carries
   the three states because the whole point is that they are DIFFERENT: counts
   against the ceiling, excluded as similarly situated, and not yet read —
   which counts against you until somebody looks. */
.wsmeter.unread .wsmeter__b span { background: linear-gradient(90deg, var(--accent) 0 70%, var(--ink-faint) 70% 100%); }
.wsrows { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.wsrow { display: grid; grid-template-columns: minmax(90px, 1.2fr) 44px 2.4fr; gap: 8px; align-items: baseline;
  font-size: 0.7188rem; padding: 3px 0; border-top: 1px solid var(--line-soft); }
.wsrow__n { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsrow__p { font-family: var(--mono); font-size: .6875rem; text-align: right; }
.wsrow__w { color: var(--ink-faint); }
.wsrow.on .wsrow__p { color: var(--accent-ink,var(--accent)); }
.wsrow.off .wsrow__p { color: var(--good); }
.wsrow.off .wsrow__w { color: var(--good); opacity: .82; }
.wsrow.unk .wsrow__p, .wsrow.unk .wsrow__w { color: var(--warn); }
.wsmeter__a { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wsmsg { font-size: 0.7188rem; color: var(--ink-dim); }

/* ── the column chooser: what is showing, in what order, and what you can add ─
   Two sections rather than one flat list, because the reader is doing two
   different things — reordering what they already have, and picking something
   new — and a single alphabetical list of every column cannot show an order at
   all. The showing half carries the arrows; the available half is alphabetical
   because there is nothing to say about ITS order.

   Arrows and not drag: a drag target is unreachable from a keyboard and needs
   a drop indicator, an autoscroll and a touch fallback to be honest about
   itself. Two buttons are none of that and they leave focus where the reader
   put it, so a column can be walked across the table one press at a time. */
.colmenu .colsec {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); padding: 8px 8px 4px; border-top: 1px solid var(--line-soft); margin-top: 4px;
}
.colmenu .colsec:first-child { border-top: 0; margin-top: 0; padding-top: 2px; }
.colmenu .colrow { display: flex; align-items: center; gap: 2px; }
.colmenu .colrow .colopt { flex: 1; min-width: 0; }
.colmv {
  flex: none; width: 20px; height: 20px; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 5px;
  color: var(--ink-faint); font-size: .6875rem; cursor: pointer; padding: 0;
}
.colmv:hover:not([disabled]) { border-color: var(--line); color: var(--accent-ink,var(--accent)); }
.colmv[disabled] { opacity: .25; cursor: default; }
.colmv:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.colmenu .colfoot { border-top: 1px solid var(--line-soft); margin-top: 5px; padding: 6px 8px 2px; }
.colmenu .colopt input[disabled] { opacity: .5; cursor: default; }
.colmenu .colopt:has(input[disabled]) { cursor: default; color: var(--ink-faint); }

/* The company's own fields get their own section in the Columns chooser
   rather than a place in the alphabetical tail — see v2ColMenuHtml. The kind
   ("dropdown", "yes / no") rides beside the label because a reader adding a
   column is choosing what will appear in it. */
.colmenu .colsec.colsec-cf { color: var(--accent-text); }
.colmenu .colopt { display: flex; align-items: center; gap: 6px; }
/* --ink-dim for the same reason .v2r-cflab takes it: this names the kind of
   answer the column will hold, which is what a reader adding one is choosing
   on. At --ink-faint it measures 3.32:1. */
.colmenu .colopt .colkind { margin-left: auto; padding-left: 10px; font-family: var(--mono);
  font-size: .6875rem; font-style: normal; color: var(--ink-dim); letter-spacing: .04em; }

/* ---- criteria upload review screen (criteria-upload.js) --------------------
   ⛔ THIS BOARD'S `.sheet` IS A RIGHT-DOCKED SLIDE-OVER (line 376), and there is
   no `.modal` here at all — so the review screen brings its own centred-dialog
   chrome under `.cu-` names rather than borrowing the contracts pivot's. The
   module toggles `.on` on #cuModal and emits `.btn`/`.btn.ghost` (which DO
   exist above) plus a `.spacer`, which does not — hence the scoped rule. Every
   colour is a token: this page loads appearance.js, whose Light theme flips
   --ink, and --accent is a FILL (--accent-text carries the readable amber). */
.cu-modal { display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .55); align-items: center; justify-content: center; padding: 24px; }
.cu-modal.on { display: flex; }
.cu-sheet { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  width: min(760px, 95vw); max-height: 88vh; display: flex; flex-direction: column; }
.cu-hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft); }
.cu-hd b { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.cu-x { margin-left: auto; background: none; border: none; color: var(--ink-faint);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.cu-x:hover { color: var(--ink); }
.cu-body { padding: 16px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.cu-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-top: 1px solid var(--line-soft); }
.cu-foot .spacer { flex: 1; }
.cu-msg { font-size: .86rem; color: var(--ink-dim); margin: 0 0 14px; line-height: 1.55; }
.cu-msg code { font-family: var(--mono); font-size: .78rem; color: var(--ink); }
.cu-msg a { color: var(--accent-text); }
.cu-drop { border: 1px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.cu-drop b { font-weight: 500; font-size: .9rem; }
.cu-drop span { font-size: .76rem; color: var(--ink-faint); }
.cu-drop:hover, .cu-drop.over { border-color: var(--accent); color: var(--accent-text); }
.cu-sec { margin-bottom: 20px; }
.cu-sec h4 { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--ink-faint); margin: 0 0 8px; font-weight: 400; }
.cu-note { font-size: .76rem; color: var(--ink-faint); margin: 0 0 8px; line-height: 1.5; }
.cu-list { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.cu-list li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.cu-list label { display: block; cursor: pointer; }
.cu-list code { font-family: var(--mono); font-size: .76rem; color: var(--ink-dim); }
.cu-facet { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-faint); margin-right: 6px; }
.cu-check { font-size: .6875rem; color: var(--accent-text); margin-left: 6px; }
.cu-why { font-size: .72rem; color: var(--ink-faint); margin-left: 24px; margin-top: 2px; }
.cu-src { font-size: .7rem; color: var(--ink-faint); margin-left: 24px; font-family: var(--mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-dim .cu-list li { opacity: .72; }
.cu-count { font-size: .76rem; color: var(--ink-faint); }

/* The rail-foot control. `display:none` in the MARKUP is what keeps it closed
   when the board never reaches cuSync() at all; this only styles it. */
.v2r-cu-btn { width: 100%; text-align: left; background: transparent; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: .72rem;
  cursor: pointer; transition: .2s; }
.v2r-cu-btn:hover { border-color: var(--accent); color: var(--accent-text); }

/* The stage-move confirm (pbConfirmMove in app.js, 2026-11-18). A COPY of the opportunity
   page's confirm dialog (contracts/app/frontend/hitch-page.css `.prconf`), so a move on the
   board and a move or remove on the opportunity page look the same. Edit both. */
.prconf-ov{position:fixed;inset:0;z-index:210;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.prconf{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;width:min(420px,100%);
  padding:20px 22px 18px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.prconf h2{font-family:var(--serif);font-weight:400;font-size:1.3rem;line-height:1.25;margin:0 0 8px;text-wrap:pretty;overflow-wrap:anywhere}
.prconf p{font-size:.84rem;color:var(--ink-dim);line-height:1.5;margin:0;text-wrap:pretty}
.prconf-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.prconf-btns button{border-radius:8px;padding:7px 14px;font-size:.8rem;font-weight:600;cursor:pointer}
.prconf-no{border:1px solid var(--line);background:transparent;color:var(--ink)}
.prconf-no:hover{border-color:var(--ink-faint)}
.prconf-yes{border:1px solid var(--accent);background:var(--accent);color:#1a1206}
.prconf-yes.bad{border-color:var(--warn);background:transparent;color:var(--warn)}

/* Pursuit › Details on the board (app.js pbBoxMove / pbBoxNoBid / pbBoxClosed and the
   "Next stage needs" chip, column and filter; design ops/control/docs/design/pursuit-details-tab.md).
   Drawn only while pursuit_details_open() is true. The boxes are the .prconf dialog, wider. */
.prconf.pd-box{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto}
.pd-rows{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.pd-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:10px;align-items:center;font-size:.82rem;color:var(--ink)}
.pd-row[hidden],.pd-why[hidden]{display:none}
.pd-in{box-sizing:border-box;width:100%;min-height:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);padding:4px 8px;font:inherit;font-size:.82rem}
.pd-sub{font-family:var(--mono);font-size:.6875rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-dim)}
.pd-seg{display:flex;flex-wrap:wrap;gap:6px}
.pd-seg label{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:5px 10px;font-size:.82rem;cursor:pointer}
.pd-note{margin-top:12px}
.prconf p.pd-msg{margin-top:10px;color:var(--ink)}
.prconf p.pd-msg:empty{display:none}
.pd-box .prconf-btns{flex-wrap:wrap}
.pb-need{display:inline-block;margin-top:6px;padding:1px 6px;border-radius:5px;border:1px solid var(--warn);color:var(--warn);font-size:.72rem;white-space:nowrap}
td .pb-need{margin-top:0}
.pd-gates{margin-top:12px;font-size:.82rem;color:var(--ink)}
.pd-gates[hidden]{display:none}
.pd-gate{display:flex;gap:6px;align-items:center}

/* Manage pipelines → Scorecard (0311, scorecard-setup.js): a member's read-only summary. The admin's editor is in
   Account settings → Scorecard since 2026-12-01; its rules are in explorer/platform/account.css (#scorecard-pane). */
.pb-scs .scs-hint { margin: 4px 0 10px; font-size: .88rem; line-height: 1.45; color: var(--ink-dim); text-wrap: pretty; }
.pb-scs .scs-msg { font-size: .88rem; color: var(--ink-dim); }
.pb-scs .scs-msg.bad { color: var(--red); }
.pb-scs .scs-ro li { font-size: .9rem; color: var(--ink); }
/* a tracked row's stage (stagePillOf): the shared stage pill, and "+N" when the row is on more boards */
.stagechip-wrap { margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.pb-stgmore { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); }
body.v2 .v2-tbl .v2-stg .h-sbar { min-width: 120px; }
