/* Local diagnostic views share the portfolio typography, palette, and ledger spacing. */
html:root body.equity-portfolio-font .eq-diagnostics { background: var(--bg) !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; border-color: var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-diagnostic-card { min-height: 0 !important; padding: 24px 20px !important; background: var(--bg) !important; }
html:root body.equity-portfolio-font .eq-diagnostic-card + .eq-diagnostic-card { border-left: 1px solid var(--eq-ui-line) !important; border-top: 0 !important; }
html:root body.equity-portfolio-font .eq-diagnostic-head { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start !important; gap: 20px; margin: 0 0 22px !important; cursor: pointer; }
html:root body.equity-portfolio-font .eq-diagnostic-card.is-collapsed .eq-diagnostic-head { margin-bottom: 0 !important; }
html:root body.equity-portfolio-font .eq-diagnostic-head h2 { font-size: 20px !important; line-height: 1.35 !important; letter-spacing: -.025em !important; }
html:root body.equity-portfolio-font .eq-diagnostic-head p { display: block !important; font-size: 12px !important; font-weight: 400; line-height: 1.6 !important; margin: 6px 0 0 !important; max-width: 52ch; }
html:root body.equity-portfolio-font .eq-diagnostic-preview { display: block; margin-top: 12px; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.5; }
html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-actions { gap: 12px; align-items: center; }
html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-pill { display: flex !important; align-items: baseline; gap: 5px; padding: 0 !important; min-width: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; white-space: nowrap; }
html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-pill strong { font: 500 13px var(--font-ui) !important; }
html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-pill span { margin: 0 !important; font: 400 11px var(--font-ui) !important; text-transform: none !important; letter-spacing: 0 !important; }
html:root body.equity-portfolio-font .eq-diagnostic-toggle { position: static; display: grid !important; place-items: center; width: 36px !important; height: 36px !important; margin: 0 !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--muted); box-shadow: none !important; }
html:root body.equity-portfolio-font .eq-diagnostic-toggle::after { content: ''; position: absolute; inset: -10px -8px; border-radius: 6px; }
html:root body.equity-portfolio-font .eq-diagnostic-head:hover { background: transparent; }
html:root body.equity-portfolio-font .eq-diagnostic-head:hover .eq-diagnostic-toggle { background: var(--eq-ui-hover) !important; color: var(--text); }
html:root body.equity-portfolio-font .eq-diagnostic-chevron { width: 16px !important; height: 16px !important; min-height: 0 !important; transition: transform 160ms ease-out; }
html:root body.equity-portfolio-font .eq-diagnostic-toggle[aria-expanded="true"] .eq-diagnostic-chevron { transform: rotate(180deg); }
html:root body.equity-portfolio-font .eq-diagnostic-card .diagnostic-body { max-height: none !important; }
html:root body.equity-portfolio-font .eq-diagnostics [hidden] { display: none !important; }
html:root body.equity-portfolio-font .eq-diagnostic-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--eq-ui-line); padding-bottom: 10px; margin-bottom: 14px; }
html:root body.equity-portfolio-font .eq-diagnostic-tabs button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 400 12px var(--font-ui); cursor: pointer; transition: background-color 160ms ease-out; }
html:root body.equity-portfolio-font .eq-diagnostic-tabs button:is([aria-pressed="true"],[aria-selected="true"]) { background: var(--eq-ui-selected); color: var(--text); }
html:root body.equity-portfolio-font .eq-diagnostic-tabs button span { margin-left: 7px; font-size: 11px; }
html:root body.equity-portfolio-font .eq-diagnostic-tabs button:not([aria-pressed="true"]):not([aria-selected="true"]):hover { background: var(--eq-ui-hover); }
/* Only the correlation view tabs change; range and filter controls retain their styles. */
html:root body.equity-portfolio-font .eq-diagnostic-tabs[aria-label="Correlation view"] button { border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html:root body.equity-portfolio-font .eq-diagnostic-tabs[aria-label="Correlation view"] button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--site-accent,var(--blue)) !important; }
html:root body.equity-portfolio-font .eq-small-button:hover { background: var(--eq-ui-hover) !important; border-color: var(--eq-ui-hover-line) !important; }
html:root body.equity-portfolio-font .eq-text-button:hover { background: transparent !important; box-shadow: none !important; transform: none !important; }
html:root body.equity-portfolio-font :is(.eq-diagnostic-scroll,.eq-matrix-scroll,.eq-local-stock-scroll,.corr-heatmap) { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
html:root body.equity-portfolio-font .eq-diagnostic-scroll { max-height: 380px; border-bottom: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-diagnostic-table { width: 100% !important; border-collapse: collapse; border-spacing: 0; background: transparent !important; font-family: var(--font-ui); table-layout: fixed; }
html:root body.equity-portfolio-font .eq-diagnostic-table :is(th,td) { padding: 11px 8px !important; border: 0 !important; border-bottom: 1px solid var(--eq-ui-line) !important; background: transparent !important; white-space: normal !important; vertical-align: middle; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.5 !important; }
html:root body.equity-portfolio-font .eq-diagnostic-table th { position: sticky; top: 0; z-index: 1; background: var(--bg) !important; font-size: 11px !important; font-weight: 400 !important; color: var(--muted) !important; text-align: right; }
html:root body.equity-portfolio-font .eq-diagnostic-table td { font-size: 12px !important; font-weight: 400 !important; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font .eq-diagnostic-table :is(th,td):first-child { text-align: left; padding-left: 0 !important; }
html:root body.equity-portfolio-font .eq-diagnostic-table :is(th,td):last-child { padding-right: 0 !important; }
html:root body.equity-portfolio-font .eq-diagnostic-table tbody tr { cursor: pointer; background: transparent !important; transition: background-color 160ms ease-out; }
html:root body.equity-portfolio-font .eq-diagnostic-table tbody tr:hover { background: var(--eq-ui-hover) !important; }
html:root body.equity-portfolio-font .eq-diagnostic-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html:root body.equity-portfolio-font .eq-text-button { display: inline-block; padding: 0; min-height: 30px; border: 0; background: transparent; font: 500 12px/1.5 var(--font-ui); text-align: left; color: var(--text); cursor: pointer; overflow-wrap: anywhere; }
html:root body.equity-portfolio-font .eq-rotation-table { min-width: 480px !important; }
html:root body.equity-portfolio-font .eq-rotation-table :is(th,td):first-child { width: 38%; }
html:root body.equity-portfolio-font .eq-rotation-table :is(th,td):nth-child(4) { width: 68px; }
html:root body.equity-portfolio-font .eq-gap-value { display: block; font-weight: 500; }
html:root body.equity-portfolio-font .is-up { color: var(--green-strong); }
html:root body.equity-portfolio-font .is-down { color: var(--red-strong); }
html:root body.equity-portfolio-font .eq-gap-track { display: block; position: relative; width: 100%; height: 8px; margin-top: 5px; border-bottom: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-gap-track::after { position: absolute; content: ''; width: 1px; background: var(--line-strong); top: 0; bottom: -2px; left: 50%; }
html:root body.equity-portfolio-font .eq-gap-track i { position: absolute; top: 3px; height: 2px; }
html:root body.equity-portfolio-font .eq-gap-track i.is-up { left: 50%; background: var(--green-strong); }
html:root body.equity-portfolio-font .eq-gap-track i.is-down { right: 50%; background: var(--red-strong); }
html:root body.equity-portfolio-font :is(.eq-diagnostic-footnote,.eq-diagnostic-empty) { color: var(--muted); font: 400 11px/1.6 var(--font-ui); margin: 12px 0 0; }
html:root body.equity-portfolio-font .eq-diagnostic-empty { padding: 18px 0; }
html:root body.equity-portfolio-font .eq-local-back { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: var(--muted); font: 400 12px var(--font-ui); cursor: pointer; }
html:root body.equity-portfolio-font .eq-local-back svg { display: block; width: 15px !important; height: 15px !important; min-height: 0 !important; }
html:root body.equity-portfolio-font .eq-local-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
html:root body.equity-portfolio-font .eq-local-heading h3 { font: 500 16px/1.4 var(--font-ui) !important; margin: 0; }
html:root body.equity-portfolio-font .eq-local-heading span { display: block; margin-top: 5px; color: var(--muted); font: 400 11px/1.5 var(--font-ui); }
html:root body.equity-portfolio-font .eq-local-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; border-block: 1px solid var(--eq-ui-line); padding: 14px 0; margin-bottom: 14px; }
html:root body.equity-portfolio-font .eq-local-summary span { display: block; color: var(--muted); font-size: 11px; }
html:root body.equity-portfolio-font .eq-local-summary strong { display: block; margin-top: 6px; font-size: 21px; font-weight: 500; }
html:root body.equity-portfolio-font .eq-local-stock-scroll { max-height: 294px; border-bottom: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-stock-table { min-width: 0 !important; }
html:root body.equity-portfolio-font .eq-stock-table :is(th,td):first-child { width: 44%; }
html:root body.equity-portfolio-font .eq-stock-table small { display: block; color: var(--muted); font: 400 10px/1.5 var(--font-ui); overflow-wrap: anywhere; }
html:root body.equity-portfolio-font .eq-small-button { min-height: 36px; padding: 7px 10px; margin: 0 !important; border: 1px solid var(--eq-ui-line) !important; border-radius: 6px; background: transparent !important; color: var(--muted); font: 400 11px var(--font-ui); cursor: pointer; white-space: nowrap; }
html:root body.equity-portfolio-font .eq-matrix-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
html:root body.equity-portfolio-font .transition-matrix { min-width: 500px; grid-template-columns: 82px repeat(5,minmax(65px,1fr)) !important; gap: 5px; }
html:root body.equity-portfolio-font :is(.transition-axis,.transition-head,.transition-row-label) { font: 400 10px/1.4 var(--font-ui) !important; color: var(--muted) !important; letter-spacing: 0 !important; text-transform: none !important; min-height: 40px; }
html:root body.equity-portfolio-font .transition-row-label { position: sticky; left: 0; z-index: 1; background: var(--bg); }
html:root body.equity-portfolio-font .transition-cell { min-height: 55px; padding: 8px; align-items: center; border-radius: 5px !important; border: 1px solid var(--eq-ui-line) !important; box-shadow: none !important; transform: none !important; }
html:root body.equity-portfolio-font .transition-cell:hover { filter: none !important; }
html:root body.equity-portfolio-font .transition-cell:not(:disabled):hover { border-color: var(--eq-ui-hover-line) !important; }
html:root body.equity-portfolio-font .transition-cell.is-up { background: rgba(var(--eq-positive-rgb),calc(.035 + var(--heat)*.16)) !important; }
html:root body.equity-portfolio-font .transition-cell.is-down { background: rgba(var(--eq-negative-rgb),calc(.035 + var(--heat)*.16)) !important; }
html:root body.equity-portfolio-font .transition-cell.is-flat { background: color-mix(in srgb,var(--muted) 12%,var(--bg)) !important; }
html:root body.equity-portfolio-font .transition-cell b { font: 500 18px var(--font-ui) !important; color: var(--text) !important; }
html:root body.equity-portfolio-font .transition-cell small { font: 400 10px var(--font-ui) !important; color: var(--muted) !important; opacity: 0; }
html:root body.equity-portfolio-font .transition-cell:is(:hover,:focus-visible,.active) small { opacity: 1; }
html:root body.equity-portfolio-font .transition-cell.active { outline: 2px solid var(--blue); outline-offset: 0; }
html:root body.equity-portfolio-font .transition-cell:disabled { cursor: default; opacity: .4; }
html:root body.equity-portfolio-font .eq-matrix-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 10px; color: var(--muted); }
html:root body.equity-portfolio-font .eq-matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
html:root body.equity-portfolio-font .eq-legend-swatch { width: 8px; height: 8px; display: inline-block; background: var(--muted); opacity: .7; }
html:root body.equity-portfolio-font .eq-legend-swatch.is-up { background: var(--green-strong); }
html:root body.equity-portfolio-font .eq-legend-swatch.is-down { background: var(--red-strong); }
html:root body.equity-portfolio-font .transition-active { margin: 18px 0 0 !important; border-top: 1px solid var(--eq-ui-line); padding-top: 12px; }
html:root body.equity-portfolio-font .eq-selection-prompt { padding: 0; }
html:root body.equity-portfolio-font .eq-scroll-cue { display: none; font-size: 10px; color: var(--muted); text-align: right; padding-bottom: 10px; }
html:root body.equity-portfolio-font .corr-control-strip { display: grid !important; grid-template-columns: auto auto auto !important; justify-content: start; gap: 18px; margin: 0 0 12px; }
html:root body.equity-portfolio-font .eq-control-field { min-width: 0; }
html:root body.equity-portfolio-font .eq-control-field > span { display: block; color: var(--muted); font: 400 11px var(--font-ui); margin-bottom: 6px; }
html:root body.equity-portfolio-font .corr-control-group { flex-wrap: wrap; border: 0; padding: 0; gap: 4px; background: transparent !important; border-radius: 0; }
html:root body.equity-portfolio-font .corr-control-group button { min-height: 36px; padding: 7px 10px; font: 400 11px var(--font-ui); text-transform: none; letter-spacing: 0; }
html:root body.equity-portfolio-font .corr-status { min-height: 20px; font: 400 11px/1.5 var(--font-ui); letter-spacing: 0; text-transform: none; }
html:root body.equity-portfolio-font .corr-score-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; border-radius: 0; border: 0; border-block: 1px solid var(--eq-ui-line); margin: 14px 0 20px; background: transparent; }
html:root body.equity-portfolio-font .corr-score { min-height: 0; padding: 14px 0; border: 0; }
html:root body.equity-portfolio-font .corr-score span { font: 400 11px var(--font-ui); text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
html:root body.equity-portfolio-font .corr-score strong { font: 500 21px/1.35 var(--font-ui); }
html:root body.equity-portfolio-font .corr-score p { font: 400 10px/1.5 var(--font-ui); margin: 5px 0 0; }
html:root body.equity-portfolio-font .eq-corr-views { display: block !important; }
html:root body.equity-portfolio-font .eq-corr-views .corr-panel { border: 0 !important; border-radius: 0 !important; padding: 0 !important; overflow: visible; background: var(--bg); }
html:root body.equity-portfolio-font .eq-corr-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
html:root body.equity-portfolio-font .eq-corr-caption p { margin: 0; color: var(--muted); font: 400 11px/1.5 var(--font-ui); }
html:root body.equity-portfolio-font .eq-corr-scale { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
html:root body.equity-portfolio-font .eq-corr-scale i { width: 100px; height: 5px; background: linear-gradient(90deg,var(--red-strong),var(--bg),var(--green-strong)); }
html:root body.equity-portfolio-font .corr-heatmap { max-height: 400px; min-height: 260px; border-bottom: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .corr-heatmap-grid { display: block; width: max-content; min-width: 100%; }
html:root body.equity-portfolio-font :is(.corr-heatmap-header,.corr-heatmap-body) { display: grid; grid-template-columns: var(--corr-columns); gap: 3px; align-items: stretch; }
/* Pin one opaque header band; rotate only its text, not the sticky surface. */
html:root body.equity-portfolio-font .corr-heatmap-header { position: sticky; top: 0; z-index: 2; background: var(--bg); padding-bottom: 3px; }
html:root body.equity-portfolio-font .eq-heatmap-corner { position: sticky; left: 0; z-index: 1; background: var(--bg); }
html:root body.equity-portfolio-font :is(.corr-top-label,.corr-side-label) { font: 400 10px/1.4 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
html:root body.equity-portfolio-font .corr-side-label { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; padding-right: 10px; background: var(--bg); white-space: normal; overflow-wrap: anywhere; }
html:root body.equity-portfolio-font .corr-top-label { position: static; display: flex; align-items: center; justify-content: center; justify-self: stretch; height: 88px; background: var(--bg); writing-mode: horizontal-tb; transform: none; padding: 5px 0; }
html:root body.equity-portfolio-font .corr-top-label span { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 78px; overflow: hidden; text-overflow: ellipsis; }
html:root body.equity-portfolio-font .corr-cell { border-radius: 3px; border: 1px solid var(--eq-ui-line); font: 400 10px var(--font-ui); transform: none !important; }
html:root body.equity-portfolio-font .corr-cell:hover { border-color: var(--eq-ui-hover-line); box-shadow: none; }
html:root body.equity-portfolio-font .corr-cell[aria-pressed="true"] { outline: 2px solid var(--blue); outline-offset: -2px; }
html:root body.equity-portfolio-font .eq-heatmap-head h3 { display: none; }
html:root body.equity-portfolio-font .eq-heatmap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
html:root body.equity-portfolio-font .eq-heatmap-stage { min-width: 0; min-height: 0; }
html:root body.equity-portfolio-font .eq-expanded-pair-slot { display: none; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded { background: var(--bg) !important; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-head { flex: 0 0 auto; align-items: center; margin-bottom: 14px; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-head h3 { display: block; font-size: 20px !important; margin: 0 0 5px; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; flex: 1 1 0%; min-height: 0; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-stage { display: flex; flex-direction: column; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .corr-heatmap { flex: 1 1 0%; min-height: 0; max-height: none; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-layout:has([data-clear-corr-pair]) { grid-template-columns: minmax(0,1fr) minmax(260px,320px); }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-expanded-pair-slot:has([data-clear-corr-pair]) { display: block; min-height: 0; overflow: auto; overscroll-behavior: contain; border-left: 1px solid var(--eq-ui-line); padding-left: 20px; }
html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-corr-inspector { margin: 0; padding-top: 0; min-height: 0; border: 0; }
html:root body.equity-portfolio-font .eq-corr-pair-panels { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 24px; }
html:root body.equity-portfolio-font .eq-corr-pair-panels h3 { margin: 0; font: 500 15px/1.4 var(--font-ui) !important; }
html:root body.equity-portfolio-font .eq-corr-pair-panels p { margin: 5px 0 12px; font: 400 11px/1.5 var(--font-ui); color: var(--muted); }
html:root body.equity-portfolio-font .corr-pair-list { display: block; }
html:root body.equity-portfolio-font .eq-pair-table { min-width: 0 !important; }
html:root body.equity-portfolio-font .eq-pair-table :is(th,td):last-child { width: 56px; }
html:root body.equity-portfolio-font .eq-pair-table .eq-text-button { font-size: 11px; }
html:root body.equity-portfolio-font .eq-pair-table small { display: block; font: 400 10px/1.4 var(--font-ui); color: var(--muted); }
html:root body.equity-portfolio-font .eq-pair-table tr[aria-selected="true"] { background: var(--eq-ui-selected) !important; }
html:root body.equity-portfolio-font .eq-corr-inspector { display: block !important; min-height: 72px; margin-top: 20px; border-top: 1px solid var(--eq-ui-line); padding-top: 14px; }
html:root body.equity-portfolio-font .eq-pair-metric { color: var(--text); font: 500 22px/1.3 var(--font-ui); margin-top: 8px; }
html:root body.equity-portfolio-font .eq-pair-window-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 14px 0; margin: 14px 0; border-block: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-pair-window-grid button { border: 0; background: transparent; text-align: left; padding: 8px 0; color: var(--muted); font: 400 11px var(--font-ui); cursor: pointer; }
html:root body.equity-portfolio-font .eq-pair-window-grid strong { display: block; font-size: 17px; color: var(--text); font-weight: 500; margin-top: 5px; }
html:root body.equity-portfolio-font .eq-pair-window-grid button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--blue); }
html:root body.equity-portfolio-font .eq-pair-history { min-height: 48px; }
html:root body.equity-portfolio-font .eq-pair-history p { color: var(--muted); font: 400 11px/1.5 var(--font-ui); }
html:root body.equity-portfolio-font .eq-history-chart { display: block; width: 100%; height: auto; min-height: 0; }
html:root body.equity-portfolio-font .eq-history-chart text { font: 400 13px var(--font-ui); fill: var(--muted); }
html:root body.equity-portfolio-font .eq-history-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; margin-bottom: 12px; }
html:root body.equity-portfolio-font .eq-history-legend span { display: flex; align-items: center; gap: 6px; }
html:root body.equity-portfolio-font .eq-history-legend i { width: 12px; height: 2px; background: var(--series-color); }
html:root body.equity-portfolio-font .eq-loading-bars { display: grid; gap: 10px; padding: 24px 0; }
html:root body.equity-portfolio-font .eq-loading-bars i { height: 10px; background: var(--eq-ui-line); border-radius: 3px; }
html:root body.equity-portfolio-font .eq-loading-bars i:last-child { width: 60%; }
html:root body.equity-portfolio-font .corr-network-shell { border-radius: 0; border: 0; }
html:root body.equity-portfolio-font .corr-panel-head h3 { font: 500 16px/1.4 var(--font-ui) !important; }
html:root body.equity-portfolio-font :is(.corr-rail-block,.corr-rail-link) { border-radius: 0; background: transparent !important; box-shadow: none; }
html:root body.equity-portfolio-font .corr-network-stage svg { min-height: 0 !important; }
/* Keep surrounding relationships readable while hovering a network node. */
html:root body.equity-portfolio-font .corr-node-group:is(:hover,.is-focused) .corr-node-halo { opacity: .32; stroke-width: 1.4; }
html:root body.equity-portfolio-font .corr-node-group.is-muted { opacity: .65 !important; }
html:root body.equity-portfolio-font .corr-edge.is-muted { opacity: calc(var(--edge-opacity,.55) * .42) !important; }
html:root body.equity-portfolio-font .corr-edge.is-focused { opacity: calc(var(--edge-opacity,.55) * .78) !important; stroke-width: calc(var(--edge-width,1.2) + .5); }
html:root body.equity-portfolio-font :is(.eq-diagnostic-toggle,.eq-diagnostic-tabs button,.eq-text-button,.eq-small-button,.eq-local-back,.eq-diagnostic-scroll,.eq-matrix-scroll,.eq-local-stock-scroll,.corr-heatmap,.eq-pair-window-grid button,.corr-control-group button):focus-visible { outline: 2px solid var(--blue); outline-offset: -2px !important; }
@media(max-width:1100px) {
 html:root body.equity-portfolio-font .corr-control-strip { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media(max-width:760px) {
 html:root body.equity-portfolio-font .eq-diagnostics { grid-template-columns: minmax(0,1fr) !important; }
 html:root body.equity-portfolio-font .eq-diagnostic-card { padding: 20px 16px !important; }
 html:root body.equity-portfolio-font .eq-diagnostic-card + .eq-diagnostic-card { border-left: 0 !important; border-top: 1px solid var(--eq-ui-line) !important; }
 html:root body.equity-portfolio-font .eq-diagnostic-head { gap: 12px; }
 html:root body.equity-portfolio-font .eq-diagnostic-head h2 { font-size: 18px !important; }
 html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-actions { flex-direction: column-reverse; gap: 4px; align-items: flex-end; }
 html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-pill { gap: 4px; }
 html:root body.equity-portfolio-font .eq-diagnostic-head .diagnostic-pill span { font-size: 10px !important; }
 html:root body.equity-portfolio-font :is(.eq-diagnostic-toggle,.eq-diagnostic-tabs button,.eq-small-button,.eq-local-back,.corr-control-group button) { min-height: 44px; }
 html:root body.equity-portfolio-font .eq-diagnostic-toggle { height: 44px !important; }
 html:root body.equity-portfolio-font .eq-scroll-cue { display: block; }
 html:root body.equity-portfolio-font .eq-rotation-table :is(th,td):first-child { position: sticky; left: 0; z-index: 1; background: var(--bg) !important; width: 170px; }
 html:root body.equity-portfolio-font .eq-stock-table :is(th,td) { padding: 10px 5px !important; font-size: 11px !important; }
 html:root body.equity-portfolio-font .eq-stock-table :is(th,td):first-child { width: 42%; }
 html:root body.equity-portfolio-font .eq-stock-table .eq-text-button { min-height: 32px; }
 html:root body.equity-portfolio-font .transition-cell small { opacity: 1; }
 html:root body.equity-portfolio-font .corr-control-strip { grid-template-columns: minmax(0,1fr) !important; gap: 12px; }
 html:root body.equity-portfolio-font .corr-score-grid { gap: 12px; }
 html:root body.equity-portfolio-font .corr-score strong { font-size: 18px; }
 html:root body.equity-portfolio-font .corr-score span { min-height: 28px; font-size: 10px; }
 html:root body.equity-portfolio-font .eq-corr-pair-panels { grid-template-columns: minmax(0,1fr) !important; }
 html:root body.equity-portfolio-font .eq-pair-window-grid { gap: 7px; }
 html:root body.equity-portfolio-font .eq-pair-window-grid strong { font-size: 15px; }
 html:root body.equity-portfolio-font .eq-matrix-heading { font-size: 10px; }
 html:root body.equity-portfolio-font .eq-local-summary { gap: 10px; }
 html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-head { align-items: flex-start; gap: 12px; }
 html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-head h3 { font-size: 18px !important; }
 html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-actions { width: 100%; justify-content: space-between; gap: 12px; }
 html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-heatmap-layout:has([data-clear-corr-pair]) { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) minmax(0,26dvh); gap: 12px; }
 html:root body.equity-portfolio-font #corr-heatmap-panel.is-heatmap-expanded .eq-expanded-pair-slot:has([data-clear-corr-pair]) { border-left: 0; border-top: 1px solid var(--eq-ui-line); padding: 12px 0 0; }
 /* Native button padding otherwise offsets signed values beyond the narrow cells. */
 html:root body.equity-portfolio-font .corr-cell { min-width: 0; padding: 0 !important; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
}
@media(prefers-reduced-motion:reduce) {
 html:root body.equity-portfolio-font :is(.eq-diagnostic-chevron,.eq-diagnostic-tabs button,.eq-diagnostic-table tbody tr) { transition: none; }
}

html:root body.equity-portfolio-font .eq-pair-kind-tabs { grid-column: 1 / -1; margin-bottom: 0; padding-bottom: 0; border: 0; }
html:root body.equity-portfolio-font .corr-pair-list { max-height: 270px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; border-bottom: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-pair-window-grid button { border: 0 !important; border-radius: 0 !important; min-height: 44px; }
html:root body.equity-portfolio-font .eq-pair-kind-tabs button { border-radius: 6px !important; }
html:root body.equity-portfolio-font .corr-pair-list:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media(max-width:760px) { html:root body.equity-portfolio-font .corr-pair-list { max-height: 230px; } }
