/* Public semantic contrast corrections: retain dark surfaces, fix light text. */
html[data-theme="light"] .layer-toggle :is(.layer-name,.layer-state,.control-shortcut) { color:#273321 !important; opacity:1 !important; }
html[data-theme="light"] .layer-toggle .layer-symbol { color:#10140e !important; opacity:1; filter:none; }
html[data-theme="light"] .operator-contact { background:#eef0ff !important; }
html[data-theme="light"] .operator-contact :is(b,i,.operator-contact-arrow) { color:#343f83 !important; }
html[data-theme="light"] .pc-optimized-notice b { color:#395879 !important; }
#replay-combat-list { opacity:1; }
.replay-combat-panel header span,.replay-disclaimer { color:#b4bec6; opacity:1; }
html[data-theme="light"] .theme-toggle-option[data-theme-option="light"] { background:#1c211c; color:#fff; }
html[data-theme="dark"] .theme-toggle-option[data-theme-option="dark"] { background:#dffb4f; color:#10140e; }
html[data-theme="light"] :is(.search-help,.recent-player-searches>header span,.full-rp small,.full-rank span) { color:#4c574a !important; }
html[data-theme="light"] .layer-toggle .layer-state { color:#46533e !important; opacity:1; }
html[data-theme="light"] .layer-toggle.active .layer-state { color:#25331e !important; }
html[data-theme="light"] .feedback-mode-icon { color:#79501a !important; }
html[data-theme="light"] :is(.distance-guide-icon,.map-tab.active .control-shortcut) { color:#f5f7f1 !important; }
html[data-theme="light"] #damage-view .weapon-static-workspace { color:var(--theme-text); }
html[data-theme="light"] #damage-view .weapon-page-header .eyebrow { color:#b7ff4a !important; }
html[data-theme="light"] #damage-view :is(.weapon-damage-controls,.weapon-damage-visual,.weapon-damage-results) { color:var(--theme-text); }
html[data-theme="light"] #damage-view :is(#weapon-static-filter-title,#weapon-static-body-title,#weapon-static-result-title,.weapon-static-result strong,.weapon-static-result dd) { color:var(--theme-text); }
/* Full-document follow-up: inactive controls remain readable; state stays explicit. */
html[data-theme="light"] .layer-toggle { opacity:1; }
html[data-theme="light"] .operator-contact-copy small { color:#343f83 !important; }
html[data-theme="light"] .terrain-contributor-copy i { color:#963a35 !important; }
#replay-combat-feed.is-empty { opacity:1; }
#replay-combat-feed header span { color:#b4bec6; }
/* SVG uses fill rather than CSS text color. */
html[data-theme="light"] #damage-view .weapon-damage-body-shell { color:var(--theme-text); }
.replay-shortcuts,#replay-combat-list .combat-empty,.team-player-row > span { color:#b4bec6; }
