/* Theme changes presentation only; retain signal colors and heatmap fills. */
html .topbar .theme-toggle{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;gap:5px;min-height:40px;min-width:64px;padding:7px 10px;border:1px solid #d9cce6;border-radius:9px;background:#f8f3fc;color:#68447e;font:inherit;font-size:12px;cursor:pointer;flex-shrink:0}
html[data-theme=dark]{--ink:#e4eaf3;--muted:#a5b3c7;--line:#344258;--bg:#101826;--sidebar:#172235;--green:#34b88b;--purple:#c5a0f3;color-scheme:dark;background:#101826}
html[data-theme=dark] body{background:#101826!important;color:#e4eaf3!important}
html[data-theme=dark] :is(.sidebar,.topbar,.panel,dialog,.command-hub,.opportunity-strip,.daily-decision,.daily-box,.daily-metrics article,.service-card,.service-team-card,.interactive-chart,.chart-shell,.beta-profile-summary,.beta-watch-card,.beta-watch-grid>article,.live-market-strip,.customer-context,.daily-watch-samples article,#daily-watch-search-results article){background:#172235!important;border-color:#344258!important;color:#e4eaf3!important;box-shadow:none}
html[data-theme=dark] :is(.daily-shortlist>article,.daily-technical,.daily-watch-empty,.beta-search,.python-filter-bar,.trial-filters,.filter-bar,.beta-source,.trial-source,.notice,.quiet-note,.customer-guide-steps>button,.source-row,.profile-chan-summary,.profile-chan-reference,.vsa-readout){background:#1d2a3d!important;border-color:#344258!important;color:#c8d5e7}
html[data-theme=dark] .daily-experience #daily-search-slot #beta-start{background:#172235!important}
html[data-theme=dark] :is(h1,h2,h3,h4,.symbol-btn,.daily-sector,.daily-shortlist>article>b,.nav-label,.daily-index strong,.service-price,.brand,.brand small){color:#e4eaf3!important}
html[data-theme=dark] :is(p,small,dd,label,.eyebrow,.daily-kicker,.daily-change-condition,.daily-watch-storage,.workspace-label,.avatar,.sidebar-note,.source-row span,.daily-heading p,.daily-box p,.daily-box>small,.daily-metrics article>span,.daily-metrics small,.daily-shortlist>article>span,.daily-shortlist article>div,.daily-sector small,.daily-glossary dd,.daily-glossary p){color:#a9b7ca!important}
html[data-theme=dark] :is(.daily-metrics strong,.daily-shortlist article>div strong){color:#d3b1fa!important}
html[data-theme=dark] .daily-sector b{color:#65dbb5!important}
html[data-theme=dark] .daily-market h3{color:#65dbb5!important}
html[data-theme=dark] .daily-decision.risk .daily-market h3{color:#ff91a8!important}
html[data-theme=dark] .daily-decision.caution .daily-market h3{color:#f2d389!important}
html[data-theme=dark] :is(input,select,textarea){background:#101b2c!important;color:#e4eaf3!important;border-color:#52617a!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9aaac0!important;opacity:1}
html[data-theme=dark] :is(.secondary,.customer-help-button,.theme-toggle,.daily-term,.sidebar-controls button,.text-button,.chart-tools button,.chart-toolbar button,.drawer-tabs button){background:#243149!important;color:#d7c1f6!important;border-color:#485675!important}
html[data-theme=dark] :is(.sidebar nav button,.sidebar-note,.avatar){border-color:#344258!important}
html[data-theme=dark] .sidebar nav button.active{background:#34304e!important;color:#f2d7ff!important}
html[data-theme=dark] .sidebar nav button:hover{background:#26364e!important}
html[data-theme=dark] :is(.daily-sector,.daily-watch-item,.source-row,.panel-heading,.chart-tools,.chart-toolbar,.drawer-header){border-color:#344258!important}
html[data-theme=dark] table{color:#e0e8f4!important}
html[data-theme=dark] thead th{background:#126d59!important;color:#fff!important}
html[data-theme=dark] tbody tr{background:#172235!important}
html[data-theme=dark] tbody tr:nth-child(even){background:#1d2a3d!important}
html[data-theme=dark] tbody :is(td,th){border-color:#344258!important}
html[data-theme=dark] tbody td:not([style]):not([class]){background:transparent!important;color:#dce6f4}
html[data-theme=dark] :is(.chart-legend,.chart-caption,.chart-status,.interactive-chart header,.chart-heading){color:#b1c0d5!important;border-color:#344258!important}
html[data-theme=dark] :is(.daily-actions,.service-card-vip){background:linear-gradient(145deg,#122c40,#302343)!important;color:#fff!important}
html[data-theme=dark] .daily-actions :is(h3,strong){color:#fff!important}
html[data-theme=dark] .daily-actions .daily-allocation strong{color:#f2d790!important}
html[data-theme=dark] .service-card .service-offer{background:#15372f!important;border-color:#2d7762!important;color:#9fe5cb!important}
html[data-theme=dark] .service-offer :is(p,strong,small){color:#a8e7d0!important}
html[data-theme=dark] .daily-glossary::backdrop,html[data-theme=dark] dialog::backdrop{background:#0009}
html[data-theme=dark] :focus-visible{outline-color:#ddaaff!important}
@media(max-width:700px){html .topbar .theme-toggle{min-width:55px;min-height:40px;font-size:11px;padding:6px 7px}html .topbar>div{gap:4px!important;flex-wrap:wrap}html .topbar{height:auto;min-height:58px;gap:8px;padding-top:5px;padding-bottom:5px}}

html[data-theme=dark] :is(.research-controls,.research-tabs,.advanced-filters,.research-panel details,.sidebar-note,.leader-card,.fundamentals-notes,.beta-dialog-header,.beta-tabs,.beta-stock-card,.service-team article,.service-plan,.service-eligibility){background:#1d2a3d!important;border-color:#344258!important;color:#cbd7e8!important}
html[data-theme=dark] :is(.research-tabs button:not(.active),.signal-summary button:not(.active)){background:#243149!important;color:#dac5f6!important;border-color:#485675!important}
html[data-theme=dark] .research-signal-table tbody td:not(.strength-cell){background:transparent!important}
html[data-theme=dark] :is(.positive,.up,.metric-positive){color:#64dbaf!important}
html[data-theme=dark] :is(.negative,.down,.metric-negative){color:#ff92aa!important}
html[data-theme=dark] .daily-index svg{color:#ed8da5}
html[data-theme=dark] .positive .daily-index svg{color:#65dcb5}
html[data-theme=dark] .sidebar nav button.active{background:#34304e!important}
html[data-theme=dark] .beta-shell .page-heading h1{color:#e4eaf3!important}
