/* Charcoal / emerald dark mode, keyed to the supplied BananaPatterns reference.
   Dark mode only: light mode keeps its existing design. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bp-page:#0e1015;
  --bp-header:#0a0d12;
  --bp-card:#161a21;
  --bp-elevated:#1c2129;
  --bp-inset:#11151b;
  --bp-line:#2b313a;
  --bp-text:#e7e9ed;
  --bp-muted:#9aa3af;
  --bp-subtle:#77828f;
  --bp-green:#22ad68;
  --bp-green-bright:#51cb8e;
  --bp-green-deep:#0e3322;
  --bp-green-border:#1c965b;
  --ink:var(--bp-text);
  --muted:var(--bp-muted);
  --line:var(--bp-line);
  --bg:var(--bp-page);
  --nav:var(--bp-header);
  --mint:var(--bp-green-deep);
  --green:var(--bp-green-bright);
  --theme-topbar:var(--bp-header);
  --theme-switch-bg:#151a21;
  --theme-switch-border:#2b333d;
  --theme-switch-text:#9ba7b4;
  --theme-switch-muted:#7f8b98;
  --theme-switch-selected:#173c29;
  --theme-switch-selected-text:#75dcaa;
  --theme-switch-hover:#232932;
}
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] main:not(.discovery-redesign):not(.leadership-redesign),
html[data-theme="dark"] #main.scanner-redesign,
html[data-theme="dark"] #main.discovery-redesign,
html[data-theme="dark"] #main.leadership-redesign {
  background:var(--bp-page);
  color:var(--bp-text);
}
html[data-theme="dark"] .sidebar {
  background:var(--bp-header);
  border-right:1px solid #222933;
  color:#b7c0c9;
}
html[data-theme="dark"] .sidebar .brand {color:#f2f4f5}
html[data-theme="dark"] .sidebar .brandlight {color:#65cb91}
html[data-theme="dark"] .sidebar .brand small,
html[data-theme="dark"] .sidebar .workspace,
html[data-theme="dark"] .sidebar .side-note p,
html[data-theme="dark"] .sidebar .profile small {color:#8c97a4}
html[data-theme="dark"] .brandmark {background:#159855;color:#f6fff7}
html[data-theme="dark"] .sidebar nav button {color:#aab3be}
html[data-theme="dark"] .sidebar nav button:hover {background:#1b222a;color:#f1f4f3}
html[data-theme="dark"] .sidebar nav button.active {
  background:#102e20;
  color:#67d89b;
  box-shadow:inset 3px 0 #23b46d;
}
html[data-theme="dark"] .sidebar nav button.active em,
html[data-theme="dark"] .sidebar nav em {background:#24302d;color:#a2b4aa}
html[data-theme="dark"] .side-note {border-color:#252b34}
html[data-theme="dark"] .side-note h3 {color:#e6e9eb}
html[data-theme="dark"] .side-note button,
html[data-theme="dark"] .sidebar .tiny-pill {color:#66c992}
html[data-theme="dark"] .profile {border-color:#262d35;color:#d9dce0}
html[data-theme="dark"] .avatar {background:#167d4c;color:#fff}
html[data-theme="dark"] .profile-dot {background:#29b76d}
html[data-theme="dark"] .topbar {background:var(--bp-header);border-color:#262c34}
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb strong {color:#abb5bf}
html[data-theme="dark"] .breadcrumb span {color:#596674}
html[data-theme="dark"] .sample-badge {color:#8998a2}
html[data-theme="dark"] .sample-badge i {background:#1fa364}
html[data-theme="dark"] .iconbtn {background:#1b2028;color:#bec8cf;border-color:#303844}
html[data-theme="dark"] .theme-control button.active {box-shadow:0 0 0 1px #177b4e66 inset}
html[data-theme="dark"] .btn,
html[data-theme="dark"] select,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .notes-input {
  background:#1b2028;
  color:#d9dee5;
  border-color:#303742;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {color:#77838e}
html[data-theme="dark"] .btn:hover:not(:disabled) {background:#252c34;border-color:#4a565f}
html[data-theme="dark"] .btn.primary {background:#188f57;border-color:#188f57;color:#fff}
html[data-theme="dark"] .btn.primary:hover:not(:disabled) {background:#20a765;border-color:#20a765}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .pulse,
html[data-theme="dark"] .scan-card,
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .view-intro,
html[data-theme="dark"] .risk-capital {background:var(--bp-card);border-color:var(--bp-line);color:var(--bp-text)}
html[data-theme="dark"] .panel-head,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .detail-tabs,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .stock-head,
html[data-theme="dark"] .chart-workspace-toolbar {border-color:var(--bp-line)}
html[data-theme="dark"] .scan-card:hover,
html[data-theme="dark"] tbody tr:hover {background:#202730}
html[data-theme="dark"] .scan-card.selected,
html[data-theme="dark"] tbody tr.chosen {background:#143726;border-color:#23875a}
html[data-theme="dark"] th {background:#1a1f27;color:#a0aab5;border-color:#303741}
html[data-theme="dark"] td {color:#dce0e6;border-color:#292f38}
html[data-theme="dark"] .demo-note {background:#19251f;border-color:#2e5140;color:#afc9b8}
html[data-theme="dark"] .demo-note b {color:#d2e9da}
html[data-theme="dark"] .toast {background:#1d5539}
html[data-theme="dark"] dialog:not(.ml-drawer),
html[data-theme="dark"] dialog.fund-drawer {background:#181c23;color:#e7eaf0;border-color:#303742}
html[data-theme="dark"] dialog .modal-head,
html[data-theme="dark"] dialog .chart-modal-head {border-color:var(--bp-line)}
html[data-theme="dark"] .chart-workspace-toolbar,
html[data-theme="dark"] .chart-data-strip,
html[data-theme="dark"] .native-chart-toolbar,
html[data-theme="dark"] .chart-annotation-tools,
html[data-theme="dark"] #nativeChart {background:#15191f;color:#b5bdc7;border-color:#303641}

/* Scanner Desk: flat charcoal cards and restrained emerald action color. */
html[data-theme="dark"] .sd-page,
html[data-theme="dark"] dialog.sd-rules-dialog {
  --sd-bg:#0e1015;
  --sd-surface:#161a21;
  --sd-surface-alt:#1c2129;
  --sd-inset:#11151b;
  --sd-border:#303640;
  --sd-line:#2b313a;
  --sd-text:#dce1e7;
  --sd-title:#f0f2f3;
  --sd-muted:#9ba5b0;
  --sd-soft:#76818e;
  --sd-accent:#44bf81;
  --sd-accent-ink:#fff;
  --sd-accent-bg:#123925;
  --sd-hover:#232a32;
  --sd-chart:#80b6d6;
  --sd-shadow:0 25px 70px #000b;
}
html[data-theme="dark"] .sd-hero {
  background:radial-gradient(ellipse at 90% 5%,#17402b6b,transparent 48%),linear-gradient(115deg,#151b20,#11181c 63%,#13221b);
  border-color:#2c3a32;
}
html[data-theme="dark"] .sd-hero:before {border-color:#49a96a19;box-shadow:0 0 0 65px #49a96a06,0 0 0 130px #49a96a04}
html[data-theme="dark"] .sd-hero h1 {color:#f0f3f3}
html[data-theme="dark"] .sd-hero h1 em,
html[data-theme="dark"] .sd-eyebrow {color:#67cd98}
html[data-theme="dark"] .sd-hero-copy>p,
html[data-theme="dark"] .sd-capture-line,
html[data-theme="dark"] .sd-auto {color:#a0acb4}
html[data-theme="dark"] .sd-hero-chips span {background:#1a2821;border-color:#345241;color:#a2cbb4}
html[data-theme="dark"] .sd-run {background:#168e54;border-color:#168e54;color:#fff;box-shadow:none}
html[data-theme="dark"] .sd-run:hover:not(:disabled) {background:#1da363;border-color:#1da363}
html[data-theme="dark"] .sd-kpis>div,
html[data-theme="dark"] .sd-workspace,
html[data-theme="dark"] .sd-inspector {background:var(--sd-surface);border-color:var(--sd-border);box-shadow:none}
html[data-theme="dark"] .sd-kpi-icon {background:#1f3329;color:#5dcf94}
html[data-theme="dark"] .sd-page .sd-table th {background:#1c2129!important;color:#a0aab5!important;border-bottom-color:#303742!important}
html[data-theme="dark"] .sd-page .sd-table tbody tr:hover {background:#222a31}
html[data-theme="dark"] .sd-page .sd-table tbody tr.selected {background:#123b28}
html[data-theme="dark"] .sd-inline-chart-panel {background:#181d24}
html[data-theme="dark"] .sd-mini-chart {background:#15191f}
html[data-theme="dark"] .sd-inline-intervals button.active {background:#178c55;color:#fff}
html[data-theme="dark"] .sd-drawer-backdrop {background:#0009}

/* Discovery: neutralize navy surfaces while retaining its data layout. */
html[data-theme="dark"] .dd-page {
  --dd-ink:#e8ecf0;
  --dd-muted:#9ba5b0;
  --dd-line:#2b333b;
  --dd-bg:#11151b;
  --dd-surface:#161b22;
  --dd-green:#43c184;
  --dd-blue:#86b9df;
  --dd-amber:#e4b56a;
  --dd-red:#e58b8d;
}
html[data-theme="dark"] .dd-hero-copy {background:radial-gradient(ellipse at 84% 18%,#20473258,transparent 55%),linear-gradient(125deg,#171c23,#13191d 65%,#12241c);border-color:#2f3d36}
html[data-theme="dark"] .dd-hero-brief {background:#171c23;border-color:#303742}
html[data-theme="dark"] .dd-hero h1 {color:#edf1f1}
html[data-theme="dark"] .dd-hero h1 em,
html[data-theme="dark"] .dd-hero-label {color:#69ce9a}
html[data-theme="dark"] .dd-hero-copy>p {color:#adb8c2}
html[data-theme="dark"] .dd-btn {background:#20262e;border-color:#37404a;color:#d9dfe4}
html[data-theme="dark"] .dd-btn:hover:not(:disabled) {background:#2c323b}
html[data-theme="dark"] .dd-btn-primary {background:#178f56;border-color:#178f56;color:#fff}
html[data-theme="dark"] .dd-btn-primary:hover:not(:disabled) {background:#20a965;border-color:#20a965}
html[data-theme="dark"] .dd-channel {background:#131b20;border-color:#2e483a}
html[data-theme="dark"] .dd-channel button.active {background:#166f47;color:#fff}
html[data-theme="dark"] .dd-stat,
html[data-theme="dark"] .dd-quick-card,
html[data-theme="dark"] .dd-workspace,
html[data-theme="dark"] .dd-inspector {background:#161b22;border-color:#2c333d;box-shadow:none}
html[data-theme="dark"] .dd-quick-card:hover {background:#222932;border-color:#367b55}
html[data-theme="dark"] .dd-table-controls,
html[data-theme="dark"] .dd-table thead,
html[data-theme="dark"] .dd-chart-toolbar,
html[data-theme="dark"] .dd-chart-foot {background:#1b2028;border-color:#303741}
html[data-theme="dark"] .dd-page .dd-table thead th {background:#1b2028!important;border-bottom-color:#303741!important;color:#a0a9b3!important}
html[data-theme="dark"] .dd-inspector-numbers>div {background:#1d232b;border-color:#303741}
html[data-theme="dark"] .dd-chart {background:#151a20}
html[data-theme="dark"] .dd-search,
html[data-theme="dark"] .dd-sort-label select {background:#20252d;border-color:#333b45;color:#dce1e8}
html[data-theme="dark"] .dd-tabs button.active {border-color:#27ac70;color:#60d092}

/* Market leadership: charcoal research cards instead of green/blue gradients. */
html[data-theme="dark"] #main.leadership-redesign .ml-page {color:#e6e9ee;--ml-line:#2d343e;--ml-mut:#99a4b0;--ml-green:#41c282;--ml-red:#e27e82;--ml-amber:#dfaf64;--ml-blue:#82b3db}
html[data-theme="dark"] .ml-hero {background:radial-gradient(ellipse at 67% -40%,#215e3d4e,transparent 56%),linear-gradient(120deg,#181d23,#12181e 62%,#14231b);border-color:#2d4537}
html[data-theme="dark"] .ml-hero h1 em {color:#68d398}
html[data-theme="dark"] .ml-hero .ml-overline {color:#8fd7ae}
html[data-theme="dark"] .ml-hero-side {background:#121d19;border-color:#2b513b}
html[data-theme="dark"] .ml-button {background:#212730;border-color:#38414b;color:#dee4ea}
html[data-theme="dark"] .ml-button.ml-primary {background:#168e54;border-color:#168e54;color:#fff}
html[data-theme="dark"] .ml-metric,
html[data-theme="dark"] .ml-panel,
html[data-theme="dark"] .ml-notes {background:#161b22;border-color:#2c343e;box-shadow:none}
html[data-theme="dark"] .ml-side-rank,
html[data-theme="dark"] .ml-map-pane {background:#181e25}
html[data-theme="dark"] .ml-rank-row:hover,
html[data-theme="dark"] .ml-stock-row:hover {background:#242b32}
html[data-theme="dark"] .ml-switch,
html[data-theme="dark"] .ml-time-controls,
html[data-theme="dark"] .ml-data-strip {background:#1b2329;border-color:#313942}
html[data-theme="dark"] .ml-switch button.active,
html[data-theme="dark"] .ml-time-controls button.active {background:#168a53;color:#fff}
html[data-theme="dark"] dialog.ml-drawer {background:#181d24;color:#e6e9ef;border-color:#333b44}
html[data-theme="dark"] .ml-drawer-head {background:#1b222a;border-color:#303740}

/* Intraday and institutional: tame their formerly teal-tinted utility surfaces. */
html[data-theme="dark"] .it-page {color:#e4e9ef}
html[data-theme="dark"] .it-hero {background:radial-gradient(ellipse at 92% 8%,rgba(38,100,66,.27),transparent 50%),linear-gradient(118deg,#171d23,#151c21 62%,#17271f);border-color:#2e4637}
html[data-theme="dark"] .it-hero h1 em {color:#69d397}
html[data-theme="dark"] .it-refresh {background:#198e55;border:1px solid #2aab6b;color:#fff}
html[data-theme="dark"] .it-inspector-empty {background:radial-gradient(circle at 58% 0%,#213d30,#171d24 65%);color:#dce6df}
html[data-theme="dark"] .it-error {background:#372520;border-color:#754b3e;color:#efbba4}
html[data-theme="dark"] .it-market-strip,
html[data-theme="dark"] .it-scanner,
html[data-theme="dark"] .it-inspector,
html[data-theme="dark"] .it-expanded-shell {background:#161b22;border-color:#2c343e;box-shadow:none}
html[data-theme="dark"] .it-chart-wrap,
html[data-theme="dark"] .it-chart-tools,
html[data-theme="dark"] .it-scan-footer,
html[data-theme="dark"] .it-detail-quickfacts>div,
html[data-theme="dark"] .it-level-note,
html[data-theme="dark"] .it-disclosure {background:#1d232b;border-color:#333b45}
html[data-theme="dark"] .it-source-chip,
html[data-theme="dark"] .it-filter-pills button,
html[data-theme="dark"] .it-search-label,
html[data-theme="dark"] .it-filter-bar select,
html[data-theme="dark"] .it-view-btn,
html[data-theme="dark"] .it-expand {background:#20262e;border-color:#343e47;color:#c5cdd6}
html[data-theme="dark"] .it-filter-pills button.selected,
html[data-theme="dark"] .it-overlays button.on {background:#123d29;border-color:#208450;color:#7addaa}
html[data-theme="dark"] .it-table th {background:#1c222a;color:#a0abb6;border-color:#333b44}
html[data-theme="dark"] .it-table td {background:#161b22;color:#d8dfe5;border-color:#2e353f}
html[data-theme="dark"] .it-table tbody tr:hover td {background:#242b32}
html[data-theme="dark"] .it-table tbody tr.is-selected td {background:#133825}
html[data-theme="dark"] .it-ticker {color:#5bce92}
html[data-theme="dark"] .fund-study-grid article:not(.fund-study-hero),
html[data-theme="dark"] .fund-impact-grid article,
html[data-theme="dark"] .fund-v5-dossier,
html[data-theme="dark"] .fund-audit-kpis>div,
html[data-theme="dark"] .fund-mini-stats>div,
html[data-theme="dark"] .fund-drawer-grid>div,
html[data-theme="dark"] .fund-v5-method,
html[data-theme="dark"] .fund-score-allocation article {
  background:#191e25!important;border-color:#303842!important;color:#e4e8ec;
}
html[data-theme="dark"] .fund-study-grid .fund-study-hero {background:linear-gradient(125deg,#163e28,#11261c);border-color:#316547}
html[data-theme="dark"] .fund-table-toolbar,
html[data-theme="dark"] .fund-compact-tabs,
html[data-theme="dark"] .fund-result-context,
html[data-theme="dark"] .fund-drawer-header,
html[data-theme="dark"] .fund-drawer-section {background:#1b2129;border-color:#313943;color:#c5ced6}
html[data-theme="dark"] .fund-table th {background:#1e242d;color:#a7b1bc}
html[data-theme="dark"] .fund-table td {background:#161b22;border-color:#303741;color:#dce2e8}
html[data-theme="dark"] .fund-table tbody tr:hover td {background:#242c33}
html[data-theme="dark"] #main .scan-error {background:#372520;border:1px solid #754b3e;color:#efbba4;box-shadow:none}
html[data-theme="dark"] .fund-kpi-signal {background:#162e20!important;border-color:#286b47!important}
html[data-theme="dark"] .fund-score-v3 b,
html[data-theme="dark"] .fund-v5-method .fund-score-allocation h3,
html[data-theme="dark"] .fund-score-allocation h3 {color:#d5e9dd}
html[data-theme="dark"] .fund-score-allocation span {color:#5ac78b}
html[data-theme="dark"] .fund-score-allocation p {color:#a9b4bd}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] body {transition:none}
}

/* Institutional Radar Smart Money: charcoal surfaces and emerald hierarchy. */
html[data-theme="dark"] .fund-smart-stats{background:#161a21;border-color:#2b333b;box-shadow:none}
html[data-theme="dark"] .fund-smart-stats>div{background:#161a21;color:#b4bec8;border-color:#2b333b}
html[data-theme="dark"] .fund-smart-stats b{color:#e2ece9}
html[data-theme="dark"] .fund-smart-stats>div:last-child b{color:#63df9b}
html[data-theme="dark"] .fund-smart-table{background:#161a21;border-color:#2b333b;box-shadow:none}
html[data-theme="dark"] .fund-smart-table .fund-table-toolbar{background:#161a21}
html[data-theme="dark"] .fund-smart-table .fund-table-scroll{border-color:#2b333b}
html[data-theme="dark"] .fund-smart-table .fund-table th{background:#1d232b;border-color:#303940;color:#a3b2bd}
html[data-theme="dark"] .fund-smart-table .fund-table td{background:#161a21;border-color:#2b333b;color:#e0e8e8}
html[data-theme="dark"] .fund-smart-table .fund-table tbody tr:hover td{background:#202a2c}
html[data-theme="dark"] .fund-smart-table .fund-table td:first-child b{color:#77d9a5}
html[data-theme="dark"] .fund-smart-table .fund-table td:first-child{box-shadow:4px 0 18px #070a1044}
html[data-theme="dark"] .fund-smart-num{color:#e0e9e8}
html[data-theme="dark"] .fund-smart-num.fund-positive{color:#6bdea4}
html[data-theme="dark"] .fund-smart-search{background:#1e252d;border-color:#37414a;color:#9cadb5}
html[data-theme="dark"] .fund-smart-search input{background:transparent!important;color:#e1ebe8!important}
html[data-theme="dark"] .fund-breakout-pill{background:#232c33;border-color:#35414a;color:#a7b5bd}
html[data-theme="dark"] .fund-breakout-pill.triggered{background:#163b2a;border-color:#256e4c;color:#73dfaa}
html[data-theme="dark"] .fund-breakout-pill.watch{background:#1c3545;border-color:#31536d;color:#97c7ec}
html[data-theme="dark"] .fund-breakout-pill.extended{background:#443523;border-color:#6b5231;color:#edc084}
html[data-theme="dark"] .fund-smart-pillar{background:#1c242b;border-color:#334149}
html[data-theme="dark"] .fund-smart-pillar-top>b{color:#d9e8e2}
html[data-theme="dark"] .fund-smart-pillar-top>span{color:#65d99a}
html[data-theme="dark"] .fund-smart-pillar-top>span small,html[data-theme="dark"] .fund-smart-pillar>small,html[data-theme="dark"] .fund-drawer-disclaimer{color:#95a9a6}
html[data-theme="dark"] .fund-smart-pillar-track{background:#344249}
html[data-theme="dark"] .fund-smart-table .fund-table-footnote{background:#1b2128;border-color:#2c363d;color:#9db4aa}
html[data-theme="dark"] dialog.fund-drawer{background:#161b22;color:#e0e9e5}
html[data-theme="dark"] .fund-drawer-hero{background:linear-gradient(105deg,#123626,#205640)}
html[data-theme="dark"] .fund-drawer-header h2,html[data-theme="dark"] .fund-drawer-section h3{color:#ddefe3}
html[data-theme="dark"] .fund-drawer-metric,html[data-theme="dark"] .fund-drawer-holdings,html[data-theme="dark"] .fund-drawer-facts,html[data-theme="dark"] .fund-drawer-more{background:#1d252c;border-color:#334049;color:#dee9e6}
html[data-theme="dark"] .fund-drawer-metric b,html[data-theme="dark"] .fund-drawer-fact>b{color:#dceee5}
html[data-theme="dark"] .fund-drawer-fact,html[data-theme="dark"] .fund-drawer-holding{border-color:#34414a}
html[data-theme="dark"] .fund-drawer-fact>span,html[data-theme="dark"] .fund-drawer-holding>span{color:#abbdb3}
html[data-theme="dark"] .fund-drawer-signal{background:#222f34;color:#c3dbd0;border-color:#39534b}
html[data-theme="dark"] .fund-drawer-signal.is-active{background:#173c2a;color:#a0e9ba;border-color:#296b4b}
html[data-theme="dark"] .fund-drawer-flags{background:#352c20;color:#e6c79c}

html[data-theme="dark"] .fund-research-action{background:#204836!important;color:#87e3ae!important;border-color:#327b52!important}
html[data-theme="dark"] .fund-backtest-intro h3{color:#e2efe8}
html[data-theme="dark"] .fund-backtest-intro p,html[data-theme="dark"] .fund-backtest-foot{color:#9cb3a9}
html[data-theme="dark"] .fund-backtest-tag{background:#44301f;border-color:#73502a;color:#f3c791}
html[data-theme="dark"] .fund-backtest-options button{background:#222c31;color:#b7c8bd;border-color:#39494d}
html[data-theme="dark"] .fund-backtest-options button.active{background:#215e40;color:#d3f8de;border-color:#328a5b}
html[data-theme="dark"] .fund-backtest-options.view{border-color:#34414a}
html[data-theme="dark"] .fund-backtest-kpis>div{background:#202c2d;border-color:#344b44}
html[data-theme="dark"] .fund-backtest-kpis strong{color:#7ce0a6}
html[data-theme="dark"] .fund-backtest-kpis small,html[data-theme="dark"] .fund-backtest-kpis span{color:#a5bbb1}
html[data-theme="dark"] .fund-backtest-verdict{background:#3a2c20;border-color:#705132}
html[data-theme="dark"] .fund-backtest-verdict strong{color:#f5c995}
html[data-theme="dark"] .fund-backtest-verdict p{color:#c7aa89}
html[data-theme="dark"] .fund-backtest-table-wrap,html[data-theme="dark"] .fund-backtest-sample{border-color:#34444a}
html[data-theme="dark"] .fund-backtest-table th{background:#243136;color:#b2c5bd;border-color:#41524b}
html[data-theme="dark"] .fund-backtest-table td{background:#1c252c;border-color:#34414a;color:#cad7d1}
html[data-theme="dark"] .fund-backtest-table td:first-child{color:#dcebe2}
html[data-theme="dark"] .fund-backtest-table td b{color:#7bdaa2}
html[data-theme="dark"] .fund-backtest-table tr.emphasis td{background:#1c3c2c}
html[data-theme="dark"] .fund-backtest-sample>div{border-color:#34444a}
html[data-theme="dark"] .fund-backtest-sample b{color:#74db9d}
html[data-theme="dark"] .fund-backtest-sample span{color:#9bb2a4}

/* Institutional technical charts · night research palette */
html[data-theme="dark"] .fund-tech-controls label,html[data-theme="dark"] .fund-backtest-chart-heading label{color:#9fb7aa}
html[data-theme="dark"] .fund-tech-controls select,html[data-theme="dark"] .fund-tech-controls input,html[data-theme="dark"] .fund-backtest-chart-heading select{background:#222e34;border-color:#41544b;color:#dceee2;color-scheme:dark}
html[data-theme="dark"] .fund-tech-range{background:#1a292b}
html[data-theme="dark"] .fund-tech-range button{color:#91a99d}
html[data-theme="dark"] .fund-tech-range button.active{background:#315446;color:#b9f3d1;box-shadow:none}
html[data-theme="dark"] .fund-tech-refresh{color:#77ca9e}
html[data-theme="dark"] .fund-tech-legend button{background:#1e2a2e;border-color:#36474a;color:#9daea5}
html[data-theme="dark"] .fund-tech-legend button.active{background:#283c37;border-color:#496e5a;color:#d1e9db}
html[data-theme="dark"] .fund-tech-readout{background:#1a272b;color:#c2dbc9;border-color:#384c47}
html[data-theme="dark"] .fund-tech-canvas{background:#171f28;border-color:#384c47}
html[data-theme="dark"] .fund-tech-loading{color:#9fb4a8}
html[data-theme="dark"] .fund-tech-error b{color:#d2e7dc}
html[data-theme="dark"] .fund-tech-error button{background:#254a37;color:#b4ebc8;border-color:#396e50}
html[data-theme="dark"] .fund-tech-status{color:#94c6a7}
html[data-theme="dark"] .fund-tech-anchor-note{color:#adcabb}
html[data-theme="dark"] .fund-tech-blocks-note{color:#b3dbc2;background:#213a30;border-color:#355b47}
html[data-theme="dark"] .fund-tech-zone.bullish{background:#2bba8f31;border-color:#4bd49a9c}
html[data-theme="dark"] .fund-tech-zone.bearish{background:#e18d7140;border-color:#e89a8a9c}
html[data-theme="dark"] .fund-tech-zone.bullish span{color:#b2f7c7;background:#19402df0}
html[data-theme="dark"] .fund-tech-zone.bearish span{color:#ffb5a1;background:#4d2c29f0}
html[data-theme="dark"] .fund-daily-run-status{background:#1c3128;border-color:#335a45;color:#a7cfb2}
html[data-theme="dark"] .fund-daily-run-status b{color:#a0efbf}
html[data-theme="dark"] .fund-daily-run-status small{color:#f0c393}
html[data-theme="dark"] .fund-tech-note,html[data-theme="dark"] .fund-backtest-chart-heading p{color:#9db1a7}
html[data-theme="dark"] .fund-backtest-chart-heading h3{color:#e1f1e5}
html[data-theme="dark"] .fund-backtest-chart-heading span{color:#90d9aa}
html[data-theme="dark"] .fund-backtest-drawer .fund-tech-study{background:#1b262b;border-color:#374a41}
