:root,body{color-scheme:dark;--bg:#101723;--surface:#182231;--surface-2:#202b3a;--raised:#242c3e;--text:#eee8df;--heading:#f2e6d4;--muted:#bdc2cc;--faint:#a5aabb;--line:#364255;--line-strong:#596278;--accent:#edb882;--copper:#e6b17a;--signal:#efce9f;--signal-ink:#201922;--signal-hover:#f8dfbb;--button:#efce9f;--button-text:#201922;--button-hover:#f8dfbb;--planet:#8bd3bb;--solar:#efc184;--galaxy:#c8b0ed;--universe:#b8ccef;--danger:#ff9ca7;--blue-wash:#1a2c40;--ink:#101723;--paper:#101723;--quiet:#bdc2cc;--rule:#364255;--fg:#eee8df;--lamp:#f2cb8b;--fog:#96a4b8;}
@media(prefers-color-scheme:light){:root,body{color-scheme:light;--bg:#f5eee4;--surface:#fffaf2;--surface-2:#eae0d6;--raised:#f0e5d9;--text:#292335;--heading:#332536;--muted:#665968;--faint:#736474;--line:#d8c9bf;--line-strong:#b9a193;--accent:#84502d;--copper:#87502d;--signal:#704052;--signal-ink:#fffaf2;--signal-hover:#572d40;--button:#704052;--button-text:#fffaf2;--button-hover:#572d40;--planet:#246b59;--solar:#805119;--galaxy:#72508c;--universe:#445e85;--danger:#b02a3f;--blue-wash:#e9e1e7;--ink:#292335;--paper:#f5eee4;--quiet:#665968;--rule:#d8c9bf;--fg:#292335;--lamp:#865421;--fog:#776d7c;}
}
html[data-theme="light"],html[data-theme="light"] body{color-scheme:light;--bg:#f5eee4;--surface:#fffaf2;--surface-2:#eae0d6;--raised:#f0e5d9;--text:#292335;--heading:#332536;--muted:#665968;--faint:#736474;--line:#d8c9bf;--line-strong:#b9a193;--accent:#84502d;--copper:#87502d;--signal:#704052;--signal-ink:#fffaf2;--signal-hover:#572d40;--button:#704052;--button-text:#fffaf2;--button-hover:#572d40;--planet:#246b59;--solar:#805119;--galaxy:#72508c;--universe:#445e85;--danger:#b02a3f;--blue-wash:#e9e1e7;--ink:#292335;--paper:#f5eee4;--quiet:#665968;--rule:#d8c9bf;--fg:#292335;--lamp:#865421;--fog:#776d7c;}
html[data-theme="dark"],html[data-theme="dark"] body{color-scheme:dark;--bg:#101723;--surface:#182231;--surface-2:#202b3a;--raised:#242c3e;--text:#eee8df;--heading:#f2e6d4;--muted:#bdc2cc;--faint:#a5aabb;--line:#364255;--line-strong:#596278;--accent:#edb882;--copper:#e6b17a;--signal:#efce9f;--signal-ink:#201922;--signal-hover:#f8dfbb;--button:#efce9f;--button-text:#201922;--button-hover:#f8dfbb;--planet:#8bd3bb;--solar:#efc184;--galaxy:#c8b0ed;--universe:#b8ccef;--danger:#ff9ca7;--blue-wash:#1a2c40;--ink:#101723;--paper:#101723;--quiet:#bdc2cc;--rule:#364255;--fg:#eee8df;--lamp:#f2cb8b;--fog:#96a4b8;}
body{background:var(--bg);color:var(--text)}
.lesson-content section[id],main h2[id],main h3[id]{scroll-margin-block-start:80px}
.theme-control{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:auto;width:44px;height:44px;padding:10px;border:1px solid var(--line-strong);border-radius:7px;background:var(--surface);color:var(--text);cursor:pointer}
.theme-control:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.platform-header .p-nav{gap:clamp(12px,2vw,28px)}
.platform-header .p-account{gap:14px}
html[data-theme] .xp-panel,html[data-theme] .atlas-map,html[data-theme] .career-branch-map,html[data-theme] .progress-panel{background:var(--surface);color:var(--text);border-color:var(--line-strong)}
html[data-theme] .xp-panel h2,html[data-theme] .xp-panel strong{color:var(--heading)}
html[data-theme] .cyber-masthead{background:var(--surface);color:var(--text)}
html[data-theme] .cyber-masthead h1,html[data-theme] .cyber-masthead h1 span{color:var(--heading)}
html[data-theme] .relic-sanctuary{background:linear-gradient(0deg,var(--bg),transparent),url('../img/progression/sanctuary.webp') center/cover;color:var(--night-text)}
html[data-theme] .relic-sanctuary h2,html[data-theme] .relic-sanctuary h3,html[data-theme] .relic-sanctuary p{color:var(--night-text)}
html[data-theme] .region-relic a,html[data-theme] .region-relic .region-state{color:var(--night-text)}
html[data-theme] .flag-row input{background:var(--bg);color:var(--text);border-color:var(--line-strong)}
html[data-theme] .ov-hero,html[data-theme] .ov-main,html[data-theme] .ov-grid{color:var(--text)}
html[data-theme] .p-footer,html[data-theme] .site-footer{background:var(--bg);color:var(--muted)}
html[data-theme] .key-state{color:var(--muted)}
@media(max-width:980px){.theme-control{margin-left:auto}.platform-header .p-nav{gap:12px}}
@media(max-width:400px){.platform-header .p-nav{padding-inline:14px;gap:10px}.p-brand{font-size:.9375rem;gap:6px}.p-mark{font-size:.75rem;padding:4px}.platform-header .p-mobile>summary{font-size:.875rem}}
