/* Portfolio-inspired presentation, scoped to the expanded equity terminal. */
html:root body.equity-portfolio-font {
  --eq-overview-gap: 24px;
  --eq-ui-line: color-mix(in srgb, var(--line) 72%, var(--bg));
  --eq-ui-hover: color-mix(in srgb, #151e23 35%, var(--bg));
  --eq-ui-hover-line: color-mix(in srgb, var(--muted) 18%, var(--eq-ui-line));
  --eq-ui-selected: color-mix(in srgb, #bdd0db 12%, var(--bg));
}
html:root[data-theme="light"] body.equity-portfolio-font {
  --eq-ui-hover: color-mix(in srgb, #f1efeb 35%, var(--bg));
  --eq-ui-selected: color-mix(in srgb, #bdd0db 22%, var(--bg));
}

/* A compact title and one dated publication line replace competing status labels. */
html:root body.equity-portfolio-font :is(h1,h2,h3) {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
html:root body.equity-portfolio-font .mr-masthead { padding: 30px 0; }
/* Continue the light-mode header's denim surface through the page intro. */
html:root[data-theme="light"] body.equity-portfolio-font .mr-masthead {
  --masthead: var(--portfolio-header-bg, #1c262f);
  --ct-ink: #f8f5ef;
  --ct-muted: #bec8cf;
  --ct-line: #405361;
  --masthead-text: var(--ct-ink);
  --text: var(--ct-ink);
  --muted: var(--ct-muted);
  --line: var(--ct-line);
  background: var(--masthead) !important;
  color: var(--ct-ink);
}
html:root body.equity-portfolio-font .mr-masthead .mr-inner { align-items: center; gap: 24px; }
html:root body.equity-portfolio-font .mr-masthead h1 { font-size: clamp(30px,3.2vw,40px) !important; line-height: 1.18 !important; }
html:root body.equity-portfolio-font .mr-masthead p { max-width: 65ch; font-size: 14px; font-weight: 400; line-height: 1.65; }
html:root body.equity-portfolio-font .mr-eyebrow { color: var(--muted) !important; font-size: 11px; font-weight: 400; margin-bottom: 12px; }
html:root body.equity-portfolio-font .mr-masthead-meta { gap: 8px; padding: 0; font-size: 12px; }
html:root body.equity-portfolio-font .eq-snapshot-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }
html:root body.equity-portfolio-font .eq-snapshot-meta > span + span::before { content: "·"; margin-right: 10px; }
html:root body.equity-portfolio-font .ct-data-note:not(:has([data-freshness="older"])) { display: none; }
html:root body.equity-portfolio-font .mr-load-state[data-state="ready"] { display: none; }
html:root body.equity-portfolio-font .mr-load-state[data-state="error"] .dot { background: #e3c7b0; }
html:root body.equity-portfolio-font main h2 { font-size: 22px !important; line-height: 1.35 !important; }
html:root body.equity-portfolio-font :is(.viz-head,.diagnostic-head,.corr-panel-head) h2 { font-size: 20px !important; }
html:root body.equity-portfolio-font :is(.side-kicker,.metric-label,.ribbon-label,.section-label,.kicker) {
  color: var(--muted) !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
html:root body.equity-portfolio-font .mr-section-nav { background: var(--bg) !important; border-bottom: 1px solid var(--eq-ui-line); }
html:root[data-theme="light"] body.equity-portfolio-font .mr-section-nav { background: #d9e5e8 !important; }
html:root body.equity-portfolio-font .mr-section-nav .mr-inner { gap: 0 !important; padding-block: 0 !important; }
html:root body.equity-portfolio-font .mr-section-nav a {
  min-height: 52px;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}
html:root body.equity-portfolio-font .mr-section-nav a[aria-current] { color: var(--text) !important; border-bottom-color: var(--blue) !important; background: transparent !important; border-radius: 0 !important; }
html:root body.equity-portfolio-font .mr-section-nav a:hover { color: var(--text) !important; background: var(--eq-ui-hover) !important; }
html:root body.equity-portfolio-font .mr-section-nav a:focus-visible { outline-color: var(--blue); }

/* Primary readings precede the four supporting insights. */
html:root body.equity-portfolio-font .eq-universe-toolbar { padding: 18px 0; border-color: var(--eq-ui-line); }
html:root body.equity-portfolio-font .eq-universe-count { margin-left: auto; color: var(--muted); font-size: 12px; }
html:root body.equity-portfolio-font .eq-universe-count strong { font-weight: 400; }
html:root body.equity-portfolio-font .hero-main { padding-bottom: 18px !important; }
html:root body.equity-portfolio-font .metrics-grid {
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  grid-template-rows: auto;
  column-gap: var(--eq-overview-gap) !important;
  row-gap: 0 !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--eq-ui-line) !important;
}
html:root body.equity-portfolio-font .metric-card {
  display: grid !important;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 0;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html:root body.equity-portfolio-font .metric-value { font-size: 28px !important; font-weight: 600 !important; line-height: 1.3 !important; margin: 8px 0 5px !important; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font .metric-sub { font-weight: 400 !important; max-width: 24ch; }
html:root body.equity-portfolio-font .metric-meter { margin-top: 14px !important; height: 2px !important; }
html:root body.equity-portfolio-font .hero-side {
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  grid-template-rows: auto;
  column-gap: var(--eq-overview-gap) !important;
  row-gap: 0 !important;
  padding: 22px 0 !important;
  border: 0 !important;
}
html:root body.equity-portfolio-font .side-insight {
  display: grid !important;
  grid-column: auto !important;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html:root body.equity-portfolio-font .side-insight:nth-child(2) { grid-column: span 2 !important; }
html:root body.equity-portfolio-font .side-insight strong { font-size: 16px !important; font-weight: 500 !important; line-height: 1.45 !important; min-height: 46px; margin: 8px 0 6px !important; overflow-wrap: normal; }
html:root body.equity-portfolio-font .side-insight > span { margin: 0; font-weight: 400 !important; line-height: 1.6 !important; }
html:root body.equity-portfolio-font :is(.metric-card,.side-insight):first-of-type { padding-left: 0 !important; }
html:root body.equity-portfolio-font :is(.metric-card,.side-insight):last-of-type { padding-right: 0 !important; }
html:root body.equity-portfolio-font :is(.signal-ribbon,.ribbon-panel,.viz-card,.diagnostic-card,.corr-panel) { border-color: var(--eq-ui-line) !important; }
html:root body.equity-portfolio-font :is(.scatter-wrap,.atlas-wrap,.histogram,.discovery-card,.corr-network-panel,.corr-network-stage,.corr-network-rail) { background: var(--bg) !important; border-color: var(--eq-ui-line) !important; }
html:root body.equity-portfolio-font :is(.ribbon-value,.ribbon-insight b) { font-weight: 500 !important; }
html:root body.equity-portfolio-font .discovery-score { font-size: 21px !important; }

/* Use the shared portfolio ledger and preserve the equity signal columns. */
html:root body.equity-portfolio-font table.portfolio-data-table {
  --pt-bg: var(--bg);
  --pt-ink: var(--text);
  --pt-muted: var(--muted);
  --pt-line: var(--eq-ui-line);
  --pt-hover: var(--eq-ui-hover);
  font-size: 13px;
}
html:root body.equity-portfolio-font #table-scroll { border: 0 !important; border-top: 1px solid var(--eq-ui-line) !important; border-radius: 0 !important; scrollbar-gutter: auto !important; }
html:root body.equity-portfolio-font #table-scroll :is(thead,th) { background: var(--bg) !important; }
html:root body.equity-portfolio-font #table-scroll :is(th,td) { padding: 12px !important; border: 0 !important; border-bottom: 1px solid var(--eq-ui-line) !important; font-size: 13px !important; vertical-align: middle; }
html:root body.equity-portfolio-font #table-scroll th { color: var(--muted) !important; font-weight: 500 !important; font-size: 12px !important; text-transform: none !important; }
html:root body.equity-portfolio-font #table-scroll tbody tr { background: var(--bg) !important; transition: background-color 160ms ease-out; transform: none !important; }
html:root body.equity-portfolio-font #table-scroll tbody tr:nth-child(even) { background: var(--bg) !important; }
html:root body.equity-portfolio-font #table-scroll tbody tr:hover { background: var(--eq-ui-hover) !important; }
html:root body.equity-portfolio-font #table-scroll .asset-cell { background: inherit !important; }
html:root body.equity-portfolio-font #table-scroll .ticker-cell { font-size: 14px !important; font-weight: 600 !important; }
html:root body.equity-portfolio-font #table-scroll .subtext { font-size: 11px !important; font-weight: 400 !important; white-space: normal; line-height: 1.5; }
html:root body.equity-portfolio-font #table-scroll .desktop-signal-table .asset-cell { width: 240px; min-width: 220px; max-width: 260px; }
html:root body.equity-portfolio-font #table-scroll .num { text-align: right !important; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font #table-scroll :is(.momentum-trend,.momentum-strength) { justify-content: flex-end; }
html:root body.equity-portfolio-font #table-scroll .table-spark { margin-left: auto; }
html:root body.equity-portfolio-font #table-scroll :is(.momentum-value,.strength-label,.badge,.trend-chip,.strength-chip) { background: transparent !important; border: 0 !important; box-shadow: none !important; font-weight: 500 !important; font-size: 12px !important; }
html:root body.equity-portfolio-font #table-scroll table:not(.signal-change-table) :is(th,td):last-child { text-align: right !important; white-space: nowrap; }
html:root body.equity-portfolio-font .portfolio-swipe-shell { --ps-bg: var(--bg); --ps-muted: var(--muted); }
html:root body.equity-portfolio-font .portfolio-swipe-edge { z-index: 50; }
html:root body.equity-portfolio-font .portfolio-swipe-hint { font-size: 11px; }

/* Soft tint feedback, with stable row and control positions. */
html:root body.equity-portfolio-font :is(.discovery-card,.group-toggle button,.filter-btn,.table-expand-btn,.signal-change-toggle,.corr-control-group button,.chart-expand-btn,.close-btn,.diagnostic-toggle) { transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
html:root body.equity-portfolio-font :is(.discovery-card,.chart-expand-btn,.close-btn,.diagnostic-toggle):hover { background: var(--eq-ui-hover) !important; border-color: var(--eq-ui-hover-line) !important; transform: none !important; box-shadow: none !important; }
html:root body.equity-portfolio-font :is(.group-toggle button,.filter-btn,.table-expand-btn,.signal-change-toggle,.corr-control-group button):not(.active):not([aria-pressed="true"]):hover { background: var(--eq-ui-hover) !important; border-color: var(--eq-ui-hover-line) !important; }
html:root body.equity-portfolio-font :is(.group-toggle button.active,.filter-btn.active,.corr-control-group button.active,.signal-change-toggle[aria-pressed="true"]) { background: var(--eq-ui-selected) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
html:root body.equity-portfolio-font :is(.select,.search-box,.filter-btn,.group-toggle button,.table-expand-btn,.signal-change-toggle,.corr-control-group button) { border-radius: 8px !important; font-weight: 500 !important; }
html:root body.equity-portfolio-font :is(.filter-btn,.table-expand-btn,.signal-change-toggle,.corr-control-group button,.group-toggle button) { min-height: 40px; }

/* Leadership grouping uses quiet underline tabs instead of nested pill borders. */
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) {
  display: inline-flex; flex-wrap: wrap; gap: 14px;
  max-width: 100%; padding: 0 !important; overflow: visible;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) button {
  position: relative; min-width: 58px; min-height: 44px; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  color: var(--muted) !important; font: 400 13px/1 var(--font-ui) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  white-space: nowrap; transform: none !important; transition: color 160ms ease-out;
}
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: transparent;
}
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) button.active {
  color: var(--text) !important; font-weight: 500 !important;
}
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) button.active::after { background: var(--blue); }
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) button:hover { color: var(--text) !important; }
html:root body.equity-portfolio-font :is(#group-toggle,#atlas-view-toggle) button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html:root body.equity-portfolio-font #atlas-view-toggle { justify-self: start; width: auto !important; }

/* Ticker identity, current readings, then the existing historical charts. */
html:root body.equity-portfolio-font #ticker-modal .modal-panel { width: min(1040px,100%); padding: 28px; border-radius: 12px !important; background: var(--bg) !important; }
html:root body.equity-portfolio-font .modal-head { gap: 24px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .modal-head > div { min-width: 0; }
html:root body.equity-portfolio-font .modal-head .kicker { margin: 0 0 8px; font-size: 11px !important; }
html:root body.equity-portfolio-font #modal-title { font-size: 28px !important; line-height: 1.25 !important; }
html:root body.equity-portfolio-font #modal-company { font-size: 15px; line-height: 1.5; margin: 6px 0 0; color: var(--text); }
html:root body.equity-portfolio-font #modal-metadata { font-size: 12px; line-height: 1.6; margin: 6px 0 0; color: var(--muted); }
html:root body.equity-portfolio-font #modal-subtitle { font-size: 13px; line-height: 1.6; margin: 12px 0 0; color: var(--blue); font-weight: 400; }
html:root body.equity-portfolio-font .eq-detail-section-title { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--text); }
html:root body.equity-portfolio-font .drawer-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-bottom: 28px; border-block: 1px solid var(--eq-ui-line); }
html:root body.equity-portfolio-font .drawer-summary .drawer-stat { padding: 16px 16px 16px 0; border: 0 !important; border-bottom: 1px solid var(--eq-ui-line) !important; border-radius: 0 !important; background: transparent !important; }
html:root body.equity-portfolio-font .drawer-stat:nth-last-child(-n+3) { border-bottom: 0 !important; }
html:root body.equity-portfolio-font .drawer-stat span { font-size: 12px; font-weight: 400; text-transform: none; line-height: 1.5; }
html:root body.equity-portfolio-font .drawer-stat strong { font-size: 22px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font .history-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
html:root body.equity-portfolio-font .history-card { min-width: 0; padding: 18px 0; border: 0 !important; border-top: 1px solid var(--eq-ui-line) !important; border-radius: 0 !important; background: transparent !important; }
html:root body.equity-portfolio-font .history-top strong { font-size: 13px; font-weight: 500; }
html:root body.equity-portfolio-font .history-top span { font-size: 11px !important; line-height: 1.5; text-transform: none; }
html:root body.equity-portfolio-font .spark { background: var(--bg) !important; }
html:root body.equity-portfolio-font :is(.close-btn,.chart-expand-btn) { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; background: transparent !important; border: 1px solid var(--eq-ui-line); color: var(--text); border-radius: 8px; }
html:root body.equity-portfolio-font .close-btn svg { width: 18px; height: 18px; }

@media (min-width:761px) {
  html:root body.equity-portfolio-font .portfolio-swipe-hint { display: none; }
}
@media (max-width:1100px) {
  html:root body.equity-portfolio-font .mr-masthead-meta { justify-items: start; margin-top: 18px; }
  html:root body.equity-portfolio-font .eq-snapshot-meta { justify-content: flex-start; }
}
@media (min-width:761px) and (max-width:1100px) {
  html:root body.equity-portfolio-font .side-kicker { min-height: 2.9em; }
}
@media (max-width:760px) {
  html:root body.equity-portfolio-font .mr-masthead { padding: 24px 0; }
  html:root body.equity-portfolio-font .mr-masthead h1 { font-size: 30px !important; }
  html:root body.equity-portfolio-font .mr-masthead .mr-inner { display: block; }
  html:root body.equity-portfolio-font .mr-section-nav a { min-height: 48px; padding: 12px 4px; font-size: 11px; }
  html:root body.equity-portfolio-font .eq-universe-toolbar { gap: 10px; }
  html:root body.equity-portfolio-font .eq-universe-count { font-size: 11px; }
  html:root body.equity-portfolio-font .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px 18px !important; }
  html:root body.equity-portfolio-font .metric-card { min-height: 0 !important; padding: 0 !important; }
  html:root body.equity-portfolio-font .metric-value { font-size: 26px !important; }
  html:root body.equity-portfolio-font .hero-side { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px 18px !important; }
  html:root body.equity-portfolio-font .side-insight:nth-child(2) { grid-column: auto !important; }
  html:root body.equity-portfolio-font .side-insight strong { min-height: 4.35em; font-size: 15px !important; }
  html:root body.equity-portfolio-font #table-scroll :is(th,td) { padding: 12px 10px !important; }
  html:root body.equity-portfolio-font #table-scroll .asset-cell { min-width: 148px !important; max-width: 148px !important; box-shadow: 1px 0 0 var(--eq-ui-line); }
  html:root body.equity-portfolio-font #table-scroll .mobile-asset-wrap { grid-template-columns: 1fr; gap: 4px; }
  html:root body.equity-portfolio-font #table-scroll .mobile-sector-pill { justify-content: flex-start; background: transparent !important; border: 0 !important; padding: 0; height: auto; color: var(--muted) !important; max-width: 128px; font-size: 10px; font-weight: 400; }
  html:root body.equity-portfolio-font #ticker-modal { padding: 12px; }
  html:root body.equity-portfolio-font #ticker-modal .modal-panel { padding: 20px !important; max-width: 100% !important; max-height: calc(100dvh - 24px); }
  html:root body.equity-portfolio-font .modal-head { gap: 16px; padding-bottom: 18px; margin-bottom: 20px; }
  html:root body.equity-portfolio-font .drawer-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html:root body.equity-portfolio-font .drawer-stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--eq-ui-line) !important; }
  html:root body.equity-portfolio-font .drawer-stat:nth-last-child(-n+2) { border-bottom: 0 !important; }
  html:root body.equity-portfolio-font .history-grid { grid-template-columns: 1fr; gap: 14px; }
  html:root body.equity-portfolio-font .chart-expand-btn { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (prefers-reduced-motion:reduce) {
  html:root body.equity-portfolio-font :is(.mr-section-nav a,.discovery-card,.group-toggle button,.filter-btn,.table-expand-btn,.signal-change-toggle,.corr-control-group button,.chart-expand-btn,.close-btn,.diagnostic-toggle),
  html:root body.equity-portfolio-font #table-scroll tbody tr { transition: none; }
}

/* Counted score positions, readable sector labels, and a compact leaders ledger. */
html:root body.equity-portfolio-font :is(.eq-count-map,.eq-labeled-atlas) {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: var(--bg) !important;
}
html:root body.equity-portfolio-font :is(.eq-count-svg,.eq-sector-svg) {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
}
html:root body.equity-portfolio-font :is(.eq-map-tick,.eq-map-zone,.eq-cluster-count,.eq-sector-label,.eq-sector-meta,.eq-sector-number) {
  font-family: var(--font-ui) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
html:root body.equity-portfolio-font :is(.eq-map-tick,.eq-map-zone) { fill: var(--muted); font-size: 19px; font-weight: 400; }
html:root body.equity-portfolio-font .eq-map-reference { stroke: var(--eq-ui-line); stroke-width: 1; stroke-dasharray: 3 5; }
html:root body.equity-portfolio-font .eq-signal-cluster { cursor: pointer; outline: none; }
html:root body.equity-portfolio-font .eq-cluster-dot { fill: var(--cluster-color); fill-opacity: .2; stroke: var(--cluster-color); stroke-opacity: .7; stroke-width: 1; transition: fill-opacity 160ms ease-out, stroke-opacity 160ms ease-out; }
html:root body.equity-portfolio-font .eq-cluster-count { fill: var(--text); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; }
html:root body.equity-portfolio-font .eq-signal-cluster:hover .eq-cluster-dot { fill-opacity: .27; stroke-opacity: .85; stroke-width: 1.2; }
html:root body.equity-portfolio-font .eq-signal-cluster:is(:focus-visible,[aria-pressed="true"]) .eq-cluster-dot { fill-opacity: .4; stroke-opacity: 1; stroke-width: 2; }
html:root body.equity-portfolio-font .eq-map-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--eq-ui-line); padding: 12px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
html:root body.equity-portfolio-font .eq-cluster-inspector { border-top: 1px solid var(--eq-ui-line); min-height: 52px; padding-top: 14px; }
html:root body.equity-portfolio-font .eq-cluster-picker { display: block; margin: 2px 0 14px; color: var(--muted); font-size: 11px; font-weight: 400; }
html:root body.equity-portfolio-font .eq-cluster-picker select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px; border: 1px solid var(--eq-ui-line); border-radius: 6px; background: var(--bg); color: var(--text); font: 400 12px var(--font-ui); }
html:root body.equity-portfolio-font .eq-cluster-prompt { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
html:root body.equity-portfolio-font .eq-cluster-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
html:root body.equity-portfolio-font .eq-cluster-heading strong { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
html:root body.equity-portfolio-font .eq-cluster-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
html:root body.equity-portfolio-font .eq-cluster-clear { border: 1px solid var(--eq-ui-line); border-radius: 6px; background: transparent; color: var(--muted); padding: 7px 12px; font: 400 12px var(--font-ui); cursor: pointer; }
html:root body.equity-portfolio-font .eq-cluster-members { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 16px; max-height: 192px; overflow-y: auto; overscroll-behavior: contain; }
html:root body.equity-portfolio-font .eq-cluster-member { display: block; min-width: 0; min-height: 52px; padding: 10px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--eq-ui-line); text-align: left; color: var(--text); font-family: var(--font-ui); cursor: pointer; }
html:root body.equity-portfolio-font .eq-cluster-member strong { display: block; font-size: 12px; font-weight: 500; }
html:root body.equity-portfolio-font .eq-cluster-member span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 10px; margin-top: 4px; }
html:root body.equity-portfolio-font .eq-sector-node { cursor: pointer; outline: none; transition: opacity 160ms ease-out; }
html:root body.equity-portfolio-font .eq-sector-circle { fill: var(--sector-color); fill-opacity: .16; stroke: var(--sector-color); stroke-width: 1.4; stroke-opacity: .7; transition: fill-opacity 160ms ease-out, stroke-opacity 160ms ease-out; }
html:root body.equity-portfolio-font .eq-sector-label { fill: var(--text); font-size: 18px; font-weight: 500; pointer-events: none; }
html:root body.equity-portfolio-font .eq-sector-meta { fill: var(--muted); font-size: 14px; font-weight: 400; pointer-events: none; }
html:root body.equity-portfolio-font .eq-sector-connector { fill: none; stroke: var(--sector-color); stroke-opacity: .45; stroke-width: 1; pointer-events: none; }
html:root body.equity-portfolio-font .eq-sector-number { fill: var(--text); font-size: 18px; font-weight: 500; pointer-events: none; }
html:root body.equity-portfolio-font .eq-labeled-atlas.has-sector-highlight .eq-sector-node:not(.is-highlighted) { opacity: .7; }
html:root body.equity-portfolio-font .eq-sector-node.is-highlighted .eq-sector-circle { fill-opacity: .22; stroke-opacity: .85; stroke-width: 1.6; }
html:root body.equity-portfolio-font .eq-sector-node:focus-visible .eq-sector-circle { fill-opacity: .3; stroke-opacity: 1; stroke-width: 2; }
html:root body.equity-portfolio-font .eq-sector-mobile-list { display: none; }
/* International markets share the sector map's palette and label treatment. */
html:root body.equity-portfolio-font .eq-market-atlas::before { display: none !important; }
html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-label { font-size: 20px; pointer-events: auto; }
html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-meta { font-size: 14px; pointer-events: auto; }
html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-node.is-selected .eq-sector-circle { fill-opacity: .26; stroke-opacity: 1; stroke-width: 2; }
html:root body.equity-portfolio-font .eq-market-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 18px; border-bottom: 1px solid var(--eq-ui-line); margin-bottom: 18px; }
html:root body.equity-portfolio-font .eq-market-selection strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
html:root body.equity-portfolio-font .eq-market-selection span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); }
html:root body.equity-portfolio-font .eq-market-reset { flex-shrink: 0; margin: 0; min-height: 44px; }
html:root body.equity-portfolio-font .eq-market-list-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--muted); font-size: 10px; }
html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-list-row { border-radius: 0 !important; box-shadow: none !important; }
html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-list-row.is-selected { background: var(--eq-ui-selected); }
html:root body.equity-portfolio-font .eq-leaders-table { display: block !important; margin-top: 0 !important; gap: 0; }
html:root body.equity-portfolio-font :is(.eq-leader-columns,.eq-leader-row) { display: grid; grid-template-columns: minmax(0,1fr) 56px 60px 16px; column-gap: 16px; align-items: center; }
html:root body.equity-portfolio-font .eq-leader-columns { border-block: 1px solid var(--eq-ui-line); padding: 12px 0; color: var(--muted); font-size: 11px; font-weight: 400; }
html:root body.equity-portfolio-font .eq-leader-columns > span:not(:first-child) { text-align: right; }
html:root body.equity-portfolio-font .eq-leader-row { width: 100%; min-height: 70px; padding: 14px 0; border: 0 !important; border-bottom: 1px solid var(--eq-ui-line) !important; border-radius: 0 !important; background: transparent !important; color: var(--text); font-family: var(--font-ui); text-align: left; cursor: pointer; transition: background-color 160ms ease-out; }
html:root body.equity-portfolio-font .eq-leader-identity { min-width: 0; }
html:root body.equity-portfolio-font .eq-leader-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
html:root body.equity-portfolio-font .eq-leader-name strong { font-size: 14px; font-weight: 600; }
html:root body.equity-portfolio-font .eq-leader-name > span { color: var(--muted); font-size: 12px; font-weight: 400; }
html:root body.equity-portfolio-font .eq-leader-industry { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root body.equity-portfolio-font .eq-leader-value { text-align: right; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font .eq-leader-arrow { width: 14px; height: 14px; color: var(--muted); }
html:root body.equity-portfolio-font :is(.eq-leader-row,.eq-cluster-member,.eq-cluster-clear,.eq-sector-list-row):hover { background: var(--eq-ui-hover) !important; }
html:root body.equity-portfolio-font :is(.eq-leader-row,.eq-cluster-member,.eq-cluster-clear,.eq-sector-list-row):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width:760px) {
  html:root body.equity-portfolio-font #atlas-view-toggle:not([hidden]) { display: inline-flex !important; gap: 20px; }
  html:root body.equity-portfolio-font #atlas-view-toggle button { min-height: 44px; font-size: 12px !important; }
  html:root body.equity-portfolio-font .viz-card:has(#atlas-view-toggle:not([hidden])) .viz-kpi { padding-left: 8px !important; min-width: 0 !important; }
  html:root body.equity-portfolio-font .viz-card:has(#atlas-view-toggle:not([hidden])) .viz-kpi span { font-size: 10px !important; }
  html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-mobile-list { max-height: 350px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
  html:root body.equity-portfolio-font .eq-market-list-head { position: sticky; top: 0; z-index: 1; background: var(--bg); }
  html:root body.equity-portfolio-font .eq-market-atlas .eq-sector-number { font-size: 13px; }
  html:root body.equity-portfolio-font .eq-market-selection { align-items: flex-start; flex-direction: column; gap: 6px; }
  html:root body.equity-portfolio-font .eq-cluster-count { font-size: 15px; }
  html:root body.equity-portfolio-font .eq-sector-number { font-size: 12px; }
  html:root body.equity-portfolio-font :is(.eq-map-tick,.eq-map-zone) { font-size: 15px; }
  html:root body.equity-portfolio-font .eq-sector-svg :is(.eq-map-tick,.eq-map-zone) { font-size: 12px; }
  html:root body.equity-portfolio-font .eq-map-caption { font-size: 10px; }
  html:root body.equity-portfolio-font .eq-cluster-members { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html:root body.equity-portfolio-font .eq-cluster-clear { min-height: 44px; }
  html:root body.equity-portfolio-font .eq-sector-mobile-list { display: block; border-top: 1px solid var(--eq-ui-line); }
  html:root body.equity-portfolio-font .eq-sector-list-row { display: grid; grid-template-columns: 22px minmax(0,1fr) 38px; gap: 10px; align-items: center; width: 100%; min-height: 54px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--eq-ui-line); background: transparent; color: var(--text); text-align: left; font-family: var(--font-ui); cursor: pointer; }
  html:root body.equity-portfolio-font .eq-sector-list-index { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
  html:root body.equity-portfolio-font .eq-sector-list-name { font-size: 12px; line-height: 1.5; font-weight: 500; }
  html:root body.equity-portfolio-font .eq-sector-list-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
  html:root body.equity-portfolio-font .eq-sector-list-row > strong { font-size: 13px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
  html:root body.equity-portfolio-font :is(.eq-leader-columns,.eq-leader-row) { grid-template-columns: minmax(0,1fr) 40px 44px 12px; column-gap: 10px; }
  html:root body.equity-portfolio-font .eq-leader-name { display: block; }
  html:root body.equity-portfolio-font .eq-leader-name > span { display: block; margin-top: 3px; font-size: 11px; }
  html:root body.equity-portfolio-font .eq-leader-industry { font-size: 10px; }
  html:root body.equity-portfolio-font .eq-leader-value { font-size: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  html:root body.equity-portfolio-font :is(.eq-cluster-dot,.eq-sector-node,.eq-leader-row) { transition: none; }
}

/* Sector drilldown keeps the chart scale and exposes its stocks in a ledger. */
html:root body.equity-portfolio-font .eq-sector-back {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 0 !important; margin: 0 0 12px; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: var(--muted); font: 400 12px var(--font-ui); cursor: pointer;
}
html:root body.equity-portfolio-font .eq-sector-back svg { display: block; width: 15px !important; height: 15px !important; min-height: 0 !important; flex: 0 0 15px; }
html:root body.equity-portfolio-font .eq-sector-back:hover { color: var(--text); }
html:root body.equity-portfolio-font .eq-sector-summary {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px;
  padding: 14px 0 16px; margin-bottom: 10px; border-block: 1px solid var(--eq-ui-line);
}
html:root body.equity-portfolio-font .eq-sector-summary span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
html:root body.equity-portfolio-font .eq-sector-summary strong { display: block; margin-top: 6px; color: var(--text); font-size: 21px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font .eq-sector-summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; font-weight: 400; }
html:root body.equity-portfolio-font .eq-sector-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; border-top: 1px solid var(--eq-ui-line); padding: 10px 0; }
html:root body.equity-portfolio-font .eq-sector-result-count { display: block; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.5; }
html:root body.equity-portfolio-font .eq-sector-selection-copy { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 400; }
html:root body.equity-portfolio-font .eq-sector-clear { min-height: 36px; padding: 7px 10px; border: 1px solid var(--eq-ui-line); border-radius: 6px !important; background: transparent !important; color: var(--muted); font: 400 11px var(--font-ui); white-space: nowrap; cursor: pointer; }
html:root body.equity-portfolio-font .eq-sector-member-list { height: 264px; 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-sector-member-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; border-collapse: collapse; border-spacing: 0; border: 0 !important; background: transparent !important; font-family: var(--font-ui) !important; }
html:root body.equity-portfolio-font .eq-sector-ticker-col { width: 70px; }
html:root body.equity-portfolio-font .eq-sector-number-col { width: 56px; }
html:root body.equity-portfolio-font .eq-sector-action-col { width: 26px; }
html:root body.equity-portfolio-font .eq-sector-member-table :is(th,td) { padding: 11px 8px !important; border: 0 !important; border-bottom: 1px solid var(--eq-ui-line) !important; background: transparent !important; vertical-align: middle; white-space: normal !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.45 !important; }
html:root body.equity-portfolio-font .eq-sector-member-table th { position: sticky; top: 0; z-index: 1; background: var(--bg) !important; text-align: left; color: var(--muted) !important; font-size: 11px !important; font-weight: 400 !important; }
html:root body.equity-portfolio-font .eq-sector-member-table th:nth-child(n+3) { text-align: right; }
html:root body.equity-portfolio-font .eq-sector-member-table :is(th,td):first-child { padding-left: 0 !important; }
html:root body.equity-portfolio-font .eq-sector-member-table :is(th,td):last-child { padding-right: 0 !important; text-align: right; }
html:root body.equity-portfolio-font .eq-sector-member-table tbody tr { background: transparent !important; cursor: pointer; transition: background-color 160ms ease-out; }
html:root body.equity-portfolio-font .eq-sector-member-table tbody tr:hover { background: var(--eq-ui-hover) !important; }
html:root body.equity-portfolio-font .eq-sector-member-industry { color: var(--muted); font-size: 11px !important; font-weight: 400 !important; overflow-wrap: anywhere; }
html:root body.equity-portfolio-font .eq-sector-member-number { font-size: 13px !important; font-weight: 500 !important; text-align: right; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font .eq-sector-detail .eq-leader-arrow { display: block; width: 14px !important; height: 14px !important; min-height: 0 !important; margin-left: auto; }
html:root body.equity-portfolio-font .eq-sector-ticker-button { min-height: 28px; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--text) !important; font: 600 12px var(--font-ui) !important; text-align: left; cursor: pointer; }
html:root body.equity-portfolio-font :is(.eq-sector-visually-hidden,.eq-sector-member-table caption) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:root body.equity-portfolio-font .eq-sector-empty { padding: 24px 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
html:root body.equity-portfolio-font .eq-sector-clear:hover { background: var(--eq-ui-hover) !important; }
html:root body.equity-portfolio-font :is(.eq-sector-back,.eq-sector-clear,.eq-sector-ticker-button,.eq-sector-member-list):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width:760px) {
  html:root body.equity-portfolio-font .eq-sector-back { min-height: 44px; }
  html:root body.equity-portfolio-font .eq-sector-summary { gap: 12px; }
  html:root body.equity-portfolio-font .eq-sector-summary strong { font-size: 19px; }
  html:root body.equity-portfolio-font .eq-sector-summary span { min-height: 33px; font-size: 11px; }
  html:root body.equity-portfolio-font .eq-sector-clear { min-height: 44px; }
  html:root body.equity-portfolio-font .eq-sector-member-list { height: 276px; }
  html:root body.equity-portfolio-font .eq-sector-ticker-col { width: 54px; }
  html:root body.equity-portfolio-font .eq-sector-number-col { width: 43px; }
  html:root body.equity-portfolio-font .eq-sector-action-col { width: 21px; }
  html:root body.equity-portfolio-font .eq-sector-member-table :is(th,td) { padding: 10px 5px !important; }
  html:root body.equity-portfolio-font .eq-sector-member-table th { font-size: 10px !important; }
  html:root body.equity-portfolio-font .eq-sector-member-industry { font-size: 10px !important; }
  html:root body.equity-portfolio-font .eq-sector-member-number { font-size: 12px !important; }
  html:root body.equity-portfolio-font .eq-sector-ticker-button { min-height: 34px; }
}
@media (prefers-reduced-motion:reduce) {
  html:root body.equity-portfolio-font .eq-sector-member-table tbody tr { transition: none; }
}
