:root {
    --bg: #050910;
    --bg-raised: #080e17;
    --bg-deep: #03070c;
    --line: #263241;
    --line-strong: #3c4b5d;
    --text: #f3f6f8;
    --muted: #8190a1;
    --soft: #b6c0cb;
    --focus: #ffb000;
    --focus-dim: #8b620c;
    --focus-wash: rgba(255, 176, 0, .10);
    --bull: #59df68;
    --bear: #ff5660;
    --info: #35c9ec;
    --quiet: #aab6c4;
    --header-h: 58px;
    --footer-h: 30px;
    --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.011) 1px, transparent 1px);
    background-size: 52px 52px;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: var(--header-h) 1fr var(--footer-h);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-width: 0;
    height: var(--header-h);
    display: grid;
    grid-template-columns: minmax(250px, .65fr) auto minmax(760px, 1.35fr);
    align-items: stretch;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(3, 7, 12, .96);
}

.brand-lockup,
.market-status,
.topbar-center {
    display: flex;
    align-items: center;
}

.brand-lockup { padding: 0 18px; gap: 15px; }
.brand {
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.7px;
}
.brand span { color: var(--focus); }
.desk-name {
    color: var(--muted);
    font: 600 10px/1 var(--mono);
    letter-spacing: 1.8px;
    border-left: 1px solid var(--line-strong);
    padding-left: 14px;
}

.topbar-center {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.topbar-links { display: flex; align-items: stretch; height: 100%; }
.topbar-link {
    min-width: 96px; min-height: 44px; display: inline-flex;
    align-items: center; justify-content: center; padding: 0 14px;
    border-right: 1px solid var(--line); color: var(--soft);
    text-decoration: none; font: 700 9px/1 var(--mono); letter-spacing: .65px;
}
.topbar-link:last-child { border-right: 0; }
.topbar-link:hover, .topbar-link:focus-visible {
    color: var(--bg); background: var(--focus); outline: none;
}
.market-status {
    min-width: 0;
    justify-content: flex-end;
    padding-right: 14px;
    gap: 0;
}
.status-item {
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-left: 1px solid var(--line-strong);
    color: var(--soft);
    white-space: nowrap;
    font: 600 10px/1 var(--mono);
    letter-spacing: .35px;
}
.live-status { color: var(--focus); }
.live-status i {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}
.live-status.is-demo { color: var(--info); }
.live-status.is-error { color: var(--bear); }
.freshness { color: var(--info); }
.tracked-count {
    height: 34px; padding: 0 13px; border: 1px solid var(--line-strong);
    background: var(--bg-deep); color: var(--muted); cursor: pointer;
    text-transform: uppercase; font: 700 9px/1 var(--mono); letter-spacing: .65px;
}
.tracked-count strong { color: var(--focus); font-size: 12px; }
.tracked-count:hover, .tracked-count:focus-visible { color: var(--text); border-color: var(--focus); outline: none; }
.classifier-status {
    height: 34px; display: inline-flex; align-items: center; gap: 6px;
    padding: 0 11px; border: 1px solid var(--line-strong); border-left: 0;
    color: var(--muted); background: var(--bg-deep); white-space: nowrap;
    text-transform: uppercase; font: 700 8px/1 var(--mono); letter-spacing: .55px;
}
.classifier-status strong { color: var(--soft); font-size: 9px; }
.classifier-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.classifier-dot.is-ok { background: var(--bull); box-shadow: 0 0 9px var(--bull); }
.classifier-dot.is-outage { background: var(--bear); box-shadow: 0 0 9px var(--bear); }
.classifier-dot.is-disabled { background: var(--muted); }
.classifier-dot.is-pending { background: var(--focus); }
.app-shell:not([data-mode="live"]) .live-global-control { display: none; }
.app-shell[data-guided-demo="true"] .alert-filters { display: none; }

.scenario-switch {
    display: flex;
    margin-right: 13px;
    border: 1px solid var(--line-strong);
    background: var(--bg-deep);
}
.scenario-btn {
    border: 0;
    border-right: 1px solid var(--line);
    padding: 7px 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: 700 9px/1 var(--mono);
    letter-spacing: .5px;
}
.scenario-btn:last-child { border-right: 0; }
.scenario-btn:hover { color: var(--text); }
.scenario-btn.is-active { color: var(--bg); background: var(--focus); }

.board {
    min-width: 0;
    width: 100%;
    padding: 10px;
    display: grid;
    grid-template-rows: auto auto minmax(430px, 1.12fr) minmax(330px, .88fr) auto;
    gap: 10px;
}

/* ── event navigation + direct actions ─────────────────────────────────── */
.event-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(8,14,23,.94), rgba(4,9,15,.96));
}
.event-nav-select { display: flex; align-items: center; gap: 8px; }
.nav-btn {
    padding: 5px 10px;
    color: var(--soft);
    background: var(--bg-raised);
    border: 1px solid var(--line-strong);
    font: 700 9px var(--mono);
    letter-spacing: .6px;
    cursor: pointer;
}
.nav-btn:hover:not([disabled]) { color: var(--bg); background: var(--focus); border-color: var(--focus); }
.nav-btn[disabled] { opacity: .38; cursor: not-allowed; }
.event-position { color: var(--text); font: 700 10px var(--mono); letter-spacing: .6px; }
.event-nav-meta { display: flex; align-items: center; gap: 14px; }
.event-time { color: var(--focus); font: 700 9px var(--mono); letter-spacing: .5px; }
.event-siblings { color: var(--muted); font: 600 9px var(--mono); }
.event-more-toggle { display: none; }
.event-more-panel { display: contents; }
.event-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.guided-case-library {
    display: none;
    width: 100%;
    align-items: stretch;
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.app-shell[data-guided-demo="true"] .guided-case-library { display: flex; }
.guided-case-label {
    display: flex;
    align-items: center;
    padding: 0 8px 0 0;
    color: var(--muted);
    font: 700 8px var(--mono);
    letter-spacing: .8px;
}
.case-choice {
    display: grid;
    gap: 3px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
    color: var(--muted);
    cursor: pointer;
    text-align: left;
}
.case-choice strong { color: var(--soft); font: 700 9px var(--mono); }
.case-choice span { font-size: 9px; }

.alert-filters {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(620px, 1.8fr);
    gap: 8px 14px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    background: var(--bg-deep);
}
.collector-gap-warning {
    margin: 8px 12px 0; padding: 9px 12px; color: var(--warning);
    border: 1px solid rgba(255, 190, 75, .45); background: rgba(255, 190, 75, .07);
    font: 700 10px/1.45 var(--mono);
}
.collector-gap-warning.is-hidden { display: none; }
.alert-filter-copy { min-width: 0; display: grid; gap: 4px; align-content: center; }
.alert-filter-copy strong { color: var(--focus); font: 700 12px var(--mono); letter-spacing: .6px; }
.alert-filter-copy span, #alert-filter-status, #alert-scan-receipt,
#rapid-alert-receipt {
    margin: 0; color: var(--muted); font: 500 12px/1.45 var(--mono);
}
.alert-filter-fields {
    min-width: 0; display: grid;
    grid-template-columns: repeat(6, minmax(92px, 1fr)) auto auto;
    gap: 7px;
}
.alert-filter-fields label { min-width: 0; color: var(--muted); font: 700 12px var(--mono); }
.alert-filter-fields input, .alert-filter-fields select {
    box-sizing: border-box; width: 100%; min-width: 0; height: 30px;
    margin-top: 3px; padding: 4px 7px; border: 1px solid var(--line-strong);
    border-radius: 0; color: var(--text); background: var(--bg-raised);
    font: 600 12px var(--mono);
}
.alert-filter-fields input[aria-invalid="true"] { border-color: var(--bear); }
.alert-filter-fields button {
    min-height: 34px; align-self: end; padding: 5px 10px;
    border: 1px solid var(--focus-dim); color: var(--focus);
    background: var(--focus-wash); font: 700 12px var(--mono); cursor: pointer;
}
#alert-filter-status { grid-column: 2; }
.rapid-alert-results-head, #rapid-alert-receipt, .rapid-alert-results {
    grid-column: 1 / -1;
}
.rapid-alert-results-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 7px; border-top: 1px solid var(--line);
}
.rapid-alert-results-head > strong {
    color: var(--text); font: 750 12px/1.4 var(--mono); letter-spacing: .5px;
}
.rapid-alert-page-controls { display: flex; align-items: center; gap: 8px; }
.rapid-alert-page-controls button {
    min-height: 34px; padding: 5px 9px; cursor: pointer;
    color: var(--focus); background: var(--focus-wash);
    border: 1px solid var(--focus-dim); font: 700 12px var(--mono);
}
.rapid-alert-page-controls button:disabled { opacity: .35; cursor: default; }
.rapid-alert-page-controls span { color: var(--muted); font: 700 12px var(--mono); }
.rapid-alert-results {
    display: grid; max-height: 360px; overflow: auto;
    border-top: 1px solid var(--line-strong);
}
.rapid-screener-row {
    min-width: 0; display: grid;
    grid-template-columns: 38px 150px minmax(220px, 1fr) minmax(260px, .9fr);
    gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.rapid-screener-rank, .rapid-screener-clock,
.rapid-screener-contract, .rapid-screener-admission {
    color: var(--muted); font: 650 12px/1.45 var(--mono);
}
.rapid-screener-main { min-width: 0; }
.rapid-screener-main h3 {
    margin: 0; color: var(--text); font: 650 14px/1.4 var(--sans);
    overflow-wrap: anywhere;
}
.rapid-screener-facts { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; }
.rapid-screener-facts span { color: var(--soft); font: 600 12px/1.4 var(--mono); }
.rapid-screener-inspect { margin-top: 7px; color: var(--muted); font: 500 12px/1.5 var(--mono); }
.rapid-screener-inspect summary { color: var(--info); cursor: pointer; font-weight: 700; }
.rapid-screener-admission { color: var(--warning); }
.rapid-screener-admission.is-admitted { color: var(--bull); }
.rapid-screener-reasons { margin: 5px 0 0; padding-left: 16px; color: var(--soft); }
.rapid-screener-link { display: inline-block; margin-top: 6px; color: var(--info); }
.rapid-alert-empty { margin: 0; padding: 16px 4px; color: var(--muted); font: 600 12px/1.5 var(--mono); }
.timeline-source-role {
    display: inline-flex; width: fit-content; margin: 3px 0;
    color: var(--focus); font: 700 12px/1.35 var(--mono); letter-spacing: .35px;
}
.timeline-claim-limit {
    margin: 0; padding: 7px 12px; border-top: 1px solid var(--line);
    color: var(--muted); font: 500 8px/1.45 var(--mono); overflow-wrap: anywhere;
}
.reporting-crosscheck-view {
    display: grid; grid-template-columns: 1fr; gap: 5px;
    margin: 0; padding: 9px 12px;
    border-top: 1px solid var(--line); background: rgba(255,255,255,.018);
    min-width: 0;
}
.reporting-crosscheck-view.is-hidden { display: none; }
.reporting-crosscheck-eyebrow {
    color: var(--focus); font: 700 12px/1.35 var(--mono); letter-spacing: .35px;
}
.reporting-crosscheck-view > strong {
    color: var(--soft); font: 700 15px/1.4 var(--sans); overflow-wrap: anywhere;
}
.reporting-crosscheck-view > p {
    margin: 0; color: var(--muted); font: 500 12px/1.5 var(--mono);
    overflow-wrap: anywhere;
}
.reporting-crosscheck-window:empty { display: none; }
.reporting-crosscheck-sources {
    display: flex; flex-direction: column; gap: 5px; min-width: 0;
}
.reporting-crosscheck-sources:empty { display: none; }
.crosscheck-source {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
    color: var(--soft); font: 600 12px/1.45 var(--mono); overflow-wrap: anywhere;
    min-width: 0;
}
.crosscheck-source .crosscheck-role { color: var(--focus); }
.crosscheck-source a { color: var(--soft); overflow-wrap: anywhere; }
.crosscheck-source small {
    flex-basis: 100%; color: var(--muted); font: 500 11px/1.4 var(--mono);
    overflow-wrap: anywhere;
}
.case-choice:hover, .case-choice.is-active { border-color: var(--focus-dim); background: var(--focus-wash); }
.case-choice.is-active strong { color: var(--focus); }
.related-contracts {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.related-contracts.is-hidden { display: none; }
.related-contracts-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 9px 10px; cursor: pointer; color: var(--soft);
    background: rgba(255,255,255,.025); border: 1px solid var(--line);
    font: 700 12px/1.4 var(--sans); text-align: left;
}
.related-contracts-toggle:hover { border-color: var(--focus-dim); color: var(--text); }
.related-contracts-toggle span:last-child { color: var(--focus); text-transform: uppercase; }
.related-contracts-list { display: grid; gap: 6px; }
.related-contracts-list[hidden] { display: none; }
.related-contracts-heading {
    color: var(--muted);
    font: 700 9px var(--mono);
    letter-spacing: .7px;
}
.related-contract-row {
    display: grid;
    grid-template-columns: minmax(130px, .24fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 7px 9px;
    background: rgba(255,255,255,.025);
    border-left: 2px solid var(--line-strong);
}
.related-contract-role {
    color: var(--focus);
    font: 700 8px var(--mono);
    letter-spacing: .5px;
}
.related-contract-question { min-width: 0; color: var(--soft); font-size: 10px; }
.related-contract-link,
.related-contract-link-unavailable {
    color: var(--focus);
    font: 700 8px var(--mono);
    text-decoration: none;
    white-space: nowrap;
}
.related-contract-link-unavailable { color: var(--muted); }
.related-contract-note { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.action-btn {
    padding: 5px 12px;
    color: var(--focus);
    background: var(--focus-wash);
    border: 1px solid var(--focus-dim);
    font: 700 9px var(--mono);
    letter-spacing: .5px;
    text-decoration: none;
    white-space: nowrap;
}
.action-btn:hover { color: var(--bg); background: var(--focus); }
.action-btn[aria-disabled="true"] {
    color: var(--muted);
    background: transparent;
    border-color: var(--line);
    opacity: .5;
    pointer-events: none;
}

.panel-rule {
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(8,14,23,.94), rgba(4,9,15,.96));
    box-shadow: inset 0 1px rgba(255,255,255,.018);
}

.focus-grid {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(640px, 1.62fr) minmax(430px, 1fr);
    grid-template-areas: "chart read";
    gap: 10px;
}

.panel-head {
    min-width: 0;
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
}
.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font: 700 8px/1 var(--mono);
    letter-spacing: 1.5px;
}
.panel-head h1,
.panel-head h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .25px;
}
.panel-head h1 { color: var(--focus); }
.panel-head h2 small {
    margin-left: 7px;
    color: var(--muted);
    font: 500 8px/1 var(--mono);
    letter-spacing: .7px;
}

