/* Consumer workspace: restrained chrome, open sections, detail on demand. */
.testbed-selection-note { margin: 0 0 24px; padding: 12px 16px; background: #f4f7fc; border: 1px solid #e0e7f1; border-radius: 10px; color: #526078; font-size: 12px; line-height: 1.6; }
.copy-reference { display: block; overflow-wrap: anywhere; margin-top: 5px; font-size: 11px; }
.evidence-item > ul { flex-basis: 100%; padding-left: 18px; font-size: 12px; line-height: 1.7; }
.withheld-card details { margin-top: 12px; line-height: 1.7; }
:root { --paper: #fff; --paper-light: #fff; --ink: #202124; --ink-soft: #575d66; --ink-muted: #747b85; --line: #e9ebef; --accent: #1672d4; --accent-dark: #075ebc; --blue-soft: #eef6ff; --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; --sidebar: 0px; }
body { font-size: 14px; -webkit-font-smoothing: antialiased; }
button { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 20px; padding: 12px; background: #fff; color: var(--accent); }
.skip-link:focus { top: 12px; }
.workspace-nav { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 48px; min-height: 72px; padding: 0 max(28px, calc((100vw - 1320px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.workspace-nav .brand { color: var(--ink); padding: 0; gap: 9px; font-size: 19px; font-weight: 650; letter-spacing: -.6px; }
.workspace-nav .brand img { width: 24px; height: 28px; filter: none; }
.workspace-nav .nav-list { display: flex; gap: 28px; align-items: center; }
.workspace-nav .nav-item { width: auto; min-height: 72px; padding: 0; color: var(--ink-muted); font-size: 14px; font-weight: 500; border-radius: 0; border: 0; background: none; box-shadow: none; }
.workspace-nav .nav-item svg { display: none; }
.workspace-nav .nav-item:hover { color: var(--ink); }
.workspace-nav .nav-item.active { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.account-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: 13px; }
.account-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.page-wrap { margin-left: 0; padding-bottom: 0; }
.topbar { max-width: 1200px; margin: auto; min-height: 60px; padding: 14px 36px 0; border: 0; background: none; }
.portfolio-context { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; color: var(--ink-muted); font-size: 12px; }
.page-title { font-size: inherit; font-weight: 400; margin: 0; }
.context-divider { color: #c9cdd3; }
.status-pill { font-weight: 400; font-size: 11px; }
.topbar .icon-button { width: 32px; height: 32px; border: 0; color: var(--ink-muted); background: none; }
.main { width: min(100%,1200px); padding: 32px 36px 100px; }
.view-header { margin-bottom: 20px; align-items: center; }
.view-header h1 { font-size: 36px; letter-spacing: -1.1px; line-height: 1.15; font-weight: 600; }
.view-header p { font-size: 14px; margin-top: 12px; color: var(--ink-muted); line-height: 1.6; }
.view-actions { gap: 10px; }
.button { min-height: 38px; padding: 9px 16px; border-radius: 20px; border-color: var(--line); font-weight: 500; font-size: 12px; }
.button.subtle { color: var(--accent-dark); padding-left: 0; }
.icon-button { border-radius: 50%; background: #f5f6f8; border: 0; }
.tour-launch { width: 30px; height: 30px; background: none; color: var(--ink-muted); }
.data-context { width: fit-content; max-width: 100%; margin: 0 0 28px; color: var(--ink-muted); font-size: 11px; }
.data-context summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.data-context summary::after { content: "⌄"; font-size: 15px; }
.data-age { color: var(--ink-muted); }
.data-age.stale { color: var(--warning); }
.data-context > div { max-width: 560px; margin-top: 14px; padding: 20px; background: #f7f8fa; border-radius: 12px; font-size: 12px; line-height: 1.6; }
.data-context dl { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px 20px; }
.data-context dd { margin: 0; color: var(--ink); }
.chapter-nav { position: sticky; top: 72px; z-index: 15; display: flex; align-items: center; gap: 28px; margin: 0 0 38px; min-height: 48px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chapter-nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.chapter-nav a:hover { color: var(--ink); }
.chapter-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
[data-chapter] { scroll-margin-top: 142px; }
.overview-intro { padding: 4px 0 40px; border-bottom: 1px solid var(--line); }
.intro-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.intro-heading h2, .section-heading h2 { margin: 0; font-size: 21px; font-weight: 550; letter-spacing: -.45px; }
.intro-heading p { margin: 0; font-size: 12px; color: var(--ink-muted); }
.overview-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; margin-top: 30px; }
.overview-stats > div { display: flex; flex-direction: column; align-items: flex-start; }
.overview-stats span { color: var(--ink-soft); font-size: 12px; }
.overview-stats strong { margin: 13px 0 6px; font-size: 34px; font-weight: 500; letter-spacing: -1px; }
.overview-stats small { color: var(--ink-muted); font-size: 11px; line-height: 1.5; max-width: 260px; }
.overview-stats .stat-status { font-size: 21px; letter-spacing: -.4px; line-height: 40px; }
.overview-stats .chip { font-size: 20px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 400; letter-spacing: -.4px; text-transform: none; }
.insights-section { padding: 40px 0 48px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.finding { grid-template-columns: minmax(0,1fr) auto; gap: 20px; padding: 22px 0; }
.finding-mark { display: none; }
.finding h3 { font-size: 15px; font-weight: 500; line-height: 1.45; }
.finding p { max-width: 700px; margin-top: 8px; font-size: 13px; color: var(--ink-muted); line-height: 1.7; }
.finding .button { margin-top: 0; border: 0; color: var(--accent-dark); background: none; padding: 0; }
.finding-detail { margin-top: 9px; font-size: 11px; color: var(--ink-muted); }
.finding-detail summary { cursor: pointer; }
.ticker { border: 0; padding: 0; gap: 5px; font-size: 11px; }
.ticker-list { gap: 8px 18px; margin-top: 12px; }
.chip { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 4px 8px; border: 0; border-radius: 5px; }
.card { border: 0; border-radius: 0; background: transparent; padding: 0; }
.card-title-row { padding: 24px 0 20px; }
.card-title { font-size: 20px; font-weight: 550; letter-spacing: -.4px; }
.card-subtitle { font-size: 12px; line-height: 1.65; max-width: 600px; margin-top: 8px; }
.card-action { font-weight: 400; font-size: 12px; }
.card-action svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: middle; }
.visual-section { padding: 32px 0 36px; margin-bottom: 36px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.visual-heading { margin-bottom: 28px; }
.visual-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.5px; }
.visual-heading p { font-size: 13px; line-height: 1.6; margin-top: 9px; max-width: 620px; }
.eyebrow, .section-number { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-muted); }
.viz-segment { border: 0; padding: 3px; background: #f3f4f6; border-radius: 18px; }
.viz-segment button { min-height: 29px; font-size: 11px; padding: 7px 12px; font-weight: 500; border-radius: 15px; }
.viz-segment button + button { border: 0; }
.viz-segment button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 4px #0000000a; }
.atlas-layout, .network-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 42px; align-items: start; }
.atlas-svg { max-height: 380px; }
.network-stage svg { max-height: 400px; }
.viz-readout { padding: 6px 0 0 24px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.viz-readout h3 { font-size: 18px; font-weight: 550; margin: 0 0 10px; letter-spacing: -.4px; }
.viz-facts { grid-template-columns: 1fr; margin: 16px 0; }
.viz-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; }
.viz-facts dt { font-size: 11px; }
.viz-facts dd { font-size: 12px; font-weight: 500; text-align: right; }
.chart-explainer { font-size: 11px; color: var(--ink-muted); line-height: 1.65; margin-bottom: 16px; }
.chart-explainer summary { cursor: pointer; color: var(--ink-soft); }
.viz-legend { font-size: 10px; padding-top: 20px; }
.viz-caption { font-size: 10px; margin-top: 24px; }
.viz-footnote { font-size: 11px; color: var(--ink-muted); max-width: 840px; line-height: 1.6; }
.quiet-section { border-top: 1px solid var(--line); padding: 24px 0; }
.analysis-details > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: 16px; font-weight: 500; cursor: pointer; }
.analysis-details > summary span { color: var(--ink-muted); font-size: 12px; font-weight: 400; }
.notes-section { margin-top: 30px; border-top: 1px solid var(--line); }
.empty { padding: 28px 0; align-items: flex-start; text-align: left; }
.empty svg { display: none; }
.empty strong { font-size: 15px; font-weight: 500; }
.empty p { font-size: 12px; max-width: 560px; line-height: 1.7; }
.holding-grid { grid-template-columns: minmax(0,1.6fr) minmax(300px,1fr); gap: 50px; margin-top: 32px; }
.holding-panel { top: 140px; padding: 26px; border-radius: 18px; background: #f7f8fa; }
.holding-symbol strong { font-size: 20px; }
.holding-symbol span { font-size: 11px; }
.holding-section { padding: 20px 0; }
.holding-section h3 { font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.holding-section p { font-size: 12px; line-height: 1.7; }
.range-tools { margin: 12px 0 24px; }
.range-axis { border-top: 0; background: #fff; }
.range-rows { max-height: none; overflow: visible; }
.range-row { padding: 10px 8px; min-height: 64px; border-color: var(--line); }
.range-row.is-selected { background: var(--blue-soft); color: var(--ink); border-radius: 7px; }
.range-row.is-selected .range-name small { color: var(--ink-muted); }
.range-row.is-selected .range-value { fill: var(--ink-soft); }
.range-name strong { font-weight: 500; font-size: 12px; }
.network-controls { border: 0; background: #f7f8fa; border-radius: 12px; padding: 14px; }
.allocation-track { border-radius: 7px; }
.account-section { padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.account-section .section-number { display: none; }
.account-layout { gap: 50px; }
.account-aside { border: 0; border-radius: 18px; background: #f7f8fa; }
.account-section h2 { font-size: 21px; }
.account-section p { font-size: 13px; line-height: 1.7; }
.field { border-color: #dfe3e8; border-radius: 9px; min-height: 40px; font-size: 13px; }
.workbench-viz .visual-section { padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--line); }
.allocation-workbench { gap: 40px; margin-top: 34px; }
.rank-scenario { border: 0; border-top: 1px solid var(--line); padding: 30px 0; margin-top: 45px; }
.evidence-item { font-size: 12px; padding: 13px 0; }
.evidence-item strong { font-weight: 500; }
.metric-card { padding: 24px 0; }
.metric-card-label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.data-table th { font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; background: #fff; }
.data-table td { font-size: 12px; padding-top: 15px; padding-bottom: 15px; }
.withheld-card { background: #faf8f1; border-radius: 9px; border: 0; font-size: 12px; }
.section-arrived { animation: section-arrive .45s ease-out both; }
@keyframes section-arrive { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (max-width: 1050px) { .workspace-nav { gap: 28px; padding-inline: 24px; } .workspace-nav .nav-list { gap: 20px; } .account-link span { display: none; } .nav-account { gap: 20px; } .atlas-layout, .network-layout { gap: 24px; } .holding-grid { gap: 28px; } .view-header { grid-template-columns: 1fr; gap: 22px; } .view-actions { justify-content: flex-start; } .allocation-workbench { grid-template-columns: 1fr; } .workbench-viz .visual-section { border-left: 0; padding: 30px 0; border-top: 1px solid var(--line); } }
@media (max-width: 800px) { .workspace-nav { column-gap: 24px; row-gap: 0; flex-wrap: wrap; padding-top: 12px; } .workspace-nav .nav-list { order: 3; width: 100%; gap: 26px; overflow-x: auto; } .workspace-nav .nav-list .nav-item { min-height: 46px; font-size: 13px; } .nav-account .nav-item { min-height: 30px; } .workspace-nav .brand { min-height: 30px; } .chapter-nav { top: 88px; gap: 24px; } [data-chapter] { scroll-margin-top: 162px; } .atlas-layout, .network-layout { grid-template-columns: 1fr; } .viz-readout { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; } .viz-facts { grid-template-columns: 1fr 1fr; gap: 0 24px; } .viz-facts > div { display: block; } .viz-facts dd { text-align: left; margin-top: 6px; } .holding-grid { grid-template-columns: 1fr; } .holding-panel { position: static; } .portfolio-grid { grid-template-columns: 1fr; } }
@media (max-width: 690px) { .workspace-nav { padding-inline: 20px; } .workspace-nav .brand { font-size: 18px; min-height: 30px; display: flex; } .workspace-nav .nav-item { flex-direction: row; width: auto; padding: 0; gap: 0; } .workspace-nav .nav-list { justify-content: flex-start; } .workspace-nav .nav-item.active { box-shadow: inset 0 -2px var(--ink); } .page-wrap { padding-bottom: 0; } .topbar { padding: 14px 20px 0; gap: 10px; } .portfolio-context { font-size: 10px; gap: 7px; } .main { padding: 28px 20px 70px; } .view-header h1 { font-size: 31px; } .view-header p { font-size: 13px; margin-top: 10px; } .view-header { margin-bottom: 18px; gap: 20px; } .view-actions .button { flex: 0 1 auto; } .view-actions { gap: 8px; } .button { padding: 9px 13px; font-size: 11px; } .chapter-nav { margin-bottom: 28px; } .intro-heading { display: block; } .intro-heading p { margin-top: 10px; } .overview-stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 26px; } .overview-stats > div:last-child { grid-column: 1 / -1; } .overview-stats strong { font-size: 29px; } .overview-stats .stat-status { font-size: 18px; line-height: 1.4; margin-top: 8px; } .overview-stats .chip { font-size: 18px; } .intro-heading h2, .section-heading h2 { font-size: 19px; } .section-heading { align-items: baseline; } .card-action { font-size: 11px; } .insights-section { padding: 32px 0; } .finding { gap: 12px; } .finding h3 { font-size: 14px; } .finding p { font-size: 12px; } .finding .button { grid-column: auto; } .visual-section { padding: 28px 0; } .visual-heading { flex-wrap: wrap; gap: 20px; } .visual-heading h2 { font-size: 21px; } .visual-heading p { font-size: 12px; } .visual-heading .viz-segment { width: auto; } .visual-heading .viz-segment button { flex: 0 1 auto; } .card { padding: 0; } .card-title { font-size: 19px; } .holding-panel { padding: 22px; } .analysis-details > summary { display: block; font-size: 15px; } .analysis-details > summary span { display: block; margin-top: 8px; font-size: 11px; } .range-row { min-height: 70px; padding: 12px 6px; } .network-controls { gap: 12px; } .data-context { margin-bottom: 20px; } .account-section { padding: 25px 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .section-arrived { animation: none; } }
.stock-details { font-size: 12px; line-height: 1.7; }
.stock-details > summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); }
.driver-details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.driver-details .holding-section { border: 0; }

.holding-stat small { font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
#holdingPanel { scroll-margin-top: 120px; }

.evidence-item strong, .scenario-reference { overflow-wrap: anywhere; min-width: 0; }
.evidence-item { gap: 20px; }
.workspace-nav .nav-list { scrollbar-width: none; }
.workspace-nav .nav-list::-webkit-scrollbar, .chapter-nav::-webkit-scrollbar { display: none; }
@media (max-width: 690px) { .workspace-nav .brand span { display: inline; } .workspace-nav .nav-list { gap: 18px; } .workspace-nav .nav-list .nav-item { font-size: 12px; } }
.workspace-nav .brand span, .workspace-nav .nav-item span { display: inline; }
.workspace-nav .nav-list { margin-top: 0; }

/* Chart refinement: colour identifies series; framing separates working surfaces. */
:root { --chart-border: #dfe6ef; --chart-label: #536176; --chart-blue: #2463dc; }
.signal-atlas, .exposure-lens { padding: 28px; border: 1px solid var(--chart-border); border-radius: 18px; background: #fff; }
.atlas-layout, .network-layout { gap: 24px; grid-template-columns: minmax(0,1fr) 280px; }
.atlas-plot, .network-stage { padding: 20px 16px 16px; background: #f8faff; border: 1px solid #e5ebf5; border-radius: 14px; }
.atlas-svg, .network-stage svg { background: transparent; max-height: none; }
.viz-axis-title { font-size: 12px; font-weight: 500; line-height: 1.5; }
.viz-tick { fill: var(--chart-label); font-size: 14px; }
.viz-axis-label { font-size: 14px; fill: #344155; }
.viz-grid { stroke: #dce5f2; }
.viz-zero { stroke: #8596af; stroke-dasharray: 4 5; }
.atlas-guide { stroke: #9bb8ea; stroke-dasharray: 3 5; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.viz-mark.held > circle { fill: var(--series, var(--chart-blue)); stroke: #fff; stroke-width: 2.5; opacity: .88; }
.viz-mark.unheld > circle { fill: #fff; stroke: #8494aa; opacity: .85; }
.viz-mark.is-selected > circle, .viz-mark:focus-visible > circle { fill: var(--series, var(--chart-blue)); stroke: #152c50; stroke-width: 2.5; opacity: 1; }
.viz-mark:hover > circle { opacity: 1; }
.atlas-label { display: none; font-size: 13px; font-weight: 600; stroke: #f8faff; stroke-width: 4px; }
.viz-mark:is(.is-selected, :hover, :focus-visible) .atlas-label { display: inline; }
.viz-readout { padding: 20px; border: 1px solid var(--chart-border); border-top: 3px solid var(--series, var(--chart-blue)); background: #fff; border-radius: 12px; }
.viz-readout h3 { font-size: 20px; margin-top: 0; }
.forecast-purpose { margin: 16px 0; padding: 13px 14px; border-radius: 10px; background: #f4f7fc; }
.forecast-purpose strong { display: block; margin-bottom: 5px; color: #263b5a; font-size: 12px; }
.forecast-purpose p, .forecast-reading p { margin: 0; color: #52627a; font-size: 12px; line-height: 1.6; }
.forecast-reading { margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid #e8edf4; }
.forecast-reading > summary { width: fit-content; color: #344155; font-size: 12px; font-weight: 600; cursor: pointer; }
.forecast-reading > summary:focus-visible { outline: 2px solid #587fb9; outline-offset: 4px; }
.forecast-reading-body { padding-top: 10px; }
.forecast-reading p + p { margin-top: 8px; }
.forecast-reading strong { color: #344155; }
.viz-facts dt { color: var(--chart-label); font-size: 12px; }
.viz-facts dd { font-size: 13px; color: #243349; }
.viz-facts > div:first-child dd { font-size: 21px; letter-spacing: -.5px; }
.viz-facts > div { gap: 12px; border-color: #e8edf4; }
.viz-legend { color: var(--chart-label); font-size: 11px; line-height: 1.5; }
.viz-legend .legend-dot { background: var(--chart-blue); border-color: var(--chart-blue); }
.viz-legend .legend-dot.series { background: #2463dc; border: 0; }
.viz-legend .legend-dot.unavailable { background: #fff; border: 1.5px dashed #8494aa; }
.viz-legend .legend-line { border-color: #2463dc; }
.viz-legend .legend-line.inverse { border-color: #ac5b88; }
.network-link { stroke: #7394c8; opacity: .6; }
.network-link.inverse { stroke: #ac5b88; stroke-dasharray: 5 5; }
.network-link.dimmed { opacity: .1; }
.network-weight { font-size: 12px; font-weight: 600; }
.network-company { font-size: 12px; stroke: #f8faff; stroke-width: 5px; }
.network-controls { background: #f6f8fc; border: 1px solid #e3e9f2; }
.connection-readout > div { padding: 11px 0; border-color: #e8edf4; }
.connection-readout strong { color: #344155; }
.allocation-ribbon { padding-top: 24px; border-top: 1px solid #e8edf4; }
.allocation-track { height: 42px; border-radius: 10px; }
.allocation-slice, .allocation-slice:nth-child(n) { color: var(--stock-ink, #fff); border-right: 2px solid #fff; font-size: 11px; font-weight: 600; text-align: center; }
.allocation-key { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 14px; }
.allocation-key button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #eef1f6; background: none; color: #344155; text-align: left; font-size: 12px; }
.allocation-key button:hover { color: var(--accent-dark); }
.allocation-key i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.allocation-key span { flex: 1; }
.allocation-key small { display: block; margin-top: 3px; color: #64748b; font-size: 10px; }
.allocation-key strong { font-size: 12px; font-weight: 500; }
.range-axis { top: 72px; z-index: 8; padding: 12px; background: #f6f8fc; border: 1px solid #e3e9f2; border-radius: 9px; }
.range-axis > span { font-size: 11px; }
.range-row { padding: 12px; border-radius: 8px; }
.range-name strong { font-size: 13px; }
.range-row.is-selected { background: #edf4ff; box-shadow: inset 3px 0 #2463dc; }
.range-band { stroke: #dceaff; stroke-width: 13; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.range-line, .range-row.is-selected .range-line { stroke: #5b8bdd; stroke-width: 2.5; stroke-linecap: round; }
.range-cap, .range-row.is-selected .range-cap { stroke: #3566b5; }
.range-median { fill: #2463dc; stroke: #fff; stroke-width: 2; }
.range-value { fill: #344155; font-weight: 500; font-size: 15px; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.single-range { padding: 14px 8px; border: 1px solid #e0e8f3; border-radius: 12px; background: #fff; width: 100%; height: auto; }
.holding-panel { background: #f7f9fc; border: 1px solid var(--chart-border); }
.holding-stat strong { font-size: 24px; font-weight: 550; }
.overview-intro { padding: 24px; border: 1px solid #e2e8f1; border-radius: 14px; background: #f8faff; }
.overview-stats { gap: 24px; }
.overview-stats > div + div { padding-left: 24px; border-left: 1px solid #dfe7f2; }
.analysis-details { padding: 18px 20px; border: 1px solid var(--chart-border); border-radius: 12px; background: #fafbfd; }
.workbench-viz .visual-section { padding: 24px; border: 1px solid var(--chart-border); border-radius: 16px; background: #f8faff; }
.shift-summary { min-width: 130px; padding: 12px 16px; border: 1px solid #dbe6f8; border-radius: 10px; background: #edf4ff; }
.shift-axis { border-color: #dce5f2; }
.shift-axis > span { font-size: 11px; }
.shift-baseline { stroke: #e0e7f1; stroke-width: 5; stroke-linecap: round; }
.shift-connector, .shift-connector.decrease { stroke: #2463dc; stroke-width: 5; stroke-linecap: round; }
.shift-saved { fill: #fff; stroke: #6a7b94; stroke-width: 2; }
.shift-draft { fill: #2463dc; stroke: #fff; stroke-width: 2; }
.shift-values { font-size: 12px; font-weight: 500; }
.shift-name strong { font-size: 12px; font-weight: 500; }
.rank-scenario { padding: 24px; border: 1px solid var(--chart-border); border-radius: 14px; background: #fafbfd; }
@media (max-width: 900px) { .atlas-layout, .network-layout { grid-template-columns: 1fr; } .viz-facts { grid-template-columns: 1fr 1fr; } .viz-facts > div { display: block; } .viz-facts dd { text-align: left; } }
@media (max-width: 800px) { .range-axis { top: 88px; } }
@media (max-width: 690px) {
  .signal-atlas, .exposure-lens { padding: 18px 14px; border-radius: 14px; }
  .atlas-plot, .network-stage { padding: 16px 6px 12px; }
  .atlas-svg .viz-tick, .atlas-svg .viz-axis-label { font-size: 26px; }
  .atlas-svg .atlas-label { font-size: 25px; }
  .network-company { font-size: 22px; } .network-weight { font-size: 14px; }
  .viz-readout { padding: 18px; } .viz-facts { gap: 0 12px; }
  .viz-facts dd { font-size: 12px; } .viz-facts > div:first-child dd { font-size: 20px; }
  .viz-axis-title { font-size: 11px; } .viz-legend { font-size: 10px; gap: 10px 16px; }
  .overview-intro { padding: 20px; } .overview-stats > div + div { padding-left: 0; border: 0; }
  .overview-stats strong { font-size: 27px; }
  .overview-stats > div:last-child { padding-top: 18px; border-top: 1px solid #dfe7f2; }
  .allocation-key { grid-template-columns: 1fr; }
  .allocation-track { height: 34px; } .allocation-slice { font-size: 9px; }
  .range-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 12px; }
  .range-name { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  .range-name strong { font-size: 13px; } .range-name small { white-space: nowrap; margin: 0; font-size: 10px; }
  .range-row svg { max-height: 60px; }
  .range-axis { grid-template-columns: 1fr; gap: 4px; }
  .range-explorer .viz-tick, .range-explorer .range-value { font-size: 23px; }
  .workbench-viz .visual-section, .rank-scenario { padding: 18px; }
}
/* Keep allocation comparisons readable at phone width. */
.shift-row .shift-draft { stroke-width: 1; r: 8; }
.shift-row .shift-saved { stroke-width: 1.5; r: 7; }
@media (max-width: 690px) {
  .shift-axis, .workbench-viz .shift-axis { grid-template-columns: 1fr; gap: 8px; }
  .shift-axis .viz-tick { font-size: 23px; }
  .shift-row, .workbench-viz .shift-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .shift-name, .workbench-viz .shift-name { grid-row: 1; }
  .shift-values, .workbench-viz .shift-values { grid-column: 2; grid-row: 1; font-size: 11px; }
  .shift-row svg { grid-column: 1 / -1; grid-row: 2; }
  .shift-rows { max-height: none; overflow: visible; }
}
/* Flat relationship map: translucent colour, open space and no raised surfaces. */
.exposure-lens .network-stage { background: #fafbfd; border: 0; border-radius: 16px; overflow: hidden; }
.exposure-lens .network-stage svg { background: transparent; }
.exposure-lens .viz-mark > .network-core { fill: var(--series); fill-opacity: .09; stroke: none; filter: none; transition: fill-opacity .18s; }
.exposure-lens .viz-mark:is(.is-selected, :hover, :focus-visible) > .network-core { fill-opacity: .16; stroke: none; }
.exposure-lens .viz-mark.unheld > .network-core { fill: #8494aa; fill-opacity: .08; stroke: none; }
.exposure-lens .network-ticker { fill: #25354d; font-family: var(--body-font); font-weight: 600; letter-spacing: .2px; pointer-events: none; }
.exposure-lens .viz-mark:is(.is-selected, :focus-visible) .network-ticker { fill: var(--series); text-decoration: underline; text-underline-offset: 3px; }
.exposure-lens .viz-mark:focus-visible .network-company { text-decoration: underline; }
.exposure-lens .network-weight { fill: #62738b; font-family: var(--body-font); font-weight: 500; pointer-events: none; }
.exposure-lens .network-company { fill: #53647d; font-size: 11px; font-weight: 500; stroke: #f8fafd; stroke-width: 4px; }
.exposure-lens .is-selected .network-company { fill: #213550; font-weight: 600; }
.exposure-lens .network-link { stroke: #789aca; opacity: .45; stroke-linecap: round; }
.exposure-lens .network-link.inverse { stroke: #ad7b9b; stroke-dasharray: 4 6; }
.exposure-lens .network-link.dimmed { opacity: .08; }
.exposure-lens .viz-legend { padding: 16px 8px 0; margin-top: 0; border-top: 1px solid #e6ebf2; gap: 12px 22px; }
.exposure-lens .network-controls { padding: 16px 20px; gap: 24px; background: #fff; border-color: #e6ebf2; border-radius: 14px; }
.exposure-lens .network-controls label { font-size: 12px; color: #34435b; gap: 12px; }
.exposure-lens .network-controls strong { width: auto; padding: 5px 9px; border-radius: 7px; background: #edf3ff; color: #365e9d; font-size: 12px; }
.network-strength { flex: 1; max-width: 320px; min-width: 150px; }
.exposure-lens .network-controls input { appearance: none; display: block; width: 100%; height: 4px; border: 0; border-radius: 10px; background: linear-gradient(to right, #587fb9 var(--strength), #e5ebf3 var(--strength)); cursor: pointer; margin: 8px 0 12px; }
.exposure-lens .network-controls input::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; background: #587fb9; box-shadow: none; }
.exposure-lens .network-controls input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; border: 3px solid #fff; background: #587fb9; box-shadow: none; }
.exposure-lens .network-controls input:focus-visible { outline: 2px solid #587fb9; outline-offset: 6px; }
.network-strength-scale { display: flex; justify-content: space-between; color: #8190a5; font-size: 10px; }
.exposure-lens #networkEdgeCount { font-size: 11px; color: #60718a; font-variant-numeric: tabular-nums; }
.network-empty { text-align: center; color: #7a899e; font-size: 11px; padding: 0 12px 16px; }
.network-empty[hidden] { display: none; }
@media (max-width: 690px) {
  .exposure-lens .network-controls { padding: 14px; gap: 14px; }
  .network-strength { max-width: none; }
  .exposure-lens .network-company { font-size: 14px; }
  .exposure-lens .viz-legend { font-size: 10px; gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) { .exposure-lens .viz-mark > .network-core { transition: none; } }

/* Guided entry and useful portfolio review. */
.workspace-nav a { text-decoration: none; }
.onboarding-options { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 30px; }
.onboarding-options article { background: #f8faff; border-radius: 18px; padding: 32px; }
.onboarding-options article:last-child { background: #f8f9fa; }
.onboarding-options h2 { font-size: 24px; letter-spacing: -.6px; }
.onboarding-options p { color: #626c7d; line-height: 1.7; margin-bottom: 24px; }
.onboarding-options small { display: block; color: #7a8494; margin-top: 20px; line-height: 1.6; }
.entry-row { display: grid; grid-template-columns: minmax(0,1fr) 100px 60px; gap: 12px; align-items: center; margin-bottom: 10px; }
.entry-labels { display: grid; grid-template-columns: minmax(0,1fr) 172px; font-size: 12px; color: #69778a; margin-bottom: 10px; }
.entry-row .text-button { font-size: 11px; }
.entry-import { border-top: 1px solid #e8edf4; border-bottom: 1px solid #e8edf4; padding: 18px 0; margin: 20px 0; }
.entry-import summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.entry-import p { font-size: 12px; color: #6e7c90; line-height: 1.6; }
.entry-import label { display: block; font-size: 12px; margin: 14px 0 8px; }
.entry-import .button { display: block; margin-top: 14px; }
.entry-review-actions { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.entry-preview { border-radius: 12px; background: #f5f8fd; padding: 18px; font-size: 12px; }
.entry-preview p { color: #626f82; line-height: 1.6; }
.entry-preview-list { max-height: 200px; overflow: auto; }
.entry-preview-list > span { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; border-top: 1px solid #e3eaf3; padding: 10px 0; }
.entry-preview-list small { grid-column: 1 / -1; color: #718096; }
.entry-body .form-help { line-height: 1.7; }
.review-priorities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 24px 0 8px; }
.review-priorities article { padding: 22px; background: #f6f8fc; border-radius: 14px; }
.review-priorities h3 { font-size: 17px; font-weight: 550; letter-spacing: -.3px; margin: 12px 0; }
.review-priorities p { font-size: 12px; color: #68768b; line-height: 1.7; }
.review-priorities .eyebrow { font-size: 10px; }
.plan-use-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.plan-use-cases article { padding: 24px; border-radius: 14px; background: #f7f9fc; }
.plan-use-cases p { color: #65738a; line-height: 1.7; }
@media (max-width: 690px) {
  .onboarding-options,.review-priorities,.plan-use-cases { grid-template-columns: 1fr; }
  .onboarding-options article { padding: 22px; }
  .entry-row { grid-template-columns: minmax(0,1fr) 75px 45px; gap: 8px; }
  .entry-labels { grid-template-columns: minmax(0,1fr) 128px; }
}

/* Keep graph navigation independent of page scrolling and node selection. */
.network-zoom-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.network-zoom-controls .button { min-height:40px; min-width:40px; padding:8px 12px; }
.network-zoom-controls output { min-width:48px; text-align:center; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.exposure-lens .network-stage svg { touch-action:none; cursor:grab; aspect-ratio:720 / 430; }
.exposure-lens .network-stage svg.is-dragging, .exposure-lens [data-network-node].is-dragging { cursor:grabbing; }
.network-empty { pointer-events:none; }

.rosetta-welcome { display:flex; align-items:center; gap:20px; padding:24px; margin:22px 0; border:1px solid #dfe7f3; border-radius:16px; background:#f7f9fd; }
.rosetta-welcome img { width:88px; height:88px; object-fit:contain; flex-shrink:0; }
.rosetta-welcome > div { flex:1; min-width:0; }
.rosetta-welcome h2 { font-size:20px; line-height:1.35; margin:7px 0 10px; letter-spacing:-.4px; }
.rosetta-welcome p { font-size:13px; line-height:1.7; margin:0 0 10px; color:#526079; }
.rosetta-welcome-note { font-size:11px; line-height:1.6; color:#7b8799; }
.rosetta-welcome > .button { flex-shrink:0; }
.rosetta-shortcut { position:fixed; z-index:24; right:max(22px,env(safe-area-inset-right)); bottom:max(22px,env(safe-area-inset-bottom)); display:grid; place-items:center; width:64px; height:64px; padding:7px; border:1px solid #d9e1eb; border-radius:50%; background:#fff; box-shadow:0 8px 28px #24364d24; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.rosetta-shortcut:hover { transform:translateY(-3px); box-shadow:0 12px 34px #24364d30; }
.rosetta-shortcut:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.rosetta-shortcut img { display:block; width:46px; height:46px; object-fit:contain; }
.rosetta-shortcut-dot { position:absolute; right:3px; bottom:4px; width:13px; height:13px; border:2px solid #fff; border-radius:50%; background:#63af93; }
.rosetta-shortcut-tip { position:absolute; right:calc(100% + 11px); top:50%; transform:translate(5px,-50%); width:max-content; max-width:min(240px,calc(100vw - 105px)); padding:8px 11px; border:1px solid var(--line); border-radius:9px; background:var(--paper-light); box-shadow:0 6px 20px #24364d1a; color:var(--ink); font-size:11px; font-weight:500; opacity:0; pointer-events:none; transition:opacity .15s ease,transform .15s ease; }
.rosetta-shortcut:hover .rosetta-shortcut-tip,.rosetta-shortcut:focus-visible .rosetta-shortcut-tip { opacity:1; transform:translate(0,-50%); }
.rosetta-shortcut[aria-expanded="true"] .rosetta-shortcut-tip { display:none; }
.rosetta-shortcut[data-status="dormant"] { background:#f0f2f5; border-color:#d9dde3; box-shadow:0 6px 20px #24364d18; }
.rosetta-shortcut[data-status="dormant"] img { filter:grayscale(1); opacity:.56; }
.rosetta-shortcut[data-status="dormant"] .rosetta-shortcut-dot { background:#a3acb7; }
.rosetta-shortcut[data-status="cached"] img { filter:grayscale(.55); opacity:.83; }
.rosetta-shortcut[data-status="cached"] .rosetta-shortcut-dot { background:#b5a079; }
.rosetta-shortcut[data-status="loading"] .rosetta-shortcut-dot,.rosetta-shortcut[data-status="working"] .rosetta-shortcut-dot { background:#6c98ca; animation:rosetta-shortcut-pulse 1.5s ease-in-out infinite; }
@keyframes rosetta-shortcut-pulse { 50% { opacity:.4; } }
.app-shell:has(.rosetta-shortcut) .toast { bottom:100px; }
@media (max-width:690px) { .rosetta-shortcut { right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); width:58px; height:58px; }.rosetta-shortcut img { width:42px; height:42px; } }
@media (prefers-reduced-motion:reduce) { .rosetta-shortcut,.rosetta-shortcut-tip { transition:none; }.rosetta-shortcut-dot { animation:none!important; } }
.rosetta-mini { position:fixed; z-index:35; right:max(22px,env(safe-area-inset-right)); bottom:max(98px,calc(env(safe-area-inset-bottom) + 76px)); width:min(430px,calc(100vw - 32px)); max-height:min(700px,calc(100dvh - 112px)); overflow-y:auto; overscroll-behavior:contain; border:1px solid var(--line); border-radius:18px; background:var(--paper-light); box-shadow:0 20px 64px #19273930; }
.rosetta-mini-loading,.rosetta-mini-error { padding:24px; font-size:13px; color:var(--ink-soft); }
.rosetta-mini-error p { line-height:1.6; }
@media (max-width:690px) { .rosetta-mini { right:12px; bottom:max(84px,calc(env(safe-area-inset-bottom) + 70px)); width:calc(100vw - 24px); max-height:calc(100dvh - 100px); } }
@media(max-width:760px) { .rosetta-welcome { flex-wrap:wrap; padding:18px; gap:14px; }.rosetta-welcome img { width:64px; height:64px; }.rosetta-welcome > div { flex-basis:calc(100% - 80px); }.rosetta-welcome > .button { margin-left:78px; } }

/* Let the relationship map lead; keep selected-stock context close and scannable. */
.exposure-lens .visual-heading { margin-bottom: 18px; }
.exposure-lens .visual-heading p { max-width: 900px; }
.exposure-lens .network-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.exposure-lens .viz-readout { padding: 20px 0 0; border: 0; border-top: 1px solid #e5ebf3; border-radius: 0; background: transparent; }
.network-readout-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.network-readout-head h3 { margin: 4px 0; }
.network-readout-head small { color: #68768b; font-size: 12px; }
.network-readout-head > strong { color: #405a7e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.exposure-lens .connection-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; margin-top: 22px; }
.exposure-lens .connection-readout > .eyebrow, .exposure-lens .connection-readout > p { grid-column: 1 / -1; }
.exposure-lens .connection-readout > div { min-width: 0; gap: 8px; padding: 9px 0; }
.exposure-lens .connection-readout > div span { min-width: 0; overflow-wrap: anywhere; }
.network-forecast-details { margin-top: 16px; border-top: 1px solid #e5ebf3; }
.network-forecast-details > summary { width: fit-content; padding: 15px 0; color: #405a7e; font-size: 12px; font-weight: 600; cursor: pointer; }
.network-forecast-details > summary:focus-visible { outline: 2px solid #587fb9; outline-offset: 4px; }
.network-forecast-details > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; padding: 8px 0 18px; }
.network-forecast-details .viz-readout-head, .network-forecast-details .chart-explainer { grid-column: 1 / -1; }
.network-forecast-details .forecast-purpose, .network-forecast-details .forecast-reading { margin: 0; }
.network-forecast-details .viz-facts { margin: 0; }
.network-forecast-details .button { width: fit-content; }
.network-guidance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin-top: 18px; color: var(--ink-muted); }
.network-guidance p { margin: 0; font-size: 11px; line-height: 1.65; }
.network-guidance strong { display: block; margin-bottom: 4px; color: #40516a; font-size: 11px; }
@media (max-width: 800px) {
  .exposure-lens .connection-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .network-readout-head { align-items: start; flex-direction: column; }
  .exposure-lens .connection-readout, .network-forecast-details > div, .network-guidance { grid-template-columns: minmax(0, 1fr); }
  .network-forecast-details .viz-readout-head, .network-forecast-details .chart-explainer { grid-column: 1; }
}

.workspace-nav .brand img.quantrose-wordmark { width: 144px; height: auto; }
@media (max-width: 1050px) { .workspace-nav .brand img.quantrose-wordmark { width: 126px; } }
