/* Approved ticker workspace, scoped away from the other equity diagnostics. */
html:root body.equity-portfolio-font :is(#ticker-modal,#chart-modal) {
  --eq-detail-bg: #0b0d0f;
  --eq-detail-ink: #edf1f7;
  --eq-detail-muted: #b1bbc4;
  --eq-detail-line: #253038;
  --eq-detail-track: #18232c;
  --eq-detail-positive: #b5d4ff;
  --eq-detail-negative: #eee3d4;
  --eq-detail-chart: #b5d4ff;
  --eq-detail-fill: #b5d4ff0b;
  --eq-detail-hover: #182128;
  color: var(--eq-detail-ink);
}
html:root[data-theme="light"] body.equity-portfolio-font :is(#ticker-modal,#chart-modal) {
  --eq-detail-bg: #fcfaf7;
  --eq-detail-ink: #252724;
  --eq-detail-muted: #5c6059;
  --eq-detail-line: #dedbd5;
  --eq-detail-track: #e9e5df;
  --eq-detail-positive: #486752;
  --eq-detail-negative: #915647;
  --eq-detail-chart: #4a657a;
  --eq-detail-fill: #4a657a0d;
  --eq-detail-hover: #eae7e1;
}
html:root body.equity-portfolio-font #ticker-modal .modal-panel {
  width: min(1440px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 30px 38px 34px !important;
  background: var(--eq-detail-bg) !important;
  border: 1px solid var(--eq-detail-line) !important;
  color: var(--eq-detail-ink);
  font: 400 15px/1.45 var(--font-ui);
  scrollbar-color: var(--eq-detail-line) var(--eq-detail-bg);
}
html:root body.equity-portfolio-font #ticker-modal [hidden] { display: none !important; }
html:root body.equity-portfolio-font #ticker-modal .modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-bottom: 25px;
  margin: 0;
  border-bottom: 1px solid var(--eq-detail-line);
}
html:root body.equity-portfolio-font #ticker-modal .modal-head .kicker {
  margin: 0 0 10px;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--eq-detail-muted) !important;
}
html:root body.equity-portfolio-font #ticker-modal .eq-detail-identity-line { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
html:root body.equity-portfolio-font #ticker-modal #modal-title { margin: 0; font-size: 34px !important; line-height: 1.18 !important; letter-spacing: -1.1px; color: var(--eq-detail-ink) !important; }
html:root body.equity-portfolio-font #ticker-modal #modal-company { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 400; color: var(--eq-detail-ink) !important; }
html:root body.equity-portfolio-font #ticker-modal #modal-metadata { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--eq-detail-muted) !important; }
html:root body.equity-portfolio-font #ticker-modal #modal-subtitle { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--eq-detail-muted) !important; }
html:root body.equity-portfolio-font #ticker-modal #modal-subtitle::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
html:root body.equity-portfolio-font #ticker-modal #modal-subtitle[data-tone="pos"] { color: var(--eq-detail-positive) !important; }
html:root body.equity-portfolio-font #ticker-modal #modal-subtitle[data-tone="neg"] { color: var(--eq-detail-negative) !important; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-header-actions { display: flex; align-items: flex-start; gap: 22px; }
html:root body.equity-portfolio-font #ticker-modal #modal-snapshot { margin: 0; padding-top: 11px; color: var(--eq-detail-muted); font-size: 13px; line-height: 1.45; }
html:root body.equity-portfolio-font #ticker-modal :is(.close-btn,.chart-expand-btn) { width: 38px; height: 38px; flex: 0 0 38px; padding: 8px; border: 1px solid var(--eq-detail-line) !important; border-radius: 8px !important; background: transparent !important; color: var(--eq-detail-muted) !important; box-shadow: none !important; transform: none !important; transition: background-color 150ms ease-out, color 150ms ease-out; }
html:root body.equity-portfolio-font #ticker-modal :is(.close-btn,.chart-expand-btn):hover { background: var(--eq-detail-hover) !important; color: var(--eq-detail-ink) !important; }
html:root body.equity-portfolio-font #ticker-modal :is(.close-btn,.chart-expand-btn) svg { width: 17px; height: 17px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-section-title { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.3px; color: var(--eq-detail-ink); }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-section-heading > span { color: var(--eq-detail-muted); font-size: 12px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-readings { padding: 24px 0 27px; border-bottom: 1px solid var(--eq-detail-line); }
html:root body.equity-portfolio-font #ticker-modal .drawer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0 0; border: 0; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group { min-width: 0; padding: 0 28px; border-left: 1px solid var(--eq-detail-line); }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group:first-child { padding-left: 0; border-left: 0; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group:last-child { padding-right: 0; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group h5 { margin: 0 0 13px; color: var(--eq-detail-muted); font-size: 13px; line-height: 1.45; font-weight: 500; text-transform: none; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 41px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading > span { color: var(--eq-detail-ink); font-size: 15px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-value { display: flex; align-items: center; gap: 14px; color: var(--eq-detail-ink); font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font #ticker-modal :is(.eq-detail-value,.eq-detail-latest).pos { color: var(--eq-detail-positive) !important; }
html:root body.equity-portfolio-font #ticker-modal :is(.eq-detail-value,.eq-detail-latest).neg { color: var(--eq-detail-negative) !important; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-value strong { min-width: 31px; font-size: 21px; line-height: 1.45; font-weight: 500; text-align: right; color: inherit; letter-spacing: 0; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-combined strong { font-size: 29px; font-weight: 600; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-score-bars { display: flex; gap: 3px; height: 17px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-score-bars i { width: 5px; border-radius: 3px; background: var(--eq-detail-track); }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-score-bars i.on { background: currentColor; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-history { padding-top: 25px; }
html:root body.equity-portfolio-font #ticker-modal .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 28px; margin-top: 21px; }
html:root body.equity-portfolio-font #ticker-modal .history-card { min-width: 0; min-height: 0; padding: 16px 0 0; border: 0 !important; border-top: 1px solid var(--eq-detail-line) !important; border-radius: 0 !important; background: transparent !important; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-mr-history { grid-column: 1 / -1; }
html:root body.equity-portfolio-font #ticker-modal .history-top { align-items: center; gap: 12px; margin-bottom: 15px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-chart-copy { min-width: 0; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-chart-copy h5 { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--eq-detail-ink); font-size: 16px; line-height: 1.45; font-weight: 500; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-chart-copy .eq-detail-latest { color: var(--eq-detail-ink); font-size: 18px !important; font-weight: 500; line-height: 1.45; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-chart-copy p { margin: 4px 0 0; color: var(--eq-detail-muted); font-size: 12px; line-height: 1.45; font-weight: 400; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-chart-copy p span { margin: 0 5px; color: inherit; font: inherit !important; letter-spacing: 0; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-plot { width: 100%; height: 158px; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-plot .spark-wrap { width: 100%; height: 100%; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-spark { display: block; width: 100%; height: 100%; background: transparent !important; border: 0 !important; border-radius: 0 !important; overflow: visible; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-spark .line { fill: none; stroke: var(--eq-detail-chart) !important; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-spark .area { fill: var(--eq-detail-fill) !important; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-axis { fill: var(--eq-detail-muted) !important; font: 400 11px var(--font-ui) !important; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-gridline { stroke: var(--eq-detail-track); stroke-width: 1; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-zero { stroke: var(--eq-detail-line); stroke-width: 1; stroke-dasharray: 3 5; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-endpoint { fill: var(--eq-detail-chart); stroke: var(--eq-detail-bg); stroke-width: 2; }
html:root body.equity-portfolio-font #ticker-modal .spark-hover-line { stroke: var(--eq-detail-chart); }
html:root body.equity-portfolio-font #ticker-modal .spark-hover-dot { fill: var(--eq-detail-chart); stroke: var(--eq-detail-bg); }
html:root body.equity-portfolio-font #ticker-modal .spark-tooltip { background: var(--eq-detail-bg); border-color: var(--eq-detail-line); color: var(--eq-detail-ink); }
html:root body.equity-portfolio-font #ticker-modal .spark-tooltip strong { color: var(--eq-detail-ink); }
html:root body.equity-portfolio-font #ticker-modal .spark-tooltip span { color: var(--eq-detail-muted); }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-date-range { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0 0 31px; color: var(--eq-detail-muted); font-size: 11px; line-height: 1.45; }
html:root body.equity-portfolio-font #ticker-modal .eq-detail-history-empty { display: grid; place-items: center; height: 100%; color: var(--eq-detail-muted); font-size: 13px; }
html:root body.equity-portfolio-font #ticker-modal .history-grid > :is(.loading-skeleton,.error-state) { min-height: 250px; }
@media (max-width: 800px) {
  html:root body.equity-portfolio-font #ticker-modal .modal-panel { padding: 24px !important; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-identity-line { gap: 9px; }
  html:root body.equity-portfolio-font #ticker-modal #modal-title { font-size: 28px !important; }
  html:root body.equity-portfolio-font #ticker-modal #modal-company { font-size: 17px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-header-actions { gap: 14px; }
  html:root body.equity-portfolio-font #ticker-modal #modal-snapshot { max-width: 94px; padding-top: 0; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group { padding: 0 18px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading { gap: 8px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading > span { font-size: 13px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-value { gap: 6px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-score-bars { gap: 2px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-score-bars i { width: 3px; }
}
@media (max-width: 600px) {
  html:root body.equity-portfolio-font #ticker-modal { padding: 12px; }
  html:root body.equity-portfolio-font #ticker-modal .modal-panel { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); padding: 20px 18px 26px !important; }
  html:root body.equity-portfolio-font #ticker-modal .modal-head { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px 6px; padding-bottom: 21px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-identity-line { display: block; }
  html:root body.equity-portfolio-font #ticker-modal #modal-title { font-size: 27px !important; }
  html:root body.equity-portfolio-font #ticker-modal #modal-company { margin-top: 8px; font-size: 16px; }
  html:root body.equity-portfolio-font #ticker-modal #modal-metadata { font-size: 12px; }
  html:root body.equity-portfolio-font #ticker-modal #modal-subtitle { font-size: 13px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-header-actions { display: contents; }
  html:root body.equity-portfolio-font #ticker-modal #modal-close { grid-column: 2; grid-row: 1; }
  html:root body.equity-portfolio-font #ticker-modal #modal-snapshot { grid-column: 1 / -1; margin-top: -4px; max-width: none; font-size: 12px; }
  html:root body.equity-portfolio-font #ticker-modal :is(.close-btn,.chart-expand-btn) { width: 44px; height: 44px; flex-basis: 44px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-section-heading > span { display: none; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-section-title { font-size: 17px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-readings { padding: 21px 0; }
  html:root body.equity-portfolio-font #ticker-modal .drawer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; margin-top: 20px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group { padding: 0 13px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-reading-group:nth-child(2) { padding-right: 0; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-overall { grid-column: 1 / -1; padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--eq-detail-line); }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-value strong { min-width: 24px; font-size: 18px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-combined strong { font-size: 25px; }
  html:root body.equity-portfolio-font #ticker-modal .history-grid { grid-template-columns: 1fr; gap: 25px; }
  html:root body.equity-portfolio-font #ticker-modal .eq-detail-plot { height: 152px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body.equity-portfolio-font #ticker-modal .modal-panel { animation: none; transform: none; }
  html:root body.equity-portfolio-font #ticker-modal :is(.close-btn,.chart-expand-btn) { transition: none; }
}

