:root {
  --paper: #f3f6fa;
  --paper-light: #ffffff;
  --ink: #172b4d;
  --ink-soft: #425570;
  --ink-muted: #65758b;
  --line: #dce3ed;
  --line-strong: #172b4d;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --positive: #087f5b;
  --warning: #966000;
  --negative: #c53945;
  --sidebar: 208px;
  --nav: #101f38;
  --blue-soft: #eef4ff;
  --body-font: "IBM Plex Sans", "Avenir Next", Arial, sans-serif;
  --display-font: var(--body-font);
  color-scheme: light;
  font-family: var(--body-font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums lining-nums; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.boot-screen { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 18px; color: var(--ink-soft); font-family: var(--display-font); font-size: 1.4rem; }
.boot-screen img { width: 52px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); color: var(--paper-light); background: var(--nav); padding: 20px 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px; color: var(--paper-light); text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .1em; }
.brand img { width: 27px; height: 27px; object-fit: contain; filter: none; }
.brand span { white-space: nowrap; }
.workspace-kicker { color: #9badc6; font-size: .64rem; font-weight: 700; text-transform: uppercase; margin: 28px 10px 12px; letter-spacing: .08em; }
.nav-list { display: grid; border-top: 0; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; border: 0; color: #bdcbe0; background: transparent; text-align: left; font-weight: 500; transition: color .15s, background .15s; min-height: 42px; padding: 0 12px; border-bottom: 0; border-radius: 5px; font-size: .8rem; }
.nav-item:hover { color: #fff; background: #1e3356; }
.nav-item.active { color: #fff; font-weight: 700; background: #203e6b; box-shadow: inset 3px 0 #60a5fa; }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; stroke-width: 1.65; fill: none; }
.sidebar-bottom { margin-top: auto; }
.data-source { padding: 17px 9px 0; border-top: 1px solid #2d4262; }
.data-source small, .metric-card-label, .hero-kicker, .rank-context small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.data-source small { color: #9badc6; }
.data-source strong { display: block; overflow: hidden; margin-top: 9px; color: #e2eaf5; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 500; }
.data-source button { margin-top: 13px; padding: 0; border: 0; color: #93b8ff; background: none; font-size: .73rem; font-weight: 700; text-underline-offset: 3px; text-decoration: none; }
.page-wrap { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--paper-light); min-height: 62px; padding: 10px 28px; border-bottom: 1px solid var(--line); }
.crumb { color: var(--ink-muted); font-weight: 700; text-transform: uppercase; font-size: .62rem; letter-spacing: .07em; }
.page-title { margin-top: 3px; font-size: .85rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; color: var(--ink-soft); font-size: .72rem; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }
.status-dot.offline { background: var(--negative); }
.icon-button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: var(--paper-light); }
.icon-button:hover { color: var(--accent); background: var(--blue-soft); }
.icon-button svg, .button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.main { margin: 0 auto; width: min(100%, 1680px); padding: 24px 28px 48px; }
.view.active { display: block; }
.view:not(.active) { display: none; }
.view-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; gap: 16px 24px; margin-bottom: 22px; padding-bottom: 0; border-bottom: 0; align-items: center; }
.view-header h1 { max-width: 850px; margin: 0; font-family: var(--display-font); font-size: 1.75rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.view-header p { color: var(--ink-soft); line-height: 1.5; margin: 7px 0 0; font-size: .82rem; max-width: 740px; }
.view-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-bottom: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-size: .75rem; line-height: 1.2; transition: color .15s, background .15s; min-height: 34px; padding: 7px 11px; border: 1px solid #ccd6e5; border-radius: 4px; background: var(--paper-light); font-weight: 600; }
.button:hover { color: var(--accent-dark); background: var(--blue-soft); border-color: #a9c6ff; }
.button.primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.button.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button.subtle { border-color: transparent; background: transparent; }
.button.danger { color: var(--negative); }
.grid { display: grid; min-width: 0; gap: 18px; }
.today-grid { grid-template-columns: minmax(0, 1.67fr) minmax(265px, .75fr); gap: 20px; }
.portfolio-grid { grid-template-columns: minmax(0, 1.65fr) minmax(275px, .8fr); gap: 20px; }
.holding-grid { grid-template-columns: minmax(0, 1.45fr) minmax(310px, .78fr); gap: 20px; }
.compare-grid { grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 20px; }
.card { min-width: 0; border-top: 2px solid var(--ink); border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); padding: 0 18px 16px; }
.card.pad { padding: 18px; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0 13px; }
.card-title { margin: 0; font-family: var(--display-font); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card-subtitle { max-width: 480px; color: var(--ink-muted); line-height: 1.45; margin: 5px 0 0; font-size: .75rem; }
.card-action { align-self: start; flex: 0 0 auto; padding: 4px 0; border: 0; color: var(--accent-dark); background: none; font-size: .73rem; font-weight: 700; border-bottom: 0; }
.card-action:hover { color: var(--ink); border-color: var(--ink); }
.hero-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; min-height: 180px; padding: 22px; background: var(--paper-light); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
.hero-card::after { position: absolute; top: 0; height: 100%; background: var(--accent); content: ""; width: 3px; left: 0; right: auto; }
.hero-kicker { margin: 0; color: var(--accent-dark); }
.hero-card h2 { max-width: 630px; font-family: var(--display-font); margin: 12px 0 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.hero-card p:not(.hero-kicker) { max-width: 630px; line-height: 1.55; margin: 10px 0 0; color: var(--ink-soft); font-size: .8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; width: 100%; margin-top: auto; font-size: .7rem; padding-top: 18px; color: var(--ink-muted); }
.hero-meta span:first-child { font-weight: 700; color: var(--accent-dark); }
.hero-meta span + span::before { margin-right: 16px; color: #7f95b3; content: "/"; }
.findings { display: grid; border-top: 0; }
.finding { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 15px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.finding-mark { display: grid; width: 26px; height: 26px; place-items: center; color: var(--accent); }
.finding-mark.warning { color: var(--warning); }
.finding-mark svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.finding h3 { margin: 0; font-size: .87rem; font-weight: 700; }
.finding p { margin: 6px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.finding .button { min-height: 31px; padding: 4px 9px; }
.summary-stack { display: grid; align-content: start; gap: 16px; }
.metric-card { padding: 18px; }
.metric-card-label { color: var(--ink-muted); }
.metric-value { font-family: var(--display-font); margin: 12px 0 0; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.metric-status { display: flex; align-items: center; min-height: 45px; margin-top: 12px; }
.metric-detail { margin: 12px 0 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }
.metric-card.positive .metric-value { color: var(--positive); }
.metric-card.ink .metric-value { color: var(--ink); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-grid .metric-value { font-size: 1.55rem; }
.coverage-bar { background: #e6edf6; margin-top: 16px; height: 5px; border-radius: 3px; overflow: hidden; }
.coverage-bar > i { display: block; height: 100%; background: var(--accent); }
.coverage-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--ink-muted); font-size: .68rem; }
.relationship-map { min-height: 375px; padding: 0 0 15px; }
.relationship-graphic { width: 100%; min-height: 320px; overflow: visible; }
.relationship-edge { stroke: #90a3be; stroke-width: 1.25; opacity: .85; }
.relationship-edge.strong { stroke: var(--accent); stroke-width: 2.3; }
.relationship-node { fill: var(--paper-light); stroke: var(--ink); stroke-width: 1.4; }
.relationship-node.covered { fill: #e8effa; }
.relationship-node.uncovered { fill: var(--paper); stroke: #94a3b8; stroke-dasharray: 3 2; }
.relationship-node.focus { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.graph-node:focus-visible { outline: none; }
.graph-node:focus-visible .relationship-node { stroke: var(--accent); stroke-width: 3; }
.relationship-label { fill: var(--ink); font-family: var(--body-font); font-size: 11px; font-weight: 700; text-anchor: middle; }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px 15px; margin: 0 0 15px; color: var(--ink-muted); font-size: .69rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; background: var(--ink); }
.legend-dot.unavailable { background: #94a3b8; }
.legend-line { width: 17px; height: 2px; background: var(--accent); }
.map-note { margin: 0 0 15px; color: var(--ink-muted); font-size: .72rem; line-height: 1.45; }
.graph-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.graph-key button { display: flex; min-width: 0; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 6px 9px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.graph-key button:hover { color: var(--accent-dark); }
.graph-key strong { min-width: 0; font-size: .69rem; font-weight: 600; }
.graph-key span { flex: 0 0 auto; color: var(--ink-muted); font-size: .63rem; }
.market-performance { margin-top: 18px; }
.market-attribution, .market-unavailable { margin: 12px 0 0; color: var(--ink-muted); font-size: .72rem; line-height: 1.5; }
.market-attribution a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cluster-list { display: grid; border-top: 1px solid var(--line); }
.cluster { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cluster-head { display: flex; justify-content: space-between; gap: 10px; }
.cluster-title { color: var(--ink); font-size: .77rem; font-weight: 700; }
.cluster-weight { color: var(--accent-dark); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.ticker-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.ticker { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; padding: 5px 7px; border: 1px solid var(--line); color: var(--ink); font-family: var(--body-font); font-size: .68rem; line-height: 1.35; }
.ticker strong { font-weight: 600; }
.ticker small { color: var(--ink-muted); font-size: .63rem; font-weight: 700; letter-spacing: .04em; }
.table-wrap { overflow: auto; border-top: 1px solid var(--line); }
.data-table { width: 100%; min-width: 590px; border-collapse: collapse; }
.data-table th { padding: 11px 10px; color: var(--ink-muted); text-align: left; font-weight: 700; text-transform: uppercase; white-space: nowrap; background: #f7f9fc; font-size: .64rem; letter-spacing: .05em; }
.data-table td { border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; padding: 10px; font-size: .76rem; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover, .data-table tbody tr.selected { background: #eff5ff; }
.data-table td.num, .data-table th.num { text-align: right; }
.symbol-cell { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; }
.symbol-text { display: grid; gap: 3px; min-width: 0; }
.symbol-text strong { font-size: .78rem; font-weight: 700; line-height: 1.25; }
.symbol-text small { color: var(--ink-muted); font-size: .64rem; font-weight: 600; letter-spacing: .06em; }
.symbol-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; font-size: .62rem; border: 1px solid var(--line); background: var(--blue-soft); color: var(--accent-dark); border-radius: 4px; }
.rank { color: var(--ink); font-weight: 700; }
.signal { font-weight: 700; }
.signal.positive { color: var(--positive); }
.signal.negative { color: var(--negative); }
.signal.neutral { color: var(--ink-muted); }
.uncertainty, .table-reason { color: var(--ink-muted); font-size: .72rem; }
.table-reason { display: block; margin-top: 4px; }
.holding-panel { position: sticky; top: 22px; align-self: start; }
.holding-hero { padding: 18px 0 23px; border-bottom: 1px solid var(--line); }
.holding-symbol { display: flex; align-items: flex-start; gap: 10px; }
.holding-symbol strong { display: block; font-family: var(--display-font); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.holding-symbol span:not(.symbol-avatar) { display: block; margin-top: 7px; color: var(--ink-muted); font-size: .75rem; }
.holding-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.holding-stat { min-width: 0; border-bottom: 1px solid var(--line); padding: 13px 10px 13px 0; }
.holding-stat small { display: block; color: var(--ink-muted); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.holding-stat strong { display: block; margin-top: 8px; font-size: .89rem; }
.holding-section { border-bottom: 1px solid var(--line); padding: 16px 0; }
.holding-section:last-child { border-bottom: 0; }
.holding-section h3 { margin: 0; font-size: .69rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.holding-section p { margin: 9px 0 0; color: var(--ink-soft); font-size: .77rem; line-height: 1.52; }
.evidence-list { display: grid; gap: 0; margin: 9px 0 0; }
.evidence-item { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .75rem; }
.evidence-item:last-child { border-bottom: 0; }
.evidence-item span:first-child { color: var(--ink-muted); }
.evidence-item strong { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr); gap: 30px; padding: 4px 0 19px; }
.rank-context { display: grid; align-content: start; gap: 18px; padding-top: 8px; }
.rank-context small { color: var(--ink-muted); }
.rank-context .ticker-list { margin-top: 7px; }
.evidence-footnote { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .73rem; line-height: 1.45; }
.compare-editor { padding: 0 0 20px; }
.weight-row { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(60px, 1.2fr) 65px 29px; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.weight-row label { display: grid; gap: 4px; min-width: 0; font-size: .77rem; }
.weight-row label strong { line-height: 1.25; }
.weight-row label small { color: var(--ink-muted); font-size: .65rem; letter-spacing: .05em; }
.weight-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.weight-value { box-sizing: border-box; width: 100%; min-width: 0; padding: 6px; color: var(--ink); background: var(--paper-light); text-align: right; font-size: .75rem; border: 1px solid #ccd6e5; border-radius: 4px; }
.weight-delete { display: grid; width: 27px; height: 27px; place-items: center; border: 0; color: var(--ink-muted); background: transparent; }
.weight-delete:hover { color: var(--negative); }
.weight-delete svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.add-symbol { display: flex; gap: 8px; margin-top: 20px; }
.field { width: 100%; padding: 7px 10px; outline: none; color: var(--ink); background: var(--paper-light); font-size: .78rem; border: 1px solid #ccd6e5; border-radius: 4px; min-height: 36px; }
.field.area { min-height: 110px; resize: vertical; }
.delta-list { display: grid; border-top: 1px solid var(--line); }
.delta { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.delta small { display: block; color: var(--ink-muted); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.delta strong { display: block; margin-top: 6px; font-size: .88rem; }
.delta-change { flex: 0 0 auto; text-align: right; }
.delta-change.positive strong { color: var(--positive); }
.delta-change.caution strong { color: var(--negative); }
.withheld-card { margin-top: 16px; padding: 16px; border-left: 3px solid var(--warning); background: #fff8e6; }
.withheld-card strong { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: .76rem; }
.withheld-card svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.withheld-card p { margin: 7px 0 0; color: var(--ink-soft); font-size: .73rem; line-height: 1.45; }
.review-list { display: grid; border-top: 1px solid var(--line); }
.review-row { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.review-marker { width: 8px; height: 8px; margin-top: 5px; background: var(--accent); }
.review-marker.dismissed { background: var(--ink-muted); }
.review-row p { margin: 0; color: var(--ink); font-size: .78rem; line-height: 1.4; }
.review-row small { display: block; margin-top: 5px; color: var(--ink-muted); font-size: .7rem; overflow-wrap: anywhere; }
.review-row time { color: var(--ink-muted); font-size: .7rem; white-space: nowrap; }
.empty { display: grid; justify-items: start; gap: 10px; padding: 28px 0; color: var(--ink-soft); }
.empty svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.6; fill: none; }
.empty strong { color: var(--ink); font-family: var(--display-font); font-size: 1.5rem; font-weight: 400; }
.empty p { max-width: 500px; margin: 0; font-size: .8rem; line-height: 1.5; }
.chip { display: inline-flex; align-items: center; padding: 4px 7px; color: var(--ink-soft); font-size: .67rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); border-radius: 4px; background: #f7f9fc; letter-spacing: .04em; }
.chip.available, .chip.validated, .chip.covered { color: var(--positive); }
.chip.limited, .chip.partial, .chip.warning, .chip.stale { color: var(--warning); }
.chip.unavailable, .chip.withheld, .chip.not_covered { color: var(--ink-muted); }
.chip.ink { color: var(--ink); }
.chip.rose, .chip.invalid, .chip.failed { color: var(--negative); }
.muted { color: var(--ink-muted); }
.hide { display: none !important; }
.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(15, 23, 42, .5); }
.modal { width: min(100%, 520px); max-height: min(92vh, 760px); overflow: auto; background: var(--paper-light); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 60px rgba(15, 23, 42, .2); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 23px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: var(--display-font); font-size: 1.2rem; font-weight: 600; }
.modal-head p { margin: 7px 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.modal-body { padding: 23px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 17px 23px; border-top: 1px solid var(--line); }
.form-row { display: grid; gap: 7px; margin-bottom: 17px; }
.form-row label { color: var(--ink); font-size: .74rem; font-weight: 700; }
.form-help, .connection-status { margin: 5px 0 0; color: var(--ink-muted); font-size: .72rem; line-height: 1.4; }
.connection-status.error { color: var(--negative); }
.tour-launch { border-color: var(--accent); color: var(--accent-dark); }
.tour-launch:hover { border-color: var(--ink); }
.tour-backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(15, 23, 42, .65); }
.tour-focus { position: relative; z-index: 61; outline: 3px solid var(--accent); outline-offset: 5px; background-color: var(--paper-light); pointer-events: none; }
.hero-card.tour-focus, .metric-card.ink.tour-focus { background-color: var(--paper-light); }
.tour-panel { position: fixed; z-index: 62; width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 24px 20px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 48px rgba(15, 23, 42, .25); }
.tour-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--accent-dark); font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.tour-close { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.tour-close:hover { color: var(--paper-light); background: var(--ink); }
.tour-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.tour-rule { width: 48px; height: 4px; margin: 18px 0 17px; background: var(--accent); }
.tour-panel h2 { margin: 0; font-family: var(--display-font); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.tour-copy { display: grid; gap: 4px; margin-top: 22px; }
.tour-copy strong { margin-top: 6px; color: var(--ink); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.tour-copy p { margin: 0 0 11px; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.tour-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 17px; border-top: 1px solid var(--line); }
.tour-foot .button { min-width: 82px; }
.toast { position: fixed; z-index: 70; right: 22px; bottom: 22px; max-width: min(370px, calc(100vw - 44px)); padding: 13px 16px; color: var(--paper-light); background: var(--ink); font-size: .76rem; font-weight: 600; border: 1px solid #2d4262; border-radius: 6px; }
@media (max-width: 1180px) {
  :root { --sidebar: 72px; }
  .sidebar { padding-inline: 10px; }
  .brand { justify-content: center; padding: 0; }
  .brand span, .workspace-kicker, .nav-item span, .data-source { display: none; }
  .nav-list { margin-top: 28px; }
  .nav-item { justify-content: center; }
  .topbar, .main { padding-left: 30px; padding-right: 30px; }
  .today-grid, .portfolio-grid, .holding-grid, .compare-grid { gap: 26px; }
}
@media (max-width: 980px) {
  .today-grid, .portfolio-grid, .holding-grid, .compare-grid { grid-template-columns: 1fr; }
  .summary-stack { grid-template-columns: 1fr 1fr; gap: 22px; }
  .summary-stack > .card:last-child { grid-column: 1 / -1; }
  .holding-panel { position: static; }
}
@media (max-width: 690px) {
  :root { --sidebar: 0px; }
  .sidebar { top: auto; right: 0; bottom: 0; width: 100%; height: 65px; flex-direction: row; align-items: center; padding: 0 5px; border-top: 1px solid #2d4262; }
  .brand, .sidebar-bottom { display: none; }
  .nav-list { display: flex; justify-content: space-around; width: 100%; margin: 0; border: 0; }
  .nav-item { width: auto; min-height: 60px; flex-direction: column; justify-content: center; gap: 4px; padding: 4px 6px; border: 0; font-size: .6rem; }
  .nav-item span { display: block; }
  .nav-item svg { width: 17px; height: 17px; flex-basis: 17px; }
  .nav-item.active { box-shadow: inset 0 3px var(--accent); }
  .page-wrap { margin-left: 0; padding-bottom: 65px; }
  .topbar { min-height: 61px; padding: 8px 17px; }
  .topbar-actions { gap: 6px; }
  .status-pill { display: none; }
  .main { padding: 30px 17px 50px; }
  .view-header { grid-template-columns: 1fr; min-height: 0; gap: 20px; margin-bottom: 27px; padding-bottom: 23px; }
  .view-header h1 { font-size: 1.5rem; }
  .view-header p { margin-top: 11px; font-size: .84rem; }
  .view-actions { justify-content: start; }
  .view-actions .button { flex: 1 1 auto; }
  .grid, .summary-stack { gap: 20px; }
  .summary-stack { grid-template-columns: 1fr; }
  .summary-stack > .card:last-child { grid-column: auto; }
  .mini-grid { gap: 17px; }
  .hero-card { min-height: 180px; padding: 20px; }
  .hero-card h2 { font-size: 1.2rem; }
  .finding { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .finding .button { grid-column: 2; justify-self: start; }
  .evidence-grid { grid-template-columns: 1fr; gap: 15px; }
  .relationship-map { min-height: 300px; }
  .relationship-graphic { min-height: 265px; }
  .weight-row { grid-template-columns: minmax(0, 1fr) 60px 25px; gap: 7px; }
  .weight-row label { grid-column: 1 / -1; }
  .weight-value { width: 60px; }
  .delta { gap: 7px; }
  .review-row { grid-template-columns: 8px minmax(0, 1fr); }
  .review-row time { grid-column: 2; }
  .tour-panel { padding: 18px 19px; }
  .tour-panel { top: auto !important; bottom: 78px; left: 16px !important; max-height: 44dvh; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .001ms !important; } }

/* Model sensitivity and scenario evidence. */
.driver-list { margin: 1.5rem 0; }
.driver-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line, #dce3ed); }
.driver-row strong { font-size: .9rem; }
.driver-row > span, .driver-row small { font-size: .75rem; }
.driver-track { grid-column: 1 / -1; height: 5px; background: #e6edf6; }
.driver-track span { display: block; height: 100%; background: #2563eb; }
.driver-row small { grid-column: 1 / -1; }
.driver-scope { font-size: .8rem; line-height: 1.65; }
.rank-explanation details { padding: .8rem 0; border-top: 1px solid #dce3ed; }
.rank-explanation summary { cursor: pointer; font-weight: 600; }
.rank-scenario { margin-top: 2rem; border-top: 3px solid #2563eb; }
.rank-scenario small { overflow-wrap: anywhere; }
@media (max-width: 600px) { .driver-row { grid-template-columns: 1fr; } }

.scenario-reference { display: block; margin-top: 1rem; font-size: .75rem; }

.weight-value { min-width: 0; }

/* Account access and subscription management. */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr); min-height: 100dvh; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 38px clamp(30px, 5vw, 90px) 30px; color: var(--paper-light); background: var(--nav); }
.auth-brand { padding: 0; }
.auth-story-copy { padding: 60px 0; }
.auth-story .eyebrow { color: #93b8ff; font-size: .67rem; letter-spacing: .15em; }
.auth-story h1 { margin: 25px 0 30px; font: 600 clamp(2rem, 3.5vw, 3.5rem)/1.18 var(--body-font); letter-spacing: -.03em; max-width: 650px; }
.auth-story-copy p { max-width: 310px; font-size: 1rem; line-height: 1.65; color: #bdcbe0; }
.auth-story-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid #2d4262; color: #bdcbe0; font-size: .67rem; }
.auth-entry { display: flex; flex-direction: column; justify-content: space-between; padding: 38px clamp(28px, 5vw, 90px) 30px; background: var(--paper-light); }
.auth-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-form-wrap { width: 100%; max-width: 430px; margin: 55px auto; }
.auth-form-wrap h2 { margin: 0; font: 600 1.75rem/1.2 var(--body-font); letter-spacing: -.025em; }
.auth-intro { margin: 19px 0 32px; color: var(--ink-soft); line-height: 1.6; font-size: .9rem; }
.auth-form .field { min-height: 49px; width: 100%; font-size: .94rem; background: var(--paper-light); }
.auth-form label { font-size: .8rem; }
.auth-submit { width: 100%; justify-content: space-between; min-height: 49px; margin-top: 10px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 23px; }
.text-button { padding: 0; border: 0; color: var(--ink); background: none; font-size: .78rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-button svg, .local-inbox-link svg, .sidebar-signout svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: middle; }
.text-button:hover { color: var(--accent-dark); }
.auth-smallprint { padding-top: 23px; margin-top: 28px; border-top: 1px solid var(--line); font-size: .74rem; line-height: 1.5; color: var(--ink-muted); }
.auth-entry-foot { color: var(--ink-muted); font-size: .68rem; }
.form-notice { border-left: 3px solid var(--accent); padding: 12px 15px; margin: 17px 0; background: var(--paper); color: var(--ink); font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.local-inbox-link { display: block; margin: 10px 0 5px; color: var(--accent-dark); font-weight: 600; text-underline-offset: 3px; }
.account-identity { display: grid; gap: 8px; padding: 22px 9px; }
.account-identity .chip { width: fit-content; color: var(--paper-light); border-color: #607b9f; background: none; text-transform: uppercase; }
.account-identity strong { font-size: .8rem; overflow-wrap: anywhere; }
.account-identity small { font-size: .7rem; color: #bdcbe0; overflow-wrap: anywhere; }
.sidebar-signout { padding: 8px 0 0; border: 0; background: none; color: #93b8ff; text-align: left; font-size: .74rem; font-weight: 600; }
.sidebar { overflow-y: auto; }
.workspace-kicker { margin-top: 28px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 24px; }
.account-section { border-bottom: 1px solid var(--ink); padding: 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); }
.section-number { color: var(--accent-dark); font-size: .68rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: .06em; }
.account-section h2, .billing-strip h2 { margin: 0 0 18px; font: 600 1.15rem/1.3 var(--body-font); letter-spacing: -.01em; }
.account-section p, .account-aside p { color: var(--ink-soft); font-size: .81rem; line-height: 1.6; }
.account-section form { max-width: 400px; }
.account-section .field { width: 100%; min-height: 43px; }
.account-email { display: grid; gap: 11px; margin-top: 30px; justify-items: start; }
.account-email strong { font-size: .92rem; overflow-wrap: anywhere; }
.account-heading-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.account-heading-row h2 { max-width: 380px; }
.account-portfolio-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.account-portfolio-row strong, .session-row strong { display: block; font-size: .88rem; }
.account-portfolio-row small { display: block; margin-top: 6px; color: var(--ink-muted); font-size: .74rem; }
.security-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.session-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); }
.session-row small { display: block; max-width: 370px; font-size: .69rem; color: var(--ink-muted); overflow-wrap: anywhere; margin-top: 6px; }
.session-row > span { max-width: 130px; font-size: .7rem; color: var(--ink-soft); }
.account-aside { border-top: 4px solid var(--accent); border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); padding: 20px; }
.account-aside h2 { overflow-wrap: anywhere; font: 600 1.2rem/1.3 var(--body-font); margin: 14px 0; }
.account-aside dl { display: grid; gap: 9px; margin: 25px 0; font-size: .76rem; }
.account-aside dt { color: var(--ink-muted); }
.account-aside dd { margin: 0 0 12px; }
.account-aside .button { width: 100%; justify-content: space-between; }
.danger-outline { border-color: var(--negative); color: var(--negative); }
.danger-outline:hover { color: var(--paper-light); background: var(--negative); }
.plan-intro { display: grid; gap: 24px; align-items: start; margin: 24px 0; grid-template-columns: 150px minmax(0, 1fr) 260px; }
.plan-intro h2 { margin: 0; font: 600 1.25rem/1.35 var(--body-font); letter-spacing: -.01em; }
.plan-intro p { margin: 0; font-size: .82rem; line-height: 1.65; color: var(--ink-soft); }
.plan-table { width: 100%; border-collapse: collapse; text-align: left; }
.plan-table th, .plan-table td { border-bottom: 1px solid var(--line); font-size: .84rem; vertical-align: middle; padding: 16px 20px; }
.plan-table th { font-weight: 500; }
.plan-table td:last-child, .plan-table thead th:last-child { background: var(--ink); color: var(--paper-light); border-color: #2d4262; }
.plan-table thead th { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-table thead th:last-child { border-top: 4px solid var(--accent); }
.plan-table thead span { display: block; font: 600 1.5rem var(--body-font); }
.plan-table thead small { display: block; font-size: .71rem; margin: 7px 0; opacity: .8; }
.plan-table th:first-child { width: 53%; padding-left: 20px; }
.billing-strip { display: grid; grid-template-columns: minmax(0, 1fr) 260px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); gap: 24px; }
.billing-strip .eyebrow { color: var(--accent-dark); margin-bottom: 18px; }
.billing-strip h2 { margin-bottom: 17px; }
.billing-strip p { max-width: 640px; color: var(--ink-soft); font-size: .85rem; line-height: 1.65; margin: 0; }
.billing-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: center; }
.billing-actions small { font-size: .72rem; color: var(--ink-muted); }
.simulation-note { color: var(--accent-dark); font-weight: 600; font-size: .86rem; }
@media (max-width: 1180px) { .plan-intro { grid-template-columns: 140px 1fr; } .plan-intro p { grid-column: 2; max-width: 480px; } .account-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 35px; } }
@media (max-width: 1050px) { .account-identity strong, .account-identity small, .account-identity .chip, .sidebar-signout, .data-source { display: none; } .account-identity { padding: 0; } .workspace-kicker { margin-top: 32px; } }
@media (max-width: 850px) { .auth-layout { grid-template-columns: 1fr; } .auth-story { min-height: auto; padding: 24px 30px; } .auth-story-copy { padding: 45px 0 35px; } .auth-story h1 { font-size: 2rem; } .auth-story-foot { display: none; } .auth-story-copy p { margin-bottom: 0; max-width: 400px; } .auth-entry { padding: 28px 30px; min-height: 580px; } .auth-form-wrap { margin: 40px auto; } .account-layout { grid-template-columns: 1fr; } .account-aside { display: none; } .billing-strip { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 690px) { .sidebar { overflow: visible; } .account-identity { display: none; } .nav-list { overflow-x: auto; } .nav-item { flex: 1 1 0; min-width: 0; padding-inline: 2px; font-size: .56rem; } .plan-intro { grid-template-columns: 1fr; margin: 30px 0; } .plan-intro p { grid-column: auto; } .plan-table th, .plan-table td { padding: 16px 12px; font-size: .73rem; } .plan-table th:first-child { width: 48%; } .plan-table thead span { font-size: 1.8rem; } .account-section h2, .billing-strip h2 { font-size: 1.15rem; } .session-row { grid-template-columns: 1fr; gap: 9px; } .session-row > span { max-width: none; } .auth-entry-top { flex-wrap: wrap; } }

/* Analytical charts share panel, selection and data-state conventions. */
.visual-section { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); }
.visual-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; align-items: center; }
.visual-heading .eyebrow { display: block; color: var(--accent-dark); font-size: .65rem; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: .06em; }
.visual-heading h2 { margin: 0; font: 600 1.05rem/1.3 var(--body-font); letter-spacing: -.01em; }
.visual-heading p { color: var(--ink-soft); line-height: 1.55; max-width: 650px; margin: 6px 0 0; font-size: .76rem; }
.viz-segment { display: inline-flex; align-self: flex-start; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.viz-segment button { border: 0; background: none; color: var(--ink); font-size: .73rem; font-weight: 600; min-height: 32px; padding: 6px 11px; }
.viz-segment button + button { border-left: 1px solid var(--line); }
.viz-segment button[aria-pressed="true"] { background: var(--blue-soft); color: var(--accent-dark); }
.viz-segment button:hover:not([aria-pressed="true"]) { background: #eff5ff; }
.atlas-layout, .network-layout { display: grid; align-items: stretch; grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; }
.atlas-plot, .network-stage { min-width: 0; position: relative; }
.atlas-svg, .network-stage svg { display: block; width: 100%; height: auto; background: var(--paper-light); border: 0; }
.atlas-svg { overflow: visible; max-height: 340px; }
.viz-axis-title { display: flex; justify-content: space-between; gap: 16px; font-size: .68rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 14px; }
.viz-axis-title > span { color: var(--ink-muted); font-weight: 400; text-align: right; }
.viz-grid { stroke: #e5ebf3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.viz-zero { stroke: #8b9db7; stroke-dasharray: 3 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.viz-tick { fill: var(--ink-muted); font: 12px var(--body-font); }
.viz-axis-label { fill: var(--ink); font: 12px var(--body-font); }
.zero-label { fill: var(--ink-soft); font-size: 11px; }
.viz-mark { cursor: pointer; outline: none; }
.viz-mark > circle { stroke: var(--paper-light); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .18s, stroke .18s; fill: #456b9e; }
.viz-mark.unheld > circle { fill: var(--paper-light); stroke: #7186a5; stroke-dasharray: 3 2; }
.viz-mark.is-selected > circle, .viz-mark:focus-visible > circle { fill: var(--accent); stroke: var(--accent-dark); stroke-dasharray: none; stroke-width: 2; }
.viz-mark:focus-visible > circle { stroke-width: 4; }
.atlas-label { opacity: 0; fill: var(--ink); font: 600 12px var(--body-font); text-anchor: middle; paint-order: stroke; stroke: var(--paper-light); stroke-width: 5; stroke-linejoin: round; pointer-events: none; transition: opacity .15s; }
.viz-mark.is-selected .atlas-label, .viz-mark:hover .atlas-label, .viz-mark:focus-visible .atlas-label { opacity: 1; }
.viz-readout { min-width: 0; border-top: 3px solid var(--accent); padding: 16px; background: #f5f8fd; border: 1px solid var(--line); border-radius: 5px; }
.viz-readout .eyebrow { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.viz-readout h3 { overflow-wrap: anywhere; margin: 10px 0 8px; font: 600 1.05rem/1.3 var(--body-font); letter-spacing: -.01em; }
.viz-readout-head > small { font-size: .71rem; color: var(--ink-soft); }
.viz-facts { display: grid; gap: 0; margin: 14px 0; }
.viz-facts > div { padding: 10px 0; border-top: 1px solid #dce3ed; }
.viz-facts dt { font-size: .68rem; color: var(--ink-muted); }
.viz-facts dd { margin: 6px 0 0; font-size: .82rem; font-weight: 600; }
.viz-readout .button { width: 100%; justify-content: space-between; font-size: .71rem; }
.viz-readout-placeholder, .viz-empty { padding: 40px 20px; font-size: .82rem; color: var(--ink-soft); }
.viz-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 23px; padding: 16px 0 9px; color: var(--ink-soft); font-size: .68rem; }
.viz-legend span { display: inline-flex; align-items: center; gap: 7px; }
.viz-legend .legend-dot { width: 9px; height: 9px; border-radius: 50%; background: #456b9e; border: 1px solid #456b9e; }
.viz-legend .legend-dot.unavailable { background: none; border: 1px dashed #7186a5; }
.viz-legend .legend-dot.accent { background: var(--accent); border-color: var(--accent-dark); }
.viz-legend .legend-line { width: 24px; height: 0; border-top: 2px solid var(--ink); background: none; }
.viz-legend .legend-line.inverse { border-top-style: dashed; }
.viz-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .67rem; padding: 12px 0 0; margin-top: 10px; }
.viz-footnote { max-width: 890px; color: var(--ink-soft); margin: 12px 0 0; font-size: .7rem; line-height: 1.5; }
.network-controls { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; padding: 10px 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 4px; }
.network-controls label { display: flex; align-items: center; gap: 14px; font-size: .73rem; }
.network-controls strong { width: 34px; font-variant-numeric: tabular-nums; }
.network-controls input { width: min(220px, 35%); accent-color: var(--accent); }
.network-controls > span { margin-left: auto; font-size: .7rem; color: var(--ink-muted); }
.network-stage svg { touch-action: pan-y; user-select: none; max-height: 360px; }
.network-link { stroke: #8fa7ca; opacity: .8; vector-effect: non-scaling-stroke; transition: opacity .18s; }
.network-link.inverse { stroke-dasharray: 5 5; }
.network-link.dimmed { opacity: .14; }
.network-link.filtered { display: none; }
.viz-mark[data-network-node] { cursor: grab; touch-action: none; }
.viz-mark.is-dragging { cursor: grabbing; }
.network-weight { fill: var(--paper-light); font: 600 11px var(--body-font); pointer-events: none; }
.unheld .network-weight { fill: var(--ink); }
.unheld.is-selected .network-weight { fill: var(--paper-light); }
.network-company { fill: var(--ink); font: 500 10px var(--body-font); pointer-events: none; paint-order: stroke; stroke: var(--paper-light); stroke-width: 3; stroke-linejoin: round; }
.connection-readout { margin-top: 24px; }
.connection-readout > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #dce3ed; font-size: .72rem; }
.connection-readout > div strong { font-variant-numeric: tabular-nums; }
.connection-readout p { color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.allocation-ribbon { margin-top: 28px; }
.allocation-track { display: flex; height: 58px; gap: 0; overflow: hidden; background: var(--paper); }
.allocation-slice { min-width: 0; flex-grow: 0; flex-shrink: 0; overflow: hidden; padding: 7px; border: 0; border-right: 2px solid var(--paper); color: var(--paper-light); font-size: .62rem; font-weight: 600; text-align: left; text-overflow: ellipsis; }
.allocation-slice:nth-child(6n+4), .allocation-slice:nth-child(6n+5), .allocation-slice:nth-child(6n+6) { color: #263440; }
.allocation-slice:focus-visible { outline-offset: -4px; outline-width: 3px; }
.allocation-slice:hover { box-shadow: inset 0 -5px var(--accent); }
.exposure-groups-strip { margin: 30px 0; }
.exposure-groups-strip .cluster-list { display: flex; flex-wrap: wrap; gap: 30px; }
.exposure-groups-strip .cluster { flex: 1 1 300px; max-width: 550px; }
.range-tools { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 4px 0 12px; }
.range-tools > label { display: flex; gap: 9px; align-items: center; font-size: .72rem; }
.range-tools select { padding: 6px 8px; width: 137px; background: transparent; font-size: .74rem; min-height: 32px; }
.range-axis, .range-row { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(0, 1.5fr); align-items: center; gap: 15px; }
.range-axis { position: sticky; top: 0; padding: 9px 12px; background: #f7f9fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.range-axis > span { font-size: .64rem; color: var(--ink-muted); }
.range-axis svg, .range-row svg { width: 100%; height: auto; display: block; overflow: visible; }
.range-rows { max-height: 580px; overflow-y: auto; scrollbar-color: var(--ink) var(--paper); }
.range-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); min-height: 58px; padding: 6px 10px; }
.range-row:hover { background: #e8effa; }
.range-row.is-selected { background: var(--ink); color: var(--paper-light); }
.range-name strong { display: block; font-size: .76rem; font-weight: 600; line-height: 1.4; }
.range-name small { display: block; margin-top: 5px; font-size: .64rem; color: var(--ink-muted); }
.range-row.is-selected .range-name small { color: #bdcbe0; }
.range-line { stroke-width: 3; vector-effect: non-scaling-stroke; stroke: #7186a5; }
.range-cap { stroke: #456b9e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.range-median { fill: var(--accent); stroke: var(--paper-light); stroke-width: 1; vector-effect: non-scaling-stroke; }
.range-value { fill: var(--ink-soft); font: 12px var(--body-font); }
.range-row.is-selected .range-line, .range-row.is-selected .range-cap { stroke: #a6bde0; }
.range-row.is-selected .range-value { fill: var(--paper-light); }
.range-row.is-selected .viz-zero { stroke: #6c8db9; }
.single-range { width: 100%; display: block; margin: 15px 0; }
.chart-data-table { margin-top: 20px; border-top: 1px solid var(--line); }
.chart-data-table summary { font-size: .76rem; color: var(--ink-soft); cursor: pointer; padding: 12px 0; }
.shift-summary { min-width: 190px; padding-left: 20px; border-left: 3px solid var(--accent); }
.shift-summary small { display: block; color: var(--ink-muted); font-size: .68rem; }
.shift-summary strong { display: block; margin-top: 6px; font: 600 1.65rem/1.15 var(--body-font); letter-spacing: -.025em; }
.shift-axis, .shift-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr) 140px; align-items: center; gap: 20px; }
.shift-axis { border-bottom: 1px solid var(--ink); margin-top: 15px; }
.shift-axis > span { font-size: .66rem; color: var(--ink-muted); }
.shift-axis svg { width: 100%; }
.shift-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.shift-row svg { display: block; width: 100%; height: auto; overflow: visible; }
.shift-rows { max-height: 480px; overflow-y: auto; }
.shift-name strong { font-size: .78rem; display: block; line-height: 1.35; }
.shift-name small { display: block; font-size: .67rem; color: var(--ink-muted); margin-top: 6px; }
.shift-baseline { stroke: #dce3ed; stroke-width: 1; vector-effect: non-scaling-stroke; }
.shift-connector { stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.shift-connector.decrease { stroke: #7186a5; }
.shift-saved { fill: var(--paper-light); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.shift-draft { fill: var(--accent); stroke: var(--accent-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.shift-values { font-size: .76rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shift-values > span { color: var(--ink-muted); padding: 0 4px; }
.rank-scenario .weight-shift { margin: 30px 0; }
@media (max-width: 1150px) { .atlas-layout, .network-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; } .viz-readout { padding: 17px 15px; } .viz-readout h3 { font-size: 1.05rem; } .shift-axis, .shift-row { grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) 116px; gap: 16px; } }
@media (max-width: 900px) { .atlas-layout, .network-layout { grid-template-columns: 1fr; } .viz-facts { grid-template-columns: 1fr 1fr; gap: 0 22px; } .viz-readout .button { max-width: 240px; } .connection-readout { margin-top: 20px; } .viz-readout h3 { max-width: 450px; } .network-controls { flex-wrap: wrap; } .network-controls > span { margin-left: 0; } }
@media (max-width: 690px) { .visual-section { margin: 0 0 18px; padding: 14px; } .visual-heading h2 { font-size: 1.05rem; } .visual-heading .viz-segment { width: 100%; } .visual-heading .viz-segment button { flex: 1; } .viz-axis-title { font-size: .65rem; } .network-controls input { flex: 1; width: auto; min-width: 100px; } .network-controls > span { width: 100%; } .allocation-track { height: 45px; } .allocation-slice { padding: 4px 2px; font-size: .5rem; } .range-axis, .range-row { grid-template-columns: minmax(95px, .75fr) minmax(0, 1.25fr); gap: 8px; } .range-name strong { font-size: .7rem; } .range-row { padding: 9px 6px; min-height: 68px; } .range-tools { gap: 12px; } .range-tools .viz-segment button { padding-inline: 10px; } .range-axis { padding-inline: 6px; } .shift-axis, .shift-row { grid-template-columns: minmax(95px, .8fr) minmax(0, 1fr); gap: 6px 14px; } .shift-values { grid-column: 2; font-size: .68rem; } .shift-name { grid-row: span 2; } .shift-row { padding: 12px 0; } .shift-name strong { font-size: .72rem; } .shift-summary { min-width: 160px; } .network-company { font-size: 12px; } .viz-caption { font-size: .65rem; } }
@media (prefers-reduced-motion: reduce) { .viz-mark > circle, .atlas-label, .network-link { transition: none; } }

.network-company.selected-label-only { opacity: 0; }
.viz-mark.is-selected .network-company.selected-label-only, .viz-mark:focus-visible .network-company.selected-label-only { opacity: 1; }

.allocation-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 20px; }
.workbench-viz .visual-section { margin: 0; padding-top: 18px; padding: 18px; }
.workbench-viz .visual-heading { gap: 17px; }
.workbench-viz .visual-heading h2 { font-size: 1.05rem; }
.workbench-viz .shift-summary { min-width: 130px; }
.workbench-viz .shift-summary strong { font-size: 1.65rem; }
.workbench-viz .shift-row, .workbench-viz .shift-axis { grid-template-columns: minmax(100px, .85fr) minmax(0, 1.15fr); gap: 8px 18px; }
.workbench-viz .shift-values { grid-column: 2; font-size: .7rem; }
.workbench-viz .shift-name { grid-row: span 2; }
.comparison-results { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 1150px) { .allocation-workbench { grid-template-columns: 1fr; } .workbench-viz .shift-row, .workbench-viz .shift-axis { grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) 116px; gap: 16px; } .workbench-viz .shift-values { grid-column: auto; } .workbench-viz .shift-name { grid-row: auto; } }
@media (max-width: 690px) { .comparison-results { grid-template-columns: 1fr; gap: 25px; } .workbench-viz .shift-row, .workbench-viz .shift-axis { grid-template-columns: minmax(95px, .8fr) minmax(0, 1fr); gap: 6px 14px; } .workbench-viz .shift-values { grid-column: 2; } .workbench-viz .shift-name { grid-row: span 2; } }
@media (max-width: 690px) {
  .atlas-svg .viz-tick, .atlas-svg .viz-axis-label { font-size: 22px; }
  .atlas-svg .atlas-label { font-size: 23px; }
  .network-company { font-size: 20px; }
  .network-weight { font-size: 23px; }
  .range-explorer .viz-tick, .weight-shift .viz-tick { font-size: 30px; }
  .range-explorer .range-value { font-size: 30px; }
  .shift-axis svg, .range-axis svg { overflow: visible; }
}

/* Persistent source context distinguishes connectivity from forecast freshness. */
.snapshot-context { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin: -6px 0 20px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-light); font-size: .72rem; color: var(--ink-soft); }
.snapshot-context strong { color: var(--ink); font-weight: 600; }
.snapshot-context .chip { margin-left: auto; }
.chip.stale, .chip.warning, .chip.partial, .chip.limited { background: #fff8e6; border-color: #f0dca7; }
.chip.available, .chip.validated, .chip.covered { background: #eef8f3; border-color: #bbdfcf; }
.chip.invalid, .chip.failed { background: #fff1f2; border-color: #f0c4ca; }
.chip.unavailable, .chip.withheld, .chip.not_covered { background: #f3f5f8; }
.auth-brand img { filter: none; }
.driver-track span { background: var(--accent); }
.rank-scenario { border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: var(--paper-light); }
.holding-card-grid, .viz-facts, .data-table, .weight-value, .delta-list { font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 1180px) { .account-identity { display: none; } .topbar, .main { padding-left: 22px; padding-right: 22px; } }
@media (max-width: 690px) { .main { padding: 20px 14px 32px; } .view-header { gap: 12px; margin-bottom: 18px; padding-bottom: 0; } .snapshot-context { gap: 7px 12px; font-size: .67rem; } .snapshot-context .chip { margin-left: 0; } .card { padding-left: 14px; padding-right: 14px; } .metric-card { padding: 16px; } .nav-list { margin-top: 0; } .shift-summary { min-width: 130px; } }

.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.overview-metrics .metric-value { font-size: 1.65rem; margin-top: 7px; }
.overview-metrics .metric-detail { margin-top: 7px; }
.overview-metrics .coverage-bar, .overview-metrics .coverage-caption { display: none; }
.overview-metrics .metric-status { min-height: 30px; margin-top: 7px; }
.viz-facts { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.viz-facts > div { padding: 8px 0; }
.viz-facts dd { margin-top: 4px; font-size: .76rem; }
@media (max-width: 690px) { .overview-metrics { grid-template-columns: 1fr; gap: 10px; } .overview-metrics .metric-card { padding: 14px; } }

.portfolio-grid, .holding-grid, .compare-grid, .comparison-workbench { align-items: start; }
.evidence-item strong { overflow-wrap: anywhere; min-width: 0; }

/* Keep the shared navigation and walkthrough controls optically balanced. */
.icon-button svg { width:20px; height:20px; }

/* Preserve the original banner lettering in every brand lockup. */
.brand img.quantrose-wordmark { display: block; width: 172px; height: auto; aspect-ratio: 895 / 74; object-fit: contain; filter: none; }
.auth-brand img.quantrose-wordmark { filter: brightness(0) invert(1); }
.auth-brand span { display: block; }
