:root {
  font-family: "Roboto Condensed", Arial, sans-serif;
  color: var(--ink); background: var(--mist); font-synthesis: none;
}
* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--mist); color: var(--ink); }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--green-deep); }
button, input, select { font: inherit; }
button, a, input, select, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #006d78; box-shadow: 0 0 0 2px white; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 14px; top: 8px; z-index: 100; padding: 10px 14px; background: white; color: var(--navy-900); border: 2px solid #006d78; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.topbar { min-height: 68px; padding: 0 clamp(14px,2.4vw,38px); display: grid; grid-template-columns: 185px minmax(340px,1fr) 190px auto auto; align-items: center; gap: 20px; color: #f7fbfc; background: var(--navy-950); border-bottom: 1px solid #20405c; position: sticky; top: 0; z-index: 30; }
.main-nav { display: flex; align-self: stretch; gap: 4px; }
.main-nav a { color: #c7d8df; text-decoration: none; padding: 0 17px; display: grid; place-items: center; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: white; border-bottom-color: var(--green); background: #0b2440; }
.main-nav a.admin-panel-link { color: white; font-weight: 700; background: var(--navy-800); border-bottom-color: var(--green); white-space: nowrap; }
.top-search { position: relative; }
.top-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.top-search input:not([type="hidden"]) { width: 100%; height: 44px; padding: 9px 46px 9px 10px; border: 1px solid #38556b; border-radius: var(--radius); background: #0a233e; color: white; }
.top-search input::placeholder { color: #9eb8c3; }
.top-search button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--green); cursor: pointer; }
.top-search svg { width: 17px; height: 17px; }
.topbar-status { display: flex; align-items: center; gap: 9px; color: #a9c2cc; font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 2px 2px 8px rgba(91,191,59,.46); }
.user-menu { position: relative; }
.user-menu summary { min-height: 44px; padding: 14px 8px; cursor: pointer; list-style: none; color: white; font-size: 13px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] > div { position: absolute; right: 0; top: 34px; min-width: 210px; background: white; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--rule); padding: 8px; z-index: 40; }
.user-menu a, .user-menu button { display: block; width: 100%; padding: 10px 12px; color: var(--ink); background: none; border: 0; text-decoration: none; text-align: left; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--mist); }

