:root[data-site-theme=dark]:not(.staff-document) {
  color-scheme:dark;
  --sky-top:#071b30;--page:#10243a;--paper:#132c42;--card:#1c3851;--border:#304d65;
  --text:#e9f3fc;--muted:#adc3d7;--dim:#9bb6cc;--accent:#8dcff5;--accent-strong:#a9dcfa;
  --glass:var(--card);--control:#10263b;--shadow:transparent;--sky-glow:#224765;
  --site-inset:var(--paper);--site-inset-hover:#1d3b54;--site-inset-border:var(--border);
  --nav-tile:#203c54;--nav-tile-hover:#2b506d;--site-primary:#246b9b;--site-secondary:#203c54;
  --twitch:#c1a0f5;--status-offline:#b3c6d5;--status-online:#74ddb0;--status-maintenance:#ffd195;
  --veil-left:#10243aee;--veil-right:#10243a20;--cover-shade:#06182ecc;
  --site-cloud-opacity:.65;
  background:var(--page);
}
:root[data-site-theme=dark] body:not(.staff) .oasis-clouds i {filter:grayscale(1) brightness(.28)}
:root[data-site-theme=dark] body:not(.staff) .server-tile {--tile:#193e5c;--tile-border:#34617f;--tile-ink:#b3dbfa}
:root[data-site-theme=dark] body:not(.staff) .server-tile[data-server=technomagic] {--tile:#482643;--tile-border:#82517d;--tile-ink:#f0c3e9}
:root[data-site-theme=dark] body:not(.staff) .server-tile[data-server=omegarpg] {--tile:#173f39;--tile-border:#356b5a;--tile-ink:#b2e6cc}
:root[data-site-theme=dark] body:not(.staff) .server-tile[data-server=classic] {--tile:#332e53;--tile-border:#625487;--tile-ink:#d4c4f5}
:root[data-site-theme=dark] body:not(.staff) .server-tile[data-server=create] {--tile:#483626;--tile-border:#78583a;--tile-ink:#f2d2ad}
:root[data-site-theme=dark] body:not(.staff) .server-tile .status {background:#0918278c}
:root[data-site-theme=dark] body:not(.staff) #profile .profile-exit {background:#422d3e;border-color:#775065;color:#ffbecb}
:root[data-site-theme=dark] body:not(.staff) :is(.section-title,.section-row,.forum-heading,.forum-discussion-heading,.forum-breadcrumb,.forum-bottom,.footer,.local-note) {text-shadow:0 1px 2px var(--page),0 0 5px var(--page),0 0 10px var(--page)}
.theme-switch {display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;position:relative;min-height:36px;padding:4px 8px;margin:0;border-radius:20px;cursor:pointer;color:var(--accent-strong);font-size:15px;line-height:1;background:var(--paper);border:1px solid var(--border);user-select:none}
.theme-switch input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.theme-switch-track {display:block;position:relative;width:39px;height:22px;background:var(--card);border:1px solid var(--border);border-radius:20px}
.theme-switch-track::after {content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:var(--accent);transition:transform .18s ease}
.theme-switch:has(input:checked) .theme-switch-track {background:var(--site-primary);border-color:var(--site-primary)}
.theme-switch:has(input:checked) .theme-switch-track::after {transform:translateX(17px);background:#fff}
.theme-switch:has(input:focus-visible) {outline:3px solid var(--accent);outline-offset:3px}
body:not(.staff) .top .theme-switch {color:var(--accent-strong)}
@media(min-width:1600px){.top .theme-switch{position:fixed;right:25px;top:28px;z-index:20}}
@media(max-width:1599px){.top-actions{flex-wrap:wrap}.theme-switch{padding-inline:6px;gap:4px}}
@media(max-width:600px){body:not(.staff) .top .top-actions{flex:1 1 100%;justify-content:flex-end}.top .theme-switch{margin-right:auto}}
@media(prefers-reduced-motion:reduce){.theme-switch-track::after{transition:none}}
