:root[data-color-mode=light]{color-scheme:light;--bg:#edf3f8;--panel:#fff;--line:#cbd5e1;--border:#cbd5e1;--text:#162b3a;--muted:#506779;--cyan:#087a6d;--amber:#a36710;--accent:#087a6d;--accent-dim:#dff3ee}
html[data-color-mode=light] body{background:var(--bg);color:var(--text)}
html[data-color-mode=light] :is(.workspace,.admin-shell){color:var(--text)}
html[data-color-mode=light] :is(.panel,.build-card,.stat-grid article,.alliance-card,.world-card,.queue-item,.future-content,.sponsor-slot,.welcome-grid article,.welcome .welcome-auth){background:var(--panel);border-color:var(--line);box-shadow:0 3px 12px #1b3d5710}
html[data-color-mode=light] :is(aside,.admin-nav,.admin-navigation,.menu-open .command-menu){background:#f7fafc;border-color:var(--line)}
html[data-color-mode=light] header{background:#f7fafcf5;border-color:var(--line)}
html[data-color-mode=light] :is(.planet-select,.planet-select select,.resource-bar){background:#e8f0f7;border-color:var(--line)}
html[data-color-mode=light] :is(input,select,textarea){background:#fff;color:var(--text);border-color:#9bafbf;accent-color:var(--cyan)}
html[data-color-mode=light] :is(input,textarea)::placeholder{color:#657887;opacity:1}
html[data-color-mode=light] button{background:#dff3ee;color:#075e54;border-color:#88b6aa}
html[data-color-mode=light] button:hover{background:#c9e9df;border-color:#368a78}
html[data-color-mode=light] :is(button.secondary,.premium-purchases a.button){background:#f0f5f9;color:#304d61;border-color:#b5c5d1}
html[data-color-mode=light] :is(.text-button,.resource-badge,.trade-resource-icon){background:transparent;border-color:transparent}
html[data-color-mode=light] :is(.text-button,.account-link){color:#36566c}
html[data-color-mode=light] .resource-badge:hover{background:#dcece7}
html[data-color-mode=light] nav button{background:transparent;color:#405d70;border-color:transparent}
html[data-color-mode=light] :is(nav button.active,.admin-navigation [aria-selected=true]){background:#d5eee6;color:#075e54;border-color:#a7d2c4}
html[data-color-mode=light] nav button span{color:#56778a}
html[data-color-mode=light] :is(.brand,h1,h2,h3,h4,.panel-title h2,.panel dd,.breadcrumb b,.empty b){color:var(--text)}
html[data-color-mode=light] :is(p,label,dt,th,footer,.hint,.muted,.intro,.card-body p,.world-card p,.planet-select small,.rank-planet,.event small,.server-clock,.server-clock time,.stat-grid small,.stat-grid em,.stat-grid article>span,.sidebar-bottom,.sidebar-bottom small,.nav-label,.empty,.empty p,.report small,.member-row small,.chat-message time,.treasury small,.cargo-fields legend,.world-coordinate,.world-debris,.universe-pager>span,.movement-list small,.future-tree,.affordability-hint small){color:var(--muted)}
html[data-color-mode=light] :is(a,.brand>span,.chat-message>div,.alliance-tag,.role-name,.combat-details summary,.treasury strong,.movement-list article>span,.admin-game-link,.admin-nav a,.admin-shell output,.legal-page a,footer a,.welcome .eyebrow,.welcome-more,.welcome-login-link,.welcome-number,.sponsor-slot a){color:var(--cyan)}
html[data-color-mode=light] .green{color:#087a6d!important}
html[data-color-mode=light] .warn{color:#8b5200!important}
html[data-color-mode=light] .energy-shortage{color:#b52338!important}
html[data-color-mode=light] .demolish-button{color:#a73725!important}
html[data-color-mode=light] .nav-queue-summary{color:#365f57!important}
html[data-color-mode=light] :is(.pill,.level,.tech-number){background:#e3edf5;color:#375e78;border-color:#bfcedb}
html[data-color-mode=light] .pill{background:#e0f1e9;color:#176d50}
html[data-color-mode=light] :is(.resource-tooltip,.trade-resource-tooltip,.language-options,.appearance-options){background:#fff;color:var(--text);border-color:#a7bac8;box-shadow:0 4px 18px #15334b25}
html[data-color-mode=light] .resource-tooltip :is(b,span){color:var(--text)}
html[data-color-mode=light] :is(.help-panel,.help-panel[open]){background:#f4f8fc;color:var(--text);border-color:var(--line)}
html[data-color-mode=light] :is(.help-panel summary,.help-panel>summary,.help-panel p,.help-panel li,.bug-admin summary){color:#38586f}
html[data-color-mode=light] .help-panel:not([open]){background:transparent}
html[data-color-mode=light] :is(.building-sections a,.welcome-cta){background:#d9eee6;color:#075e54;border-color:#a2caba}
html[data-color-mode=light] :is(.account-notice,.vacation-notice,.welcome-growth){background:#e2f0ec;color:#254c42;border-color:#b2d3c6}
html[data-color-mode=light] :is(.account-notice p,.fairplay-note,.fairplay-note b,.welcome .welcome-tactic,.welcome-tactic b,.welcome p,.welcome .welcome-caption,.welcome-teaser figcaption){color:#3f625b}
html[data-color-mode=light] .welcome-tags span{color:#176d50;border-color:#a8cebf}
html[data-color-mode=light] .email-reminder{background:#fff1cf;color:#825200;border-color:#d9b764}
html[data-color-mode=light] .own-rank{background:#e0f0e8}
html[data-color-mode=light] .report-unread{background:#fff8e8}
html[data-color-mode=light] .report-new{color:#956100}
html[data-color-mode=light] .report-urgent{background:#fff0f1;border-color:#c74555}
html[data-color-mode=light] :is(.report-urgent .report-new,.spy-loss){color:#b52338}
html[data-color-mode=light] .report-alert{background:#ffe6a8;color:#573e00;border-color:#c69a38}
html[data-color-mode=light] .report-alert small{color:#624900}
html[data-color-mode=light] :is(.report-alert-danger,#toast.urgent){background:#8f2034;color:#fff;border-color:#c94259}
html[data-color-mode=light] .report-alert-danger small{color:#fff}
html[data-color-mode=light] #toast:not(.urgent){background:#d7eee7;color:#174c40;border:1px solid #81b6a5}
html[data-color-mode=light] :is(.empire-progress-bar,.empire-progress-bar::-webkit-progress-bar){background:#d4e1eb}
html[data-color-mode=light] .empire-mark{background:linear-gradient(135deg,#d1e9df,#eef7f3);color:#126b55;border-color:#91bdae}
html[data-color-mode=light] #app[data-premium-theme] .workspace{background:var(--bg)}
html[data-color-mode=light] #app[data-premium-theme=nebula] .workspace{background:linear-gradient(130deg,#f3eefb,#f4f7fb 55%)}
html[data-color-mode=light] #app[data-premium-theme=nebula] .panel{border-color:#c8b9dc}
html[data-color-mode=light] #app[data-premium-theme=midnight] .workspace{background:#e9f0f7}
html[data-color-mode=light] .hero{background:#e5eef6;border-color:var(--line)}
html[data-color-mode=light] .hero h1{color:var(--text)}
html[data-color-mode=light] .hero .eyebrow{color:#365c72}
html[data-color-mode=light] .alliance-banner{color:#edf9f5}
html[data-color-mode=light] .alliance-banner :is(h1,h2,h3,p){color:#edf9f5}
html[data-color-mode=light] .alliance-hero{color:var(--text)}
html[data-color-mode=light] .alliance-hero :is(h1,h2,h3){color:var(--text)}
html[data-color-mode=light] .alliance-hero p{color:var(--muted)}
html[data-color-mode=light] .r0{color:#52677f}html[data-color-mode=light] .r1{color:#236f9f}html[data-color-mode=light] .r2{color:#197451}html[data-color-mode=light] .r3{color:#08799d}html[data-color-mode=light] .r4{color:#8650b4}
html[data-color-mode=light] .energy{color:#a36710}
html[data-color-mode=light] .language-picker summary{background:#f7fafc;border-color:#cbd5e1}
html[data-color-mode=light] #language-picker button[aria-pressed=true]{background:#d5eee6;border-color:#6ba18d}
html[data-color-mode=light] .language-picker :is(button,summary):focus-visible{outline-color:#075e54}
.appearance-options{position:absolute;right:0;top:calc(100% + 3px);display:grid;gap:4px;min-width:150px;padding:6px;border:1px solid #456475;border-radius:4px;background:#101822;box-shadow:0 3px 10px #0009}
#language-picker .appearance-options button{display:block;width:100%;min-width:0;max-width:none;height:auto;min-height:44px;margin:0;padding:6px 10px;font-size:14px;line-height:1.3;white-space:nowrap;text-align:left}

html[data-color-mode=light] .star-map{background:radial-gradient(ellipse at 50% 45%,#d1dfed77,#e7f0f8 70%)}

html[data-color-mode=light] .welcome-launch a{color:#edfaff}
aside .brand{font-size:19px;letter-spacing:1px}
@media(max-width:800px){.report-alert{bottom:calc(72px + env(safe-area-inset-bottom))}}
@media(min-width:801px){header .account{padding-right:80px}}

html[data-color-mode=light] .star-map .star-node text{fill:#17364a;opacity:1}html[data-color-mode=light] .star-map .star-node text.star-coordinate{fill:#36566c}html[data-color-mode=light] .star-map .star-node.inactive-world text{fill:#566574}html[data-color-mode=light] .map-radar-coverage [data-radar-range-boundary]{stroke:#087a6d}
