/* SPECTRUM: Soft Slate default; Light Mist on explicit selection. */
html[data-theme="slate"] { --p-bg:#182332; --p-panel:#202d3d; --p-panel2:#29394c; --p-featured:#2a3e52; --p-border:#3c4d60; --p-text:#dee7ef; --p-soft:#c3d0dc; --p-muted:#a3b4c5; --p-accent:#94bed7; --p-button:#376c90; --p-button-hover:#417b9f; --p-rgb:148,190,215; }
html[data-theme="mist"] { color-scheme:light; --p-bg:#e8eef2; --p-panel:#f3f6f8; --p-panel2:#dde6ed; --p-featured:#dce8f1; --p-border:#bcccd8; --p-text:#2b3f52; --p-soft:#354f65; --p-muted:#526a7f; --p-accent:#376f96; --p-button:#356c94; --p-button-hover:#2b5d83; --p-rgb:55,111,150; }
html[data-theme="mist"] .badge-danger { color:#8b3737; }
html[data-theme="slate"] { color-scheme:dark; }
html[data-theme] {
  --bg:var(--p-bg); --bg-soft:var(--p-bg); --panel:var(--p-panel); --panel-2:var(--p-panel2); --panel-3:var(--p-featured);
  --line:var(--p-border); --line-strong:var(--p-border); --text:var(--p-text); --text-soft:var(--p-soft); --muted:var(--p-muted); --muted-2:var(--p-muted);
  --accent:var(--p-accent); --accent-bright:var(--p-accent); --accent-deep:var(--p-button);
  --accent-soft:rgba(var(--p-rgb),.09); --accent-line:rgba(var(--p-rgb),.36); --glow:none; --shadow:0 12px 28px #0000000c;
}
html[data-theme] :is(body,body.cabinet-page) { background:var(--p-bg); color:var(--p-text); }
html[data-theme] :is(.ambient,.demo-glow) { opacity:.15; }
html[data-theme] :is(.site-header,.site-footer,.sidebar,.cabinet-topbar) { background:var(--p-bg); border-color:var(--p-border); }
html[data-theme] :is(.card,.demo-window,.home-overview,.auth-card,.summary-card,.account-library,.account-period-tile,.account-session-tile,.balance-card,.modal,.select-popup,.toolbar,.service-strip,.cta-band,.preview-card,.toast,.hero-status-card) { background:var(--p-panel); border-color:var(--p-border); box-shadow:none; }
html[data-theme] :is(.tariff-featured,.account-preview[aria-pressed="true"]) { background:var(--p-featured); border-color:var(--p-accent); box-shadow:none; }
html[data-theme] :is(.demo-titlebar,.home-guest-options>div,.feature-icon,.stat-icon,.account-preview,.slot-avatar,.home-balance,.home-personal-metrics>div,.purchase-summary>div,.payment-icon,.summary-box,.billing-note,.home-avatar,.demo-avatar,.home-guest-icon,.account-preview-avatar) { background:var(--p-panel2); border-color:var(--p-border); box-shadow:none; }
html[data-theme] :is(.home-personal-metrics strong,.account-session-tile strong,.hero-status-card strong,.home-profile-top h2) { color:var(--p-text); }
html[data-theme] :is(.logo-strip,.select-trigger,input,textarea,select,.amount-field,.game-picker,.demo-game-window,.library-results,.home-game-cover) { background-color:var(--p-panel); border-color:var(--p-border); }
html[data-theme] .logo-strip { border-block:1px solid var(--p-border); }
html[data-theme] .logo-strip-inner { color:var(--p-muted); }
html[data-theme] :is(.btn-primary,.btn-primary:hover) { background:var(--p-button); color:#f2f7fa; border-color:transparent; box-shadow:none; }
html[data-theme] .btn-primary:hover { background:var(--p-button-hover); }
html[data-theme] .btn-ghost { background:var(--p-panel2); color:var(--p-text); border-color:var(--p-border); }
html[data-theme] .btn-ghost:hover { background:var(--p-featured); }
html[data-theme] .gradient-text { background:linear-gradient(110deg,var(--p-text),var(--p-accent)); background-clip:text; -webkit-background-clip:text; }
html[data-theme] :is(.hero-badge,.badge-success,.badge-neutral,.tariff-flag,.step-index) { color:var(--p-accent); background:var(--p-panel2); border-color:var(--p-border); box-shadow:none; }
html[data-theme] .tariff-flag { color:var(--p-text); background:var(--p-featured); }
html[data-theme] .badge-danger { color:#f2b8b8; background:#9c3c3c18; border-color:#bf82824d; }
html[data-theme="mist"] .badge-danger { color:#8b3737; }
html[data-theme] .brand img { filter:none; }
html[data-theme] :is(.modal-body,*):not(img):not(svg) { scrollbar-color:var(--p-border) var(--p-panel); }
html[data-theme] *::-webkit-scrollbar-track { background:var(--p-panel); }
html[data-theme] *::-webkit-scrollbar-thumb { background:var(--p-border); border-color:var(--p-panel); }
html[data-theme] .legal-contact-card { background:var(--p-panel2); }
html[data-theme] .home-term-track progress::-webkit-progress-bar { background:var(--p-panel2); }
html[data-theme] .home-term-track progress::-webkit-progress-value { background:var(--p-accent); }


.theme-toggle { flex:none; display:inline-flex; justify-content:center; align-items:center; width:36px; height:36px; padding:7px; border:1px solid var(--line-strong); border-radius:10px; background:var(--panel-2); color:var(--text-soft); cursor:pointer; }
.guest-profile-preview { margin:2px 0 24px; }
.guest-profile-preview .home-profile-top { flex-wrap:wrap; align-items:flex-start; padding-bottom:16px; margin-bottom:15px; }
.guest-profile-preview h2 { font-size:21px; overflow-wrap:anywhere; }
.guest-profile-caption { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.guest-profile-preview .home-personal-metrics { margin-top:12px; }
.guest-profile-preview .home-personal-metrics strong { font-size:23px; }
.guest-profile-preview .home-personal-metrics .home-term { font-size:19px; }
.demo-profile-badge { flex:none; letter-spacing:.07em; }
.game-steam-hours { display:block; margin-top:4px; font-size:10px; line-height:1.3; color:#e0edf5; font-weight:500; }
.home-active-library { margin-top:14px; }
.theme-toggle:hover { color:var(--accent-bright); border-color:var(--accent-line); }
.theme-toggle:focus-visible { outline:2px solid var(--accent-bright); outline-offset:3px; }
.theme-toggle svg[hidden] { display:none; }
.header-actions { gap:8px; }
html[data-theme] .select-option[aria-selected="true"] { background:var(--p-featured); color:var(--p-text); }
html[data-theme] .select-option:hover:not([aria-disabled="true"]), html[data-theme] .select-option.is-active { background:var(--p-panel2); color:var(--p-text); }
@media(max-width:760px) { html[data-theme] .site-nav { background:var(--p-panel); border-color:var(--p-border); } }
@media(max-width:600px) {
  .site-header .auth-label-full { display:none; }
  .site-header .auth-label-compact { display:inline; }
  .site-header .brand img { width:36px; height:36px; }
  .site-header .brand { gap:8px; }
  .site-header .brand-wordmark { font-size:17px; }
  .site-header .header-inner { gap:8px; }
  .theme-toggle { width:32px; height:34px; padding:6px; }
}

/* Remaining legacy surfaces must follow both approved palettes. */
html[data-theme] .cta-band { color:var(--p-text); }
html[data-theme] .toast, html[data-theme] select option { background:var(--p-panel); color:var(--p-text); }
html[data-theme] .account-preview:hover:not([aria-pressed="true"]) { background:var(--p-panel2); }