.signal-ticker { min-height: 64px; color: #e8f3f4; background: var(--navy-800); display: grid; grid-template-columns: 155px repeat(5,minmax(180px,1fr)); align-items: stretch; overflow-x: auto; border-bottom: 1px solid #35556b; }
.signal-ticker > strong { padding: 16px 22px; color: var(--green); text-transform: uppercase; font-size: 12px; letter-spacing: .07em; display: grid; align-items: center; }
.signal-ticker a { color: #e8f3f4; text-decoration: none; font-size: 12px; line-height: 1.35; padding: 12px 16px; border-left: 1px solid #426277; min-width: 220px; }
.signal-ticker a:hover { background: #103451; }
.signal-ticker a span { display: inline-block; color: var(--green); font-weight: 700; margin-right: 8px; }
.ticker-demo { margin-left: 7px; color: var(--gold); font-size: 9px; font-weight: 600; }
.mobile-section-nav { display: none; }

.dashboard-grid { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: 260px minmax(480px,1fr) 390px; background: var(--paper); border-inline: 1px solid var(--rule); }
.dashboard-grid > aside, .news-ledger { min-width: 0; }
.dashboard-grid > aside:first-child { border-right: 1px solid var(--rule); }
.analysis-rail { border-left: 2px solid var(--green); padding: 18px; background: #fbfcfc; position: relative; }
.filter-ledger { padding: 14px 14px 18px; position: sticky; top: 68px; }
.filter-disclosure > summary { display: none; }
.filter-disclosure:not([open]) > .filter-ledger { display: block; }
.filter-heading, .section-header, .analysis-rail > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.filter-heading h2, .analysis-rail h2 { font-size: 17px; margin: 0; color: var(--navy-900); }
.filter-heading a, .analysis-rail header a { font-size: 12px; }
.filter-ledger fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.filter-ledger legend, .search-label { display: block; width: 100%; color: var(--ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 8px; }
.search-label { margin-top: 12px; }
.search-control { position: relative; }
.search-control svg { position: absolute; width: 18px; height: 18px; left: 10px; top: 10px; color: var(--ink-muted); }
.search-control input { width: 100%; padding: 9px 10px 9px 36px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: white; color: var(--ink); }
.filter-option { display: grid; grid-template-columns: 17px 26px minmax(0,1fr) auto; gap: 7px; min-height: 33px; align-items: center; padding: 4px 7px; margin: 3px 0; cursor: pointer; font-size: 12px; background: white; border: 1px solid var(--rule); border-radius: var(--radius); }
.filter-option:hover { background: var(--mist); border-color: var(--teal); }
.filter-option:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); box-shadow: inset 3px 0 0 var(--green-deep); }
.filter-option input { width: 16px; height: 16px; accent-color: var(--green-deep); }
.filter-option small { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.country-code { display: inline-grid; place-items: center; min-width: 28px; height: 22px; border: 1px solid var(--teal); color: var(--navy-900); background: #f7fcfc; font-size: 11px; font-weight: 800; }
.topic-swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--topic-color); }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-grid label { font-size: 11px; color: var(--ink-muted); }
.archive-range { display: block; margin-top: 4px; color: var(--teal); white-space: nowrap; }
.date-grid select { width: 100%; margin-top: 5px; padding: 9px 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: white; color: var(--ink); }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border: 1px solid var(--green-deep); border-radius: var(--radius); background: var(--green-deep); color: white; text-decoration: none; cursor: pointer; font-weight: 700; }
.primary-action:hover { background: #18732d; color: white; }
.filter-ledger > .primary-action { width: 100%; margin-top: 18px; }
.export-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.export-actions a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 13px; }
.export-actions a:hover { border-color: var(--teal); background: var(--teal-soft); }
.export-actions svg { width: 17px; height: 17px; }

.news-ledger { padding: 18px 20px 24px; }
.section-header { margin-bottom: 14px; }
.section-header h1, .section-header h2 { margin: 0 0 5px; color: var(--navy-900); letter-spacing: -.025em; }
.section-header h1 { font-size: clamp(22px,2vw,29px); }
.section-header h2 { font-size: 21px; }
.section-header p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.run-state { font-size: 11px; padding: 5px 8px; border: 1px solid var(--rule); white-space: nowrap; }
.run-success { color: var(--green-deep); border-color: var(--green); }
.run-failed { color: var(--danger); border-color: var(--danger); }
.news-list { border-top: 1px solid var(--rule-strong); }
.news-entry { position: relative; display: grid; grid-template-columns: 92px minmax(0,1fr) 58px; gap: 16px; padding: 18px 8px 18px 0; border-bottom: 1px solid var(--rule); background: white; }
.news-meta { display: flex; flex-direction: column; align-items: start; gap: 7px; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.news-copy h2 { font-size: 16px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.news-copy h2 a { color: var(--navy-900); text-decoration: none; }
.news-copy h2 a:hover { color: var(--teal); text-decoration: underline; }
.news-copy > p { font-family: "Segoe UI Variable","Segoe UI",sans-serif; font-size: 13px; line-height: 1.55; margin: 8px 0 10px; max-width: 72ch; color: #2d4553; }
.topic-row { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-row span { border: 1px solid color-mix(in srgb,var(--topic-color,var(--rule)) 45%,var(--rule)); border-radius: 999px; padding: 4px 8px; font-size: 10px; color: var(--ink); background: white; }
.source-line { font-size: 11px !important; color: var(--ink-muted) !important; margin-bottom: 0 !important; }
.confidence { align-self: start; text-align: right; color: var(--ink-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.confidence small { display: block; margin-bottom: 2px; font-size: 9px; line-height: 1.2; }
.confidence i, .scenario-scale { display: block; width: 52px; height: 3px; background: #dce4e7; margin-top: 6px; }
.confidence i::before, .scenario-scale i { content: ""; display: block; width: var(--confidence); height: 100%; background: var(--teal); }
.demo-label { color: var(--warning); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.empty-state { padding: 54px 28px; text-align: center; border: 1px dashed var(--rule-strong); margin: 18px 0; background: var(--mist); }
.empty-state h2 { margin: 0 0 8px; color: var(--navy-900); }
.empty-state p { margin: 0; color: var(--ink-muted); }
.pagination { display: flex; justify-content: center; gap: 20px; padding: 20px 0 0; font-size: 13px; }
.mobile-news-toggle { display: none; }

.analysis-rail > header { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.forecast-scope { display: grid; gap: 3px; margin: 10px 0; padding: 8px 9px; background: var(--teal-soft); border-left: 1px solid var(--green); color: var(--navy-900); font-size: 11px; }
.forecast-scope strong { text-transform: uppercase; letter-spacing: .04em; }
.filter-scope-note { margin: 14px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.45; }
.evidence-base, .probability-module { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.evidence-base h3, .probability-module h3 { margin: 0 0 8px; color: var(--navy-900); font-size: 13px; }
.evidence-base dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; }
.evidence-base dl div { padding-right: 8px; border-right: 1px solid var(--rule); }
.evidence-base dl div:last-child { border-right: 0; }
.evidence-base dt { color: var(--ink-muted); font-size: 9px; }
.evidence-base dd { margin: 2px 0 0; color: var(--teal); font-size: 18px; font-weight: 700; }
.probability-module > div { display: grid; grid-template-columns: 68px 1fr 30px; gap: 8px; align-items: center; margin: 6px 0; font-size: 10px; }
.probability-module i { height: 4px; background: #dce4e7; }
.probability-module i b { display: block; width: var(--confidence); height: 100%; background: var(--teal); }
.probability-module strong { text-align: right; color: var(--teal); }
.mini-trend { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.mini-trend h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 13px; }
.mini-trend canvas { display: block; width: 100%; height: 90px; }
.scenario { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.scenario:first-of-type { position: relative; padding-left: 12px; border-left: 3px solid var(--green); }
.scenario:first-of-type::before { content: ""; position: absolute; left: -20px; top: 31px; width: 18px; height: 2px; background: var(--green); }
.scenario-head { display: flex; justify-content: flex-end; gap: 10px; font-size: 11px; }
.scenario-head strong { font-size: 19px; color: var(--teal); }
.scenario h3 { margin: 8px 0 7px; font-size: 15px; color: var(--navy-900); }
.scenario h3 span { color: var(--teal); font-weight: 600; }
.scenario p { margin: 0; color: #405965; font-size: 12px; line-height: 1.5; }
.scenario-scale { width: 100%; margin: 12px 0 7px; }
.scenario-scale i { background: var(--teal); }
.scenario-positive .scenario-scale i { background: var(--green-deep); }
.scenario-negative .scenario-scale i { background: var(--gold); }
.scenario small { color: var(--ink-muted); }
.analysis-empty { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.analysis-empty h3 { font-size: 15px; margin: 0 0 6px; }
.analysis-empty p { font-size: 12px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.indicator-strip h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 8px; }
.indicator-strip > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.indicator-strip span { font-size: 11px; color: var(--ink-muted); }
.indicator-strip strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.indicator-strip small { grid-column: 1 / -1; color: var(--ink-muted); font-size: 10px; }

.dashboard-lower-grid { max-width: var(--content); margin: 0 auto 36px; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(360px,.85fr); background: white; border: 1px solid var(--rule); border-top: 2px solid var(--green); }
.chart-section { min-width: 0; margin: 0; padding: 24px; background: white; border-right: 1px solid var(--rule); }
.dashboard-source-quality { padding: 24px; min-width: 0; }
.dashboard-source-quality table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dashboard-source-quality th { padding: 8px 6px; color: var(--ink-muted); text-align: left; border-bottom: 1px solid var(--rule-strong); }
.dashboard-source-quality td { padding: 9px 6px; border-bottom: 1px solid var(--rule); }
.dashboard-source-quality td:last-child, .dashboard-source-quality th:last-child { text-align: right; }
.dashboard-source-quality .state-ok, .dashboard-source-quality .state-warning { border: 0; padding: 0; }
.activity-chart { display: block; width: 100%; height: 300px; }
.market-chart { display: block; width: 100%; height: 260px; }
.chart-html-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 4px 0 10px; color: var(--ink-muted); font-size: 11px; }
.chart-html-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-html-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--series-color); }
.chart-html-legend i[data-pattern="1"] { border-top-style: dashed; }
.chart-html-legend i[data-pattern="2"] { border-top-style: dotted; }
.chart-html-legend i[data-pattern="3"] { border-top-style: double; }
.chart-data-table { margin-top: 12px; font-size: 12px; }
.chart-data-table summary { min-height: 44px; display: flex; align-items: center; color: var(--teal); cursor: pointer; }
.chart-empty { min-height: 120px; display: grid; place-items: center; margin: 0; padding: 20px; color: var(--ink-muted); background: var(--mist); border: 1px dashed var(--rule-strong); text-align: center; }
.chart-table-scroll { overflow-x: auto; }
.chart-data-table table { width: 100%; min-width: 520px; border-collapse: collapse; }
.chart-data-table th, .chart-data-table td { padding: 7px 8px; border-bottom: 1px solid var(--rule); text-align: right; }
.chart-data-table th:first-child, .chart-data-table td:first-child { position: sticky; left: 0; text-align: left; background: white; }
.page-heading { max-width: var(--content); margin: 0 auto; padding: 38px clamp(20px,4vw,58px); background: var(--navy-900); color: white; min-height: 180px; display: flex; align-items: end; justify-content: space-between; gap: 40px; overflow: hidden; position: relative; }
.page-heading > * { position: relative; z-index: 1; }
.page-heading h1 { font-size: clamp(30px,4vw,54px); line-height: .98; letter-spacing: -.035em; margin: 0 0 12px; max-width: 12ch; }
.page-heading p { color: #c7dae2; max-width: 68ch; margin: 0; line-height: 1.5; }
.method-badge { border: 1px solid #4a6b80; padding: 12px 18px; display: grid; min-width: 190px; }
.method-badge span, .method-badge small { font-size: 11px; color: #a8c5cf; }
.method-badge strong { font-size: 25px; color: var(--green); }
.analytics-layout { max-width: var(--content); margin: 0 auto 36px; display: grid; grid-template-columns: 260px minmax(0,1fr); border: 1px solid var(--rule); border-top: 0; background: white; }
.analytics-layout > aside { border-right: 1px solid var(--rule); }
.analytics-main { min-width: 0; }
.chart-inline { border: 0; border-bottom: 1px solid var(--rule); margin: 0; }
.scenario-ledger { padding: 24px; }
.scenario-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 170px; border-top: 1px solid var(--rule); min-height: 180px; }
.scenario-row:last-child { border-bottom: 1px solid var(--rule); }
.scenario-type, .scenario-body, .evidence-list { padding: 18px; }
.scenario-type { border-right: 1px solid var(--rule); }
.scenario-type span { display: block; color: var(--ink-muted); text-transform: uppercase; font-size: 11px; }
.scenario-type strong { display: block; color: var(--teal); font-size: 35px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.scenario-body h3 { font-size: 18px; margin: 0 0 8px; color: var(--navy-900); }
.scenario-body p { font-family: "Segoe UI Variable","Segoe UI",sans-serif; font-size: 13px; line-height: 1.55; margin: 0; }
.scenario-body details { margin-top: 14px; font-size: 12px; }
.scenario-body summary { cursor: pointer; color: var(--teal); }
.scenario-body details > summary { min-height: 44px; display: flex; align-items: center; }
.scenario-body { min-width: 0; overflow-wrap: anywhere; }
.scenario-body > p, .forecast-explanation { max-width: 72ch; }
.scenario-body > p { font-size: 14px; line-height: 1.65; }
.forecast-explanation { font-family: "Segoe UI Variable","Segoe UI",sans-serif; font-size: 14px; line-height: 1.65; }
.forecast-explanation h4 { margin: 24px 0 8px; font-size: 16px; color: var(--navy-900); }
.forecast-explanation h5 { margin: 18px 0 6px; font-size: 14px; }
.forecast-explanation p { font-size: 14px; line-height: 1.65; margin: 0 0 8px; }
.forecast-explanation ul { padding-left: 20px; margin: 8px 0 16px; }
.forecast-explanation li + li { margin-top: 8px; }
.scenario-row[id] { scroll-margin-top: 92px; }
.scenario-row > .evidence-list { align-self: start; }
.forecast-method { padding-top: 6px; border-top: 1px solid var(--rule); }
.forecast-method > p { color: var(--ink-muted); }
.forecast-method > strong { display: block; margin-top: 12px; color: var(--navy-900); }
.forecast-method ul { margin: 6px 0 0; padding-left: 18px; }
.evidence-list { border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 7px; font-size: 11px; }
.evidence-list > span:first-child { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.evidence-list small { color: var(--ink-muted); margin-top: auto; }

.source-table-wrap, .runs-ledger { max-width: var(--content); margin: 0 auto; padding: 24px; background: white; border-inline: 1px solid var(--rule); overflow-x: auto; }
.source-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.source-table th { text-align: left; padding: 11px 12px; background: var(--navy-800); color: white; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.source-table td { padding: 13px 12px; border-bottom: 1px solid var(--rule); font-size: 13px; vertical-align: top; }
.source-table td small { display: block; color: var(--ink-muted); margin-top: 4px; }
.source-state { font-size: 11px; border: 1px solid var(--rule); padding: 4px 6px; white-space: nowrap; }
.state-ok { color: var(--green-deep); border-color: var(--green); }
.state-warning { color: var(--warning); border-color: var(--gold); }
.source-error td { color: var(--danger); background: #fff8f7; font-size: 11px; }
.quality-number { font-variant-numeric: tabular-nums; font-weight: 700; }
.runs-ledger { border-top: 1px solid var(--rule); padding-bottom: 40px; }
.run-row { display: grid; grid-template-columns: 130px 1.5fr 110px repeat(3,100px); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }

.detail-page { max-width: 1180px; margin: 0 auto 50px; padding: 36px 24px; }
.back-link { font-size: 13px; }
.detail-page > header { margin-top: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-strong); }
.detail-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 12px; }
.detail-page h1 { font-size: clamp(30px,4.7vw,56px); line-height: 1.06; max-width: 22ch; letter-spacing: -.035em; margin: 18px 0 22px; color: var(--navy-900); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 56px; padding-top: 34px; }
.detail-grid h2 { font-size: 18px; margin: 30px 0 9px; color: var(--navy-900); }
.detail-grid h2:first-child { margin-top: 0; }
.lead-summary { font-family: "Segoe UI Variable","Segoe UI",sans-serif; font-size: 18px; line-height: 1.65; max-width: 70ch; }
.facts-list { padding-left: 21px; line-height: 1.6; }
.source-text { margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 16px; }
.source-text summary { cursor: pointer; color: var(--teal); }
.source-text p { font-family: "Segoe UI Variable","Segoe UI",sans-serif; line-height: 1.7; color: #37515e; }
.evidence-card { background: var(--navy-900); color: white; padding: 24px; align-self: start; position: sticky; top: 92px; }
.evidence-card h2 { color: white; }
.evidence-card dl { margin: 0 0 20px; }
.evidence-card dl div { padding: 11px 0; border-bottom: 1px solid #34536a; }
.evidence-card dt { color: #9fbcc8; font-size: 10px; text-transform: uppercase; }
.evidence-card dd { margin: 4px 0 0; font-size: 13px; }
.evidence-card .primary-action { width: 100%; }
.ai-note { color: #bcd0d8; font-size: 11px; line-height: 1.5; margin: 18px 0 0; }

.login-page { background: var(--navy-950); }
.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(320px,.9fr) minmax(420px,1.1fr); }
.login-brand { position: relative; overflow: hidden; background: var(--navy-950); color: white; padding: clamp(32px,5vw,72px); display: flex; flex-direction: column; justify-content: start; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand > p { max-width: 19ch; margin: auto 0; padding-block: 40px; font-size: clamp(28px,3vw,42px); line-height: 1.2; letter-spacing: -.02em; }
.login-form-panel { font-family: "Segoe UI",Arial,sans-serif; font-size: 16px; background: white; display: grid; place-items: center; padding: 48px; }
.login-form-wrap { width: min(420px,100%); }
.login-form-wrap h1 { font-family: "Roboto Condensed",Arial,sans-serif; font-size: clamp(30px,3vw,40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; color: var(--navy-900); }
.login-form-wrap > p { color: #435d6d; line-height: 1.6; }
.login-form { display: grid; gap: 10px; margin-top: 28px; }
.login-form label { font-size: 15px; font-weight: 600; margin-top: 10px; }
.login-form input { min-width: 0; width: 100%; min-height: 52px; color: var(--ink); font-size: 16px; border: 1px solid #718896; border-radius: var(--radius); padding: 12px 14px; background: white; }
.login-form input::placeholder { color: #536b79; opacity: 1; }
.login-form .primary-action { min-height: 52px; font-size: 16px; margin-top: 16px; }
.form-error { border: 1px solid var(--danger); color: #842f31; background: #fff6f6; padding: 11px 13px; font-size: 13px; }
.login-help { font-size: 14px; margin-top: 24px; }
.login-page .form-error { font-size: 15px; line-height: 1.5; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 165px 1fr 180px auto; gap: 12px; }
  .topbar-status { display: none; }
  .dashboard-grid { grid-template-columns: 230px minmax(440px,1fr); }
  .analysis-rail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
  .analysis-rail > header, .indicator-strip { grid-column: 1 / -1; }
  .scenario { border: 1px solid var(--rule); padding: 14px; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .chart-section { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 820px) {
  .topbar { height: auto; min-height: 64px; grid-template-columns: 150px 1fr auto; padding-block: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .top-search { grid-column: 1 / -1; grid-row: 3; }
  .main-nav a { min-height: 44px; padding-inline: 14px; white-space: nowrap; }
  .signal-ticker { grid-template-columns: 125px repeat(5,220px); }
  .mobile-section-nav { display: grid; grid-template-columns: repeat(3,1fr); background: white; border-bottom: 1px solid var(--rule); }
  .mobile-section-nav a { min-height: 44px; display: grid; place-items: center; color: var(--navy-900); text-decoration: none; border-right: 1px solid var(--rule); }
  .mobile-section-nav a:last-child { border-right: 0; }
  #news-ledger, #analysis-summary, #activity-chart { scroll-margin-top: 192px; }
  .dashboard-grid, .analytics-layout { display: block; }
  .filter-ledger { position: static; }
  .filter-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 38px 14px 16px; color: var(--navy-900); background: white; border-bottom: 1px solid var(--rule); cursor: pointer; font-weight: 700; position: relative; }
  .filter-disclosure > summary span { color: var(--ink-muted); font-size: 11px; font-weight: 400; }
  .filter-disclosure > summary::after { content: ""; position: absolute; right: 17px; top: 17px; width: 8px; height: 8px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); }
  .filter-disclosure[open] > summary::after { top: 21px; transform: rotate(225deg); }
  .filter-disclosure:not([open]) > .filter-ledger { display: none; }
  .filter-ledger fieldset { margin-top: 16px; }
  .analysis-rail { display: block; }
  .scenario { margin-top: 10px; }
  .news-list.is-mobile-collapsed .news-entry:nth-of-type(n+5) { display: none; }
  .mobile-news-toggle.is-active { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; margin-top: 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: white; color: var(--teal); cursor: pointer; }
  .activity-chart { height: 260px; }
  .scenario-row { grid-template-columns: 100px minmax(0,1fr); }
  .scenario-row[id] { scroll-margin-top: 220px; }
  .evidence-list { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .page-heading { min-height: 160px; }
  .page-heading::after { width: 70%; opacity: .18; }
  .method-badge { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .evidence-card { position: static; }
  .login-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-brand { min-height: 0; padding: 20px 24px; }
  .login-brand::before { display: none; }
  .login-brand > p { font-size: 16px; line-height: 1.4; letter-spacing: 0; max-width: none; margin: 10px 0 0; padding: 0; }
  .login-form-panel { align-items: start; padding: 32px 24px; }
  .source-table-wrap { padding: 12px; overflow: visible; }
  .source-table { min-width: 0; }
  .source-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .source-table tbody, .source-table tr, .source-table td { display: block; }
  .source-table tr { margin-bottom: 12px; border: 1px solid var(--rule-strong); }
  .source-table td { display: grid; grid-template-columns: minmax(102px,38%) minmax(0,1fr); gap: 12px; padding: 9px 10px; overflow-wrap: anywhere; }
  .source-table td::before { content: attr(data-label); color: var(--ink-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .source-table td:first-child { padding-top: 13px; }
  .source-table td:last-child { padding-bottom: 13px; }
  .source-table .source-error { border: 0; margin-top: -12px; }
  .source-table .source-error td { display: block; }
  .source-table .source-error td::before { content: none; }
  .runs-ledger { padding-inline: 16px; }
}
@media (max-width: 560px) {
  .desktop-only { display: none; }
  .topbar { grid-template-columns: 140px 1fr; }
  .user-menu { justify-self: end; }
  .news-ledger, .analysis-rail, .chart-section, .scenario-ledger { padding: 16px; }
  .news-entry { grid-template-columns: 62px minmax(0,1fr); gap: 10px; }
  .confidence { grid-column: 2; display: flex; align-items: center; gap: 7px; text-align: left; }
  .confidence small { display: inline; margin: 0 5px 0 0; }
  .news-copy h2 { font-size: 15px; }
  .analysis-rail { grid-column: auto; }
  .page-heading { padding: 28px 20px; }
  .scenario-row { display: block; }
  .scenario-type { border-right: 0; border-bottom: 1px solid var(--rule); }
  .run-row { grid-template-columns: 1fr 1fr; }
  .run-row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--ink-muted); font-size: 9px; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
