:root{--outer:#000;--side:#000;--main:#000;--layer:#101010;--hover:#181818;--active:#222;--line:#242424;--text:#eee;--muted:#a3a3ad;--weak:#76767e;background:#000}
body,.app,.titlebar,.workspace,.navigation-column,.navigation-upper,.servers,.sidebar,.channels,.main,.main-body,.chat-main,.content,.chat-header,.members,.account-dock,.voice-panel-inner,.user-panel,.settings-page,.settings-nav,.settings-main{background:#000!important}
.main,.sidebar,.account-dock,.chat-header,.sidebar-head,.members,.titlebar,.settings-nav{border-color:#252525!important}.server-btn{background:#141414}.server-btn.selected,.server-btn:hover{background:var(--brand)}.server-btn.add{background:#101010}.server-btn.server-muted:not(.selected){opacity:.55}.channel:hover,.member:hover,.voice-person:hover,.profile-button:hover,.icon-button:hover{background:#151515}.channel.selected{background:#242424}.composer,.composer textarea,.message-form,.message-input{background:#151515!important}.composer{border:1px solid #262626;border-radius:8px}.message:hover{background:#0d0d0d}.settings-tab:hover,.settings-tab.selected{background:#171717}.settings-card,.settings-notice,.game-item,.quick-menu,.modal,.context-menu,.mini-profile{background:#101010!important;border-color:#292929!important}.modal input,.modal select,.modal textarea,.settings-content input,.settings-content select,.quick-fields select{background:#151515;border-color:#303030}.quick-menu .quick-option:hover{background:#242424}.voice-actions button{background:#151515!important}.voice-actions button:hover{background:#242424!important}.voice-person,.member{cursor:pointer}.voice-person:hover{color:#eee}.avatar{position:relative;flex-shrink:0;overflow:visible}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.channel-limit{margin-left:auto;font-size:11px;color:#9a9aa5;background:#151515;border-radius:10px;padding:1px 5px}.connected-row span{cursor:help}.modal textarea{color:#eee;border:1px solid #303030;border-radius:6px;padding:10px;resize:vertical;width:100%}.login{background:#000!important}.login-card{background:#0e0e0e!important;border-color:#252525!important}.channel .avatar img{object-fit:cover}

/* Full-height voice canvas; the server's member column only belongs to text channels. */
.redesigned-call{flex:1;min-height:0;height:100%;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 20px 10px!important;background:#000!important;overflow:hidden}.redesigned-call .participant-grid{flex:1;min-height:0;width:min(100%,1440px);display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:8px;align-content:center;justify-items:stretch;overflow:auto}.redesigned-call .participant-grid.one{width:min(100%,1300px);display:flex;align-items:center;justify-content:center}.redesigned-call .participant-grid.two{width:min(100%,900px);max-height:100%;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}.redesigned-call .call-tile{position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;border-radius:8px;overflow:hidden;cursor:pointer;background:linear-gradient(180deg,color-mix(in srgb,var(--tile-color) 62%,#141414),color-mix(in srgb,var(--tile-color) 35%,#151515))!important;isolation:isolate;border:1px solid #ffffff11;aspect-ratio:16/9;height:100%;width:100%}.redesigned-call .participant-grid.one .call-tile{width:100%;height:auto;max-height:100%;aspect-ratio:16/9}.redesigned-call .participant-grid.two .call-tile{height:100%;width:min(100%,calc((100vh - 145px) * .88));justify-self:center;aspect-ratio:16/9}.redesigned-call .call-tile.stream-tile{background:#000!important;border-color:#181818}.redesigned-call .call-tile video{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;background:#000;pointer-events:none}.redesigned-call .tile-profile{background:transparent;padding:0;border:0;display:flex;align-items:center;justify-content:center;z-index:2}.redesigned-call .tile-profile .avatar{width:84px;height:84px;font-size:30px;box-shadow:0 4px 24px #0005}.redesigned-call .tile-profile .avatar.speaking{outline:3px solid #43b581;outline-offset:2px}.redesigned-call .call-label{position:absolute;left:10px;bottom:10px;border-radius:5px;display:flex;align-items:center;gap:5px;padding:6px 9px;background:#000b!important;color:#fff;font-size:13px;max-width:calc(100% - 20px);z-index:3}.redesigned-call .call-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.redesigned-call .call-label svg{width:15px;height:15px}.live-pill{position:absolute;top:10px;right:10px;background:#dd3045;color:white;font-weight:750;font-size:10px;border-radius:4px;padding:4px 7px;z-index:2}.redesigned-call .call-toolbar{flex:none;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:3px;height:58px}.call-toolbar>button:not(.primary){width:48px;height:48px;border-radius:13px;border:1px solid #252525;background:#0c0c0c;color:#bbb;display:grid;place-items:center}.call-toolbar>button:hover{background:#262626}.call-toolbar>button.on{background:#28245e;color:#a9aaff}.call-toolbar>button.danger{color:#f56b77;background:#251014}.call-toolbar>button.hangup{background:#d92e41;color:white;border-color:#d92e41;width:66px}.call-toolbar>button.hangup:hover{background:#ee4455}.call-toolbar button svg{width:21px;height:21px}.redesigned-call .focused-area{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}.redesigned-call .focused-area>.call-tile{height:100%;max-height:100%;width:100%;aspect-ratio:auto;max-width:1500px}.strip-wrap{position:relative;flex:none;display:flex;align-items:center;justify-content:center;max-width:100%;height:111px;padding-top:5px}.participant-strip{display:flex;gap:8px;overflow-x:auto;max-width:100%;height:100%;padding:0 3px}.redesigned-call .compact-tile{width:184px;min-width:184px;height:103px;cursor:pointer;aspect-ratio:16/9}.redesigned-call .compact-tile .tile-profile .avatar{width:54px;height:54px;font-size:20px}.redesigned-call .compact-tile .call-label{font-size:11px;padding:4px 6px;left:6px;bottom:6px}.redesigned-call .compact-tile .call-label svg{width:12px;height:12px}.redesigned-call .compact-tile.focused-tile{border-color:#a0a2fa;opacity:.74}.strip-toggle{position:absolute;z-index:6;left:50%;top:-9px;transform:translateX(-50%);display:flex;align-items:center;gap:3px;padding:5px 9px;border-radius:20px;background:#161616;border:1px solid #363636;color:#ddd;opacity:.25}.strip-wrap:hover .strip-toggle,.strip-toggle:focus-visible,.strip-wrap.strip-hidden .strip-toggle{opacity:1}.strip-toggle svg{width:17px;height:17px}.strip-wrap.strip-hidden{height:18px}.strip-hidden .strip-toggle svg:first-child{transform:rotate(180deg)}.stream-controls{position:absolute;right:10px;bottom:10px;z-index:5;display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:8px;background:#090909d9;opacity:.35;transition:opacity .16s}.stream-tile:hover .stream-controls,.focused-tile .stream-controls,.app-fullscreen .stream-controls,.stream-controls:focus-within{opacity:1}.stream-controls button{color:#ddd;padding:3px;border-radius:4px}.stream-controls button:hover{background:#292929}.stream-controls button svg{width:20px;height:20px}.stream-controls input[type=range]{width:100px;accent-color:#9295ff;cursor:pointer}.redesigned-call.app-fullscreen{position:fixed;inset:32px 0 0;z-index:40;height:auto;min-height:0;width:auto;padding:0!important;border-radius:0}.redesigned-call.app-fullscreen .focused-area>.call-tile{max-width:none;border-radius:0;border:0}.redesigned-call.app-fullscreen .stream-controls{right:18px;bottom:18px}.call-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;color:#888}.empty-voice-icon{display:grid;place-items:center;background:#141414;width:64px;height:64px;border-radius:50%}.empty-voice-icon svg{width:28px;height:28px}

/* Native-style popovers and capture picker. */
.context-menu,.mini-profile{position:fixed;z-index:35;border:1px solid #2e2e2e;border-radius:9px;box-shadow:0 10px 35px #0009;color:#e4e4e7}.context-menu{width:250px;padding:6px;max-height:calc(100vh - 50px);overflow:auto}.context-heading{padding:7px 9px;font-size:11px;color:#898991;font-weight:650;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.context-item{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:9px 10px;width:100%;border-radius:4px;text-align:left;font-size:13px;color:#d3d3d8}.context-item:hover{background:#4248a0;color:#fff}.context-item.danger{color:#ff747e}.context-item.danger:hover{background:#b32939;color:#fff}.context-item svg{width:16px;height:16px}.context-separator{height:1px;background:#2a2a2a;margin:5px 3px}.context-volume{padding:9px 9px 4px}.context-volume label{display:flex;justify-content:space-between;font-size:12px;color:#ddd}.context-volume input{width:100%;accent-color:#777cfc;margin:8px 0}.mini-profile{width:290px;overflow:hidden}.mini-banner,.profile-edit-banner{height:77px;background:var(--profile-color,#666);margin-bottom:0}.mini-body{padding:0 14px 14px;position:relative}.mini-avatar-button{margin-top:-34px;padding:0}.mini-avatar-button .avatar{width:72px;height:72px;font-size:25px;border:5px solid #101010}.mini-body h2{font-size:20px;margin-top:5px}.mini-body p{color:#95959d;margin:4px 0 12px}.mini-bio,.mini-note{padding:10px 0;border-top:1px solid #252525;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.mini-profile-link{display:block;margin-top:6px;width:100%}.profile-edit-banner{height:55px;border-radius:7px;margin-bottom:10px}.profile-editor-avatar,.full-user-card{display:flex;gap:12px;align-items:center;margin:12px 0 15px}.profile-editor-avatar .avatar,.full-user-card .avatar{width:68px;height:68px;font-size:23px}.profile-editor-avatar div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.file-label{display:inline-block;cursor:pointer;padding:8px 12px}.file-label input{display:none}.profile-editor-avatar .link{color:#a5aaff;font-size:12px}.modal form{max-height:calc(100vh - 250px);overflow:auto}.modal label input[type=color]{height:31px;width:65px;padding:3px}.source-modal{width:min(700px,calc(100vw - 36px))!important;max-width:700px!important}.source-tabs{display:flex;gap:16px;border-bottom:1px solid #292929;padding:0 0 6px;margin:16px 0 12px}.source-tabs button{font-size:14px;padding:8px 10px;border-bottom:2px solid transparent;color:#aaa}.source-tabs button.active{border-color:#777cfc;color:#fff}.source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;max-height:320px;overflow:auto;padding:3px}.source-card{text-align:left;min-width:0;background:#151515;border:2px solid transparent;border-radius:7px;padding:0;overflow:hidden}.source-card:hover{border-color:#777;}.source-card.chosen{border-color:#777cfc}.source-card img,.source-placeholder{width:100%;height:96px;object-fit:contain;background:#000;display:grid;place-items:center}.source-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:8px}.source-placeholder svg{width:32px;height:32px}.source-audio{display:flex!important;align-items:center;gap:7px;margin:16px 0;flex-wrap:wrap}.source-audio small{display:block;width:100%;color:#999;font-size:11px}.source-audio input{accent-color:#777cfc}.modal .source-modal{max-height:90vh}.modal:has(.source-grid){width:min(700px,calc(100vw - 34px))}
@media(max-height:650px){.redesigned-call .compact-tile{height:76px;min-width:135px;width:135px}.strip-wrap{height:84px}.call-toolbar{height:48px!important}.redesigned-call .tile-profile .avatar{width:60px;height:60px;font-size:22px}.redesigned-call .compact-tile .tile-profile .avatar{width:40px;height:40px;font-size:14px}.source-grid{max-height:240px}}
.redesigned-call{max-height:none!important}.redesigned-call .call-tile{min-height:0!important}.context-menu,.mini-profile{z-index:75}.modal-backdrop{z-index:80}.redesigned-call .participant-grid:not(.one):not(.two){grid-auto-rows:minmax(130px,1fr)}
#noise-mode{max-width:190px;flex:0 0 190px}
.server-btn{overflow:visible}.server-unread{position:absolute;right:-4px;bottom:-4px;min-width:19px;height:19px;border:3px solid #000;border-radius:12px;background:#e7374a;color:#fff;font-size:11px;font-weight:750;display:grid;place-items:center;padding:0 3px;z-index:2}.channel-unread{min-width:19px;padding:2px 5px;border-radius:9px;background:#e7374a;color:white;font-size:10px;font-weight:700;text-align:center}.mention-unread{background:#2e260e!important;border-left:3px solid #e4b95a}.mention-tag{background:#2d2c59;color:#bec0ff;border-radius:3px;padding:1px 4px}.member-role{margin-left:auto;color:#949499;font-size:10px;white-space:nowrap;max-width:90px;overflow:hidden;text-overflow:ellipsis}.voice-person[draggable=true]{cursor:grab}.voice-person[draggable=true]:active{cursor:grabbing}.voice-drop-target{outline:2px solid #57ca8b;outline-offset:-2px;background:#153422!important}.chat-link,.chat-attachment a,.embed-card a{color:#53aefa;text-decoration:none;overflow-wrap:anywhere}.chat-link:hover,.chat-attachment a:hover,.embed-card a:hover{text-decoration:underline}.chat-attachment{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:8px 0;max-width:100%}.chat-attachment small{color:#92929b;font-size:11px}.chat-image{max-width:min(500px,100%);max-height:350px;object-fit:contain;border-radius:7px;display:block}.chat-video{width:min(500px,100%);max-height:360px;background:#000;border-radius:8px;display:block}.chat-file{display:flex;align-items:center;gap:12px;background:#111214;border:1px solid #28282e;border-radius:8px;padding:12px;width:min(380px,100%);margin:7px 0;color:#d7d8e2;text-decoration:none}.chat-file span{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.chat-file strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-file small{font-size:11px;color:#999}.embed-card{max-width:500px;background:#0d0e10;border:1px solid #25252a;border-left:4px solid #646afa;border-radius:6px;padding:11px;margin:8px 0;display:grid;gap:10px}.embed-card small{color:#aaa;font-size:11px}.embed-card iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:5px;background:black}.embed-card .embed-play{background:#181923;border:1px solid #333442;border-radius:6px;height:90px;color:#c3c7ff;font-weight:650}.embed-card a{font-size:11px}.pending-attachments{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 15px 5px;padding:8px;border-radius:8px;background:#101010;max-height:100px;overflow:auto}.pending-file{display:flex;align-items:center;gap:6px;max-width:250px;padding:6px 8px;background:#202024;border-radius:5px;font-size:12px}.pending-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pending-file small,.uploading-label{color:#aaa;font-size:10px;white-space:nowrap}.pending-file button{padding:0}.pending-file svg{width:16px;height:16px}.attach-button{flex:none}.source-footer{display:flex;align-items:end;flex-wrap:wrap;gap:8px}.source-quality{display:flex;gap:8px;margin-right:auto;align-items:end}.source-quality label{font-size:10px;display:grid;gap:5px;min-width:70px;color:#aaa}.source-quality select{padding:7px 4px;width:auto;font-size:12px}.source-audio-hint{font-size:12px;color:#999;margin:8px 0 0}.source-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.source-placeholder small{font-size:10px;color:#777}.source-card img.source-icon-fallback{object-fit:contain;padding:24px}.voice-actions{gap:4px!important}.voice-actions button{font-size:11px!important;line-height:1.2;min-height:41px;display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}.voice-actions button svg{width:15px;height:15px}.voice-actions button.sharing-active,.voice-actions button.camera-active{color:#55d88c!important;background:#10281c!important}.voice-actions button.sharing-active svg{stroke:#55d88c}.voice-panel-controls{display:flex;align-items:center;gap:3px;margin-left:auto}.voice-panel-controls .large-hangup{min-width:40px;min-height:33px}.voice-panel-controls .large-hangup svg{width:24px;height:24px}.voice-subtitle[data-action]{cursor:pointer}.call-toolbar>button.hangup{width:78px;height:52px;border-radius:15px}.call-toolbar>button,.voice-panel-controls button,.voice-actions button,.icon-button{transition:transform .15s ease,background .15s ease,color .15s ease}.call-toolbar>button:hover,.voice-panel-controls button:hover,.icon-button:hover{transform:scale(1.06)}.call-toolbar>button:active,.voice-panel-controls button:active,.voice-actions button:active,.icon-button:active{transform:scale(.92)}.camera-preview{position:absolute;z-index:1;object-fit:cover!important;background:black;pointer-events:none}.camera-preview.camera-full{inset:0;width:100%!important;height:100%!important}.camera-preview.camera-pip{width:25%!important;height:25%!important;right:10px;top:32px;border:2px solid #333;border-radius:7px;z-index:4}.server-health{display:flex;align-items:center;gap:7px;font-weight:650;color:#43d38d;margin:12px 0}
@media(prefers-reduced-motion:reduce){.call-toolbar>button,.voice-panel-controls button,.voice-actions button,.icon-button{transition:none}}
.owner-crown{font-size:14px;flex:0 0 auto;margin-left:3px;line-height:1;filter:saturate(.9)}
.server-btn.has-server-icon{background:#111}.server-icon-img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block;pointer-events:none}.server-edit-icon{display:flex;align-items:center;gap:16px;padding:12px 0}.server-icon-preview{width:76px;height:76px;flex-shrink:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#24242a;font-size:24px;font-weight:700}.server-icon-preview img{width:100%;height:100%;object-fit:cover}.server-edit-icon>div{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.image-crop-panel{border:1px solid #29292e;background:#111114;border-radius:10px;padding:15px;margin:12px 0;display:grid;justify-items:center;gap:10px}.image-crop-panel h3,.image-crop-panel p{margin:0;text-align:center}.image-crop-panel p{font-size:12px;color:#a5a5ae}.crop-mask{width:240px;height:240px;max-width:100%;aspect-ratio:1;border:2px solid #7779ef;border-radius:50%;overflow:hidden;background:#222;box-shadow:0 0 0 5px #24242d}.crop-mask canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.crop-mask canvas:active{cursor:grabbing}.image-crop-panel label{width:min(290px,100%);display:flex;align-items:center;gap:10px}.image-crop-panel label input{flex:1}.crop-actions{display:flex;gap:9px;justify-content:center}
.pending-attachments{align-items:flex-start;gap:9px}.pending-file.pending-media{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;max-width:210px;width:175px;padding:8px;gap:5px}.pending-media img,.pending-media video{grid-column:1/-1;width:100%;height:100px;object-fit:contain;background:#0c0c0f;border-radius:5px}.pending-media button{position:absolute;right:11px;top:11px;background:#18181de8;border:1px solid #414149;border-radius:5px;padding:4px}.pending-media span{font-size:11px}.send-files{margin-left:auto;align-self:center;flex-shrink:0}.chat-image-button{display:block;padding:0;background:none;border:0;max-width:100%;cursor:zoom-in;border-radius:7px;overflow:hidden}.chat-image-button:hover{opacity:.94}.chat-attachment small a{color:#a2a4ff;text-decoration:none}.wavepe-player{background:#101014;border:1px solid #26262c;border-radius:9px;padding:5px;max-width:510px;width:fit-content}.wavepe-player video{max-width:100%;width:500px}.image-lightbox{background:#09090b;border-radius:8px;display:grid;place-items:center;overflow:hidden}.image-lightbox img{max-width:100%;max-height:65vh;object-fit:contain}.modal-footer a.secondary{display:inline-flex;align-items:center;text-decoration:none}
#modal-inner:has(.image-crop-panel){max-height:calc(100vh - 40px);overflow:auto}.image-crop-panel label{flex-direction:row;align-items:center}
.member>span:not(.avatar):not(.owner-crown){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}
