/* Shared theme control and a dark palette across public, account, and portal pages. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;padding:8px;border:1px solid #dce1e8;border-radius:11px;background:transparent;color:#40516a;cursor:pointer;gap:0;line-height:1}.theme-toggle svg{width:21px;height:21px}.theme-toggle:hover{background:#eef2f7}.theme-sun{display:none}[data-theme=dark] .theme-sun{display:block}[data-theme=dark] .theme-moon{display:none}.theme-actions{display:flex;align-items:center;gap:18px;min-width:0}.theme-actions .account-link{display:flex;align-items:center;white-space:nowrap}.theme-toggle:focus-visible{outline:3px solid #6694d5;outline-offset:3px}[hidden]{display:none!important}
html[data-theme=dark]{color-scheme:dark;--ink:#edf0f7;--muted:#a5b0c2;--paper:#111722;--line:#303a4c;--soft:#30261d;--surface:#1a2331;--canvas:#111722;--white:#1a2331;--accent:#9ebce8;--orange:#ff8b2a;--orange-dark:#ffa24e;--error:#ffa4b2}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
[data-theme=dark] .theme-toggle{border-color:#3c475c;color:#f8bd64;background:#1d2737}[data-theme=dark] .theme-toggle:hover{background:#2a3549}
/* Public landing page */
[data-theme=dark] .header{border-color:var(--line)}[data-theme=dark] .header .nav-divider{background:#495368}[data-theme=dark] .header nav a:not(.button){color:var(--ink)}[data-theme=dark] .hero h1 span{color:#ff963f}[data-theme=dark] .hero-art:before{opacity:.4}[data-theme=dark] .step-number{background:#33271f;color:#ffa34f}[data-theme=dark] .benefit-grid{background:#1c2431}[data-theme=dark] .benefit-grid article{border-color:#394052}[data-theme=dark] .footer>p{border-color:#495368}[data-theme=dark] .hero-actions .button:not(.secondary),[data-theme=dark] .header .button{background:#ff8b2a;border-color:#ff8b2a;color:#171b24}[data-theme=dark] .button.secondary{color:var(--ink);border-color:#55627a;background:transparent}[data-theme=dark] .button.secondary:hover{background:#273245}
/* Sign in, register, password reset, and connect account */
[data-theme=dark] .auth-content{background:#1a2331;border-color:var(--line);box-shadow:none}[data-theme=dark] .auth-header,[data-theme=dark] .auth-footer{border-color:var(--line)}[data-theme=dark] .auth-footer{color:var(--muted)}[data-theme=dark] .eyebrow{color:#edb37c}[data-theme=dark] .brand-caption span{background:#33291f;color:#ffc17d}[data-theme=dark] .field input,[data-theme=dark] input:not([type=checkbox]):not([type=radio]),[data-theme=dark] select,[data-theme=dark] textarea{background:#151e2c;color:var(--ink);border-color:#44516a}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#8e9bb0}[data-theme=dark] .password-toggle{color:#bdcbe0}[data-theme=dark] .password-toggle:hover{background:#2b374b}[data-theme=dark] .forgot-row a,[data-theme=dark] .switch-auth a,[data-theme=dark] .back-link:hover{color:#ffaf68}[data-theme=dark] .primary{background:#ff8b2a;border-color:#ff8b2a;color:#161c25}[data-theme=dark] .primary:hover{background:#ffa24e}[data-theme=dark] .status-icon{background:#34291f;color:#ffb66c}[data-theme=dark] .demo-note{background:#28251e;border-color:#67533a;color:var(--muted)}[data-theme=dark] .identity-mini{background:#202c3f;border-color:#3b4b65}[data-theme=dark] .avatar{background:#30415b;color:#dbe8fc}[data-theme=dark] .back-link{color:#b1c1d8}
/* Dashboard and admin workspace share the portal shell. */
[data-theme=dark] .shell>header{background:#182130;border-color:var(--line)}[data-theme=dark] body:is(.player-space,.admin-space)>aside{background:#182130;border-color:var(--line)}[data-theme=dark] nav a,[data-theme=dark] nav summary,[data-theme=dark] .account-link{color:#c0cde0}[data-theme=dark] nav a[aria-current],[data-theme=dark] .nav-more[open]>summary{background:#2a3b55;color:#e1ecff}[data-theme=dark] .nav-more>div{background:#202c3e;border-color:#3b4a61}[data-theme=dark] .card{background:var(--surface);border-color:var(--line);box-shadow:none}[data-theme=dark] .home-shortcuts .card{background:linear-gradient(135deg,#1d293b,#1a2331)}[data-theme=dark] .member-status,[data-theme=dark] .flow-steps,[data-theme=dark] .badge,[data-theme=dark] .courier,[data-theme=dark] .quiet{background:#29374b;color:#d0dff3}[data-theme=dark] .thumb{background:#2b384c;color:#bacbe4}[data-theme=dark] .checkout,[data-theme=dark] .gift-selection,[data-theme=dark] dialog{background:#1a2331;color:var(--ink);border-color:var(--line)}[data-theme=dark] .gift{border-color:var(--line)}[data-theme=dark] .photo{background:#243249}[data-theme=dark] .notice{background:#24354b;color:#d7e4f5;border-color:#7b9cc8}[data-theme=dark] .success{background:#1d392f;color:#b8edd0;border-color:#3b7158}[data-theme=dark] .error,[data-theme=dark] .notice.error{background:#3a222e;color:#ffbac8;border-color:#8c495c}[data-theme=dark] .field-errors,[data-theme=dark] .errorlist{color:#ffadbc}[data-theme=dark] .avatar-menu{background:#1d293a;border-color:#3a4b63}[data-theme=dark] .avatar-menu button{color:var(--ink)}[data-theme=dark] .avatar-menu button:hover{background:#2c3b50}[data-theme=dark] .avatar-menu .avatar-remove{color:#ffacbd}[data-theme=dark] .avatar-initial,[data-theme=dark] .avatar-trigger{background:#293a55;color:#d7e6ff;border-color:#49617e}[data-theme=dark] .admin-avatar-editor,[data-theme=dark] .admin-metric{background:#202b3c;border-color:#3a495f}[data-theme=dark] .admin-gold,[data-theme=dark] .inline-symbols{background:#302b21;border-color:#61533b}[data-theme=dark] .direct-points-panel{background:#233147;border-color:#3f536f}[data-theme=dark] .admin-disclosure[open]>form,[data-theme=dark] .admin-disclosure[open]>div{background:#1c293c;border-color:#40516b}[data-theme=dark] .stock-content,[data-theme=dark] .stock-product{border-color:var(--line)}[data-theme=dark] .gift-photo-zoom{background:#243249}
@media(max-width:760px){.theme-actions{gap:11px}.theme-toggle{width:38px;height:38px;min-height:38px}.shell>header .theme-actions .account-link{max-width:175px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:680px){.header nav{gap:13px}[data-theme=dark] .benefit-grid{background:none}}
@media(max-width:360px){.auth-header .theme-actions{gap:7px}.auth-header .home-link{font-size:10px}.shell>header .theme-actions .account-link{max-width:125px}}
@media(max-width:760px){[data-theme=dark] .auth-content{background:transparent}}
/* Keep portal actions readable while links use a lighter accent. */
[data-theme=dark] .shell{--accent:#466b9d}[data-theme=dark] .shell main a:not(.button){color:#b7cef1}
/* Tier identity stays distinct without bright white membership panels. */
[data-theme=dark] .tier-starter{--tier-bg:linear-gradient(120deg,#16463d,#1b6754);--tier-ink:#dcf9ee}[data-theme=dark] .tier-basic{--tier-bg:linear-gradient(120deg,#35465f,#202e43);--tier-ink:#edf4ff}[data-theme=dark] .tier-titanium{--tier-bg:linear-gradient(120deg,#3c506b,#23334a 55%,#425b79);--tier-ink:#edf4ff}[data-theme=dark] .tier-diamond{--tier-bg:linear-gradient(115deg,#423564,#332a55 48%,#56427d);--tier-ink:#f4eaff}[data-theme=dark] .tier-card:before{opacity:.3}
