/* Corporate workspace: white working surfaces, navy navigation, semantic status colours.
   Presentation only. Evidence, permission checks and trading controls stay unchanged. */
:root {
  color-scheme:light;
  --navy:#142b49;
  --navy-raised:#213e61;
  --ink:#20334a;
  --muted:#596a7e;
  --accent:#245d98;
  --cyan:#245d98;
  --green:#16704a;
  --amber:#8a5809;
  --red:#b03438;
  --line:#dce3eb;
  --line-strong:#b6c6d7;
  --border:var(--line);
  --panel:#fff;
  --canvas:#f3f6fa;
  --surface:#fff;
  --surface-raised:#f7f9fc;
  --surface-soft:#f0f4f8;
  --shadow-panel:0 2px 6px #142b4908;
  --radius-lg:10px;
  --radius-md:8px;
  --radius-sm:6px;
  background:#f3f6fa;
  color:var(--ink);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
body { background:#f3f6fa; }
body::before { display:none; }
[data-tone=healthy] { --status-color:var(--green); }
[data-tone=warning] { --status-color:var(--amber); }
[data-tone=neutral] { --status-color:var(--muted); }
::selection { color:var(--navy); background:#d9e8f6; }
a { color:var(--accent); text-underline-offset:3px; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button { border-radius:6px; font-weight:600; transition:background .15s,border-color .15s; }
button:hover { transform:none; }
button:disabled { cursor:not-allowed; opacity:.55; box-shadow:none; }
:is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid #3675b6; outline-offset:3px; box-shadow:none;
}
.primary,.broker-access-actions a.primary { background:var(--navy); border:1px solid var(--navy); color:#fff; box-shadow:none; }
.primary:hover,.broker-access-actions a.primary:hover { background:var(--navy-raised); border-color:var(--navy-raised); box-shadow:none; }
.quiet,.workspace-jump-nav button,.broker-access-actions a { color:var(--navy); background:#fff; border:1px solid var(--line-strong); box-shadow:none; }
.quiet:hover,.workspace-jump-nav button:hover,.broker-access-actions a:hover { background:var(--surface-soft); border-color:#829bb5; }
.danger { color:var(--red); background:#fff5f5; border:1px solid #e8bfc0; box-shadow:none; }
.danger:hover { background:#fbe9e9; }
.link-button,.recovery-link,.company-symbol-link { color:var(--accent); background:none; border:0; text-decoration:underline; text-underline-offset:3px; }
.company-symbol-link { font-size:14px; font-weight:650; }
.company-symbol-link:hover { color:var(--navy); }
input,select,textarea,.policy-editor input,.policy-editor textarea,
.parameter-editor :is(input,select,textarea),.model-review-form :is(input,select,textarea) {
  background:#fff; color:var(--ink); border:1px solid var(--line-strong);
  padding:10px 12px; border-radius:6px; min-height:42px; font-size:14px; box-shadow:none;
}
input::placeholder,textarea::placeholder { color:#69788b; opacity:1; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px #245d9814; }
input:disabled,select:disabled,textarea:disabled { background:var(--surface-soft); }
input[type=checkbox],input[type=radio] { accent-color:var(--navy); min-height:0; width:18px; height:18px; }
label,.policy-fields label,.review-fields label,.model-review-form>label,.parameter-fields label { color:var(--ink); font-size:13px; letter-spacing:0; }
label small,.policy-fields label small,.review-fields label small { color:var(--muted); font-size:12px; line-height:1.5; }
h1,h2,h3,h4 { color:var(--navy); letter-spacing:-.025em; }
h1 { line-height:1.2; }
.muted { color:var(--muted); }
.eyebrow { color:var(--muted); font-size:11px; letter-spacing:.09em; font-weight:650; }
.workspace-authenticated .dashboard .eyebrow { font-size:11px; letter-spacing:.09em; }
.workspace-authenticated { --sidebar-width:224px; }
.workspace-authenticated .shell { padding:0 28px 40px calc(var(--sidebar-width) + 28px); }
.app-chrome,.app-chrome .masthead { background:#f3f6fa; backdrop-filter:none; }
.workspace-authenticated .app-nav { background:var(--navy); border:0; padding:100px 14px 86px; gap:5px; }
.workspace-authenticated .brand { color:#fff; background:var(--navy); left:22px; top:26px; }
.workspace-authenticated .brand small { color:#b9c8db; font-size:10px; letter-spacing:.09em; }
.brand-mark { border:1px solid #b6c6d7; background:var(--navy); color:#fff; border-radius:8px; box-shadow:none; }
.workspace-authenticated .brand-mark { background:#fff; color:var(--navy); border-color:#fff; }
.workspace-authenticated .nav-tab { color:#c8d5e5; min-height:46px; padding:11px 13px; font-size:14px; border-radius:6px; }
.workspace-authenticated .nav-tab:hover { color:#fff; background:#1d3959; }
.workspace-authenticated .nav-tab.active { color:#fff; background:#2a476b; box-shadow:inset 3px 0 #9db8d6; }
.nav-group-label { color:#aebfd5; font-size:10px; letter-spacing:.08em; margin:24px 13px 6px; }
.workspace-authenticated #sign-out { color:#d7e1ee; background:var(--navy); border-color:#405a77; border-radius:6px; }
.workspace-authenticated #sign-out:hover { background:var(--navy-raised); }
.workspace-authenticated .system-ribbon { min-height:84px; padding:14px 0; gap:16px; }
.ribbon-mode { background:#e9eff6; border:1px solid #d0dbe7; border-radius:6px; padding:9px 12px; }
.ribbon-mode strong,.ribbon-session strong { color:var(--navy); font-size:14px; }
.ribbon-label { color:var(--muted); font-size:10px; letter-spacing:.08em; }
.ribbon-connection { gap:10px; }
.console-badge { color:var(--muted); background:#fff; border-color:var(--line); }
#ribbon-check-time { font-size:12px; font-variant-numeric:tabular-nums; }
#open-easy-mode,#refresh-system-status { min-height:42px; padding:10px 14px; font-size:13px; }
.workspace-authenticated .workspace,.workspace-authenticated .dashboard { padding-top:24px; }
.workspace-head .eyebrow { margin-bottom:7px; }
.workspace-authenticated .workspace-head h1 { font-size:28px; line-height:1.2; }
.workspace-authenticated .workspace-head .muted { font-size:14px; max-width:80ch; }
.workspace-switch>strong { color:var(--navy); }
.ops-toolbar { background:#fff; border-color:var(--line); padding:10px 14px; border-radius:6px; }
.workspace-tabs { gap:8px; margin-bottom:22px; }
.workspace-tabs>button,.workspace-tabs>.current-subview { color:var(--muted); font-size:14px; font-weight:550; min-height:46px; padding:12px 14px; }
.workspace-tabs>[aria-selected=true],.workspace-tabs>.current-subview { color:var(--navy); border-bottom-color:var(--navy); background:transparent; font-weight:650; }
.workspace-tabs>button:hover { color:var(--navy); background:#e9eff6; }
.workspace-tab-panel:focus-visible,.table-wrap:focus-visible { outline:3px solid #3675b6; outline-offset:3px; }
.panel,.workspace-details { background:#fff; border-color:var(--line); border-radius:8px; box-shadow:var(--shadow-panel); backdrop-filter:none; }
.panel { padding:22px; }
.workspace-authenticated .panel-head h2 { color:var(--navy); font-size:20px; line-height:1.35; }
.section-icon { color:var(--accent); background:#edf3f9; border-color:#d9e3ed; border-radius:7px; box-shadow:none; }
.workspace-details>summary,.account-summary>summary,.policy-edit-details>summary { color:var(--navy); font-size:14px; min-height:46px; }
.workspace-details>summary:hover,.account-summary>summary:hover { background:var(--surface-raised); }
.account-summary { border:1px solid var(--line); border-radius:8px; padding:0; margin-bottom:18px; background:#fff; }
.account-summary>summary { padding:14px 18px; }.account-summary>.operations-metrics { margin:0; }
.feature-help { color:var(--muted); border:1px solid transparent; background:transparent; font-size:14px; border-radius:6px; }
.feature-help:hover { color:var(--accent); border-color:var(--line); background:#edf3f9; }
.status-dot,.pulse-dot,.policy-evidence-item>i,.session-state-live::before { box-shadow:none; animation:none; }
.console-card-label { color:var(--ink); }.console-card-label>span { color:var(--muted); }
.workspace-authenticated button.console-card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:18px; min-height:165px; }
button.console-card:hover { border-color:#8fa8c2; background:#fbfcfe; }
button.console-card>strong { color:var(--status-color,var(--navy)); font-size:24px; font-weight:650; line-height:1.2; }
button.console-card>span:not(.console-card-label) { color:var(--muted); font-size:13px; line-height:1.55; }
button.console-card>small { color:var(--accent); font-size:13px; }
.runtime-summary.runtime-overview { background:#fff; padding:20px; border-radius:8px; }
.runtime-summary strong { font-size:17px; font-weight:650; }
.runtime-summary span,.runtime-summary small,.runtime-summary>p { font-size:13px; line-height:1.55; }
.session-state { background:#fff; border-color:var(--line); border-left:3px solid var(--session-state-color); border-radius:8px; }
.session-state-live>h2,.session-state-next strong { color:var(--navy); }
.session-state-live>p:last-child,.session-state-next time { color:var(--muted); font-size:13px; }
.session-state-next span { font-size:11px; letter-spacing:.08em; }
.session-state-next { min-width:0; }
.readiness-banner,.readiness-banner.ready,.readiness-banner.active,.readiness-banner.waiting { background:#f7f9fc; border-color:var(--line); border-left:3px solid var(--accent); }
.readiness-banner.ready { border-left-color:var(--green); }.readiness-banner:not(.ready):not(.active):not(.waiting) { border-left-color:var(--red); }
.readiness-symbol { box-shadow:none; background:none; }.readiness-copy h2 { font-size:19px; }
.readiness-copy p:last-child { color:var(--muted); font-size:13px; }
.readiness-tally strong { color:var(--navy); }.readiness-tally span { color:var(--muted); letter-spacing:.04em; }
.blocker-item,.blocker-item[data-recovery-category] { background:#f8fafc; border-color:var(--line); border-left:3px solid var(--amber); }
.blocker-item[data-recovery-category="Scheduled wait"],.blocker-item[data-recovery-category="Before PAPER"],.blocker-item[data-recovery-category="Model validation"] { border-left-color:#7990aa; }
.blocker-item[data-recovery-category="In progress"],.blocker-item[data-recovery-category="Automatic retry"] { border-left-color:var(--accent); }
.blocker-priority,.blocker-item[data-recovery-category] .blocker-priority { color:var(--amber); background:none; padding:0; font-size:11px; }
.blocker-item span:not(.blocker-priority)::before { color:var(--ink); }
.blocker-list { max-height:420px; }.recovery-link { font-size:13px; }
.worker-row,.policy-evidence-item,.next-action { background:transparent; border-color:var(--line); }
.worker-row strong { font-size:14px; }.worker-row span { font-size:13px; }
table { font-variant-numeric:tabular-nums; }
th { color:var(--muted); background:#f4f7fa; font-size:11px; font-weight:650; letter-spacing:.055em; padding:12px 14px; }
.workspace-tab-panel th { background:#f4f7fa; }
td { color:var(--ink); font-size:13px; padding:14px; border-color:var(--line); }
tbody tr:hover { background:#f7f9fc; }
.table-wrap { border:1px solid var(--line); border-radius:6px; }
.table-wrap table { margin:0; }
details,pre { background:var(--surface-raised); border-color:var(--line); }
pre { font-size:12px; }
.report-list button { background:#fff; border-color:var(--line); }
.report-list button:hover,.report-list button.active { color:var(--navy); background:#edf3f9; border-color:#8fa8c2; }
.page-number { background:#fff; color:var(--navy); }
.page-number.active,.page-number:hover,.page-number:focus-visible { color:#fff; background:var(--navy); }
.progress-track,.gauge { background:#e1e8f0; border-color:var(--line); }
.progress-track i,.sector-exposure i { background:var(--accent); box-shadow:none; }
.table-pagination,.page-pagination { font-size:13px; padding-top:14px; }
.pagination-buttons button,.page-navigation button { min-height:38px; color:var(--navy); background:#fff; border:1px solid var(--line); }
.status-chip { color:var(--muted); background:#f0f4f8; border-color:var(--line); border-radius:4px; font-size:11px; font-weight:600; letter-spacing:.01em; }
.status-chip.healthy,.status-chip.pass { color:var(--green); background:#edf7f1; border-color:#c5dfd1; }
.status-chip.warning { color:var(--amber); background:#fcf6e9; border-color:#e6d4ae; }
.status-chip.blocked { color:var(--red); background:#fbefef; border-color:#e6c1c3; }
.funnel-lane,.funnel-lane.validation-lane,.funnel-section,.funnel-stage { background:#fff; border-color:var(--line); }
#strict-funnel-stages>.funnel-stage:nth-of-type(-n+3) { background:#f5f8fb; }
#strict-funnel-stages>.funnel-stage { border-radius:6px; padding:14px; text-align:left; }
.funnel-stage strong { color:var(--navy); font-weight:650; }.funnel-stage span { color:var(--muted); font-size:11px; letter-spacing:.035em; }
button.funnel-stage { position:relative; }.funnel-stage:hover { background:#edf3f9; border-color:#8fa8c2; box-shadow:none; }
.funnel-stage .gate-state { color:var(--accent); font-size:12px; margin-top:8px; }
.funnel-stage.gate-disabled { background:#f2f4f7; border-style:dashed; }.funnel-stage.gate-disabled .gate-state { color:var(--muted); }
.research-controls-notice,.gate-preview { background:#eef4fa; border-color:#d0deec; color:var(--ink); font-size:13px; }
#research-controls-status { border-radius:6px; line-height:1.6; font-size:13px; }
.setup-check-counts>div { border-radius:6px; background:#f7f9fc; }.setup-check-counts strong { color:var(--navy); }
.screening-toolbar { padding:14px 0 4px; }.screening-toolbar label { margin:0; }.screening-table a { color:var(--accent); }.screening-table small { font-size:12px; }
.watchlist-toolbar { grid-template-columns:minmax(180px,1fr) minmax(240px,2fr) minmax(190px,1.1fr); gap:18px; }
.watchlist-toolbar label { margin:14px 0; font-size:13px; }
.watchlist-strategy-switch { display:inline-flex; gap:8px; align-items:center; justify-content:center; min-width:148px; padding:8px 12px; min-height:40px; border-radius:6px; font-size:12px; }
.watchlist-strategy-switch::before { content:""; width:24px; height:14px; border-radius:8px; background:#8799ad; box-shadow:inset 9px 0 0 2px #fff; flex-shrink:0; }
.watchlist-strategy-switch[aria-checked=true] { color:var(--green); background:#edf7f1; border-color:#bad8c8; }
.watchlist-strategy-switch[aria-checked=true]::before { background:var(--green); box-shadow:inset -9px 0 0 2px #fff; }
.watchlist-strategy-switch[aria-checked=false] { color:var(--muted); background:#f2f5f8; border-color:#d2dce7; }
.watchlist-checked { font-size:12px; }.watchlist-search-results { border-radius:6px; }
.watchlist-search-results li { border-color:var(--line); padding:14px; background:#f7f9fc; font-size:14px; }
.watchlist-search-results li:hover { background:#edf3f9; }
.market-tape { background:none; border:0; gap:14px; }
.market-tape article { background:#fff; border:1px solid var(--line); border-radius:8px; padding:20px; box-shadow:var(--shadow-panel); }
.market-tape article::after { display:none; }
.market-tape article:last-child { border-right:1px solid var(--line); }
.market-tape strong { color:var(--navy); font-size:29px; font-weight:650; }
.market-tape span { font-size:11px; color:var(--muted); letter-spacing:.06em; }
.market-tape time,.market-tape small { color:var(--muted); font-size:12px; line-height:1.55; white-space:normal; overflow:visible; }
.market-tape .quote-label { color:var(--muted); }.market-tape .quote-change { font-size:12px; border-radius:4px; }
.market-tape .quote-change.positive { color:var(--green); background:#edf7f1; border-color:#c5dfd1; }
.market-tape .quote-change.negative { color:var(--red); background:#fbefef; border-color:#e6c1c3; }
.treasury-context,.treasury-market { background:#f7f9fc; border-color:var(--line); border-left:3px solid var(--accent); border-radius:8px; }
#market-treasury-yield,#treasury-yield { color:var(--navy); font-variant-numeric:tabular-nums; }
#market-treasury-yield[data-state=warning],#treasury-yield[data-state=warning] { color:var(--amber); }
.headline-copy a,.headline-copy strong,.economic-event strong { color:var(--ink); font-size:14px; font-weight:600; }
.headline-meta,.economic-event small { color:var(--muted); font-size:12px; letter-spacing:0; text-transform:none; }
.headline-rank { color:var(--muted); font-size:14px; }.economic-event time { font-size:13px; }
.headline-list,.economic-event-list { max-height:440px; }.market-intelligence { gap:18px; }
.company-directory-item { color:var(--ink); background:#fff; border-color:var(--line); border-radius:6px; }
.company-directory-item:hover { background:#f7f9fc; }.company-directory-item[aria-pressed=true] { color:var(--navy); background:#edf3f9; border-color:#8fa8c2; }
.company-directory-item small,.headline-list small { color:var(--muted); }
.company-detail>.panel-head { background:#fff; border-color:var(--line); }
.company-detail dt { color:var(--muted); }.company-section-tabs .active { color:var(--navy); border-color:var(--navy); background:#edf3f9; }
.company-section-tabs button { color:var(--navy); font-size:13px; }.company-chart svg { background:#fff; border:1px solid var(--line); border-radius:6px; }
.chart-axis-label { fill:var(--muted); font-size:12px; }.chart-grid-line { stroke:#e1e7ee; }.chart-reference-line { stroke:#8996a8; }.chart-cursor { stroke:var(--navy); }
.chart-legend { color:var(--muted); }.chart-legend .ema20 { color:#245d98; }.chart-legend .ema50 { color:#986c12; }
.company-earnings-flag { background:#fcf6e9; border-color:var(--amber); }.company-financial-dataset { border-color:var(--line); }
.regime-score,.regime-component,.regime-budget,.regime-context,.regime-capital { background:#f7f9fc; border-color:var(--line); }
.regime { --regime-accent:var(--accent); }
.regime[data-classification=RISK_ON] { --regime-accent:var(--green); }
.regime[data-classification=NEUTRAL] { --regime-accent:var(--amber); }
.regime[data-classification=RISK_OFF] { --regime-accent:var(--red); }
.regime-component header strong,.regime-rule strong,.regime-capital strong { color:var(--ink); }
.regime-component header small,.regime-rule small,.regime-thresholds small { color:var(--muted); font-size:11px; }
.regime-score>span,.regime-thresholds { color:var(--muted); font-size:12px; }
.regime-rule.pass i { color:var(--green); background:#edf7f1; }.regime-rule.fail i { color:var(--amber); background:#fcf6e9; }
.regime-rule.unknown i { color:var(--muted); background:#edf1f6; }
.strategy-version-card,.policy-notice,.allocation-overview,.condition-group,.model-review-form,.review-history article,
.parameter-lab-overview,.parameter-summary-cards,.parameter-test-notice,.parameter-toggles label,.evidence-summary-cards,
.evidence-state-card,.evidence-provenance,.evidence-section,.model-review-path>div,.model-review-summary,.policy-evidence-item {
  background:#f7f9fc; border-color:var(--line); box-shadow:none;
}
.strategy-version-card strong,.allocation-overview strong,.model-review-path strong,.model-review-summary strong,
.review-form-head h3,.review-history h3,.condition-group article strong { color:var(--navy); }
.policy-notice strong,.policy-editor legend span { color:var(--amber); }
.policy-editor legend,.model-review-form legend,.parameter-editor legend { color:var(--ink); font-size:12px; letter-spacing:.04em; border-color:var(--line); }
.policy-editor input[readonly] { color:var(--green); }.policy-limitations li,.review-history article p { color:var(--muted); font-size:12px; }
.review-fields label,.review-checklist label { font-size:13px; }.review-checklist label { color:var(--ink); background:#fff; border-color:var(--line); }
.review-checklist label:has(input:checked) { color:var(--green); background:#edf7f1; border-color:#c5dfd1; }
.model-review-path .current { background:#edf3f9; border-color:#8fa8c2; box-shadow:inset 0 -2px var(--accent); }
.model-review-path .complete { background:#edf7f1; border-color:#c5dfd1; }
.model-review-path :is(strong,span),.model-review-summary :is(strong,span),.policy-evidence-item span,.condition-group article span,.condition-group article strong,.review-history article :is(strong,span) { font-size:12px; }
.parameter-lab-overview :is(span,small),.parameter-summary-cards :is(span,small),.evidence-provenance dt { color:var(--muted); font-size:12px; }
.parameter-lab-overview strong,.parameter-summary-cards strong { color:var(--navy); font-size:18px; }
.evidence-state-card,.parameter-test-notice { background:#eef4fa; }.evidence-state-card p,.parameter-test-notice span { color:var(--muted); font-size:13px; }
.evidence-bars>span strong,.evidence-provenance dd { color:var(--ink); font-size:13px; }.evidence-bars>span small { font-size:12px; }
.broker-access-card { background:#f7f9fc; border-color:var(--line); }.broker-access-copy span { font-size:13px; }
.broker-access-actions a { background:#fff; border-color:var(--line); color:var(--navy); }
.broker-access-actions a.primary { background:var(--navy); border-color:var(--navy); box-shadow:none; }
.allocation-bar { background:#e1e8f0; }.allocation-bar i { background:var(--accent); box-shadow:none; }.allocation-bar b { background:#b7d9c8; }
.allocation-legend,.allocation-overview span,.allocation-overview small { font-size:12px; }.allocation-legend span:last-child { color:var(--muted); }
.monitor-fieldset { background:#fcf8ef; }.monitor-fieldset>p { color:var(--amber); font-size:12px; }
.policy-evidence-item>i.healthy,.policy-evidence-item>b.healthy,.review-history article strong { color:var(--green); }
.policy-evidence-item>i.blocked,.policy-evidence-item>b.blocked { color:var(--red); }
.model-review-blockers p { color:var(--red); background:#fbefef; border-color:#e6c1c3; }.model-review-blockers p.eligible { color:var(--green); background:#edf7f1; border-color:#c5dfd1; }
.error { color:var(--red); }.client-update-notice { color:var(--amber); background:#fcf6e9; border-color:#e6d4ae; }
dialog,.feature-help-dialog,.research-gate-dialog,.easy-dialog { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:10px; box-shadow:0 24px 72px #142b4933; }
.trade-modal { background:#fff; border-color:var(--line); box-shadow:0 24px 72px #142b4933; border-radius:10px; }
.trade-modal .trade-gate-step,.trade-evidence-section,.trade-signal-card { background:#f7f9fc; border-color:var(--line); }
.trade-gate-step i,.trade-gate-step.passed i,.trade-gate-step.stopped i { box-shadow:none; }
dialog::backdrop,.feature-help-dialog::backdrop,.research-gate-dialog::backdrop,.easy-dialog::backdrop { background:#142b4980; backdrop-filter:blur(3px); }
.feature-help-dialog dt { color:var(--navy); }.feature-help-dialog dd { color:var(--ink); }
.research-gate-dialog .gate-actions,.easy-actions { background:#fff; border-color:var(--line); padding:16px 0; }
.gate-fields-grid legend { color:var(--muted); font-size:13px; }.gate-fields-grid:disabled { opacity:.65; }
.gate-fields-grid input[type=checkbox] { accent-color:var(--navy); }
.gate-switch input[type=checkbox],.review-checklist input,.parameter-toggles input { accent-color:var(--navy); }
.blocker-item details { background:#fff; border-color:var(--line); }
.easy-return { background:#edf3f9; border-color:#cedcea; border-radius:6px; color:var(--ink); }
.easy-current { background:#f7f9fc; border-color:var(--line); border-radius:8px; }.easy-current h3 { font-size:23px; }
.easy-steps li { color:var(--muted); border-color:#d4deea; font-size:13px; }.easy-steps li[data-state=complete] { color:var(--green); border-color:var(--green); }
.easy-steps li[data-state=current] { color:var(--navy); background:#edf3f9; border-color:var(--accent); font-weight:650; }
.easy-alternative { background:#fff; border-color:var(--line); }.easy-alternative p,.easy-footnote,#easy-mode-checked { color:var(--muted); font-size:13px; }
.auth-wrap { padding:48px 0; }.auth-wrap::before,.auth-wrap::after { display:none; }
.auth-stage { box-shadow:0 12px 48px #142b4914; border:1px solid var(--line); border-radius:12px; background:#fff; gap:0; overflow:hidden; align-items:stretch; min-height:580px; }
.auth-story { background:var(--navy); color:#fff; padding:48px; }.auth-story .eyebrow { color:#b9c8db; }.auth-story .muted { color:#c8d5e5; }
.auth-display { color:#fff; font-size:clamp(32px,4vw,54px); line-height:1.1; }.auth-story::before,.auth-story::after,.auth-card-glow { display:none; }
.auth-card,.auth-stage>.auth-card { background:#fff; border:0; box-shadow:none; padding:44px; }.auth-card h1 { color:var(--navy); font-size:34px; line-height:1.2; }
.auth-card input { background:#fff; color:var(--ink); border-color:var(--line-strong); }
.auth-card input::placeholder { color:#69788b; }
.auth-card input:-webkit-autofill { -webkit-text-fill-color:var(--ink); box-shadow:0 0 0 1000px #fff inset; }
.auth-wrap:not(.hidden) :is(.auth-story,.auth-card,.auth-card h1,.auth-card form,.auth-assurance) { animation:none; }
.accent-period { color:var(--accent); }.auth-story .accent-period { color:#b9c8db; }.secure-kicker { color:var(--muted); }.secure-kicker span { background:var(--green); box-shadow:none; }
.password-toggle { color:var(--accent); background:#f4f7fa; border:0; }.auth-assurance { color:var(--muted); }.auth-submit { min-height:48px; }
.signal-board { background:#1a3352; border-color:#3b5573; box-shadow:none; }.signal-head,.signal-foot { color:#c8d5e5; }.signal-head strong,.signal-foot strong { color:#fff; }
.signal-foot span:last-child strong { color:#ffb9bb; }
.signal-bars i { background:#7ea4cb; animation:none; box-shadow:none; }
.auth-submit::before { display:none; }
.signal-sweep,.signal-node { animation:none; box-shadow:none; }
.metric-grid article,.operations-metrics article,.portfolio-kpis>div,.portfolio-kpis>div:nth-child(3n),.portfolio-kpis>div:nth-last-child(-n+3),.pipeline-steps>div,.allocation-overview article,
.scan-summary,.decision-scope,.condition-group,.regime-state-pair>div,.regime-footer,
.parameter-policy-map,.parameter-policy-map article,.evidence-note-grid article,.evidence-funnel li,
.evidence-shell-state,.evidence-filter-grid :is(input,select),.rejection-filters :is(input,select),
.trade-provenance,.company-fundamentals pre { background:var(--surface-raised); border-color:var(--line); box-shadow:none; }
.operations-metrics strong,.portfolio-kpis strong { color:var(--navy); }
.regime-state-pair strong,.regime-footer strong { color:var(--ink); }
.regime .gauge i { border-color:#fff; box-shadow:0 0 0 1px #a4b4c5; }
.regime-rule,.regime-budget-note { font-size:12px; }
.watchlist-guidance { font-size:13px; max-width:88ch; line-height:1.6; margin:0 0 12px; }
#watchlist-summary { color:var(--navy); font-weight:600; margin-bottom:8px; }
.watchlist-stock-name { display:block; color:var(--muted); font-size:12px; margin-top:4px; max-width:28ch; }
#watchlist-rows td:nth-child(1) { white-space:nowrap; }
#watchlist-rows td:nth-child(4) { min-width:220px; }
#watchlist-rows td:nth-child(5) { min-width:160px; }
#watchlist-search-status:empty,#watchlist-result:empty,.watchlist-search-results:empty { display:none; }
.table-sort { color:var(--ink); font-weight:600; font-size:12px; }
.workspace-authenticated button.console-card>strong { color:var(--status-color,var(--navy)); }
@media(max-width:1200px) {
  .workspace-authenticated { --sidebar-width:196px; }
  .workspace-authenticated .brand { left:18px; width:167px; }.workspace-authenticated .brand small { font-size:9px; }
  .workspace-authenticated .shell { padding-left:calc(var(--sidebar-width) + 22px); padding-right:22px; }
  .watchlist-toolbar { grid-template-columns:1fr 1.6fr; }.watchlist-toolbar .gate-switch { grid-column:1/-1; margin-top:0; }
}
@media(max-width:780px) {
  .workspace-authenticated .shell { padding-inline:16px; }
  .workspace-authenticated .brand { color:var(--navy); background:var(--canvas); width:auto; }
  .workspace-authenticated .brand-mark { background:var(--navy); color:#fff; border-color:var(--navy); }
  .workspace-authenticated #sign-out { color:var(--navy); border-color:var(--line-strong); background:#fff; }
  .workspace-authenticated .app-nav { padding:12px; border:1px solid #405a77; }
  .workspace-authenticated .system-ribbon { gap:10px; padding:14px 0; }.workspace-authenticated .ribbon-connection { flex:1 1 100%; width:100%; }
  .workspace-authenticated #refresh-system-status { font-size:12px; }#open-easy-mode { flex:1; }
  .workspace-authenticated .workspace-head h1 { font-size:26px; }.workspace-tabs { gap:0; }
  .workspace-tabs>button { padding:12px 10px; font-size:13px; }
  .panel { padding:18px; }.workspace-authenticated .panel-head h2 { font-size:19px; }
  .session-state-live>p:last-child { font-size:13px; }.session-state-next time { font-size:12px; }
  .watchlist-toolbar { grid-template-columns:1fr; }.watchlist-toolbar .gate-switch { grid-column:auto; }
  .watchlist-toolbar label { margin:8px 0; }
  .watchlist-table,.watchlist-table tbody { display:block; width:100%; min-width:0; }
  .watchlist-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .watchlist-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:16px; gap:12px; border-bottom:1px solid var(--line); }
  .watchlist-table tr:last-child { border-bottom:0; }
  #watchlist-rows td { border:0; padding:0; min-width:0; white-space:normal; }
  #watchlist-rows td:nth-child(1) { grid-column:1/-1; color:var(--muted); font-size:12px; }
  #watchlist-rows td:nth-child(2) { grid-column:1/-1; }
  #watchlist-rows td:nth-child(2) .company-symbol-link { font-size:17px; }
  #watchlist-rows td:nth-child(3) { grid-column:1; }
  #watchlist-rows td:nth-child(4),#watchlist-rows td:nth-child(5) { grid-column:1/-1; font-size:13px; }
  #watchlist-rows td:nth-child(4)::before { content:"Evaluation status"; }
  #watchlist-rows td:nth-child(5)::before { content:"Latest five-minute bar"; }
  #watchlist-rows td:nth-child(4)::before,#watchlist-rows td:nth-child(5)::before { display:block; font-size:11px; font-weight:600; color:var(--muted); margin-bottom:4px; }
  #watchlist-rows td:nth-child(6) { grid-column:2; grid-row:3; }
  .watchlist-stock-name { max-width:none; }
  .market-tape article,.market-tape article:nth-child(2) { border:1px solid var(--line); }
  .economic-event { grid-template-columns:84px minmax(0,1fr) auto; }
  .auth-wrap { padding:20px 0; }.auth-card { padding:28px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }

/* The study starts with progress and a small comparison; evidence stays expandable. */
#comparative-study-panel .study-intro { color:var(--muted); margin:0 0 18px; max-width:80ch; line-height:1.6; }
.study-record-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.study-record-control { display:flex; align-items:center; gap:12px; min-width:0; }
.study-record-bar label { margin:0; font-size:13px; white-space:nowrap; }
.study-record-bar select { width:min(420px,100%); min-height:44px; }
#study-freshness { font-size:12px; }
.study-overview { border:1px solid var(--line); border-radius:10px; background:var(--surface-raised); padding:20px; }
.study-progress-head { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.study-progress-head h3 { margin:0; font-size:18px; color:var(--navy); }
#study-progress-label { font-size:13px; font-variant-numeric:tabular-nums; }
#study-progress-meter { display:block; width:100%; height:8px; margin:16px 0; accent-color:var(--navy); }
#study-status { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
#study-attention { margin:12px 0 0; font-size:13px; color:var(--amber); line-height:1.6; }
.study-next { display:flex; align-items:baseline; gap:14px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; }
.study-next strong { white-space:nowrap; color:var(--navy); }.study-next p { margin:0; line-height:1.6; }
.study-comparison-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:26px 0 14px; }
.study-comparison-head h3 { margin:0; font-size:17px; }.study-comparison-head label { display:flex; align-items:center; gap:10px; margin:0; font-size:13px; }
.study-comparison-head select { min-height:44px; width:150px; }
.study-comparison { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.study-strategy-card { padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--panel); min-width:0; }
.study-strategy-card h4 { margin:0; color:var(--navy); font-size:16px; }
.study-strategy-card>p { color:var(--muted); font-size:12px; margin:8px 0 12px; line-height:1.5; }
.study-strategy-card dl div { padding:10px 0; gap:12px; font-size:13px; }
.study-strategy-card dt { color:var(--muted); }.study-strategy-card dd { margin:0; color:var(--navy); font-weight:600; text-align:right; font-variant-numeric:tabular-nums; }
.study-strategy-card .study-card-note { margin:12px 0 0; font-size:12px; }
#comparative-study-panel .study-result-note { font-size:12px; line-height:1.6; margin:12px 0 22px; }
.study-disclosure { border-radius:8px; margin-top:10px; }
.study-disclosure>summary { min-height:44px; padding:14px 16px; font-size:13px; cursor:pointer; }
.study-disclosure[open]>summary { border-bottom:1px solid var(--line); }
.study-disclosure> :not(summary) { margin:16px; }
.study-disclosure li { margin-bottom:10px; line-height:1.6; font-size:13px; }
#study-diagnostics { text-align:left; font-size:13px; line-height:1.6; }
#study-diagnostics dt { color:var(--navy); font-weight:600; margin-top:20px; }
#study-diagnostics dt:first-child { margin-top:0; }
#study-diagnostics dd { color:var(--muted); font-weight:400; text-align:left; margin:6px 0 18px; overflow-wrap:anywhere; }
#study-design { font-size:13px; line-height:1.6; }#study-design dd { text-align:left; font-weight:400; }
#study-alerts:empty { display:none; }
@media(max-width:1000px) {
 .study-comparison { grid-template-columns:1fr; }.study-record-bar { align-items:flex-start; flex-direction:column; gap:8px; }
 .study-record-control { width:100%; }.study-strategy-card dl { display:flex; gap:20px; flex-wrap:wrap; }
 .study-strategy-card dl div { flex:1 1 120px; }.study-progress-head { align-items:flex-start; flex-direction:column; gap:6px; }
}
@media(max-width:600px) {
 .study-record-control { flex-direction:column; align-items:flex-start; gap:6px; }.study-record-bar select { width:100%; }
 .study-overview { padding:16px; }.study-next { flex-direction:column; gap:6px; }
 .study-comparison-head select { width:125px; }.study-strategy-card dl { display:block; }
 #study-design { grid-template-columns:1fr; }#study-design dt { font-weight:600; margin-top:10px; }
 .study-disclosure> :not(summary) { margin:12px; }
}