/* Expanded histories use the same workspace palette and a single plot scale. */
html:root body.equity-portfolio-font #chart-modal {
  --eq-expanded-grid: #1c252c;
  --eq-expanded-zero: #49555e;
  --eq-expanded-up-strip: #829bb8;
  --eq-expanded-down-strip: #b9b1a5;
  --eq-expanded-flat-strip: #46515b;
  padding: 28px !important;
}
html:root[data-theme="light"] body.equity-portfolio-font #chart-modal {
  --eq-expanded-grid: #eae7e2;
  --eq-expanded-zero: #b7b5af;
  --eq-expanded-up-strip: #748a79;
  --eq-expanded-down-strip: #b18a7c;
  --eq-expanded-flat-strip: #b9b9b2;
}
html:root body.equity-portfolio-font #chart-modal .chart-modal-panel {
  box-sizing: border-box;
  width: min(1320px, 100%) !important;
  height: min(820px, calc(100dvh - 56px)) !important;
  padding: 26px 28px 16px !important;
  gap: 0 !important;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--eq-detail-line) !important;
  border-radius: 14px !important;
  background: var(--eq-detail-bg) !important;
  color: var(--eq-detail-ink);
  box-shadow: none !important;
  font: 400 15px/1.45 var(--font-ui);
  scrollbar-color: var(--eq-detail-line) var(--eq-detail-bg);
}
html:root body.equity-portfolio-font #chart-modal .chart-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: center;
  flex: 0 0 auto;
  gap: 28px !important;
  padding: 0 0 23px !important;
  border-bottom: 1px solid var(--eq-detail-line);
}
html:root body.equity-portfolio-font #chart-modal .eq-expanded-heading { min-width: 0; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-eyebrow { margin: 0 0 10px; color: var(--eq-detail-muted); font-size: 11px; line-height: 1.45; letter-spacing: .09em; font-weight: 500; text-transform: uppercase; }
html:root body.equity-portfolio-font #chart-modal .chart-modal-title { margin: 0; color: var(--eq-detail-ink) !important; font-size: 23px !important; line-height: 1.25 !important; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
html:root body.equity-portfolio-font #chart-modal .chart-modal-subtitle { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 10px 0 0; color: var(--eq-detail-muted) !important; font-size: 13px !important; font-weight: 400; line-height: 1.5 !important; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-observations { padding-left: 18px; border-left: 1px solid var(--eq-detail-line); font-size: 12px; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-latest { display: flex; align-items: center; gap: 14px; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-latest > span { color: var(--eq-detail-muted); font-size: 12px; }
html:root body.equity-portfolio-font #chart-modal #chart-modal-latest { color: var(--eq-detail-ink); font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font #chart-modal #chart-modal-latest[data-tone="pos"] { color: var(--eq-detail-positive); }
html:root body.equity-portfolio-font #chart-modal #chart-modal-latest[data-tone="neg"] { color: var(--eq-detail-negative); }
html:root body.equity-portfolio-font #chart-modal .close-btn { position: static; display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--eq-detail-line) !important; border-radius: 8px !important; color: var(--eq-detail-muted) !important; background: transparent !important; box-shadow: none !important; transform: none !important; transition: background-color 150ms ease-out, color 150ms ease-out; }
html:root body.equity-portfolio-font #chart-modal .close-btn:hover { color: var(--eq-detail-ink) !important; background: var(--eq-detail-hover) !important; }
html:root body.equity-portfolio-font #chart-modal .close-btn svg { width: 18px; height: 18px; }
html:root body.equity-portfolio-font #chart-modal .chart-modal-body { display: flex; flex-direction: column; min-height: 220px; overflow: visible !important; padding: 0 !important; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-chart-head { display: flex; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 22px 0 6px; color: var(--eq-detail-muted); font-size: 12px; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-plot { flex: 1; width: 100%; min-width: 0; min-height: 180px; }
html:root body.equity-portfolio-font #chart-modal :is(.spark-wrap,.spark.spark-large) { display: block; width: 100% !important; min-width: 0 !important; height: 100% !important; min-height: 0 !important; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-spark { border: 0 !important; border-radius: 0 !important; background: transparent !important; overflow: visible; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-spark text { fill: var(--eq-detail-muted) !important; font: 400 12px var(--font-ui) !important; letter-spacing: 0 !important; font-variant-numeric: tabular-nums; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-grid { stroke: var(--eq-expanded-grid); stroke-width: 1; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-zero { stroke: var(--eq-expanded-zero); stroke-width: 1; stroke-dasharray: 4 5; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-spark .line { fill: none; stroke: var(--eq-detail-chart) !important; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-spark .area { fill: var(--eq-detail-chart) !important; opacity: .045; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-endpoint { fill: var(--eq-detail-chart); stroke: var(--eq-detail-bg); stroke-width: 2; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-occupancy.pos { fill: var(--eq-expanded-up-strip); }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-occupancy.neg { fill: var(--eq-expanded-down-strip); }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-occupancy.flat { fill: var(--eq-expanded-flat-strip); }
html:root body.equity-portfolio-font #chart-modal .spark-hover-line { stroke: var(--eq-expanded-zero); stroke-width: 1; stroke-dasharray: 3 4; }
html:root body.equity-portfolio-font #chart-modal .spark-hover-dot { fill: var(--eq-detail-chart); stroke: var(--eq-detail-bg); stroke-width: 2; }
html:root body.equity-portfolio-font #chart-modal .spark-tooltip { background: var(--eq-detail-bg); border-color: var(--eq-detail-line); color: var(--eq-detail-ink); }
html:root body.equity-portfolio-font #chart-modal .spark-tooltip strong { color: var(--eq-detail-ink); font: 500 14px/1.45 var(--font-ui); }
html:root body.equity-portfolio-font #chart-modal .spark-tooltip span { color: var(--eq-detail-muted); font: 400 12px/1.45 var(--font-ui); text-transform: none; letter-spacing: 0; }
html:root body.equity-portfolio-font #chart-modal .eq-expanded-footer { display: flex; justify-content: space-between; gap: 14px; flex: 0 0 auto; margin-top: 4px; color: var(--eq-detail-muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 600px) {
  html:root body.equity-portfolio-font #chart-modal { padding: 10px !important; }
  html:root body.equity-portfolio-font #chart-modal .chart-modal-panel { height: calc(100dvh - 20px) !important; padding: 18px 15px 16px !important; border-radius: 10px !important; }
  html:root body.equity-portfolio-font #chart-modal .chart-modal-head { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px 10px !important; padding-bottom: 18px !important; }
  html:root body.equity-portfolio-font #chart-modal .chart-modal-title { font-size: 20px !important; }
  html:root body.equity-portfolio-font #chart-modal .chart-modal-subtitle { gap: 4px; font-size: 12px !important; }
  html:root body.equity-portfolio-font #chart-modal .eq-expanded-observations { flex-basis: 100%; padding: 0; margin-top: 2px; border: 0; }
  html:root body.equity-portfolio-font #chart-modal .eq-expanded-latest { grid-column: 1 / -1; grid-row: 2; gap: 10px; }
  html:root body.equity-portfolio-font #chart-modal #chart-modal-latest { font-size: 25px; }
  html:root body.equity-portfolio-font #chart-modal .close-btn { grid-column: 2; grid-row: 1; align-self: start; width: 44px; height: 44px; }
  html:root body.equity-portfolio-font #chart-modal .eq-expanded-chart-head { padding-top: 18px; }
  html:root body.equity-portfolio-font #chart-modal .eq-expanded-chart-head > span:last-child { display: none; }
  html:root body.equity-portfolio-font #chart-modal .eq-expanded-footer { flex-wrap: wrap; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body.equity-portfolio-font #chart-modal .close-btn { transition: none; }
}
