/* Shared appearance across the workspace, research and account pages. */
html[data-theme="light"]{color-scheme:light;--bg:#fff;--surface:#fff;--surface-raised:#f2f5f7;--panel:#fff;--line:#d4dde5;--ink:#17232f;--muted:#536477;--accent:#087b67;--theme-soft:#f3f6f8;--theme-active:#e0f3ed;--theme-danger:#a52735}
html[data-theme="dark"]{color-scheme:dark;--bg:#101010;--surface:#181818;--surface-raised:#242424;--panel:#181818;--line:#383838;--ink:#f0f0f0;--muted:#b1b1b1;--accent:#80ead2;--theme-soft:#202020;--theme-active:#233730;--theme-danger:#ffa59e}
html[data-theme] body{background:var(--bg);color:var(--ink)}
html[data-theme] button{background:var(--theme-soft);color:var(--ink);border-color:var(--line)}
html[data-theme] :is(p,small){color:var(--muted)}
html[data-theme] body:has(#recoveryForm)>main{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="light"] body:has(#recoveryForm) a{color:var(--accent)}
html[data-theme] :is(.siteRail,aside,.researchBody>header){background:var(--bg);border-color:var(--line)}
html[data-theme] :is(.stats article,.panel,.settingsCard,.marketCards article,.dataTable,.empty,.accessGate,.alertCard,.riskOverview,.record,.dailyReport,.catalog,.newsCard,.newsReader,.activationShell,dialog){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] :is(.hero,.pro,.dailySummary,.membershipBanner,.accessPreview){background:var(--theme-soft);border-color:var(--line)}
html[data-theme] :is(input,select,textarea,.settingsCard input:not([type=checkbox]),.settingsCard select){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] :is(.account button,.sectionHead button,.alertReview,.chartToolbar button,.headTools button,.tools button,#workspaceMenu){background:var(--theme-soft);color:var(--ink);border-color:var(--line)}
html[data-theme] :is(.hero p,.pro p,.brand span,.heroDaily+button,.stats small,.stats span,.opp small,.score small,.why p,.sectionHead p,dialog p,dialog label,footer,.dailyHint,.seriesItem small,.dailySummary p,.allLevels summary,.archivedData summary){color:var(--muted)}
html[data-theme] :is(nav a,.siteRail nav a){color:var(--muted)}
html[data-theme] :is(nav a.active,.seriesItem.active,.researchBody main>nav button.active){background:var(--theme-active);color:var(--accent);border-color:var(--accent)}
html[data-theme] :is(.status,.researchBody main>nav,.scenarioNote,.dailyChart,.watchZone,.scenarioPlan,.trendGrid>div,.chips b,.previewPills span){background:var(--theme-soft);border-color:var(--line);color:var(--ink)}
html[data-theme="light"] :is(.bad,.sellWatch h3,#loginError,.settingsStatus.error){color:var(--theme-danger)}
html[data-theme="light"] .up{color:#087b45}
html[data-theme="light"] .badge{background:#e1f5e9;color:#13613b}
html[data-theme] :is(.hero button,.pro button,.heroDaily,.settingsCard button,.dailyAdd button,.membershipBanner a,.upgradeAction,dialog button){background:var(--accent);color:#10251e}
html[data-theme="light"] :is(.hero button,.pro button,.heroDaily,.settingsCard button,.dailyAdd button,.membershipBanner a,.upgradeAction,dialog button){color:#fff}
html[data-theme="light"] :is(body:not(.researchPage)>main>header,.researchBody>footer){border-color:var(--line)}

.headerLanguage{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap}.headerLanguage select{min-width:112px;padding:8px 10px;border-radius:10px}
html[data-theme] .interfaceSettings .languageChoice{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--ink);margin-top:18px}
