/* Startup is rendered before authentication; never show a login flash. */
.startup-screen{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:var(--outer);color:var(--text);-webkit-app-region:drag}.startup-screen button{-webkit-app-region:no-drag}.startup-emblem{width:82px;height:82px;display:grid;place-items:center;border-radius:28px;background:linear-gradient(140deg,#585bf6,#9c47e8);color:white;font-size:70px;line-height:1;box-shadow:0 0 55px #805eff30;font-weight:800}.startup-screen h1{font-size:30px;letter-spacing:-.7px}.startup-screen p{color:var(--muted);font-size:13px;margin-top:3px}.startup-progress{height:4px;width:186px;background:var(--layer);border-radius:8px;overflow:hidden}.startup-progress span{display:block;height:100%;width:40%;background:linear-gradient(90deg,#666fff,#b178ff);border-radius:8px;animation:startup-sweep 1.35s ease-in-out infinite}@keyframes startup-sweep{from{transform:translateX(-110%)}to{transform:translateX(350%)}}
.titlebar .title-status{margin-right:0}.titlebar{padding-right:137px}.update-indicator{height:23px;width:27px;border-radius:5px;padding:3px;color:#46d982;background:#133623;-webkit-app-region:no-drag;display:grid;place-items:center}.update-indicator:hover{background:#205b39;color:#b0ffd0}.update-indicator svg{width:17px;height:17px}.voice-person .talking,.mini-live{color:white!important;background:#da3348!important;border-radius:5px;font-size:10px;font-weight:750;padding:3px 6px;white-space:nowrap;line-height:1.2;display:inline-block}.voice-person .talking{margin-left:auto}.stream-status{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.member>span:not(.avatar):not(.owner-crown){display:flex;flex-direction:column;min-width:0}.stream-preview-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:12px;border:1px solid var(--line);padding:10px;border-radius:9px;background:var(--layer)}.stream-preview-card img{width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:6px;background:#000}.stream-preview-card button{width:100%;font-size:12px}
.quality-settings{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:var(--layer);border:1px solid var(--line);padding:12px;border-radius:12px}.quality-settings label,.quality-settings .settings-field{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;font-weight:650}.quality-settings select{width:100%;min-height:36px;border-radius:7px;border:1px solid var(--line);background:var(--side)!important;color:var(--text);padding:7px 9px;font-size:13px;font-weight:600}.source-footer .quality-settings{flex:1;min-width:0;padding:8px;gap:6px}.source-footer .quality-settings select{min-width:0;font-size:12px}.settings-content .quality-settings{margin-top:18px}.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0 26px}.theme-option{display:grid;gap:9px;text-align:left;padding:8px;border:2px solid var(--line);border-radius:10px;background:var(--layer);color:var(--text)}.theme-option.selected{border-color:var(--brand);box-shadow:0 0 0 2px #8e8cf42c}.theme-preview{height:88px;display:flex;gap:4px;border-radius:6px;padding:6px;background:var(--preview-bg)}.theme-preview i{display:block;border-radius:3px;background:var(--preview-side);width:13%}.theme-preview i:nth-child(2){width:27%}.theme-preview i:nth-child(3){flex:1;background:var(--preview-main)}.theme-black{--preview-bg:#050505;--preview-side:#171717;--preview-main:#101010}.theme-dark{--preview-bg:#24252a;--preview-side:#303136;--preview-main:#36373d}.theme-gray{--preview-bg:#53555b;--preview-side:#62646b;--preview-main:#74767e}.theme-light{--preview-bg:#e2e3e7;--preview-side:#f1f2f5;--preview-main:#fff}.theme-option span{font-size:12px;font-weight:600}
html[data-theme=dark]{--outer:#202126;--side:#292a30;--main:#313238;--layer:#383940;--hover:#41424a;--active:#494b54;--line:#42434a;--text:#ededf0;--muted:#b1b3bd;--weak:#92949e;background:var(--outer)}html[data-theme=gray]{--outer:#474950;--side:#51535a;--main:#5c5e66;--layer:#696b74;--hover:#72747c;--active:#7b7d87;--line:#777982;--text:#fbfbfc;--muted:#e0e0e5;--weak:#c6c8ce;background:var(--outer)}html[data-theme=light]{color-scheme:light;--outer:#e5e6ea;--side:#edeef1;--main:#fafafa;--layer:#fff;--hover:#e6e7eb;--active:#d9dce6;--line:#d6d8df;--text:#262830;--muted:#5d626d;--weak:#737985;--brand:#625be1;background:var(--outer)}
html[data-theme]:not([data-theme=black]) :is(body,.app,.titlebar,.workspace,.navigation-column,.navigation-upper,.servers,.settings-nav){background:var(--outer)!important;color:var(--text)}html[data-theme]:not([data-theme=black]) :is(.sidebar,.channels,.members,.account-dock,.voice-panel-inner,.user-panel,.sidebar-head){background:var(--side)!important;color:var(--text)}html[data-theme]:not([data-theme=black]) :is(.main,.main-body,.chat-main,.content,.chat-header,.settings-page,.settings-main,.redesigned-call){background:var(--main)!important;color:var(--text)}
html[data-theme]:not([data-theme=black]) :is(.main,.sidebar,.account-dock,.chat-header,.sidebar-head,.members,.titlebar,.settings-nav){border-color:var(--line)!important}html[data-theme]:not([data-theme=black]) :is(.server-btn,.server-btn.add,.settings-card,.settings-notice,.game-item,.quick-menu,.modal,.context-menu,.mini-profile,.source-card,.pending-file,.pending-attachments,.embed-card,.chat-file,.image-crop-panel,.login-card,.composer,.composer textarea,.message-form,.message-input,.voice-actions button,.settings-content input,.settings-content select,.quick-fields select,.modal input,.modal select,.modal textarea,.channel-limit,.secondary,.keybind-button){background:var(--layer)!important;border-color:var(--line)!important;color:var(--text)!important}html[data-theme]:not([data-theme=black]) :is(.channel:hover,.member:hover,.voice-person:hover,.profile-button:hover,.icon-button:hover,.settings-tab:hover,.context-item:hover,.quick-option:hover,.message:hover,.voice-actions button:hover,.source-card:hover){background:var(--hover)!important;color:var(--text)}html[data-theme]:not([data-theme=black]) :is(.channel.selected,.settings-tab.selected){background:var(--active)!important}html[data-theme]:not([data-theme=black]) .server-btn.selected{background:var(--brand)!important;color:white!important}html[data-theme]:not([data-theme=black]) .login{background:var(--outer)!important}html[data-theme=light] :is(.channel,.friend-row,.member,.message,.message-text,.message-meta strong,.settings-content,.settings-tab,.settings-field label,.context-item,.context-heading,.quick-option,.mini-body,.modal,.source-card,.server-name,.section-label,.member-section,.titlebar,.user-name,.voice-person,.chat-header,.profile-button,.call-empty){color:var(--text)!important}html[data-theme=light] :is(.context-heading,.context-volume label,.settings-row p,.modal p,.mini-body p,.message-meta time,.source-audio-hint,.member-section,.section-label,.user-tag,.title-status,.chat-attachment small){color:var(--muted)!important}html[data-theme=light] :is(.chat-link,.link,.chat-attachment a,.embed-card a){color:#5149c6!important}html[data-theme=light] .redesigned-call .call-tile{background:#e4e6eb;border-color:#d4d7dc}html[data-theme=light] .stream-tile{background:#000!important}html[data-theme=light] .voice-actions button.sharing-active{color:#147b44!important}html[data-theme=light] .owner-crown{filter:none}html[data-theme=light] #toast{background:#fff;color:#202126;border-color:var(--line)}html[data-theme=light] .settings-row h3{color:var(--text)}html[data-theme=light] .primary{color:white!important}
@media(max-width:850px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-footer .quality-settings{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.titlebar{padding-right:125px}}
.startup-emblem img{width:100%;height:100%;object-fit:contain;border-radius:24px;display:block}