.basis-badge {
    display: inline-flex;
    margin-left: 9px;
    padding: 3px 5px;
    vertical-align: 2px;
    color: var(--muted);
    border: 1px solid var(--line-strong);
    font: 700 8px/1 var(--mono);
    letter-spacing: .7px;
}

.spot-panel {
    grid-area: chart;
    display: grid;
    grid-template-rows: auto auto minmax(235px, 1fr) 38px;
}
.quote-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: end;
    gap: 24px;
    padding: 11px 20px 3px;
}
.spot-price {
    color: var(--focus);
    font: 800 clamp(58px, 5.9vw, 104px)/.92 var(--mono);
    letter-spacing: -5px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(255,176,0,.08);
}
/* NO CURRENCY GLYPH. The hero figure is a contract PROBABILITY, not a price:
   a "$25.2%" reads as an oil quote at a glance, which is the single most
   expensive misread this page could produce. (Removed 2026-08-13 with the
   alert-context model; the original hero really was a price.) */
.spot-price::before {
    content: none;
}
.spot-change {
    padding-bottom: 8px;
    font: 800 26px/1 var(--mono);
    font-variant-numeric: tabular-nums;
}
.spot-change small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font: 600 8px/1 var(--mono);
    letter-spacing: .6px;
}
.spot-change.up { color: var(--bull); }
.spot-change.down { color: var(--bear); }
.spot-change.neutral { color: var(--quiet); }
.quote-context {
    justify-self: end;
    align-self: center;
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    margin-right: 6px;
}
.quote-context div { text-align: right; }
.quote-context span {
    display: block;
    color: var(--muted);
    font: 600 8px/1 var(--mono);
    letter-spacing: .7px;
}
.quote-context strong {
    display: block;
    margin-top: 5px;
    color: var(--soft);
    font: 700 13px/1 var(--mono);
}

.chart-wrap { position: relative; min-height: 210px; overflow: hidden; }
#spot-chart { display: block; width: 100%; height: 100%; min-height: 235px; }
.chart-grid-line { stroke: #1e2936; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grid-line.major { stroke: #344151; stroke-dasharray: 4 5; }
.chart-axis-label {
    fill: #8290a0;
    font: 10px var(--mono);
}
.chart-event-label {
    fill: var(--focus);
    font: 700 10px var(--mono);
}
.chart-line {
    fill: none;
    stroke: var(--focus);
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}
.chart-area { fill: rgba(255,176,0,.085); }
.chart-dot { fill: var(--focus); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.event-marker {
    stroke: var(--focus);
    stroke-width: 1;
    stroke-dasharray: 5 4;
    opacity: .9;
    vector-effect: non-scaling-stroke;
}
.chart-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: rgba(5,9,16,.7);
    font: 600 10px var(--mono);
    letter-spacing: .8px;
}
.chart-loading.is-hidden { display: none; }

.spot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    border-top: 1px solid var(--line);
    padding: 0 16px;
    font-family: var(--mono);
}
/* `.spread-read` lived here and carried the oil-reference value. Removed with
   the rest of the reference work (2026-08-13 correction pass) — the footer now
   holds one path-metadata line and nothing else. */
.spot-source {
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desk-read {
    grid-area: read;
    display: grid;
    grid-template-rows: auto auto 1fr;
}
.bias-lockup {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}
.bias-value {
    display: block;
    color: var(--focus);
    font: 800 clamp(35px, 3.4vw, 58px)/1 var(--mono);
    letter-spacing: -1.8px;
}
.bias-explanation {
    margin: 13px 0 0;
    color: var(--text);
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.45;
}
.trader-read-rows {
    margin: 0;
    padding: 0 24px;
}
.trader-read-rows > div {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.trader-read-rows > div:last-child { border-bottom: 0; }
.trader-read-rows dt {
    margin: 0;
    color: var(--muted);
    font: 700 8px/1 var(--mono);
    letter-spacing: 1.2px;
}
.trader-read-rows dd {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
}
.evidence-grid {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(760px, 3.35fr) minmax(300px, 1fr);
    gap: 10px;
}
.timeline-panel,
.top-evidence { min-height: 0; overflow: hidden; }
.timeline-panel { position: relative; }
.timeline-anchor { color: var(--focus); font: 700 9px var(--mono); }

.top-evidence { display: grid; grid-template-rows: auto 1fr; }
.evidence-list { min-height: 0; overflow-y: auto; }
/* Structured trader evidence cards. Each carries a titled head, label/value
   lines, optional post links and a note. */
.evidence-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.evidence-card:hover { background: rgba(255,255,255,.025); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-badge {
    color: var(--info);
    font: 700 8px var(--mono);
    letter-spacing: .6px;
    padding: 2px 6px;
    border: 1px solid var(--line-strong);
    white-space: nowrap;
}
.card-lines { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}
.card-line span { color: var(--muted); font: 600 9px var(--mono); white-space: nowrap; }
.card-line strong {
    min-width: 0;
    color: var(--text);
    font: 600 11px var(--sans);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-links { display: flex; flex-wrap: wrap; gap: 6px; }
.card-link {
    color: var(--info);
    font: 600 9px var(--mono);
    text-decoration: none;
    border-bottom: 1px dotted var(--info);
}
.card-link:hover { color: var(--text); }
.card-note { color: var(--muted); font-size: 9.5px; line-height: 1.4; font-style: italic; }
.evidence-source { color: var(--muted); font: 700 8px var(--mono); letter-spacing: .8px; }
.evidence-empty { padding: 24px; color: var(--muted); }
.evidence-empty span { color: var(--soft); font: 700 11px var(--mono); }
.evidence-empty p { max-width: 260px; font-size: 11px; line-height: 1.5; }

/* ── Draft 2 proof surface: two independent, claim-safe cases ───────────── */
.demo-proof { scroll-margin-top: calc(var(--header-h) + 10px); overflow: hidden; }
.demo-proof.is-hidden, .case-proof-content.is-hidden, .proof-jump.is-hidden { display: none; }
.app-shell[data-guided-demo="false"] .demo-proof,
.app-shell[data-guided-demo="false"] .proof-jump,
.app-shell[data-guided-demo="false"] .guided-case-library { display: none; }
.proof-head {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(255,176,0,.07), transparent 55%);
}
.proof-head h2 { margin: 0; font-size: 15px; letter-spacing: .25px; }
.proof-head p:not(.eyebrow) { margin: 7px 0 0; color: var(--soft); font-size: 11px; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, .85fr); }
.proof-card { min-width: 0; padding: 18px; }
.proof-card + .proof-card { border-left: 1px solid var(--line-strong); }
.proof-card-head p { margin: 0 0 6px; color: var(--info); font: 700 9px var(--mono); letter-spacing: .8px; }
.proof-audit .proof-card-head p { color: var(--focus); }
.proof-card-head h3 { margin: 0; font-size: 18px; }
.framework-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 10px;
    padding: 0;
    list-style: none;
}
.framework-stage {
    position: relative;
    min-height: 104px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.022);
}
.framework-stage:not(:nth-child(4)):not(:last-child)::after {
    content: "→";
    position: absolute;
    z-index: 2;
    right: -10px;
    top: 42px;
    color: var(--focus);
    font: 900 15px var(--mono);
}
.framework-stage span, .proof-current-read span {
    display: block;
    margin-bottom: 8px;
    color: var(--info);
    font: 700 8px var(--mono);
    letter-spacing: .7px;
}
.framework-stage strong { display: block; color: var(--soft); font-size: 10px; line-height: 1.45; }
.framework-market-implication { border-color: var(--focus-dim); background: var(--focus-wash); }
.framework-market-implication span { color: var(--focus); }
.framework-claim-ceiling { border-color: rgba(255,86,96,.45); }
.framework-claim-ceiling span { color: var(--bear); }
.proof-current-read {
    margin: 0;
    padding: 11px 13px;
    color: var(--text);
    border-left: 3px solid var(--focus);
    background: var(--focus-wash);
    font-size: 12px;
    line-height: 1.5;
}
.proof-current-read span { margin-bottom: 4px; color: var(--focus); }
.audit-status { display: block; margin: 18px 0 12px; color: var(--bull); font: 800 18px var(--mono); }
.audit-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.audit-metrics div { padding: 12px 7px; text-align: center; border-right: 1px solid var(--line); }
.audit-metrics div:last-child { border-right: 0; }
.audit-metrics strong { display: block; color: var(--text); font: 800 26px var(--mono); }
.audit-metrics span { display: block; margin-top: 5px; color: var(--muted); font: 700 7.5px/1.3 var(--mono); text-transform: uppercase; }
.audit-result { margin: 14px 0 10px; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.5; }
.proof-boundaries { margin: 0; padding-left: 17px; color: var(--soft); font-size: 10px; line-height: 1.5; }
.proof-verification { margin: 13px 0 0; color: var(--muted); font: 700 8px/1.4 var(--mono); letter-spacing: .35px; }
.proof-unavailable { padding: 24px; color: var(--bear); font: 700 11px var(--mono); }
.case-portfolio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}
.portfolio-case { display: grid; gap: 6px; min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); }
.portfolio-case:last-child { border-right: 0; }
.portfolio-case p { margin: 0; color: var(--info); font: 700 8px var(--mono); letter-spacing: .6px; }
.portfolio-case h3 { margin: 0; color: var(--text); font-size: 14px; }
.portfolio-case strong { color: var(--focus); font-size: 11px; }
.portfolio-case span { color: var(--soft); font-size: 10px; line-height: 1.4; }
.portfolio-case small { color: var(--muted); font-size: 9px; line-height: 1.4; }

