.auth-bar{justify-content:space-between}
.theme-toggle{white-space:nowrap}
:root[data-theme="dark"]{color-scheme:dark;--base:#0f1b2a;--panel:#16283b;--field:#101f31;--line:#405b76;--text:#ecf4fc;--muted:#acc1d8;--action:#3069a6;--link:#a5d3ff;--focus-ring:#a4d2ff;--lift:0 8px 19px #0006}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 20% 3%,#203a56 0,transparent 45%),linear-gradient(154deg,#111e2e,#0e1b2a)}
:root[data-theme="dark"] :is(.bar,.policy-footer,.top){background:#142438f5;color:var(--text)}
:root[data-theme="dark"] :is(button,.quiet,.guide-menu summary){background:#1d334d;color:var(--text);border-color:var(--line)}
:root[data-theme="dark"] :is(button,.quiet,.guide-menu summary):hover{background:#274764;color:#fff}
:root[data-theme="dark"] :is(button,.quiet).primary{background:var(--action);color:#fff;border-color:var(--action)}
:root[data-theme="dark"] :is(a,a:hover){color:var(--link)}
:root[data-theme="dark"] :is(.bar-actions [aria-current],.tabs [aria-current],.tabs a:hover){background:#244760;color:#ddebff;border-color:#567d9f}
:root[data-theme="dark"] :is(.portal-card:hover,.brand-upload,.welcome,.notice,.privacy-fields){background:#1c334b;color:var(--text);border-color:var(--line)}
:root[data-theme="dark"] :is(.portal-card,.portal-card:hover,.brand,.brand:hover,.ticket-link){color:var(--text)}
:root[data-theme="dark"] :is(.welcome p,.portal-hero p,.tour-step-hint,.editor-privacy a){color:var(--muted)}
:root[data-theme="dark"] .portal-hero{background:linear-gradient(122deg,#14283e,color-mix(in srgb,var(--home-color,#183954) 22%,#14283e));border-color:#406184}
:root[data-theme="dark"] .portal-hero:has(.portal-photo)::after{background:linear-gradient(90deg,#122337 7%,#122337ee 40%,#12233755 77%,#12233718)}
:root[data-theme="dark"] .portal-icon{background:#284763;border-color:#496b8d;color:#e4f3ff}
:root[data-theme="dark"] .ice-visual{background:radial-gradient(ellipse at 31% 38%,#396b8b 0,transparent 48%),linear-gradient(130deg,#0d2438,#1c4562,#10263a)}
:root[data-theme="dark"] .ice-visual::after{background:repeating-linear-gradient(145deg,transparent 0 48px,#b8ddff22 49px 50px)}
:root[data-theme="dark"] .rink{border-color:#9ac3e9aa}
:root[data-theme="dark"] .tour-canvas{background:linear-gradient(145deg,#193254,#274964);color:#e3f5ff;border-color:var(--line)}
:root[data-theme="dark"] .tour-progress li:not(.reached){background:#38516b}
:root[data-theme="dark"] .notice.error{background:#40243a;color:#ffd6e0}
:root[data-theme="dark"] .notice.success{background:#183a38;color:#c5f7ec}
:root[data-theme="dark"] .danger{color:#ffb3c0}
:root[data-theme="dark"] .theme-toggle[aria-pressed=true]{border-color:#5c84ab}
@media(max-width:540px){.auth-bar .theme-toggle{font-size:.82rem;padding-inline:8px;min-height:38px}}
