/* Complete palettes: layout, quotes and trading semantics remain independent. */
body[data-theme=platinum]{color-scheme:light;--bg:#f3f4f6;--surface:#ffffff;--surface2:#f7f8fa;--text:#202631;--muted:#606b7b;--line:#dce1e8;--accent:#3455a3;--accent-soft:#edf1fb;--red:#b63c50;--red-soft:#fff0f2;--green:#18765b;--amber:#856019;--amber-soft:#fff5df;--sidebar:#fafbfc;--nav-text:#202631;--nav-muted:#606b7b;--nav-active-bg:#e9eef9;--nav-active-text:#3455a3;--nav-hover:#f0f2f6;--nav-line:#dce1e8;--shadow:0 3px 16px #20263105;--simple-shadow:0 5px 24px #20263106;--radius:14px;--action-ink:#fff;--heat-base:#fff;--heat-rise:#b63c50;--heat-fall:#18765b;--heat-neutral:#f0f2f6;--heat-missing:#e4e8ee}
body[data-theme=graphite]{color-scheme:dark;--bg:#121519;--surface:#1b2026;--surface2:#232a32;--text:#e7ebf1;--muted:#a4afbe;--line:#39434f;--accent:#a7beef;--accent-soft:#29374d;--red:#f49ca9;--red-soft:#3d2831;--green:#80cdb2;--amber:#e3c18a;--amber-soft:#393126;--sidebar:#161a20;--nav-text:#e7ebf1;--nav-muted:#a4afbe;--nav-active-bg:#29374d;--nav-active-text:#c5d6f8;--nav-hover:#232a32;--nav-line:#39434f;--shadow:0 4px 18px #00000018;--simple-shadow:0 6px 26px #00000020;--radius:14px;--action-ink:#172338;--heat-base:#1b2026;--heat-rise:#f49ca9;--heat-fall:#80cdb2;--heat-neutral:#232a32;--heat-missing:#39434f}
body[data-theme=aurora]{--bg:#f5f5f9;--surface2:#f3f3f8;--text:#292b40;--muted:#62677e;--line:#dddfea;--accent:#5652b5;--accent-soft:#efedf9;--nav-active-bg:#efedf9;--nav-active-text:#5652b5;--nav-muted:#62677e;--nav-line:#dddfea;--red:#af3c53;--red-soft:#fff0f3;--green:#197760;--amber:#856019;--amber-soft:#fff5df;--shadow:0 4px 22px #292b4005;--simple-shadow:0 6px 28px #292b4006;--heat-base:#fff;--heat-rise:#af3c53;--heat-fall:#197760;--heat-neutral:#f3f3f8;--heat-missing:#dddfea}
body:is([data-theme=platinum],[data-theme=graphite]) .panel,
body:is([data-theme=platinum],[data-theme=graphite]) :is(.kpi,.simple-signal,.simple-allocation,.pulse-summary,.heat-panel,.intraday-card){border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:var(--surface)}
body:is([data-theme=platinum],[data-theme=graphite]) .simple-signal{background:var(--surface)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.brand-mark,.nav-item.active){background:var(--nav-active-bg);color:var(--nav-active-text)}
body:is([data-theme=platinum],[data-theme=graphite]) .sidebar{background:var(--sidebar)}
body:is([data-theme=platinum],[data-theme=graphite],[data-theme=aurora]) .button.primary{background:var(--accent);border-color:var(--accent);color:var(--action-ink)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.button.secondary,.icon-button,.pulse-return,.pulse-open){background:var(--surface);border-color:var(--line);color:var(--text)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface2);color:var(--text);border:1px solid var(--line);border-radius:8px;accent-color:var(--accent)}
body:is([data-theme=platinum],[data-theme=graphite]) input::placeholder{color:var(--muted);opacity:1}
body:is([data-theme=platinum],[data-theme=graphite]) :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.fund-table,.us-table,.simple-table) thead th{background:var(--surface2);color:var(--muted);font-weight:600}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.fund-table,.us-table,.simple-table) tbody tr:hover{background:var(--surface2)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.toast,.query-tooltip){background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.topbar h1,.panel h2,.fund-page-intro h2,.simple-page-header h2){font-weight:600;letter-spacing:-.3px}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.us-number,.fund-summary strong,.intraday-numbers,.simple-ring-center){font-variant-numeric:tabular-nums}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.intraday-segment,.us-research-nav){background:var(--surface2);border-color:var(--line)}
body:is([data-theme=platinum],[data-theme=graphite]) .intraday-segment button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.badge.risk,.error-banner){background:var(--red-soft);color:var(--red)}
body:is([data-theme=platinum],[data-theme=graphite]) :is(.pulse-data-warning,.us-visual-warning){background:var(--amber-soft);color:var(--amber)}
.theme-curated{margin:14px 0 20px}.theme-curated>p{color:var(--muted);font-size:12px;margin:6px 0 12px}
.theme-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.theme-choice{display:flex;flex-direction:column;align-items:stretch;gap:8px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface);color:var(--text);text-align:left;min-width:0}
.theme-choice:hover{border-color:var(--accent)}.theme-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.theme-choice strong{font-size:13px}.theme-choice small{font-size:11px;color:var(--muted);line-height:1.6}
.theme-swatch{height:54px;border-radius:7px;border:1px solid #80808030;background:var(--preview-bg);padding:9px;display:flex;gap:5px}
.theme-swatch i{display:block;width:17%;border-radius:3px;background:var(--preview-accent)}.theme-swatch i:nth-child(2){flex:1;background:var(--preview-surface)}.theme-swatch i:nth-child(3){background:var(--preview-text);width:12%}
@media(max-width:760px){.theme-gallery{grid-template-columns:1fr}.theme-choice{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:5px 12px}.theme-swatch{grid-row:1 / span 2;width:90px}.theme-choice small{grid-column:2}.theme-choice strong{align-self:end}}
body:is([data-theme=platinum],[data-theme=graphite],[data-theme=aurora]) .heat-tile{color:var(--text);text-shadow:none}body:is([data-theme=platinum],[data-theme=graphite],[data-theme=aurora]) .heat-tile.selected{box-shadow:inset 0 0 0 2px var(--accent)}

/* Celadon & champagne: a warm editorial surface with a restrained jade identity. */
body[data-theme=celadon]{color-scheme:light;--bg:#f3f5f0;--surface:#fffefa;--surface2:#f0f4ee;--text:#203c36;--muted:#60746b;--line:#dce5db;--accent:#176b60;--accent-soft:#e7f1e9;--red:#b43e51;--red-soft:#fff0f2;--green:#19775b;--amber:#92692a;--amber-soft:#faf1de;--sidebar:#15372f;--nav-text:#edf5ee;--nav-muted:#b0c5b7;--nav-active-bg:#2a5042;--nav-active-text:#fff4d8;--nav-hover:#204639;--nav-line:#365746;--shadow:0 3px 6px #24473803,0 12px 32px #24473806;--simple-shadow:0 4px 8px #24473804,0 16px 40px #24473808;--radius:15px;--action-ink:#fffefa;--heat-base:#fffefa;--heat-rise:#b43e51;--heat-fall:#19775b;--heat-neutral:#f0f4ee;--heat-missing:#e0e7df;--gold:#ad8745;--gold-soft:#e9d9b5;font-family:"Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:radial-gradient(ellipse at 100% 0,#e8eee438,transparent 45%),var(--bg)}
body[data-theme=celadon] :is(h1,h2,h3){font-weight:600;letter-spacing:-.3px}
body[data-theme=celadon] :is(.watch-table,.quote-table,.favorite-table,.intraday-numbers,.simple-strategy-body,.mobile-row-metrics){font-variant-numeric:tabular-nums}
body[data-theme=celadon] .sidebar{background:linear-gradient(165deg,#193e33,#102e29);border-right:1px solid #405b42;box-shadow:4px 0 24px #193e330a}
body[data-theme=celadon] .brand{color:#fff9e9;letter-spacing:.6px}
body[data-theme=celadon] .brand small{color:#b5c9b7;letter-spacing:1.2px}
body[data-theme=celadon] .brand-mark{background:#2c5041;color:#e9ce91;box-shadow:inset 0 0 0 1px #c3ab6b55;border-radius:13px}
body[data-theme=celadon] :is(.sidebar-label,.sidebar-note){color:#b0c5b7}
body[data-theme=celadon] .sidebar .nav-item{color:#c4d5c8;border:1px solid transparent;transition:background-color .16s,color .16s}
body[data-theme=celadon] .sidebar .nav-item:hover{background:#244939;color:#fff9e9}
body[data-theme=celadon] .sidebar .nav-item.active{background:linear-gradient(105deg,#315444,#254738);color:#f8eccb;border-color:#ad87454d;box-shadow:inset 3px 0 0 #cfb477,0 3px 10px #051a1518}
body[data-theme=celadon] .topbar{border-bottom-color:#d5dfd2}
body[data-theme=celadon] .topbar h1{color:#203c36;letter-spacing:-.5px}
body[data-theme=celadon] :is(.panel,.kpi,.simple-signal,.simple-allocation,.pulse-summary,.intraday-card,.query-card){background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
body[data-theme=celadon] :is(.panel,.simple-signal,.simple-allocation,.intraday-card){border-radius:var(--radius)}
body[data-theme=celadon] :is(.button.primary,.fund-primary){background:linear-gradient(140deg,#237c68,#145d51);border-color:#1c6b59;color:var(--action-ink);box-shadow:inset 0 1px 0 #fff4,0 4px 10px #1c6b591a}
body[data-theme=celadon] .button.primary:hover{background:linear-gradient(140deg,#2a8772,#17695a)}
body[data-theme=celadon] :is(.button.secondary,.icon-button,.pulse-open,.pulse-return){background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:0 1px 3px #24473804}
body[data-theme=celadon] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#f8faf5;color:var(--text);border-color:#d8e3d6;border-radius:9px}
body[data-theme=celadon] input::placeholder{color:#6c7b70;opacity:1}
body[data-theme=celadon] :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent)}
body[data-theme=celadon] :is(button,input,select,a,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body[data-theme=celadon] :is(.badge,.stage-tag){border-radius:6px}
body[data-theme=celadon] :is(.badge.signal,.badge.candidate){background:#e5f1e8;color:#1a6253;border-color:#c9dfce}
body[data-theme=celadon] :is(.badge.risk,.error-banner){background:var(--red-soft);color:var(--red)}
body[data-theme=celadon] :is(.pulse-data-warning,.us-visual-warning){background:var(--amber-soft);color:var(--amber)}
body[data-theme=celadon] :is(.fund-table,.us-table,.simple-table,.watch-table,.quote-table,.favorite-table,.research-table) thead th{background:#edf2e9;color:#576e60;border-color:#d9e3d4}
body[data-theme=celadon] :is(.watch-table,.quote-table,.favorite-table,.research-table) tbody tr:hover{background:#eef5eb}
body[data-theme=celadon] :is(.mobile-compact-list,.watch-pool-editor){border-color:#d7e2d3;box-shadow:0 3px 14px #24473804}
body[data-theme=celadon] .mobile-list-sort{background:#eef3e9}
body[data-theme=celadon] .mobile-compact-row{background:var(--surface)}
body[data-theme=celadon] .mobile-row-more>summary{color:#647751}
body[data-theme=celadon] :is(.intraday-segment,.us-research-nav){background:#edf3e9;border-color:#d6e1d1}
body[data-theme=celadon] .intraday-segment button[aria-pressed=true]{background:#dcecdf;color:#195c4c}
body[data-theme=celadon] .simple-strategy-monogram{background:#e5eee0;color:#2c6751;box-shadow:inset 0 0 0 1px #c8d8bc}
body[data-theme=celadon] .simple-strategy-title small{color:#6c7c67;letter-spacing:1.8px}
body[data-theme=celadon] .simple-condition-nearest{background:#f4f3e8;border-color:#e2d9bb}
body[data-theme=celadon] :is(.drawer,.update-menu-items,.query-tooltip,.toast){background:var(--surface);border-color:#d4dfcf;box-shadow:0 10px 40px #183f2e18}
body[data-theme=celadon] .drawer-backdrop{background:#0e2e2552;backdrop-filter:blur(3px)}
body[data-theme=celadon] .heat-tile{color:var(--text);text-shadow:none}
body[data-theme=celadon] .heat-tile.selected{box-shadow:inset 0 0 0 2px var(--accent)}
body[data-theme=celadon] .theme-gallery{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
body[data-theme=celadon] .theme-choice[aria-pressed=true]{border-color:#8fa980;box-shadow:inset 0 0 0 1px #8fa980;background:#f5f8ef}
@media(min-width:751px){body[data-theme=celadon] .panel>.panel-title{padding-bottom:10px;border-bottom:1px solid #e5eadd}body[data-theme=celadon] .sidebar nav{gap:5px}}
@media(max-width:750px){
 body[data-theme=celadon]{--sidebar:#fffefa;--nav-text:#607468;--nav-muted:#607468;--nav-active-bg:#e8f0e2;--nav-active-text:#245d49;--nav-hover:#eff4e9;--nav-line:#d4dfce}
 body[data-theme=celadon] .sidebar{background:#fffefa;border-top:1px solid #d4dfce;border-right:0;box-shadow:0 -5px 24px #1e482d09}
 body[data-theme=celadon] .sidebar nav{height:auto;min-height:64px;padding:4px 10px 6px;align-items:center;scrollbar-width:none}
 body[data-theme=celadon] .sidebar nav::-webkit-scrollbar{display:none}
 body[data-theme=celadon] .sidebar .nav-item{color:#607468;border:0;background:transparent}
 body[data-theme=celadon] .sidebar .nav-item.active{background:#e8f0e2;color:#245d49;border:0;box-shadow:inset 0 2px 0 #b5995d;border-radius:10px}
 body[data-theme=celadon] .sidebar .nav-item:hover{color:#245d49;background:#eff4e9}
 body[data-theme=celadon] :is(.panel,.simple-signal,.intraday-card){border-radius:12px;box-shadow:0 3px 14px #24473805}
 body[data-theme=celadon] .theme-gallery{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){body[data-theme=celadon] .sidebar .nav-item{transition:none}}

/* Financial editorial references: salmon paper, amber terminal, monochrome journal. */
body[data-theme=finviz]{color-scheme:light;--bg:#f1f3f6;--surface:#ffffff;--surface2:#e9edf4;--text:#1d2c3f;--muted:#53657a;--line:#cbd3df;--accent:#335ca8;--accent-soft:#e6edf9;--red:#b52c46;--red-soft:#ffedf1;--green:#17744d;--amber:#825d24;--amber-soft:#fff1d6;--sidebar:#202a3b;--nav-text:#dce6f6;--nav-muted:#b2c1d7;--nav-active-bg:#35517f;--nav-active-text:#ffffff;--nav-hover:#2a3b55;--nav-line:#3c4a5f;--shadow:none;--simple-shadow:none;--radius:3px;--action-ink:#ffffff;--heat-base:#ffffff;--heat-rise:#b52c46;--heat-fall:#17744d;--heat-neutral:#e9edf4;--heat-missing:#d7deea}
body[data-theme=tradingview]{color-scheme:dark;--bg:#0c111c;--surface:#131722;--surface2:#1c2333;--text:#dce2ef;--muted:#a3b0c4;--line:#2a3448;--accent:#7c9aff;--accent-soft:#1c2a4c;--red:#f28292;--red-soft:#382232;--green:#5dcbb7;--amber:#edc078;--amber-soft:#30291c;--sidebar:#101521;--nav-text:#c7d2e8;--nav-muted:#a3b0c4;--nav-active-bg:#1d2f55;--nav-active-text:#c6d6ff;--nav-hover:#1c2333;--nav-line:#2a3448;--shadow:none;--simple-shadow:none;--radius:6px;--action-ink:#101a2e;--heat-base:#131722;--heat-rise:#f28292;--heat-fall:#5dcbb7;--heat-neutral:#1c2333;--heat-missing:#2a3448}
body[data-theme=wire]{color-scheme:light;--bg:#f5f5f3;--surface:#ffffff;--surface2:#f0f1ee;--text:#222a30;--muted:#5e6870;--line:#d9deda;--accent:#b84d0a;--accent-soft:#fff0e4;--red:#b02f43;--red-soft:#fcebef;--green:#126e50;--amber:#855719;--amber-soft:#fff2dd;--sidebar:#ffffff;--nav-text:#2e3439;--nav-muted:#5e6870;--nav-active-bg:#fff0e4;--nav-active-text:#a14207;--nav-hover:#f3f4f1;--nav-line:#d9deda;--shadow:none;--simple-shadow:none;--radius:5px;--action-ink:#ffffff;--heat-base:#ffffff;--heat-rise:#b02f43;--heat-fall:#126e50;--heat-neutral:#f0f1ee;--heat-missing:#dce1dc}
body[data-theme=broadcast]{color-scheme:light;--bg:#f0f4fa;--surface:#ffffff;--surface2:#edf2f9;--text:#172c48;--muted:#5d6e85;--line:#d8e1ed;--accent:#1553a6;--accent-soft:#e7f0fd;--red:#b32f49;--red-soft:#fff0f2;--green:#0b7157;--amber:#805e20;--amber-soft:#fff3db;--sidebar:#102b53;--nav-text:#eaf2ff;--nav-muted:#b7c9e2;--nav-active-bg:#244d7a;--nav-active-text:#ffffff;--nav-hover:#1b3f6a;--nav-line:#35547b;--shadow:0 3px 14px #142d5807;--simple-shadow:0 5px 22px #142d5808;--radius:8px;--action-ink:#ffffff;--heat-base:#ffffff;--heat-rise:#b32f49;--heat-fall:#0b7157;--heat-neutral:#edf2f9;--heat-missing:#d8e1ed}
body[data-theme=marketwatch]{color-scheme:light;--bg:#f3f6f2;--surface:#ffffff;--surface2:#edf3ec;--text:#192c25;--muted:#5c6d64;--line:#d5e0d6;--accent:#146a35;--accent-soft:#e6f3e7;--red:#b33045;--red-soft:#fff0f2;--green:#126e42;--amber:#7b5d23;--amber-soft:#fff2d9;--sidebar:#f9fcf8;--nav-text:#20362a;--nav-muted:#5c6d64;--nav-active-bg:#e1f1e0;--nav-active-text:#12592e;--nav-hover:#edf5eb;--nav-line:#d5e0d6;--shadow:none;--simple-shadow:none;--radius:4px;--action-ink:#ffffff;--heat-base:#ffffff;--heat-rise:#b33045;--heat-fall:#126e42;--heat-neutral:#edf3ec;--heat-missing:#d5e0d6}
body[data-theme=financeviolet]{color-scheme:light;--bg:#f5f3fa;--surface:#ffffff;--surface2:#f0ecf8;--text:#2c213e;--muted:#6a5c7c;--line:#e1daee;--accent:#5f16b8;--accent-soft:#f0e7ff;--red:#b92d52;--red-soft:#fff0f5;--green:#157451;--amber:#855b25;--amber-soft:#fff3df;--sidebar:#fbf9ff;--nav-text:#44345d;--nav-muted:#6a5c7c;--nav-active-bg:#ede1ff;--nav-active-text:#5713a8;--nav-hover:#f2ebfc;--nav-line:#e1daee;--shadow:0 4px 18px #4f277008;--simple-shadow:0 6px 24px #4f27700a;--radius:14px;--action-ink:#ffffff;--heat-base:#ffffff;--heat-rise:#b92d52;--heat-fall:#157451;--heat-neutral:#f0ecf8;--heat-missing:#e1daee}
body[data-theme=newsprint]{color-scheme:light;--bg:#fff1e5;--surface:#fff7ef;--surface2:#f6e7da;--text:#282723;--muted:#695d52;--line:#dcc9ba;--accent:#096572;--accent-soft:#e3eeeb;--red:#a82e43;--red-soft:#fbe6e4;--green:#146c4e;--amber:#815b23;--amber-soft:#f6e9cb;--sidebar:#f7e8db;--nav-text:#35332e;--nav-muted:#695d52;--nav-active-bg:#e5eeea;--nav-active-text:#075e69;--nav-hover:#efdfd0;--nav-line:#d7c2b1;--shadow:none;--simple-shadow:none;--radius:5px;--action-ink:#fff7ef;--heat-base:#fff7ef;--heat-rise:#a82e43;--heat-fall:#146c4e;--heat-neutral:#f4e8dd;--heat-missing:#e7d9cd}
body[data-theme=terminal]{color-scheme:dark;--bg:#0e1115;--surface:#171c22;--surface2:#202830;--text:#f1f3f5;--muted:#b2bcc6;--line:#38434e;--accent:#ffb35c;--accent-soft:#382b1d;--red:#ff8298;--red-soft:#3b222e;--green:#76d5ad;--amber:#f8c879;--amber-soft:#342d20;--sidebar:#11161b;--nav-text:#d8e0e8;--nav-muted:#aab6c2;--nav-active-bg:#33291e;--nav-active-text:#ffc37a;--nav-hover:#202830;--nav-line:#38434e;--shadow:none;--simple-shadow:none;--radius:4px;--action-ink:#161616;--heat-base:#171c22;--heat-rise:#ff8298;--heat-fall:#76d5ad;--heat-neutral:#202830;--heat-missing:#38434e}
body[data-theme=journal]{color-scheme:light;--bg:#f4f4f3;--surface:#ffffff;--surface2:#f0f2f4;--text:#191d23;--muted:#5d6570;--line:#d6dbe0;--accent:#245d93;--accent-soft:#eaf1f8;--red:#ac3043;--red-soft:#fcebef;--green:#126e51;--amber:#845b22;--amber-soft:#faf0dc;--sidebar:#ffffff;--nav-text:#242a32;--nav-muted:#5d6570;--nav-active-bg:#eaf1f8;--nav-active-text:#194e81;--nav-hover:#f0f2f4;--nav-line:#d6dbe0;--shadow:none;--simple-shadow:none;--radius:3px;--action-ink:#ffffff;--heat-base:#ffffff;--heat-rise:#ac3043;--heat-fall:#126e51;--heat-neutral:#f0f2f4;--heat-missing:#d6dbe0}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]){background:var(--bg);font-family:"Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar{background:var(--sidebar);color:var(--nav-text);border-right:1px solid var(--nav-line);box-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .brand{color:var(--text);letter-spacing:0}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.brand small,.sidebar-label,.sidebar-note){color:var(--nav-muted)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .brand-mark{background:var(--accent-soft);color:var(--accent);border-radius:4px;box-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar .nav-item{color:var(--nav-text);background:transparent;border-radius:4px;border:0}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar .nav-item:hover{background:var(--nav-hover)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar .nav-item.active{color:var(--nav-active-text);background:var(--nav-active-bg);box-shadow:inset 3px 0 0 var(--accent);font-weight:600}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.panel,.kpi,.simple-signal,.simple-allocation,.pulse-summary,.intraday-card,.mobile-compact-list){background:var(--surface);border-color:var(--line);border-radius:var(--radius);box-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .button.primary{background:var(--accent);color:var(--action-ink);border-color:var(--accent);box-shadow:none;border-radius:4px}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.button.secondary,.icon-button,.pulse-open,.pulse-return){background:var(--surface);border-color:var(--line);color:var(--text);border-radius:4px;box-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--surface2);color:var(--text);border:1px solid var(--line);border-radius:4px}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) input::placeholder{color:var(--muted);opacity:1}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.watch-table,.quote-table,.favorite-table,.research-table,.fund-table,.us-table) thead th{background:var(--surface2);color:var(--muted);border-color:var(--line)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.watch-table,.quote-table,.favorite-table,.research-table) tbody tr:hover{background:var(--accent-soft)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .mobile-list-sort{background:var(--surface2)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.watch-pool-editor,.drawer,.update-menu-items,.query-tooltip,.toast){background:var(--surface);border-color:var(--line);box-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.badge.risk,.error-banner){color:var(--red);background:var(--red-soft)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.pulse-data-warning,.us-visual-warning){color:var(--amber);background:var(--amber-soft)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) :is(.intraday-segment,.us-research-nav){background:var(--surface2);border-color:var(--line)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .intraday-segment button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .heat-tile{color:var(--text);text-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .heat-tile.selected{box-shadow:inset 0 0 0 2px var(--accent)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .theme-choice[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) #simple-qqq.simple-decision-qqq .simple-signal{border-radius:var(--radius);box-shadow:none}
body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) #market-pulse-content.pulse-layout-compact :is(.pulse-heat-panel,.pulse-detail-panel,.aurora-pulse-ticker){border-radius:var(--radius);box-shadow:none;background:var(--surface)}
body:is([data-theme=newsprint],[data-theme=journal]) :is(.brand,.topbar h1,.panel h2,.simple-page-header h2){font-family:Georgia,"Noto Serif SC","Songti SC",SimSun,serif;letter-spacing:0}
body[data-theme=newsprint] .topbar{border-bottom:1px solid #8e7969}
body[data-theme=journal] .topbar{border-bottom:2px solid #242a32}
body[data-theme=journal] .panel-title{border-bottom-color:#939ba5}
body[data-theme=terminal] :is(.mobile-row-lead .mobile-cell-value,.heat-list-row>span:nth-child(2),.heat-list-row>span:nth-child(3),.watch-table td:not(:first-child),.quote-change strong){font-family:Consolas,"SFMono-Regular",monospace;font-variant-numeric:tabular-nums}
body[data-theme=terminal] .topbar{border-bottom:1px solid #76532c}
body[data-theme=terminal] .simple-strategy-monogram{color:var(--accent);background:var(--accent-soft);box-shadow:none;border-radius:4px}
body[data-theme=wire] .topbar{border-bottom:2px solid #e47327}
body[data-theme=wire] .brand-mark{border-radius:50%;box-shadow:inset 0 0 0 1px #f2c29b}
body[data-theme=wire] :is(.topbar h1,.panel h2){font-weight:650;letter-spacing:-.4px}
body[data-theme=wire] .simple-strategy-monogram{background:#fff0e4;color:#b84d0a;box-shadow:none;border-radius:5px}
body[data-theme=broadcast] .sidebar{background:linear-gradient(170deg,#14355f,#0b2445)}
body[data-theme=broadcast] .brand{color:var(--nav-text)}
body[data-theme=broadcast] .brand-mark{color:#b9ecff;background:#2b5384;border-radius:8px}
body[data-theme=broadcast] .sidebar .nav-item.active{background:#244d7a;box-shadow:inset 3px 0 0 #74c7ff;color:#fff}
body[data-theme=broadcast] .topbar{border-bottom:2px solid #1553a6}
body[data-theme=broadcast] :is(.topbar h1,.panel h2){font-weight:650;color:#123969}
body[data-theme=broadcast] .button.primary{background:linear-gradient(140deg,#2264bb,#13478d);border-color:#1553a6;border-radius:6px}
body[data-theme=broadcast] .simple-strategy-monogram{background:#e7f0fd;color:#1553a6;box-shadow:none;border-radius:7px}
body[data-theme=marketwatch] .brand{font-weight:750;letter-spacing:-.5px}
body[data-theme=marketwatch] .topbar{border-bottom:3px solid #192c25}
body[data-theme=marketwatch] :is(.topbar h1,.panel h2){font-weight:700;letter-spacing:-.5px}
body[data-theme=marketwatch] .simple-strategy-monogram{background:#e6f3e7;color:#146a35;box-shadow:none;border-radius:3px}
body[data-theme=marketwatch] .mobile-list-sort{border-top:2px solid #146a35}
body[data-theme=financeviolet] .brand{font-weight:700;letter-spacing:-.4px;color:#5f16b8}
body[data-theme=financeviolet] .brand-mark{background:#ede1ff;color:#5f16b8;border-radius:13px}
body[data-theme=financeviolet] .topbar{border-bottom:1px solid #d9caed}
body[data-theme=financeviolet] .button.primary{border-radius:22px;box-shadow:0 3px 12px #5f16b815}
body[data-theme=financeviolet] :is(.panel,.intraday-card,.simple-signal){box-shadow:var(--shadow)}
body[data-theme=financeviolet] .mobile-compact-list:not([hidden]){border-radius:14px;box-shadow:var(--shadow)}
body[data-theme=financeviolet] .simple-strategy-monogram{background:#ede1ff;color:#5f16b8;border-radius:12px;box-shadow:none}
body[data-theme=financeviolet] .sidebar .nav-item.active{border-radius:12px;box-shadow:none;font-weight:650}
body[data-theme=finviz]{font-family:Arial,"Microsoft YaHei",system-ui,sans-serif}
body[data-theme=finviz] .brand{color:#edf3ff;font-weight:700;letter-spacing:-.3px}
body[data-theme=finviz] .brand-mark{border-radius:3px;background:#3c5b90;color:#fff}
body[data-theme=finviz] .topbar{border-bottom:2px solid #46689b}
body[data-theme=finviz] :is(.watch-table,.quote-table,.favorite-table,.research-table) thead th{background:#dfe6f2;color:#2c4467;border-bottom:1px solid #aebdd3}
body[data-theme=finviz] :is(.watch-table,.quote-table,.favorite-table) td{border-bottom:1px solid #d3dbe7}
body[data-theme=finviz] .mobile-list-sort{border-bottom:2px solid #a6b8d4;background:#e9edf4}
body[data-theme=finviz] .simple-strategy-monogram{border-radius:3px;box-shadow:none;background:#dfe7f4;color:#335ca8}
body[data-theme=tradingview] .topbar{border-bottom:1px solid #2a3448}
body[data-theme=tradingview] .button.primary{background:#2962ff;color:#fff;border-color:#2962ff;border-radius:6px}
body[data-theme=tradingview] .brand-mark{background:#1d2f55;color:#a8bfff;border-radius:7px}
body[data-theme=tradingview] .simple-strategy-monogram{background:#1c2a4c;color:#a8bfff;border-radius:6px;box-shadow:none}
body[data-theme=tradingview] :is(.watch-chart-panel,.intraday-card){background:#131722;border:1px solid #2a3448;box-shadow:none}
body[data-theme=tradingview] :is(.intraday-plot,.watch-chart-panel canvas){background:#131722}
body[data-theme=tradingview] .mobile-list-sort{background:#1c2333;border-bottom-color:#334365}
body[data-theme=tradingview] :is(.watch-table td,.mobile-row-metrics,.intraday-numbers){font-variant-numeric:tabular-nums}
@media(min-width:751px){
 body[data-theme=finviz] :is(.watch-table,.favorite-table) th,body[data-theme=finviz] :is(.watch-table,.favorite-table) td{padding:7px 6px;font-size:12px}
 body[data-theme=finviz] .quote-table td{padding-top:8px;padding-bottom:8px}
 body[data-theme=finviz] #market-pulse-content.pulse-layout-compact .heat-list-row{min-height:44px;padding-top:7px;padding-bottom:7px}
}
@media(max-width:750px){
 body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar{background:var(--surface);border-top:1px solid var(--line);border-right:0}
 body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar nav{height:auto;min-height:64px;padding:4px 10px 6px;align-items:center;scrollbar-width:none}
 body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar nav::-webkit-scrollbar{display:none}
 body:is([data-theme=newsprint],[data-theme=terminal],[data-theme=journal],[data-theme=wire],[data-theme=broadcast],[data-theme=marketwatch],[data-theme=financeviolet],[data-theme=finviz],[data-theme=tradingview]) .sidebar .nav-item.active{box-shadow:inset 0 2px 0 var(--accent)}
 body[data-theme=broadcast]{--sidebar:#ffffff;--nav-text:#264a70;--nav-muted:#5d6e85;--nav-active-bg:#e7f0fd;--nav-active-text:#134d91;--nav-hover:#edf2f9;--nav-line:#d8e1ed}
 body[data-theme=broadcast] .sidebar{background:var(--surface)}
 body[data-theme=broadcast] .sidebar .nav-item.active{background:var(--accent-soft);color:var(--accent)}
 body[data-theme=finviz]{--sidebar:#ffffff;--nav-text:#354a68;--nav-muted:#53657a;--nav-active-bg:#e2eaf8;--nav-active-text:#284d92;--nav-hover:#eef2f8;--nav-line:#cbd3df}
}
