/* Dark UI: solid black surfaces and neutral white selection accents. */
html[data-theme=dark]{
 --bg:#000;--card:#000;--surface:#000;--surface-solid:#000;--nav-bg:#000;--glass-bg:#000;--glass:#000;
 --l1:#000;--l2:#000;--fill:#000;--fill-2:#000;--ctl-bg:#000;--ctl-hover:#000;--ctl-pressed:#000;
 --accent:#fff;--accent-strong:#fff;--accent-hover:#fff;--accent-soft:rgb(255 255 255 / .12);--accent-ring:rgb(255 255 255 / .38);
 --tool-selected:rgb(255 255 255 / .12);--sel:rgb(255 255 255 / .12);--on-pill:#000;--grad-cta:linear-gradient(#fff,#fff);
 --ctl-sheen:none;--ctl-shadow:none;--card-highlight:none;
}
html[data-theme=dark] :is(.top,.bottom,.mnav,.side,.rail,.dock,.pop,.modal-box,.modal-head,.mh,.st-foot,.st-nav,.st-tabs,.au-tabs,.tabs,.seg,.layout-sync,.dtb,.chart-context,.chart-context-menu,.desktop-watch-menu,.toast,.quick-interval-hud,.panel-actions,.side-h,.wl-columns,.wl-summary,.watchlist-summary,.wl-foot,.st-card,.st-box,.workspace-status,.adv-card,.adv-summary,.research-card,.drawing-text-template){background-color:#000!important;background-image:none!important}
html[data-theme=dark] :is(.tb,.tf,.bb,.dk,.rt,.pi,.dtb-b,.st-nav button,.st-tabs button,.chip,.ind-row,.layout-option,.lay-b,.layout-counts button,.text-template-card,.drawing-template-card,.wl-tab,.mn):is(.on,.active,[aria-selected=true],[aria-pressed=true],[aria-current=page]){color:#fff!important;background-color:var(--tool-selected)!important;background-image:none!important;border-color:var(--accent-ring);box-shadow:inset 0 0 0 1px var(--accent-ring)!important}
html[data-theme=dark] :is(.tb,.tf,.bb,.dk,.rt,.pi,.dtb-b)[aria-expanded=true]{color:#fff!important;background:var(--tool-selected)!important}
html[data-theme=dark] .mnav :is(.mn.on,.mn[aria-current=page]){background:transparent!important;box-shadow:none!important;color:#fff!important}
html[data-theme=dark] .mnav :is(.mn.on,.mn[aria-current=page])::before{background:linear-gradient(145deg,rgb(255 255 255 / .20),rgb(255 255 255 / .10))!important;border-color:rgb(255 255 255 / .38)!important;box-shadow:inset 0 1px 1px rgb(255 255 255 / .25)!important}
html[data-theme=dark] .mnav :is(.mn.on,.mn[aria-current=page]) :is(svg,i){color:#fff!important;background:var(--tool-selected)!important;box-shadow:inset 0 0 0 1px var(--accent-ring)!important}
html[data-theme=dark] body.mobile-toolbar-mounted:not(.embed) #mobileToolbarRow>.tb:is(.on,[aria-expanded=true],:active)::before{background:var(--tool-selected)!important;border-color:var(--accent-ring)!important;box-shadow:none!important}
html[data-theme=dark] body[data-mobile-panel=watch] :is(.wl-row.on,.wl-list .wl-row.on){background:var(--tool-selected)!important;box-shadow:inset 2px 0 #fff!important}
html[data-theme=dark] body[data-mobile-panel=watch] .wl-tab.on{box-shadow:inset 0 -2px #fff!important}
html[data-theme=dark] :is(.btn.pri,.btn.primary,.st-foot .btn.pri,.drawing-editor .btn.pri,.au-box .auth>.btn.pri){background:#fff!important;color:#000!important;border-color:#fff!important;box-shadow:none!important}
html[data-theme=dark] .sw:checked::after{background:#000}
/* Market gain/loss, candle and drawing colours keep their existing meaning. */
