:root[data-theme=midnight]{--bg:#091321;--surface:#12243a;--text:#e4f3ff;--muted:#9db7cd;--faint:#728ca5;--accent:#83d8ed;--line:#b1d9fa17;--theme-rail:#07101b;--theme-sidebar:#0d1b2b;--theme-main:#112137;--theme-header:#0f1d30;--theme-input:#0a1828;--theme-card:#a8ddff07;--theme-selected:#83d8ed20}
:root[data-theme=graphite]{--bg:#111214;--surface:#24262a;--text:#f0f0f2;--muted:#b0b1bb;--faint:#84858f;--accent:#ced1e5;--line:#eceeff15;--theme-rail:#0c0d10;--theme-sidebar:#191a1e;--theme-main:#202125;--theme-header:#1b1c20;--theme-input:#15161a;--theme-card:#f0f0ff05;--theme-selected:#ced1e51c}
:root[data-theme=aurora]{--bg:#07171e;--surface:#142d38;--text:#e5fff8;--muted:#9ebdc2;--faint:#76969d;--accent:#8ee7d0;--line:#afffed1a;--theme-rail:#07141de8;--theme-sidebar:#102631e0;--theme-main:#10232a88;--theme-header:#11272edb;--theme-input:#0b2029e8;--theme-card:#a0ffdf08;--theme-selected:#8ee7d022}
:root[data-theme=ember]{--bg:#211019;--surface:#34212a;--text:#fff0e5;--muted:#d1b1a8;--faint:#ad8981;--accent:#f0b67f;--line:#ffd1ac1c;--theme-rail:#1a0e17eb;--theme-sidebar:#281721e0;--theme-main:#291c2788;--theme-header:#301c26de;--theme-input:#22131de8;--theme-card:#ffc59908;--theme-selected:#f0b67f20}
:root[data-theme]:not([data-theme=vaeros]) .server-rail{background:var(--theme-rail);border-color:var(--line)}
:root[data-theme]:not([data-theme=vaeros]) .sidebar,:root[data-theme]:not([data-theme=vaeros]) .members-panel,:root[data-theme]:not([data-theme=vaeros]) .auth-story{background:var(--theme-sidebar)}
:root[data-theme]:not([data-theme=vaeros]) .main-panel{background:var(--theme-main)}
:root[data-theme]:not([data-theme=vaeros]) :is(.chat-view,.home-view,.voice-view,.auth-panel){background:transparent}
:root[data-theme]:not([data-theme=vaeros]) :is(.main-header,.current-user,.voice-bar,.modal-footer){background:var(--theme-header);border-color:var(--line)}
:root[data-theme]:not([data-theme=vaeros]) :is(.modal,.profile-live-preview,.message-tools,.emoji-popover){background:var(--surface);border-color:var(--line)}
:root[data-theme]:not([data-theme=vaeros]) :is(.auth-card input,.modal input,.modal textarea,.modal select,.message-form,.search-wrap,.admin-search,.admin-settings input:not([type=checkbox]),.admin-settings textarea,.attachment-preview){background:var(--theme-input);border-color:var(--line)}
:root[data-theme]:not([data-theme=vaeros]) :is(.home-help,.invite-card,.admin-metric,.admin-runtime,.voice-person,.voice-audio-options,.theme-choice){background:var(--theme-card);border-color:var(--line)}
:root[data-theme]:not([data-theme=vaeros]) :is(.nav-row.selected,.auth-tabs button[aria-selected=true],.theme-choice[aria-pressed=true]){background:var(--theme-selected);color:var(--text)}
:root[data-theme]:not([data-theme=vaeros]) .primary:hover{background:var(--accent);filter:brightness(1.1)}
:root[data-theme]:not([data-theme=vaeros]) :is(.message-body,.message-author,.member-row strong,.profile-about>p,.profile-link,.admin-table td>strong,.friend-copy strong){color:var(--text)}
:root[data-theme]:not([data-theme=vaeros]) :is(.sidebar-empty,.community-description,.section-heading,.header-title>span,.profile-handle,.profile-status-pill,.admin-table td,.profile-member-since){color:var(--muted)}
:root[data-theme]:not([data-theme=vaeros]) :is(.profile-custom-status,.nav-row.selected .channel-hash,.text-button,.admin-tab.selected){color:var(--accent)}
:root[data-theme]:not([data-theme=vaeros]) .profile-identity>.avatar.large{box-shadow:0 0 0 6px var(--surface)}
:root[data-theme=aurora] :is(.workspace,.auth-screen){background-color:var(--bg);background-image:radial-gradient(ellipse at 18% 30%,#164e63a0,transparent 55%),radial-gradient(ellipse at 80% 75%,#7145a17a,transparent 55%),linear-gradient(130deg,#07382e,#071927 45%,#39204c);background-size:180% 180%;background-position:20% 30%;animation:aurora-drift 22s ease-in-out infinite alternate}
:root[data-theme=ember] :is(.workspace,.auth-screen){background-color:var(--bg);background-image:radial-gradient(ellipse at 80% 25%,#a154265c,transparent 55%),radial-gradient(ellipse at 20% 80%,#9e41685e,transparent 60%),linear-gradient(140deg,#3c1d20,#21101e 55%,#594026);background-size:200% 200%;background-position:25% 40%;animation:ember-glow 18s ease-in-out infinite alternate}
@keyframes aurora-drift{to{background-position:80% 65%}}
@keyframes ember-glow{to{background-position:75% 80%}}
:root[data-theme-motion=off] :is(.workspace,.auth-screen){animation:none!important}
@media(prefers-reduced-motion:reduce){:root :is(.workspace,.auth-screen){animation:none!important}}
.appearance-modal{width:min(560px,calc(100% - 28px))}.theme-options{display:grid;gap:10px}.theme-choice{display:flex;align-items:center;gap:13px;width:100%;padding:13px;border:1px solid var(--line);border-radius:11px;text-align:left;background:#ffffff03}.theme-choice[aria-pressed=true]{border-color:var(--accent);background:#ad93f510}.theme-choice>svg{width:17px;height:17px;margin-left:auto;color:var(--accent);opacity:0}.theme-choice[aria-pressed=true]>svg{opacity:1}.theme-copy{min-width:0;flex:1}.theme-copy strong{display:block;font-size:12px}.theme-copy small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:4px}.theme-animated{font-size:8px;padding:4px 6px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.theme-swatch{width:57px;height:43px;border-radius:8px;display:flex;gap:3px;padding:6px;background:linear-gradient(125deg,#262030,#695286);flex-shrink:0}.theme-swatch i{width:7px;height:100%;border-radius:3px;background:#ad93f550}.theme-swatch i:last-child{flex:1;background:#ad93f52a}.theme-swatch[data-palette=midnight]{background:linear-gradient(125deg,#091321,#245d7b)}.theme-swatch[data-palette=midnight] i{background:#83d8ed50}.theme-swatch[data-palette=graphite]{background:linear-gradient(125deg,#161719,#626571)}.theme-swatch[data-palette=graphite] i{background:#ced1e550}.theme-swatch[data-palette=aurora]{background:linear-gradient(125deg,#164e63,#245744,#7145a1)}.theme-swatch[data-palette=aurora] i{background:#8ee7d050}.theme-swatch[data-palette=ember]{background:linear-gradient(125deg,#623423,#793956,#a07945)}.theme-swatch[data-palette=ember] i{background:#f0b67f50}.modal .theme-motion{display:flex;align-items:center;gap:10px;margin:24px 0 15px;font-size:11px}.modal .theme-motion input{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:var(--accent)}
@media(max-width:440px){.theme-choice{gap:9px;padding:10px}.theme-swatch{width:44px}.theme-copy small{font-size:9px}.theme-animated{font-size:7px;padding:3px}}