.footerbar {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 13px;
    overflow: hidden;
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    background: var(--bg-deep);
    font: 500 8px/1 var(--mono);
    white-space: nowrap;
}
.footerbar a { color: var(--soft); text-underline-offset: 2px; }

@media (max-width: 1240px) {
    :root { --header-h: 52px; }
    .topbar { grid-template-columns: auto auto 1fr; }
    .desk-name, .freshness { display: none; }
    .board { grid-template-rows: auto auto; }
    .focus-grid { grid-template-columns: minmax(600px, 1.45fr) minmax(350px, 1fr); }
    .evidence-grid { grid-template-columns: minmax(650px, 2.5fr) minmax(280px, 1fr); }
    .quote-context { display: none; }
    .spot-price { font-size: clamp(58px, 7vw, 86px); }
}

@media (min-width: 981px) and (min-height: 900px) {
    body { overflow-y: auto; }
}

@media (max-width: 980px) {
    body { overflow-y: auto; }
    .app-shell { display: block; }
    .topbar {
        position: static;
        height: auto;
        grid-template-columns: 1fr auto;
        grid-template-rows: 52px 44px;
    }
    .brand-lockup { grid-column: 1; }
    .topbar-center { grid-row: 2; grid-column: 1 / -1; border-top: 1px solid var(--line); }
    .market-status { grid-column: 2; }
    .scenario-switch { display: none; }
    .utc-clock { border-left: 0; }
    .board { padding: 8px; display: block; }
    .focus-grid, .evidence-grid { display: block; }
    .proof-grid { display: block; }
    .guided-case-library { flex-wrap: wrap; }
    .guided-case-label { width: 100%; }
    .case-choice { flex: 1 1 105px; }
    .proof-card + .proof-card { border-left: 0; border-top: 1px solid var(--line-strong); }
    .framework-flow { grid-template-columns: minmax(0, 1fr); }
    .framework-stage { min-height: auto; }
    .framework-stage::after { display: none; }
    .audit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-metrics div:nth-child(2) { border-right: 0; }
    .audit-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .case-portfolio { grid-template-columns: minmax(0, 1fr); }
    .portfolio-case { border-right: 0; border-bottom: 1px solid var(--line); }
    .portfolio-case:last-child { border-bottom: 0; }
    .desk-read, .timeline-panel, .top-evidence { margin-top: 8px; }
    .spot-panel { min-height: 540px; }
    .timeline-panel { min-height: 420px; }
    .top-evidence { max-height: 400px; }
    .footerbar { min-height: 34px; height: auto; padding: 8px 12px; white-space: normal; }
    .footerbar span:last-child { display: none; }
}

/* ── Pass 7: on-demand broader market context ───────────────────────────── */
.market-context,
.monitored-information { margin-top: 2px; }
.market-context-head,
.price-movers-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
}
.market-context-head h2,
.price-movers-head h3 { margin: 0; font: 800 14px/1 var(--sans); }
.price-movers-head h3 { font-size: 16px; }
.market-context-head p:not(.eyebrow),
.price-movers-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.price-movers-basis { display: grid; gap: 4px; margin: 0; padding: 12px 16px 12px 32px; color: var(--muted); border-top: 1px solid var(--line); font: 11px/1.5 var(--sans); }
.market-context-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.price-movers-panel,
.market-activity-panel { border-top: 1px solid var(--line-strong); }
.price-movers-panel.is-hidden,
.market-activity-panel.is-hidden { display: none; }
.price-window-tabs, .price-sort-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.price-window-tabs button, .price-sort-tabs button {
    min-width: 38px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: 700 12px/1 var(--mono);
}
.price-window-tabs button:hover, .price-sort-tabs button:hover,
.price-window-tabs button.is-active, .price-sort-tabs button.is-active { color: var(--bg); border-color: var(--focus); background: var(--focus); }
.price-window-tabs button:disabled, .price-sort-tabs button:disabled { opacity: .35; cursor: not-allowed; }
.price-sort-tabs { flex-basis: 100%; margin-top: 7px; }
.market-claim-note {
    margin: 0;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--soft);
    background: rgba(53, 201, 236, .035);
    font-size: 14px;
    line-height: 1.5;
}
.market-state {
    min-height: 0;
    padding: 9px 16px 0;
    color: var(--muted);
    font: 700 11.5px/1.55 var(--mono);
    white-space: pre-line;
}
.market-state:empty { display: none; }
.price-movers-rows,
.tracked-contracts-rows { display: grid; }
.price-movers-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.price-movers-table th,
.price-movers-table td { padding: 16px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.price-movers-table th { color: var(--muted); font: 700 11.5px/1.3 var(--mono); letter-spacing: .6px; text-transform: uppercase; }
.price-movers-table td { color: var(--soft); font: 650 14px/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.price-movers-table th:first-child { width: 29%; }
.price-movers-table th:nth-child(2) { width: 9%; }
.price-movers-table th:nth-child(8) { width: 12%; }
.market-table-sort { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.market-table-sort:hover, .market-table-sort.is-active { color: var(--focus); }
.price-movers-table .market-question-link { color: var(--text); font: 700 16px/1.45 var(--sans); text-decoration: none; }
.price-movers-table .market-question-link:hover { color: var(--info); text-decoration: underline; }
.price-movers-table .market-question-unavailable { color: var(--text); font: 700 16px/1.45 var(--sans); }
.price-movers-table .market-change.is-up { color: var(--bull); }
.price-movers-table .market-change.is-down { color: var(--bear); }
.price-movers-table .market-theme { color: var(--info); font-size: 11.5px; letter-spacing: .7px; }
.market-spark { width: 90px; height: 24px; }
.market-spark polyline { fill: none; stroke: var(--focus); stroke-width: 2; vector-effect: non-scaling-stroke; }
.market-context-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.market-context-foot a { color: var(--info); font: 700 12px var(--mono); }

/* ── Supplemental 24/7 oil-reference panel ─────────────────────────────────
   A standalone context band. Containment-safe (min-width:0 + minmax(0,…)) so
   the two cards and their charts can never force horizontal page overflow. */
.supplemental-reference { margin-top: 2px; min-width: 0; }
.supplemental-reference-claim {
    margin: 6px 0 0; color: var(--soft);
    font: 700 12px/1.5 var(--mono); letter-spacing: .2px; overflow-wrap: anywhere;
}
.supplemental-reference-units {
    margin: 4px 0 0; color: var(--muted); font: 600 11px/1.5 var(--mono);
    overflow-wrap: anywhere;
}
.supplemental-reference-generated {
    color: var(--muted); font: 600 11px var(--mono); white-space: nowrap;
}
.supplemental-reference-status {
    margin: 0; padding: 10px 16px; color: var(--soft);
    font-size: 13px; line-height: 1.5; border-bottom: 1px solid var(--line);
}
.supplemental-reference-status.is-quiet { display: none; }
.supplemental-reference-cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; padding: 14px 16px; min-width: 0;
}
.reference-card {
    min-width: 0; max-width: 100%; border: 1px solid var(--line-strong);
    background: var(--bg-deep); padding: 12px 13px;
    display: flex; flex-direction: column; gap: 10px;
}
.reference-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 8px; min-width: 0;
}
.reference-card-head h3 { margin: 0; font: 800 16px/1 var(--sans); }
.reference-symbol {
    display: inline-block; margin-top: 4px; color: var(--muted);
    font: 700 10px var(--mono); letter-spacing: .4px;
}
.reference-state-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
    border: 1px solid var(--line-strong); color: var(--muted);
    font: 800 10px/1 var(--mono); letter-spacing: .6px; white-space: nowrap;
}
.reference-state-glyph { font-size: 11px; line-height: 1; }
/* Colour REINFORCES the text+glyph; the label alone is sufficient. */
.reference-state-badge[data-state="fresh"] { color: var(--bull); border-color: var(--bull); }
.reference-state-badge[data-state="delayed"] { color: var(--focus); border-color: var(--focus-dim); }
.reference-state-badge[data-state="stale"] { color: var(--quiet); border-color: var(--line-strong); }
.reference-state-badge[data-state="unavailable"],
.reference-state-badge[data-state="loading"] { color: var(--bear); border-color: var(--bear); }
.reference-quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reference-label { display: block; color: var(--muted); font: 700 8px var(--mono); letter-spacing: 1px; }
.reference-mark strong, .reference-range strong {
    display: block; margin-top: 3px; font: 800 17px/1.15 var(--mono); overflow-wrap: anywhere;
}
.reference-range strong { font-size: 13px; color: var(--soft); }
.reference-units-note { margin: 0; color: var(--muted); font: 600 9px/1.4 var(--mono); }
.reference-clocks { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reference-clocks div { min-width: 0; }
.reference-clocks dt { color: var(--muted); font: 700 8px var(--mono); letter-spacing: .6px; }
.reference-clocks dd { margin: 3px 0 0; color: var(--soft); font: 600 10px/1.35 var(--mono); overflow-wrap: anywhere; }
.reference-chart-wrap { margin: 0; min-width: 0; }
.reference-chart-toolbar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 8px; margin-bottom: 6px;
}
.reference-chart-ranges { display: inline-flex; gap: 3px; }
.reference-chart-ranges button {
    min-width: 34px; padding: 4px 7px; border: 1px solid var(--line-strong);
    border-radius: 2px; background: transparent; color: var(--muted);
    font: 800 9px/1 var(--mono); cursor: pointer;
}
.reference-chart-ranges button:hover,
.reference-chart-ranges button:focus-visible { color: var(--text); border-color: var(--info); outline: none; }
.reference-chart-ranges button[aria-pressed="true"] {
    color: var(--bg-deep); border-color: var(--info); background: var(--info);
}
.reference-price-range {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px 8px;
    color: var(--soft); font: 700 8px/1.3 var(--mono);
}
.reference-chart-surface { position: relative; min-width: 0; }
.reference-chart {
    display: block; width: 100%; max-width: 100%; height: 96px;
    border: 1px solid var(--line); background: rgba(53, 201, 236, .03);
    touch-action: pan-y;
}
.reference-chart:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.supref-line { fill: none; stroke: var(--info); stroke-width: 1.6; }
.reference-point { fill: var(--info); }
.reference-fail-mark { stroke: var(--bear); stroke-width: 1.4; }
.reference-chart-crosshair {
    stroke: var(--focus); stroke-width: 1; stroke-dasharray: 3 2;
    vector-effect: non-scaling-stroke; pointer-events: none;
}
.reference-chart-highlight {
    fill: var(--bg-deep); stroke: var(--focus); stroke-width: 2;
    vector-effect: non-scaling-stroke; pointer-events: none;
}
.reference-chart-tooltip {
    position: absolute; z-index: 2; max-width: min(230px, calc(100% - 12px));
    transform: translate(-50%, -110%); padding: 5px 7px;
    border: 1px solid var(--focus-dim); background: rgba(8, 16, 25, .96);
    color: var(--text); font: 700 9px/1.35 var(--mono);
    pointer-events: none; overflow-wrap: anywhere;
}
.reference-chart-tooltip[hidden] { display: none; }
.reference-chart-caption { margin: 5px 0 0; color: var(--muted); font: 600 9px/1.4 var(--mono); }
.reference-gap-summary { margin-top: 5px; color: var(--muted); font: 600 9px/1.4 var(--mono); }
.reference-gap-summary summary { cursor: pointer; }
.reference-gap-summary ul { margin: 4px 0 0; padding-left: 18px; }
.reference-gap-summary li { overflow-wrap: anywhere; }
.reference-coverage { margin: 0; color: var(--soft); font: 600 10px/1.5 var(--mono); overflow-wrap: anywhere; }
.supplemental-reference-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.supplemental-reference-warnings { margin: 0; padding-left: 16px; color: var(--muted); font: 500 10px/1.5 var(--mono); }
.supplemental-reference-warnings li { overflow-wrap: anywhere; }

