/* Page-scoped palettes. The site's navigation keeps its original structure. */
html[data-a44-theme]{
 --a44-surface:#101922;--a44-surface2:#14232f;--a44-surface3:#243341;--a44-hover:#1b3040;
 --a44-header:#0c1721;--a44-header-text:#d6e5ef;--a44-header-muted:#8fa8bb;--a44-header-active:#183b49;--a44-header-accent:#69d5dd;
 --a44-accent-soft:#33271d;--a44-accent-text:#ffb166;--a44-positive-soft:#07342a55;--a44-positive-border:#19594a;
 --a44-negative-soft:#48202c44;--a44-negative-border:#743448;--a44-neutral-soft:#46321844;--a44-neutral-border:#76592d;
 --a44-backdrop:#02070cb0;--a44-chart-grid:#22313e;--a44-chart-grid-alt:#1b2a36;--a44-chart-axis:#53697a;--a44-chart-track:#243341;--a44-chart-label-bg:#243d4f;--a44-chart-label:#e1edf7;
}
html[data-a44-theme=light]{
 color-scheme:light;--bg:#edf3f8;--panel:#fff;--border:#ccdbe5;--text:#18364c;--muted:#5b7284;--green:#00866c;--red:#cc3553;--orange:#b35a0b;
 --a44-surface:#fff;--a44-surface2:#f3f7fb;--a44-surface3:#dfe9f0;--a44-hover:#e9f3f9;
 --a44-header:#fff;--a44-header-text:#17375d;--a44-header-muted:#6b8199;--a44-header-active:#def5f7;--a44-header-accent:#08779b;
 --a44-accent-soft:#fff1e3;--a44-accent-text:#9d4c07;--a44-positive-soft:#e9f7f1;--a44-positive-border:#a4d8c7;
 --a44-negative-soft:#fff0f3;--a44-negative-border:#e6b1bd;--a44-neutral-soft:#fff7e8;--a44-neutral-border:#e4ca9b;
 --a44-backdrop:#14304766;--a44-chart-grid:#dce5ed;--a44-chart-grid-alt:#e8eef4;--a44-chart-axis:#8fa4b4;--a44-chart-track:#dce7ee;--a44-chart-label-bg:#ddebf5;--a44-chart-label:#123c59;
}
html[data-a44-theme=dark]{color-scheme:dark}
html[data-a44-theme] body{background:var(--bg);color:var(--text)}
html[data-a44-theme] .panel,html[data-a44-theme] .score-ring>div{background:var(--a44-surface)}
html[data-a44-theme] .analyst-toolbar{background:var(--a44-header);border-color:var(--border)}
html[data-a44-theme] #workspace :is(button,input,select),html[data-a44-theme] :is(.rp-dialog,.ec-dialog) :is(button,input,select){background:var(--a44-surface2);border-color:var(--border);color:var(--text)}
html[data-a44-theme] #workspace .primary{background:#ff8b27;border-color:#ff8b27;color:#17110c}
html[data-a44-theme] #workspace :is(.subtle,.analysis-open){background:transparent;color:var(--muted)}
html[data-a44-theme] :is(.stock-icon,.bar){background:var(--a44-surface3);color:var(--text)}
html[data-a44-theme] :is(.demo-badge,.rp-score),html[data-a44-theme] #workspace :is(.earnings-trigger,.periods .selected){background:var(--a44-accent-soft);border-color:var(--a44-neutral-border);color:var(--a44-accent-text)}
html[data-a44-theme] #workspace #chart-tooltip{color:var(--text)}
html[data-a44-theme] .outlook,html[data-a44-theme] .leg.sell{background:var(--a44-positive-soft);border-color:var(--a44-positive-border)}
html[data-a44-theme] .outlook.bear,html[data-a44-theme] .leg{background:var(--a44-negative-soft);border-color:var(--a44-negative-border)}
html[data-a44-theme] .outlook.neutral{background:var(--a44-neutral-soft);border-color:var(--a44-neutral-border)}
html[data-a44-theme] .outlook.neutral h2,html[data-a44-theme] :is(#neutral-message,.direction-states [data-direction=neutral].active){color:var(--a44-accent-text)}
html[data-a44-theme] .direction-states .active{background:var(--a44-positive-soft)}
html[data-a44-theme] .direction-states [data-direction=bear].active{background:var(--a44-negative-soft)}
html[data-a44-theme] .direction-states [data-direction=neutral].active{background:var(--a44-neutral-soft);border-color:var(--a44-neutral-border)}
html[data-a44-theme] :is(.outlook p,.insight-columns ul){color:var(--text)}
html[data-a44-theme] :is(.analysis-note,footer,.rp-footnote,.rp-list-heading,.rp-empty){color:var(--muted)}
html[data-a44-theme] :is(.analysis-source,.analysis-content h3){color:var(--a44-accent-text)}
/* Report picker and calendar, including their selected and empty states. */
html[data-a44-theme] :is(.rp-dialog,.ec-dialog){background:var(--a44-surface);border-color:var(--border);color:var(--text)}
html[data-a44-theme] :is(.rp-dialog,.ec-dialog)::backdrop{background:var(--a44-backdrop)}
html[data-a44-theme] :is(.rp-search,.rp-row,.ec-header,.ec-footer,.ec-day){background:var(--a44-surface2);border-color:var(--border)}
html[data-a44-theme] .rp-search input{background:transparent;color:var(--text)}
html[data-a44-theme] :is(.rp-heading h2,.rp-symbol,.rp-period,.ec-company strong){color:var(--text)}
html[data-a44-theme] :is(.rp-heading p,.rp-company,.rp-date,.rp-row-score small,.ec-header p,.ec-status,.ec-column h3,.ec-company small,.ec-hint,.ec-no-events,.ec-pages output,.ec-company .ec-fit-metrics){color:var(--muted)}
html[data-a44-theme] :is(.rp-row-score,.rp-footnote,.ec-column,.ec-column h3,.ec-footer){border-color:var(--border)}
html[data-a44-theme] :is(.rp-row:hover,.ec-company:hover){background:var(--a44-hover)}
html[data-a44-theme] .rp-row[aria-pressed=true],html[data-a44-theme] :is(.rp-score-tab[aria-selected=true],.ec-day[aria-pressed=true]){background:var(--a44-accent-soft);border-color:var(--orange);color:var(--a44-accent-text)}
html[data-a44-theme] :is(.rp-row-score strong,.ec-symbol,.ec-footer a){color:var(--a44-accent-text)}
html[data-a44-theme] :is(.rp-tab-count,.ec-column h3 span){background:var(--a44-surface3);color:var(--muted)}
html[data-a44-theme] .rp-score-tab[aria-selected=true] .rp-tab-count{background:var(--a44-accent-soft);color:var(--a44-accent-text)}
html[data-a44-theme] .ec-date-controls input{color-scheme:inherit}
html[data-a44-theme] .ec-screen-rules{background:var(--a44-positive-soft);border-color:var(--a44-positive-border);color:var(--green)}
html[data-a44-theme] .ec-symbol{background:var(--a44-accent-soft);border-color:var(--a44-neutral-border)}
html[data-a44-theme] .ec-results{scrollbar-color:var(--muted) var(--a44-surface)}
html[data-a44-theme] .ec-status.error{color:var(--red)}
/* Original shared navigation, recolored only while visiting Analyst44. */
html[data-a44-theme] header.trade2-shared-header{background:var(--a44-header);border-color:var(--border);color:var(--a44-header-text);box-shadow:0 3px 16px #0001}
html[data-a44-theme] .trade2-shared-header :is(.t2h-brand,.t2h-account,.t2h-icon,.t2h-menu,.t2h-nav a,.t2h-nav button,.t2h-more summary){color:var(--a44-header-text)}
html[data-a44-theme] .trade2-shared-header :is(.t2h-brand small,.t2h-account small){color:var(--a44-header-muted)}
html[data-a44-theme] .trade2-shared-header :is(.t2h-ico,.t2h-search span){color:var(--a44-header-accent)}
html[data-a44-theme] .trade2-shared-header :is(.t2h-nav .active,.t2h-nav a:hover,.t2h-nav button:hover,.t2h-icon:hover,.t2h-more summary:hover,.t2h-more[open]>summary,.t2h-more-group[open]>summary){background:var(--a44-header-active);color:var(--a44-header-accent)}
html[data-a44-theme] .trade2-shared-header :is(.t2h-search,.t2h-menu){background:var(--a44-surface2);border-color:var(--border)}
html[data-a44-theme] .trade2-shared-header .t2h-search input{color:var(--a44-header-text)}
html[data-a44-theme] .trade2-shared-header .t2h-search input::placeholder{color:var(--a44-header-muted)}
html[data-a44-theme] .trade2-shared-header :is(.t2h-nav,.t2h-more-panel){background:var(--a44-header);border-color:var(--border)}
html[data-a44-theme] .trade2-shared-header .t2h-more-links{border-color:var(--border)}
html[data-a44-theme] .trade2-shared-header .t2h-membership{background:var(--a44-header-active);color:var(--a44-header-accent);border-color:var(--border)}
/* Accessible native button switch; Enter and Space work without custom keys. */
html[data-a44-theme] .a44-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:34px;padding:5px 7px;border:1px solid var(--border);border-radius:8px;background:var(--a44-surface2);color:var(--text);font:600 11px/1.2 Arial,sans-serif;cursor:pointer;white-space:nowrap}
.a44-theme-toggle i{position:relative;display:block;width:28px;height:16px;border-radius:12px;background:#344e61;direction:ltr;flex:none}
.a44-theme-toggle i:before{content:'';position:absolute;right:3px;left:auto;top:3px;width:10px;height:10px;border-radius:50%;background:#d7e8f3;transition:transform .15s}
.a44-theme-toggle[aria-checked=true] i{background:#128d9c}.a44-theme-toggle[aria-checked=true] i:before{transform:translateX(-12px);background:#fff}
.a44-theme-toggle[aria-checked=false] .a44-theme-dark,.a44-theme-toggle[aria-checked=true] .a44-theme-light{color:var(--a44-header-accent)}
html[data-a44-theme] .a44-theme-toggle:focus-visible{outline:2px solid var(--a44-header-accent);outline-offset:3px}
@media(max-width:1600px){.trade2-shared-header .a44-theme-toggle>span{display:none}}
@media(max-width:650px){html[data-a44-theme] .trade2-shared-header .a44-theme-toggle{padding:4px 3px;min-height:34px}.trade2-shared-header .a44-theme-toggle i{width:26px}.a44-theme-toggle[aria-checked=true] i:before{transform:translateX(-10px)}html[data-a44-theme] .trade2-shared-header .t2h-nav>a,html[data-a44-theme] .trade2-shared-header .t2h-nav>button{background:var(--a44-surface2)}}
@media(prefers-reduced-motion:reduce){.a44-theme-toggle i:before{transition:none}}