/* One event-linked stored-data exception; kept visually subordinate to the
   contract path and Oil Bias and isolated from their view-model state. */
.same-window-reference { margin-top: 2px; min-width: 0; }
.same-window-reference-head { align-items: flex-start; }
.same-window-reference-head p:not(.eyebrow) {
    margin: 5px 0 0; color: var(--muted); font: 600 11px/1.45 var(--mono);
}
.same-window-reference-window {
    max-width: 46%; color: var(--soft); text-align: right;
    font: 650 10px/1.5 var(--mono); overflow-wrap: anywhere;
}
.same-window-reference-status {
    margin: 0; padding: 9px 16px; color: var(--muted);
    border-top: 1px solid var(--line); font: 650 11px/1.5 var(--mono);
}
.same-window-reference-cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; padding: 0 16px 12px; background: var(--line);
}
.same-window-reference-card {
    min-width: 0; display: grid; gap: 5px; padding: 12px;
    background: var(--bg-deep);
}
.same-window-reference-card-head {
    display: flex; justify-content: space-between; gap: 10px;
    color: var(--text); font: 750 12px var(--mono);
}
.same-window-reference-card-head span { color: var(--muted); font-size: 10px; }
.same-window-reference-change { color: var(--focus); font: 800 18px var(--mono); }
.same-window-reference-endpoints,
.same-window-reference-basis { color: var(--soft); font: 650 10px/1.4 var(--mono); }
.same-window-reference-path {
    width: 100%; height: 54px; color: var(--focus); background: var(--bg);
    border: 1px solid var(--line); border-radius: 2px;
}
.same-window-reference-path polyline {
    fill: none; stroke: currentColor; stroke-width: 1.75;
    vector-effect: non-scaling-stroke;
}
.same-window-reference-path:focus-visible {
    outline: 2px solid var(--focus); outline-offset: 2px;
}
.same-window-reference-card small { color: var(--muted); font: 550 10px/1.4 var(--sans); }
.same-window-reference-coverage { overflow-wrap: anywhere; }
.same-window-reference-relation {
    color: var(--focus); font: normal 700 10px/1.4 var(--mono);
}
.same-window-reference-limitations {
    margin: 0; padding: 9px 30px 12px; border-top: 1px solid var(--line);
    color: var(--muted); font: 500 10px/1.5 var(--mono);
}
.same-window-reference[data-state="idle"] .same-window-reference-limitations:empty,
.same-window-reference[data-state="loading"] .same-window-reference-limitations:empty,
.same-window-reference[data-state="unavailable"] .same-window-reference-cards:empty {
    display: none;
}
@media (max-width: 620px) {
    .supplemental-reference-cards { grid-template-columns: minmax(0, 1fr); }
    .same-window-reference-cards { grid-template-columns: minmax(0, 1fr); }
    .same-window-reference-head { display: block; }
    .same-window-reference-window { display: block; max-width: none; margin-top: 8px; text-align: left; }
}
.market-activity-sections {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; background: var(--line);
}
.market-activity-section { min-width: 0; padding: 16px; background: var(--bg); }
.market-activity-section > header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.market-activity-section h4 { margin: 0; color: var(--text); font: 800 13px/1.3 var(--sans); }
.market-activity-section > header span,
.market-activity-section > p { color: var(--muted); font: 700 10.5px/1.45 var(--mono); }
.market-activity-section > p { min-height: 46px; margin: 8px 0 12px; }
.market-activity-rows { display: grid; gap: 9px; }
.market-activity-row { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); }
.market-activity-row > div { display: grid; gap: 4px; }
.market-activity-row strong { color: var(--focus); font: 800 12px/1.35 var(--mono); }
.market-activity-row small { color: var(--soft); font: 650 11px/1.45 var(--mono); }
.market-activity-unavailable { margin: 0; color: var(--muted); font: 650 12px/1.5 var(--sans); }
/* Centered reference sheets in the board's terminal palette. They retain the
   roomy legacy information architecture without changing visual systems. */
.reference-modal-backdrop {
    position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
    padding: 34px; background: rgba(3, 7, 12, .72);
    backdrop-filter: blur(7px);
}
.reference-modal-backdrop.is-hidden, .reference-modal.is-hidden { display: none; }
.reference-modal {
    position: fixed; z-index: 91; top: 50%; left: 50%;
    width: min(1120px, calc(100vw - 68px)); max-height: min(88vh, 900px);
    transform: translate(-50%, -50%); overflow: hidden;
    display: flex; flex-direction: column;
    color: var(--soft); background: var(--bg-raised);
    border: 1px solid var(--line-strong); border-radius: 12px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .48), 0 3px 10px rgba(0, 0, 0, .18);
}
.reference-modal-head {
    min-height: 70px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; padding: 16px 22px;
    border-bottom: 1px solid var(--line-strong); background: var(--bg-deep);
}
.reference-modal-head h2 { margin: 0; color: var(--text); font: 700 18px/1.2 var(--sans); }
.reference-modal-body { min-height: 0; overflow: auto; padding: 0 20px 18px; }
.reference-note {
    margin: 0 -20px 8px; padding: 10px 20px; color: var(--muted);
    background: rgba(53, 201, 236, .035); border-bottom: 1px solid var(--line);
    font: 500 12px/1.45 var(--sans);
}
.reference-modal .market-state { padding: 8px 0; color: var(--muted); font-size: 11px; }
.reference-clear, .reference-close {
    appearance: none; cursor: pointer; color: var(--soft); background: transparent;
    border: 1px solid var(--line); border-radius: 999px;
    font: 600 12px/1 var(--sans);
}
.reference-clear { min-height: 36px; padding: 0 15px; }
.reference-close { width: 36px; height: 36px; border-color: transparent; font-size: 21px; }
.reference-clear:hover, .reference-close:hover { color: var(--text); background: var(--focus-wash); }
.repricings-head-actions { display: flex; align-items: center; gap: 8px; }
.repricings-modal { width: min(1380px, calc(100vw - 68px)); }
.alerts-workspace-eyebrow {
    margin: 0 0 4px; color: var(--focus); font: 750 10px/1.2 var(--mono);
    letter-spacing: .8px;
}
.alerts-workspace-tabs {
    position: sticky; top: 0; z-index: 2; display: flex; gap: 0;
    margin: 0 -20px 8px; padding: 0 20px;
    border-bottom: 1px solid var(--line-strong); background: var(--bg-raised);
}
.alerts-workspace-tabs button {
    min-height: 46px; padding: 0 16px; cursor: pointer;
    border: 0; border-bottom: 2px solid transparent;
    color: var(--muted); background: transparent;
    font: 700 13px var(--sans);
}
.alerts-workspace-tabs button[aria-selected="true"] {
    color: var(--text); border-bottom-color: var(--focus);
}
.alerts-workspace-tabs button strong {
    display: inline-block; min-width: 22px; margin-left: 5px; padding: 2px 6px;
    color: var(--focus); border: 1px solid var(--focus-dim);
    font: 750 10px var(--mono);
}
.alerts-workspace-panel.is-hidden,
#repricings-unread-panel.is-hidden,
.repricings-head-actions .is-hidden { display: none; }
.repricings-modal .alert-filters { margin: 12px 0 0; }
.repricings-rows { display: grid; }
.repricing-family { display: contents; }
.repricing-row {
    display: grid; grid-template-columns: 74px 66px minmax(0, 1fr) auto;
    gap: 14px; align-items: start; padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.repricing-row[hidden] { display: none; }
.repricing-family-sibling { color: var(--muted); background: rgba(255,255,255,.018); }
.repricing-row time { color: var(--muted); font: 500 13px/1.4 var(--sans); white-space: nowrap; }
.repricing-move { padding-top: 1px; font: 650 14px/1.4 var(--sans); white-space: nowrap; }
.repricing-move.is-up { color: var(--bull); }
.repricing-move.is-down { color: var(--bear); }
.repricing-move.is-neutral { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.repricing-main { min-width: 0; }
.repricing-question { color: var(--text); font: 600 15px/1.4 var(--sans); text-decoration: none; }
a.repricing-question:hover { color: var(--info); text-decoration: underline; }
.repricing-family-toggle {
    margin-left: 10px; padding: 0; cursor: pointer; color: var(--info);
    background: transparent; border: 0; font: 600 12px/1.4 var(--sans);
}
.repricing-main p { margin: 5px 0 0; color: var(--soft); font: 400 13px/1.55 var(--sans); }
.repricing-main p b { margin-right: 8px; color: var(--info); font-weight: 650; }
.repricing-facts { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 9px; color: var(--soft); font: 550 14px/1.55 var(--sans); }
.repricing-facts span + span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.repricing-context { display: inline-block; margin-top: 7px; color: var(--info); font: 600 13px/1.4 var(--sans); text-underline-offset: 2px; }
.repricing-notes { display: flex; gap: 10px; color: var(--muted); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.repricing-notes .is-admission { padding: 3px 6px; color: var(--focus); border: 1px dashed var(--focus-dim); }
.tracked-contracts-table { width: 100%; border-collapse: collapse; font: 500 12px/1.4 var(--sans); }
.tracked-contracts-table th {
    position: sticky; top: 0; z-index: 1; padding: 10px 9px;
    color: var(--muted); background: var(--bg-raised); border-bottom: 1px solid var(--line);
    font-size: 10px; font-weight: 650; letter-spacing: .05em; text-align: left;
    text-transform: uppercase; white-space: nowrap;
}
.tracked-contracts-table td { padding: 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tracked-contracts-table tr:hover td { background: rgba(255,255,255,.025); }
.tracked-contracts-table th:first-child, .tracked-contracts-table td:first-child { padding-left: 0; width: 33%; }
.tracked-question { color: var(--text); font-weight: 550; text-decoration: none; }
a.tracked-question:hover { color: var(--info); text-decoration: underline; }
.tracked-question-unavailable { color: var(--muted); }
.tracked-badge { display: inline-block; color: var(--soft); font: 650 10px/1.25 var(--sans); text-transform: uppercase; }
.tracked-badge.is-positive { color: var(--bull); }
.tracked-badge.is-negative { color: var(--bear); }
.tracked-badge.is-neutral { color: var(--focus); }
.tracked-volume { color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.information-drawer { width: min(620px, 96vw); }
.information-drawer .market-claim-note { margin: -14px -18px 10px; }
.information-statuses { display: grid; gap: 5px; margin-bottom: 10px; }
.information-statuses p {
    margin: 0; padding: 7px 9px; border: 1px solid var(--line);
    color: var(--warning); background: rgba(245, 166, 35, .035);
    font: 700 9px/1.4 var(--mono);
}
.information-rows { display: grid; }
.information-row { padding: 14px 0; border-top: 1px solid var(--line); }
.information-row:first-child { border-top: 0; }
.information-row-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; }
.information-row-meta time,
.information-row-meta span { color: var(--muted); font: 700 8.5px/1.35 var(--mono); }
.information-row-meta strong { color: var(--soft); font: 800 9px/1.35 var(--mono); }
.information-row h3 { margin: 9px 0 5px; color: var(--text); font: 700 13px/1.35 var(--sans); }
.information-row p { margin: 9px 0; color: var(--soft); font: 400 11.5px/1.55 var(--sans); overflow-wrap: anywhere; }
.information-link { color: var(--info); font: 700 8.5px/1.4 var(--mono); text-decoration: none; }

@media (max-width: 980px) {
    .market-context,
    .monitored-information { margin-top: 8px; }
    .market-row { grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(90px, .7fr)); }
    .market-activity-sections { grid-template-columns: 1fr; }
    .market-activity-section > p { min-height: 0; }
}

@media (max-width: 620px) {
    .market-context-head,
    .price-movers-head { align-items: flex-start; flex-direction: column; }
    .market-context-actions,
    .price-window-tabs { width: 100%; justify-content: flex-start; }
    .price-movers-rows { overflow-x: visible; }
    .price-movers-table { min-width: 0; display: block; }
    .price-movers-table thead { display: none; }
    .price-movers-table tbody { display: grid; gap: 10px; padding: 10px; }
    .price-movers-table tr {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid var(--line); background: rgba(255,255,255,.018);
    }
    .price-movers-table td {
        min-width: 0; display: grid; gap: 4px; padding: 9px 10px;
        border: 0; border-top: 1px solid var(--line);
    }
    .price-movers-table td::before {
        content: attr(data-label); color: var(--muted);
        font: 700 10px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase;
    }
    .price-movers-table .market-col-question {
        grid-column: 1 / -1; padding-block: 12px; border-top: 0;
    }
    .price-movers-table .market-col-trend { display: none; }
    .price-movers-table .market-question-link,
    .price-movers-table .market-question-unavailable { font-size: 15px; }
    .reference-modal-backdrop { padding: 0; }
    .reference-modal { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
    .reference-modal-body { padding-inline: 14px; }
    .reference-note { margin-inline: -14px; padding-inline: 14px; }
    .alerts-workspace-tabs { margin-inline: -14px; padding-inline: 14px; }
    .alerts-workspace-tabs button { flex: 1 1 0; padding-inline: 8px; }
    .repricings-modal .reference-modal-head { min-height: 60px; padding: 11px 14px; }
    .repricing-row { grid-template-columns: 66px minmax(0, 1fr); gap: 9px 12px; }
    .repricing-move { grid-column: 1; grid-row: 2; }
    .repricing-main { grid-column: 2; grid-row: 1 / span 2; }
    .repricing-notes { grid-column: 2; }
    .tracked-contracts-rows { overflow-x: visible; }
    .tracked-contracts-table { min-width: 0; display: block; }
    .tracked-contracts-table thead { display: none; }
    .tracked-contracts-table tbody { display: grid; gap: 10px; padding-block: 10px; }
    .tracked-contracts-table tr {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid var(--line); background: rgba(255,255,255,.018);
    }
    .tracked-contracts-table td {
        width: auto !important; min-width: 0; display: grid; gap: 4px;
        padding: 10px; border: 0; border-top: 1px solid var(--line);
    }
    .tracked-contracts-table td::before {
        content: attr(data-label); color: var(--muted);
        font: 700 10px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase;
    }
    .tracked-contracts-table .tracked-col-contract {
        order: 1; grid-column: 1 / -1; padding-block: 12px; border-top: 0;
    }
    .tracked-contracts-table .tracked-col-mapping { order: 2; grid-column: 1 / -1; }
    .tracked-contracts-table .tracked-col-confidence { order: 3; }
    .tracked-contracts-table .tracked-col-volume { order: 4; }
    .tracked-contracts-table .tracked-col-why,
    .tracked-contracts-table .tracked-col-theme,
    .tracked-contracts-table .tracked-col-direction { display: none; }
    .evidence-drawer.information-drawer { width: 100%; }
}

/* Live selected-case parity: the primary workspace uses the same chart-led
   terminal grammar as Guided Demo at accepted desktop sizes. Live-only broader
   context remains below this workspace; it is not falsely joined to the case. */
@media (min-width: 1181px) and (min-height: 900px) {
    .app-shell[data-mode="live"] .case-workspace {
        min-height: calc(100vh - 150px);
        max-height: calc(100vh - 120px);
        grid-template-columns: minmax(0, 1.62fr) minmax(390px, .78fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "chart read"
            "chart timeline"
            "same activity";
        overflow: hidden;
    }
    .app-shell[data-mode="live"] .focus-grid,
    .app-shell[data-mode="live"] .evidence-grid { display: contents; }
    .app-shell[data-mode="live"] .spot-panel {
        grid-area: chart; min-height: 0;
        grid-template-rows: auto auto minmax(180px, 1fr) 34px;
    }
    .app-shell[data-mode="live"] .desk-read {
        grid-area: read; min-height: 0; overflow: hidden;
        grid-template-rows: auto auto;
    }
    .app-shell[data-mode="live"] .timeline-panel {
        grid-area: timeline; min-height: 0; overflow: hidden;
        display: grid; grid-template-rows: auto minmax(0, 1fr);
    }
    .app-shell[data-mode="live"] .top-evidence {
        grid-area: activity; min-height: 0; overflow: hidden;
    }
    .app-shell[data-mode="live"] .same-window-reference {
        grid-area: same; min-height: 0; overflow: hidden;
    }
    .app-shell[data-mode="live"] .panel-head { min-height: 44px; padding: 7px 12px; }
    .app-shell[data-mode="live"] .quote-row { gap: 14px; padding: 7px 14px 2px; }
    .app-shell[data-mode="live"] .spot-price { font-size: clamp(44px, 4.2vw, 68px); }
    .app-shell[data-mode="live"] .spot-change { font-size: 20px; }
    .app-shell[data-mode="live"] .chart-wrap,
    .app-shell[data-mode="live"] #spot-chart { min-height: 180px; }
    .app-shell[data-mode="live"] .bias-lockup { padding: 12px 14px; }
    .app-shell[data-mode="live"] .bias-value { font-size: 34px; }
    .app-shell[data-mode="live"] .bias-explanation {
        margin-top: 7px; font-size: 14px; line-height: 1.35;
    }
    .app-shell[data-mode="live"] .trader-read-rows {
        display: none;
    }
    .app-shell[data-mode="live"] .trader-timeline {
        height: auto; min-height: 0; overflow-y: auto; padding: 0 10px 5px;
    }
    .app-shell[data-mode="live"] .timeline-item { padding: 7px 4px 7px 29px; }
    .app-shell[data-mode="live"] .timeline-top strong,
    .app-shell[data-mode="live"] .timeline-top a { font-size: 13px; }
    .app-shell[data-mode="live"] .timeline-item p {
        margin-top: 4px; font-size: 12.5px; line-height: 1.4;
    }
    .app-shell[data-mode="live"] .evidence-list { padding: 7px 9px; }
    .app-shell[data-mode="live"] .evidence-card {
        justify-content: center; padding: 9px 10px;
        background: linear-gradient(90deg, rgba(255,176,0,.035), transparent 70%);
    }
    .app-shell[data-mode="live"] .evidence-card .card-lines {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
    }
    .app-shell[data-mode="live"] .evidence-card .card-line {
        display: grid; gap: 5px; align-content: center; padding-right: 8px;
        border-right: 1px solid var(--line);
    }
    .app-shell[data-mode="live"] .evidence-card .card-line:last-child { border-right: 0; }
    .app-shell[data-mode="live"] .evidence-card .card-line span,
    .app-shell[data-mode="live"] .evidence-card .card-line strong {
        text-align: left; font-size: 10px;
    }
    .app-shell[data-mode="live"] .evidence-card .card-line strong { font-size: 17px; }
}

@media (max-width: 620px) {
    /* FOUND BY LOOKING, at 375px in demo mode: the status cluster shared its
       row with the brand, and once the demo badge appeared it overlapped the
       OILBOARD lockup — the one badge on this page whose whole job is to be
       unmissable, rendered on top of a logo. Hiding it is not the fix (a
       greyscale screenshot must still say DEMO), so the cluster gets its own
       full-width row and wraps inside it. */
    .topbar { grid-template-columns: 1fr; grid-template-rows: 52px auto 44px; }
    .brand-lockup { grid-row: 1; grid-column: 1; }
    .market-status {
        grid-row: 2; grid-column: 1;
        flex-wrap: wrap; justify-content: flex-start;
        padding: 6px 0;
        border-top: 1px solid var(--line);
    }
    .topbar-center { grid-row: 3; grid-column: 1; }
    .market-status .utc-clock { display: none; }
    .status-item { padding: 0 10px; }
    .quote-row { grid-template-columns: 1fr auto; gap: 10px; padding-inline: 13px; }
    .spot-price { font-size: 55px; letter-spacing: -3px; }
    .spot-change { font-size: 18px; }
    .panel-head { padding-inline: 12px; }
    .bias-lockup { padding: 20px 16px; }
    .trader-read-rows { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ── salvage additions (2026-08-13) ──────────────────────────────────────────
   New furniture for the alert-context model: the contract question, the alert
   clock, one categorical direction field where the manufactured 62/38 bar was,
   per-lane categorical state, and the demo badge — which must be legible
   without colour. (The separately-drawn reference path was here too; the
   2026-08-13 correction removed it with the rest of the reference work.) */

.contract-question {
    margin: 6px 0 0;
    max-width: 62ch;
    color: var(--text);
    font: 500 13px/1.4 var(--sans);
}

.alert-clock { text-align: right; }
.alert-clock span { display: block; color: var(--muted); font: 600 8px var(--mono);
    letter-spacing: .12em; }
.alert-clock strong { color: var(--text); font: 800 15px var(--mono); }
.alert-clock time { display: grid; gap: 4px; }
.alert-clock small {
    color: var(--soft);
    font: 700 8px/1.3 var(--mono);
    letter-spacing: .2px;
    white-space: nowrap;
}

/* Demo state carries TEXT and a SHAPE, never colour alone: a greyscale
   screenshot must not be mistakable for live data. */
.mode-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px;
    border: 1px dashed var(--warn, #d3aa50);
    color: var(--warn, #d3aa50);
    font: 800 9px var(--mono); letter-spacing: .12em;
    pointer-events: none;
}
.mode-badge i { font-style: normal; }
.mode-badge.is-hidden { display: none; }
.app-shell[data-mode="demo"] .board { border-top: 2px dashed var(--warn, #d3aa50); }
/* Stored case is real historical data, not a demo: a SOLID rule and the info
   colour, so shape (solid vs demo's dashed vs live's none) distinguishes it
   without relying on colour alone. */
.live-status.is-case { color: var(--info, #4c86c9); }
.app-shell[data-mode="stored_case"] .mode-badge {
    border-style: solid; border-color: var(--info, #4c86c9);
    color: var(--info, #4c86c9);
}
.app-shell[data-mode="stored_case"] .board {
    border-top: 2px solid var(--info, #4c86c9);
}

/* The landing's vertical evidence timeline uses semantic list order and a
   visible spine. */
.timeline-panel { display: block; min-height: 0; }
.trader-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 4px 16px 16px; list-style: none; }
.trader-timeline::before { content: ""; position: absolute; left: 27px; top: 16px; bottom: 28px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline-node { z-index: 1; align-self: start; width: 12px; height: 12px; margin: 3px 0 0 5px; border: 2px solid var(--bg); border-radius: 50%; background: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.timeline-top { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; }
.timeline-top b { color: var(--focus); font: 800 10px var(--mono); }
.timeline-top strong, .timeline-top a { color: var(--text); font: 750 11px/1.35 var(--sans); text-decoration: none; }
.timeline-item time { display: block; margin-top: 3px; color: var(--muted); font: 650 8px/1.4 var(--mono); }
.timeline-item p { margin: 7px 0 0; color: var(--soft); font: 500 11px/1.45 var(--sans); }
.matched-terms { display: block; margin-top: 5px; color: var(--info); font: 650 8px/1.35 var(--mono); }
.timeline-item small { display: block; margin-top: 5px; color: var(--muted); font: 500 8px/1.4 var(--mono); }

@media (max-width: 620px) {
    .trader-timeline { padding-inline: 12px; }
    .trader-timeline::before { left: 23px; }
}

/* `.reference-line` and `.chart-reference-label` drew the USO-proxy oil series
   here. Removed 2026-08-13: the binding spec forbids a reference row in this
   version, so the chart carries ONE series — this contract's probability.

   In its place, the honesty rule for a sparse start/end path. Such a
   path holds exactly two stored points and nothing in between; drawing it solid
   would render an unobserved interval as an observed one. Dashes plus a fatter
   dot on each real endpoint say where the data actually is. */
.chart-line.is-endpoints { stroke-dasharray: 7 5; }
.chart-dot.is-endpoint { stroke: var(--bg, #0b0d10); stroke-width: 2; }

/* On an unavailable screen the hero holds the placeholder `--`, and at hero
   size two dashes in the live accent colour read as a highlighted VALUE — a
   redacted number rather than an absent one. Absent should look absent. */
.app-shell[data-market-state="unavailable"] .spot-price,
.app-shell[data-market-state="unavailable"] .spot-change .change-main {
    color: var(--muted);
}

/* The compliance block is page furniture, not a tooltip: it is the scope of
   everything above it. */
.compliance-block {
    flex: 1 1 100%;
    margin: 8px 0 0;
    padding: 0 0 0 18px;
    color: var(--muted);
    font: 500 10px/1.6 var(--sans);
}
.compliance-block li { margin: 0; }
.footer-links { white-space: nowrap; }

@media (max-width: 900px) {
    .alert-clock { text-align: left; margin-top: 8px; }
    .compliance-block { font-size: 9.5px; }
}



/* The scenario switch moved into `.topbar-center` when the instrument tabs were
   removed; the mobile rule that gave that cell its own row assumed the tabs'
   `align-self: stretch` and left an empty band. Centre the control instead. */
.topbar-center { justify-content: center; }
@media (max-width: 900px) {
    .topbar-center { padding: 7px 0; }
    .scenario-switch { margin-right: 0; }
    /* Two facts sharing one line ran together at 375px. */
    .spot-footer { flex-wrap: wrap; gap: 6px 14px; }
    .spot-source { flex: 1 1 100%; }
}

/* The ≤980px rule hid the scenario switch because the instrument tabs owned
   that row. With the tabs gone the switch IS the row — hiding it left an empty
   band AND removed the only way to see, on a phone, whether the screen is live
   or demo. That control is a safety affordance, not a convenience. */
@media (max-width: 980px) {
    .scenario-switch { display: flex; }
    .topbar-center { padding: 7px 0; }
}

/* The compliance block is the SCOPE of everything above it, so it may not be
   clipped by a fixed-height footer. The shell's last row becomes auto and the
   footer wraps; `overflow: hidden` and `white-space: nowrap` were sized for a
   one-line footer that no longer exists. */
.app-shell { grid-template-rows: var(--header-h) 1fr auto; }
@media (min-width: 981px) and (min-height: 900px) {
    .app-shell { height: auto; min-height: 100vh; }
}
.footerbar {
    height: auto;
    min-height: var(--footer-h);
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 8px 13px 10px;
    overflow: visible;
    white-space: normal;
    line-height: 1.5;
}
@media (max-width: 980px) {
    /* The link row may collapse on a phone; the compliance block never does. */
    .footerbar .footer-links { display: none; }
    .footerbar .compliance-block { display: block; }
}

/* ── In-page evidence drawer (Pass 2) ─────────────────────────────────────── */
.action-btn { cursor: pointer; }
button.action-btn { appearance: none; -webkit-appearance: none; }
.action-btn-primary { color: var(--bg); background: var(--focus); border-color: var(--focus); }
.action-btn-primary:hover { background: #ffc23a; }
button.action-btn:disabled { color: var(--muted); background: transparent;
    border-color: var(--line); opacity: .5; pointer-events: none; }

.evidence-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(3, 7, 12, .72); backdrop-filter: blur(2px);
}
.evidence-backdrop.is-hidden, .evidence-drawer.is-hidden { display: none; }

.evidence-drawer {
    position: fixed; z-index: 91; top: 0; right: 0; bottom: 0;
    width: min(480px, 94vw);
    display: flex; flex-direction: column;
    background: var(--bg-raised); border-left: 1px solid var(--line-strong);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
    overflow: hidden;
}
.evidence-drawer-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
}
.evidence-eyebrow { font: 700 8.5px var(--mono); letter-spacing: 1.4px; color: var(--muted); }
.evidence-drawer-head h2 { margin: 4px 0 2px; font: 700 15px var(--sans); color: var(--text); }
.evidence-alert-clock { font: 700 10px var(--mono); letter-spacing: .6px; color: var(--focus); }
.evidence-close {
    flex: 0 0 auto; width: 30px; height: 30px; cursor: pointer;
    background: transparent; border: 1px solid var(--line); border-radius: 5px;
    color: var(--soft); font-size: 20px; line-height: 1;
}
.evidence-close:hover, .evidence-close:focus-visible { color: var(--text); border-color: var(--line-strong); }

.evidence-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; }
.evidence-state { font: 600 11px var(--sans); color: var(--muted); padding: 8px 0; }
.evidence-state.is-hidden { display: none; }
.evidence-summary { font: 400 12.5px/1.55 var(--sans); color: var(--soft); margin-bottom: 14px; }
.evidence-visualization { display: grid; gap: 9px; margin-bottom: 14px; }
.evidence-visualization:empty { display: none; }
.evidence-visualization-head { display: grid; gap: 3px; }
.evidence-visualization-head strong { color: var(--info); font: 800 10px var(--mono); letter-spacing: .5px; }
.evidence-visualization-head span { color: var(--muted); font: 10px/1.4 var(--sans); }
.evidence-detail-chart { width: 100%; height: auto; border: 1px solid var(--line); background: var(--bg-deep); }
.evidence-detector-band { fill: rgba(53, 201, 236, .09); stroke: var(--info); stroke-dasharray: 3 3; }
.evidence-detector-connector { stroke: var(--focus); stroke-width: 2; stroke-dasharray: 6 5; }
.evidence-captured-point { fill: var(--text); stroke: var(--bg); stroke-width: 1.5; }
.evidence-detector-point { fill: var(--focus); stroke: var(--bg); stroke-width: 2; }
.evidence-alert-marker { stroke: var(--warning); stroke-width: 1.5; }
.evidence-source-marker circle { fill: var(--info); }
.evidence-source-marker text { fill: var(--bg); font: 800 8px var(--mono); }
.evidence-axis-label, .evidence-alert-label { fill: var(--muted); font: 700 8px var(--mono); }
.evidence-alert-label { fill: var(--warning); }
.evidence-detector-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; color: var(--soft); font: 700 9px/1.4 var(--mono); }
.evidence-source-markers { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.evidence-source-markers li { display: grid; gap: 2px; padding: 7px; border: 1px solid var(--line); }
.evidence-source-markers a { color: var(--info); font: 800 9px var(--mono); text-decoration: none; }
.evidence-source-markers span { color: var(--muted); font: 9px/1.45 var(--mono); }
.evidence-tape { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 5px; }
.evidence-tape strong, .evidence-tape span { padding: 7px; border: 1px solid var(--line); color: var(--soft); font: 700 8.5px/1.35 var(--mono); }
.evidence-tape strong { color: var(--focus); }
.evidence-cards { display: grid; gap: 10px; }
.evidence-window { margin-top: 14px; }
.evidence-window-row {
    display: flex; justify-content: space-between; gap: 10px;
    font: 600 11px var(--mono); color: var(--soft);
    padding: 8px 0; border-top: 1px solid var(--line);
}
.evidence-window-row strong { color: var(--text); }
.evidence-gaps { margin-top: 8px; font: 400 11px/1.5 var(--sans); color: var(--muted); }
.evidence-gaps ul { margin: 4px 0 0; padding-left: 16px; }
.evidence-gaps li { color: var(--soft); }

.evidence-drawer-foot { border-top: 1px solid var(--line); padding: 12px 18px 16px; }
.evidence-drawer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.compliance-compact { margin: 0; padding-left: 16px; list-style: decimal; }
.compliance-compact li { font: 400 9.5px/1.4 var(--sans); color: var(--muted); margin-bottom: 2px; }

.agent-citation { color: var(--info); font: 700 11px var(--mono); text-decoration: none; }
.agent-citation:hover { color: var(--text); text-decoration: underline; }
.citation-e { color: var(--bull); }
.agent-step {
    padding: 4px 6px; border: 1px solid var(--line); color: var(--muted);
    font: 700 9px/1 var(--mono);
}
.agent-step-done { color: var(--bull); }
.agent-step-error { color: var(--bear); }

/* ── On-demand board-wide Trader Agent ────────────────────────────────── */
.trader-agent-launcher {
    position: fixed; z-index: 89; right: 18px; bottom: 18px;
    display: flex; align-items: center; gap: 10px; min-width: 206px;
    padding: 10px 13px 10px 10px; cursor: pointer; text-align: left;
    color: var(--text); background: rgba(13, 23, 37, .97);
    border: 1px solid var(--line-strong); border-radius: 9px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .46);
}
.trader-agent-launcher:hover,
.trader-agent-launcher:focus-visible { border-color: var(--info); outline: none; }
.trader-agent-launcher.is-open { display: none; }
.trader-agent-launcher-mark {
    display: grid; place-items: center; width: 35px; height: 35px;
    color: var(--bg); background: var(--focus); border-radius: 7px;
    font: 800 10px var(--mono); letter-spacing: .5px;
}
.trader-agent-launcher strong,
.trader-agent-launcher small { display: block; }
.trader-agent-launcher strong { font: 700 12px var(--sans); }
.trader-agent-launcher small { margin-top: 3px; color: var(--muted); font: 9px var(--mono); }
.trader-agent-backdrop:not(.is-hidden) { display: none; }
.trader-agent-rail {
    position: fixed; z-index: 90; top: auto; right: 18px;
    bottom: 78px; width: min(540px, calc(100vw - 36px));
    height: min(760px, calc(100vh - 100px));
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid var(--line-strong); border-radius: 8px;
    background: rgba(8, 14, 23, .985); box-shadow: 0 24px 70px rgba(0,0,0,.55);
    overflow: hidden;
}
.trader-agent-rail.is-hidden { display: none; }
.trader-agent-rail > header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding: 14px 15px 12px; border-bottom: 1px solid var(--line);
}
.trader-agent-rail h2 { margin: 3px 0 0; font-size: 18px; }
.agent-state { color: var(--focus); font: 700 8px var(--mono); letter-spacing: .7px; }
.trader-agent-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.trader-agent-head-actions button { padding: 4px 6px; cursor: pointer; color: var(--info); background: transparent; border: 1px solid var(--line); font: 700 8px var(--mono); }
.trader-agent-close { min-width: 27px; font-size: 15px !important; }
.trader-agent-thread { min-height: 0; padding: 16px; overflow-y: auto; }
.trader-agent-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.trader-agent-scope button {
    padding: 8px; cursor: pointer; color: var(--muted); background: transparent;
    border: 1px solid var(--line); font: 800 9px var(--mono); letter-spacing: .6px;
}
.trader-agent-scope button.is-active { color: var(--bg); background: var(--info); border-color: var(--info); }
.trader-agent-scope button:disabled { cursor: not-allowed; opacity: .45; }
.trader-agent-case-pin { margin: 0 0 10px; padding: 9px; color: var(--focus); background: var(--focus-wash); border: 1px solid var(--focus-dim); font: 700 10px/1.45 var(--mono); overflow-wrap: anywhere; }
.trader-agent-case-pin.is-hidden, #trader-agent-board-brief.is-hidden { display: none; }
.trader-agent-message { margin-bottom: 11px; padding: 11px; border: 1px solid var(--line); background: var(--bg-deep); }
.trader-agent-message.is-user { margin-left: 30px; border-color: var(--focus-dim); background: var(--focus-wash); }
.trader-agent-message strong { display: block; margin-bottom: 7px; color: var(--info); font: 700 10px var(--mono); text-transform: uppercase; }
.trader-agent-message.is-user strong { color: var(--focus); }
.trader-agent-message p, #trader-agent-brief { margin: 0; color: var(--soft); font: 14px/1.55 var(--sans); overflow-wrap: anywhere; }
#trader-agent-brief small { display: block; margin-top: 8px; color: var(--muted); font: 9px/1.4 var(--mono); }
.trader-agent-brief-items .trader-agent-honesty {
    margin-top: 1px; color: var(--warning); font: 600 11.5px/1.4 var(--sans);
}
.trader-agent-final-meta { display: block; margin-top: 8px; color: var(--muted); font: 9px/1.4 var(--mono); }
.trader-agent-brief-items { display: grid; gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.trader-agent-brief-items a,
.trader-agent-brief-items button,
.trader-agent-brief-item { width: 100%; display: grid; gap: 3px; padding: 9px; border: 1px solid var(--line); color: var(--soft); background: transparent; text-align: left; text-decoration: none; font: 12px/1.45 var(--sans); }
.trader-agent-brief-items button { cursor: pointer; }
.trader-agent-brief-items a:hover,
.trader-agent-brief-items button:hover { border-color: var(--info); color: var(--text); }
.trader-agent-brief-items span { color: var(--info); font: 700 8px var(--mono); text-transform: uppercase; }
.trader-agent-welcome { padding-top: 5px; }
.trader-agent-welcome.is-hidden { display: none; }
.trader-agent-welcome h3 { margin: 0 0 8px; color: var(--text); font-size: 15px; }
#trader-agent-suggestions { display: grid; gap: 6px; }
#trader-agent-suggestions button {
    padding: 8px 9px; text-align: left; cursor: pointer; color: var(--info);
    background: transparent; border: 1px solid var(--line); font: 700 10px/1.4 var(--mono);
}
#trader-agent-suggestions button:hover { border-color: var(--info); color: var(--text); }
.trader-agent-rail > footer { padding: 11px 12px 12px; border-top: 1px solid var(--line); }
.trader-agent-trace { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.trader-agent-trace:empty { display: none; }
.trader-agent-choices { display: grid; gap: 5px; margin-top: 7px; }
.trader-agent-choices button { padding: 7px; cursor: pointer; text-align: left; color: var(--info); background: transparent; border: 1px solid var(--line); font: 9px/1.35 var(--mono); }
.trader-agent-compose { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 7px; }
.trader-agent-compose.is-hidden { display: none; }
.trader-agent-compose input { min-width: 0; padding: 10px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line-strong); }
.trader-agent-compose button { border: 0; background: var(--focus); color: var(--bg); font-weight: 900; cursor: pointer; }
.trader-agent-compose button:disabled { opacity: .45; cursor: wait; }
#trader-agent-status { margin: 7px 0 0; color: var(--muted); font: 9px/1.4 var(--mono); }
#trader-agent-status a { color: var(--info); }
.trader-agent-auth { margin-bottom: 8px; padding: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.trader-agent-auth.is-hidden { display: none; }
.trader-agent-auth-heading, .trader-agent-auth-signed { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trader-agent-auth-heading { margin-bottom: 8px; }
.trader-agent-auth-heading strong { color: var(--text); font: 700 13px var(--sans); }
.trader-agent-auth button { cursor: pointer; color: var(--info); background: transparent; border: 1px solid var(--line-strong); font: 700 10px var(--mono); }
.trader-agent-auth-heading button, .trader-agent-auth-signed button { padding: 6px 8px; }
.trader-agent-auth label { display: grid; gap: 4px; margin-top: 7px; color: var(--muted); font: 700 9px var(--mono); text-transform: uppercase; }
.trader-agent-auth input { min-width: 0; padding: 9px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line-strong); font: 500 12px var(--sans); text-transform: none; }
#trader-agent-auth-submit { width: 100%; padding: 9px; color: var(--bg); background: var(--focus); border-color: var(--focus); }
#trader-agent-auth-error { min-height: 0; margin: 6px 0; color: var(--bear); font: 10px/1.35 var(--sans); }
#trader-agent-auth-error:empty { display: none; }
.trader-agent-auth-signed.is-hidden, .trader-agent-auth-form.is-hidden { display: none; }
.trader-agent-auth-signed span { min-width: 0; overflow-wrap: anywhere; color: var(--text); font: 600 11px var(--sans); }

.app-shell:not([data-mode="live"]) ~ .trader-agent-launcher,
.app-shell:not([data-mode="live"]) ~ .trader-agent-rail { display: none; }

@media (max-width: 620px) {
    .related-contract-row { grid-template-columns: 1fr; }
    .related-contract-link, .related-contract-link-unavailable { white-space: normal; }
    .evidence-drawer {
        top: auto; left: 0; right: 0; bottom: 0; width: 100%;
        max-height: 90vh; border-left: none; border-top: 1px solid var(--line-strong);
        border-radius: 14px 14px 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .6);
    }
    .trader-agent-launcher { right: 12px; bottom: 12px; min-width: 0; padding: 8px; }
    .trader-agent-launcher > span:last-child { display: none; }
    .trader-agent-backdrop:not(.is-hidden) { display: block; }
    .trader-agent-rail {
        top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100dvh;
        max-height: 100dvh; border: 0; border-radius: 0;
    }
    .trader-agent-thread { padding-bottom: 22px; }
    #trader-agent-suggestions button { padding: 10px; font-size: 12.5px; line-height: 1.45; }
}

/* ── Guided desktop workspace ──────────────────────────────────────────────
   Bloomberg Launchpad / LSEG-style panel density: one selected case owns one
   workspace. The chart remains dominant; the decision, chronology and tape sit
   in a right rail. At narrower or shorter viewports the semantic source order
   above remains the readable stacked fallback. */
.case-workspace { min-width: 0; min-height: 0; display: grid; gap: 10px; }
.app-shell[data-guided-demo="true"] #broader-market-context,
.app-shell[data-guided-demo="true"] .monitored-information { display: none; }

@media (min-width: 1181px) and (min-height: 900px) {
    body:has(.app-shell[data-guided-demo="true"]) { overflow-y: auto; }
    .app-shell[data-guided-demo="true"] .market-status .live-status,
    .app-shell[data-guided-demo="true"] .market-status .freshness { display: none; }
    .app-shell[data-guided-demo="true"] {
        height: auto; min-height: 100vh;
        grid-template-rows: var(--header-h) auto auto;
    }
    .app-shell[data-guided-demo="true"] .board {
        min-height: 0; height: auto; padding: 8px; gap: 8px;
        grid-template-rows: auto auto; overflow: visible;
    }
    .app-shell[data-guided-demo="true"] .event-nav {
        min-height: 52px; flex-wrap: nowrap; gap: 8px;
    }
    .app-shell[data-guided-demo="true"] .event-nav-select,
    .app-shell[data-guided-demo="true"] .event-nav-meta,
    .app-shell[data-guided-demo="true"] .guided-case-label { display: none; }
    .app-shell[data-guided-demo="true"] .guided-case-library {
        order: -1; width: auto; flex: 1 1 auto; padding: 0;
        border-top: 0; align-items: stretch;
    }
    .app-shell[data-guided-demo="true"] .case-choice {
        min-width: 0; flex: 1 1 0; padding: 7px 10px;
        border-left: 3px solid var(--line);
    }
    .app-shell[data-guided-demo="true"] .case-choice span { font-size: 10px; }
    .app-shell[data-guided-demo="true"] .case-choice.is-active {
        border-left-color: var(--focus);
        background: linear-gradient(90deg, var(--focus-wash), rgba(255,255,255,.018));
    }
    .app-shell[data-guided-demo="true"] .event-actions {
        flex: 0 0 auto; margin-left: 0; flex-wrap: nowrap;
    }
    .app-shell[data-guided-demo="true"] .related-contracts { display: none; }
    .app-shell[data-guided-demo="true"] .case-workspace {
        height: calc(100vh - var(--header-h) - 95px);
        min-height: 720px;
        grid-template-columns: minmax(0, 1.62fr) minmax(390px, .78fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "chart read"
            "chart timeline"
            "same activity";
        overflow: hidden;
    }
    .app-shell[data-guided-demo="true"][data-case-proof="true"] .case-workspace {
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "chart read"
            "chart timeline"
            "proof activity"
            "same same";
    }
    .app-shell[data-guided-demo="true"] .focus-grid,
    .app-shell[data-guided-demo="true"] .evidence-grid { display: contents; }
    .app-shell[data-guided-demo="true"] .spot-panel {
        grid-area: chart; min-height: 0;
        grid-template-rows: auto auto minmax(130px, 1fr) 30px;
    }
    .app-shell[data-guided-demo="true"] .desk-read {
        grid-area: read; min-height: 0; overflow: hidden;
        grid-template-rows: auto auto;
    }
    .app-shell[data-guided-demo="true"] .timeline-panel {
        grid-area: timeline; min-height: 0; overflow: hidden;
        display: grid; grid-template-rows: auto minmax(0, 1fr);
    }
    .app-shell[data-guided-demo="true"] .top-evidence { grid-area: activity; min-height: 0; overflow: hidden; }
    .app-shell[data-guided-demo="true"] .demo-proof { grid-area: proof; min-height: 0; }
    .app-shell[data-guided-demo="true"] .same-window-reference {
        grid-area: same; min-height: 0; overflow: hidden;
    }
    .app-shell[data-guided-demo="true"] .panel-head { min-height: 44px; padding: 7px 12px; }
    .app-shell[data-guided-demo="true"] .panel-head h1,
    .app-shell[data-guided-demo="true"] .panel-head h2 { font-size: 16px; }
    .app-shell[data-guided-demo="true"] .contract-question,
    .app-shell[data-guided-demo="true"] .bias-explanation { font-size: 14px; line-height: 1.35; }
    .app-shell[data-guided-demo="true"] .quote-row { gap: 14px; padding: 7px 14px 2px; }
    .app-shell[data-guided-demo="true"] .spot-price { font-size: clamp(44px, 4.2vw, 68px); }
    .app-shell[data-guided-demo="true"] .spot-change { font-size: 20px; }
    .app-shell[data-guided-demo="true"] .chart-wrap,
    .app-shell[data-guided-demo="true"] #spot-chart { min-height: 130px; }

    .app-shell[data-guided-demo="true"] .bias-lockup { padding: 12px 14px; }
    .app-shell[data-guided-demo="true"] .bias-value { font-size: 34px; }
    .app-shell[data-guided-demo="true"] .bias-explanation { margin-top: 7px; }
    .app-shell[data-guided-demo="true"] .trader-read-rows {
        display: none;
    }

    .app-shell[data-guided-demo="true"] .trader-timeline {
        height: auto; min-height: 0; overflow-y: auto; padding: 0 10px 5px;
        scrollbar-color: var(--focus) var(--panel);
        scrollbar-width: thin;
    }
    .app-shell[data-guided-demo="true"] .trader-timeline::before { left: 20px; top: 8px; bottom: 12px; }
    .app-shell[data-guided-demo="true"] .timeline-item { padding: 7px 4px 7px 29px; }
    .app-shell[data-guided-demo="true"] .timeline-node { left: 5px; top: 10px; }
    .app-shell[data-guided-demo="true"] .timeline-top strong,
    .app-shell[data-guided-demo="true"] .timeline-top a { font-size: 13px; }
    .app-shell[data-guided-demo="true"] .timeline-item time,
    .app-shell[data-guided-demo="true"] .timeline-top b,
    .app-shell[data-guided-demo="true"] .timeline-item small { font-size: 9px; }
    .app-shell[data-guided-demo="true"] .timeline-item p {
        margin-top: 4px; font-size: 12.5px; line-height: 1.4;
    }
    .app-shell[data-guided-demo="true"] .matched-terms { display: none; }
    .app-shell[data-guided-demo="true"][data-timeline-density="compact"] .timeline-item {
        padding-top: 5px; padding-bottom: 5px;
    }
    .app-shell[data-guided-demo="true"][data-timeline-density="compact"] .timeline-top strong,
    .app-shell[data-guided-demo="true"][data-timeline-density="compact"] .timeline-top a {
        font-size: 12.5px;
    }
    .app-shell[data-guided-demo="true"][data-timeline-density="compact"] .timeline-item p {
        margin-top: 3px; font-size: 12.5px; line-height: 1.35;
    }
    .app-shell[data-guided-demo="true"][data-timeline-density="compact"] .timeline-item time {
        margin-top: 0; line-height: 1.15;
    }

    .app-shell[data-guided-demo="true"] .evidence-list { padding: 7px 9px; }
    .app-shell[data-guided-demo="true"] .top-evidence .evidence-list { grid-auto-rows: 1fr; }
    .app-shell[data-guided-demo="true"] .evidence-card {
        justify-content: center; padding: 9px 10px;
        background: linear-gradient(90deg, rgba(255,176,0,.035), transparent 70%);
    }
    .app-shell[data-guided-demo="true"] .evidence-card .card-lines {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
    }
    .app-shell[data-guided-demo="true"] .evidence-card .card-line {
        display: grid; gap: 5px; align-content: center; padding-right: 8px;
        border-right: 1px solid var(--line);
    }
    .app-shell[data-guided-demo="true"] .evidence-card .card-line:last-child { border-right: 0; }
    .app-shell[data-guided-demo="true"] .evidence-card .card-line span,
    .app-shell[data-guided-demo="true"] .evidence-card .card-line strong {
        text-align: left; font-size: 10px;
    }
    .app-shell[data-guided-demo="true"] .evidence-card .card-line strong { font-size: 17px; }

    .app-shell[data-guided-demo="true"] .demo-proof .proof-head {
        min-height: 54px; display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
        align-items: center; gap: 14px; padding: 8px 12px;
    }
    .app-shell[data-guided-demo="true"] .proof-head h2 { font-size: 16px; }
    .app-shell[data-guided-demo="true"] .proof-current-read {
        margin: 0; padding: 7px 9px; font-size: 11px; line-height: 1.3;
    }
    .app-shell[data-guided-demo="true"] .framework-flow {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 6px; margin: 8px; align-content: stretch;
    }
    .app-shell[data-guided-demo="true"] .framework-stage {
        min-height: 0; padding: 7px 8px;
    }
    .app-shell[data-guided-demo="true"] .framework-stage:nth-child(-n+3) { grid-column: span 4; }
    .app-shell[data-guided-demo="true"] .framework-stage:nth-child(n+4) { grid-column: span 3; }
    .app-shell[data-guided-demo="true"] .framework-stage span { font-size: 8px; }
    .app-shell[data-guided-demo="true"] .framework-stage strong { font-size: 10.5px; line-height: 1.3; }
    .app-shell[data-guided-demo="true"] .framework-stage::after { display: none; }

    .app-shell[data-guided-demo="true"] .footerbar {
        min-height: 0; padding: 4px 10px 5px; gap: 0;
    }
    .app-shell[data-guided-demo="true"] .footerbar > span { display: none; }
    .app-shell[data-guided-demo="true"] .footerbar .compliance-block {
        display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0;
        list-style: none; font-size: 8px; line-height: 1.25;
    }
    .app-shell[data-guided-demo="true"] .footerbar .compliance-block li::before {
        content: "• "; color: var(--focus);
    }
}

@media (min-width: 621px) and (max-width: 980px) {
    .alert-filters { grid-template-columns: minmax(0, 1fr); }
    .alert-filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #alert-filter-status { grid-column: 1; }
    .rapid-screener-row { grid-template-columns: 34px 130px minmax(0, 1fr); }
    .rapid-screener-admission { grid-column: 2 / -1; }
}

/* Mobile trader scan order and compact status header. Kept after the general
   touch-target rules so the header dimensions describe the final cascade. */
@media (max-width: 620px) {
    .topbar { grid-template-rows: 44px 44px; }
    .brand-lockup { padding-inline: 12px; }
    .brand { font-size: 17px; }
    .market-status {
        grid-row: 2; grid-column: 1 / span 2; width: 100%;
        min-width: 0; justify-content: flex-start; flex-wrap: nowrap; gap: 6px;
        overflow-x: auto; padding: 5px 8px; scrollbar-width: none;
    }
    .market-status::-webkit-scrollbar { display: none; }
    .market-status .live-status { display: none; }
    .tracked-count { height: 44px; padding-inline: 8px; font-size: 10px; }
    .tracked-count strong { font-size: 13px; }
    #tracked-contracts-open {
        flex: 0 0 44px; width: 44px; height: 44px;
        display: grid; grid-template-rows: auto auto;
        justify-items: center; align-content: center; gap: 1px;
        padding: 2px; white-space: normal; overflow: hidden;
    }
    #tracked-contracts-open strong { line-height: 1; }
    #tracked-contracts-open span { font-size: 7px; line-height: 1; letter-spacing: .2px; }
    .classifier-status { height: 44px; padding-inline: 8px; font-size: 9px; }
    .classifier-status strong { font-size: 10px; }
    .topbar-center {
        display: flex; grid-row: 1; grid-column: 2;
        justify-content: flex-end; padding-right: 8px;
        border: 0;
    }
    .scenario-switch { display: flex; margin-right: 0; }
    .scenario-btn { padding-inline: 7px; letter-spacing: .2px; }

    .event-nav {
        display: grid; grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px; padding: 7px 8px;
    }
    .event-nav-select { min-width: 0; justify-content: space-between; gap: 5px; }
    .event-nav-meta { display: none; }
    .event-more-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 56px; min-height: 44px; padding: 7px 9px;
        color: var(--focus); background: var(--focus-wash);
        border: 1px solid var(--focus-dim); cursor: pointer;
        font: 700 11px/1 var(--mono); letter-spacing: .5px;
    }
    .event-more-panel {
        display: none; grid-column: 1 / -1; gap: 8px;
        padding-top: 8px; border-top: 1px solid var(--line);
    }
    .event-more-panel.is-open { display: grid; }
    .guided-case-library { grid-column: 1 / -1; }
    .event-actions {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
    }
    .event-actions .action-btn {
        justify-content: center; white-space: normal; text-align: center;
    }
    .related-contracts { padding-top: 0; border-top: 0; }

    .alert-filters { display: grid; grid-template-columns: minmax(0, 1fr); padding: 9px; }
    .alert-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alert-filter-fields label:last-of-type { grid-column: 1 / -1; }
    .alert-filter-fields input, .alert-filter-fields select,
    .alert-filter-fields button { min-height: 44px; }
    .evidence-detector-facts { grid-template-columns: 1fr; }
    .evidence-tape { grid-template-columns: 1fr 1fr; }
    #alert-filter-status { grid-column: 1; overflow-wrap: anywhere; }
    .rapid-alert-results-head { align-items: flex-start; flex-direction: column; }
    .rapid-alert-page-controls { width: 100%; justify-content: space-between; }
    .rapid-alert-page-controls button { min-height: 44px; }
    .rapid-screener-row { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; }
    .rapid-screener-clock, .rapid-screener-main,
    .rapid-screener-admission { grid-column: 2; }
    .rapid-alert-results { max-height: 440px; }

    .focus-grid { display: flex; flex-direction: column; }
    .spot-panel { order: 1; margin-top: 0; }
    .desk-read { order: 2; margin-top: 8px; }
    .spot-head { display: grid; grid-template-columns: minmax(0, 1fr); }
    .alert-clock {
        display: flex; align-items: start; gap: 12px;
        margin-top: 8px; padding-top: 8px;
        border-top: 1px solid var(--line);
    }
    .alert-clock time { margin-left: auto; text-align: right; }

    .price-movers-head { gap: 10px; padding: 12px; }
    .price-movers-head p { display: none; }
    .price-window-tabs {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .price-sort-tabs {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }
    .price-window-tabs button, .price-sort-tabs button { width: 100%; padding-inline: 6px; }
}

/* Pass 11 — readable, source-order landing. */
.board { max-width: 1680px; margin-inline: auto; grid-template-rows: none; }
.focus-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "read" "chart";
}
.desk-read, .spot-panel, .timeline-panel, .top-evidence { min-height: auto; }
.top-evidence { max-height: none; overflow: visible; }
.desk-read { grid-template-rows: auto auto 1fr; }
.spot-panel { min-height: 560px; }
.evidence-grid { grid-template-columns: minmax(0, 1fr); }

.panel-head h1, .panel-head h2,
.market-context-head h2, .evidence-drawer-head h2 { font-size: 18px; }
.contract-question, .bias-explanation,
.timeline-item p, .market-context-head p, .market-claim-note,
.information-note, .evidence-summary, .card-note {
    max-width: 75ch; font-size: 15px; line-height: 1.55;
}
.eyebrow, .desk-name, .status-item, .event-position, .event-time,
.event-siblings, .related-contracts-heading, .related-contract-role,
.related-contract-link, .related-contract-link-unavailable,
.related-contract-note, .basis-badge, .spot-change small,
.quote-context span, .spot-source, .timeline-anchor, .timeline-item time,
.matched-terms, .timeline-item small, .card-badge, .card-line span,
.evidence-source,
.alert-clock span, .alert-clock small, .mode-badge, .footerbar, .compliance-block {
    font-size: 11px;
}
.panel-head h2 small, .related-contract-question, .chart-loading,
.timeline-top b, .card-link, .market-state, .market-cell,
.market-cell small, .market-link, .market-context-foot a,
.information-status, .information-row-meta strong,
.evidence-alert-clock, .compliance-compact li { font-size: 11px; }
.quote-context strong { font-size: 14px; }
.information-statuses p, .information-row-meta time,
.information-row-meta span, .information-link { font-size: 11px; }
.market-row-question, .information-row p { font-size: 15px; }
.market-cell, .information-row h3 { font-size: 14px; }
.price-movers-head p, .evidence-empty p, .evidence-gaps { font-size: 15px; }
.evidence-window-row { font-size: 14px; }
.related-contract-question, .timeline-top strong, .timeline-top a {
    font-size: 15px;
}
.market-context-head p:not(.eyebrow) { font-size: 15px; }
.chart-axis-label, .chart-event-label { font-size: 12px; }
.action-btn, .nav-btn, .scenario-btn, .price-window-tabs button { font-size: 12px; }

.trader-read-rows {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; padding: 18px 24px 24px;
}
.trader-read-rows > div {
    min-width: 0; padding: 16px; border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}
.trader-read-rows dt { font-size: 11px; }
.trader-read-rows dd { font-size: 15px; max-width: 75ch; }
.evidence-list {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 12px; padding: 16px; overflow: visible;
}
.evidence-card { border: 1px solid var(--line); }
.card-line strong { font-size: 14px; }

:where(button, a, [tabindex]):focus-visible {
    outline: 3px solid var(--focus); outline-offset: 3px;
}

@media (max-width: 1180px) {
    .evidence-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
    body { font-size: 15px; }
    .board { padding: 8px; }
    .focus-grid { display: flex; flex-direction: column; }
    .spot-panel { order: 1; margin-top: 0; }
    .desk-read { order: 2; margin-top: 8px; }
    .trader-read-rows { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .spot-panel { min-height: 480px; }
    .nav-btn, .scenario-btn, .action-btn,
    .price-window-tabs button, .evidence-close { min-height: 44px; min-width: 44px; }
    a[href], button, [role="button"] {
        display: inline-flex; align-items: center;
        min-width: 44px; min-height: 44px;
    }
}
