:root{--bg-deepest: #1e1f22;--bg-sidebar: #2b2d31;--bg-main: #313338;--bg-elevated: #383a40;--bg-hover: rgba(78, 80, 88, .35);--bg-active: rgba(78, 80, 88, .55);--text: #dbdee1;--text-muted: #949ba4;--text-faint: #6d7178;--text-bright: #f2f3f5;--link: #00a8fc;--blurple: #5865f2;--blurple-hover: #4752c4;--green: #23a55a;--green-hover: #1e9150;--red: #f23f43;--red-hover: #d83538;--yellow: #f0b232;--radius: 8px;--font: "Inter", "gg sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:var(--font);font-size:15px;color:var(--text);background:var(--bg-deepest);-webkit-font-smoothing:antialiased;overflow:hidden}button{font-family:inherit;font-size:inherit;color:inherit;background:none;border:none;cursor:pointer}input,textarea{font-family:inherit;font-size:inherit;color:var(--text-bright);background:var(--bg-deepest);border:none;outline:none;border-radius:4px}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--bg-deepest);border-radius:4px}.message-scroll::-webkit-scrollbar-thumb,.view-body::-webkit-scrollbar-thumb{background:#232428}.dim{color:var(--text-muted)}.center{text-align:center}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 18px;border-radius:4px;font-weight:600;font-size:14px;color:#fff;transition:background .15s ease;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--blurple)}.btn-primary:hover:not(:disabled){background:var(--blurple-hover)}.btn-secondary{background:var(--bg-hover);color:var(--text-bright)}.btn-secondary:hover:not(:disabled){background:var(--bg-active)}.btn-success{background:var(--green)}.btn-success:hover:not(:disabled){background:var(--green-hover)}.btn-danger{background:var(--red)}.btn-danger:hover:not(:disabled){background:var(--red-hover)}.btn-ghost{background:transparent;color:var(--text)}.btn-ghost:hover{text-decoration:underline}.btn-sm{padding:6px 12px;font-size:13px}.btn-block{width:100%;padding:12px;font-size:15px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--text-muted);transition:background .15s,color .15s;flex-shrink:0}.icon-btn:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn:disabled{opacity:.35;cursor:not-allowed}.icon-btn:disabled:hover{background:transparent;color:var(--text-muted)}.icon-btn.lit{color:var(--text-bright)}.icon-btn.danger:hover,.icon-btn.danger-hover:hover,.icon-btn.toggled-off{color:var(--red)}.icon-btn.active-green{color:var(--green)}.circle-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--bg-deepest);color:var(--text-muted);transition:color .15s,background .15s}.circle-btn:hover{color:var(--text-bright)}.circle-btn.danger:hover{color:var(--red)}.circle-btn.success:hover{color:var(--green)}.badge{background:var(--red);color:#fff;font-size:11.5px;font-weight:700;min-width:17px;height:17px;padding:0 5px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;margin-left:auto}.avatar{position:relative;border-radius:50%;overflow:visible;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;-webkit-user-select:none;user-select:none}.avatar img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}.status-dot{position:absolute;right:-2px;bottom:-2px;width:38%;height:38%;min-width:9px;min-height:9px;border-radius:50%;border:2.5px solid var(--bg-sidebar)}.status-dot.on{background:var(--green)}.status-dot.off{background:#80848e}.profile-trigger{display:inline-flex;align-items:center;min-width:0;cursor:pointer}.profile-popover{position:fixed;width:286px;z-index:260;padding:14px;border-radius:var(--radius);background:#232428;border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 50px #0000008c;animation:popover-in .12s ease}.profile-popover:before{content:"";position:absolute;inset:0 0 auto;height:54px;border-radius:var(--radius) var(--radius) 0 0;background:linear-gradient(135deg,#5865f2f2,#23a55ae0);pointer-events:none}.profile-popover-top{position:relative;display:flex;align-items:flex-end;gap:12px;padding-top:22px}.profile-popover-name{min-width:0;padding-bottom:4px}.profile-popover-name strong,.profile-popover-name span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-popover-name strong{color:var(--text-bright);font-size:17px}.profile-popover-name span{color:var(--text-muted);font-size:12.5px;margin-top:2px}.profile-popover-id{margin-top:14px;padding:9px 10px;border-radius:6px;background:var(--bg-deepest);display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-popover-id span{color:var(--text-muted);font-size:12px;font-weight:700;text-transform:uppercase}.profile-popover-id code{color:var(--text-bright);font-size:12.5px}.profile-action{width:100%;margin-top:12px}.profile-popover-error{margin-top:10px;color:#fa777c;font-size:12.5px;line-height:1.35}@keyframes popover-in{0%{transform:translateY(4px);opacity:0}to{transform:translateY(0);opacity:1}}.boot-screen{height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-deepest)}.boot-logo{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.86);opacity:.6}}.auth-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden auto;padding:24px 16px;background:linear-gradient(160deg,#15161a,#1e1f22,#17181c)}.auth-blob{position:absolute;border-radius:50%;filter:blur(90px);opacity:.4;animation:float 14s ease-in-out infinite}.auth-blob-1{width:480px;height:480px;background:#5865f2;top:-140px;left:-100px}.auth-blob-2{width:420px;height:420px;background:#8b5cf6;bottom:-160px;right:-80px;animation-delay:-5s}.auth-blob-3{width:300px;height:300px;background:#eb459e;bottom:10%;left:16%;opacity:.22;animation-delay:-9s}@keyframes float{0%,to{transform:translateY(0) scale(1)}50%{transform:translateY(-44px) scale(1.07)}}.auth-card{position:relative;z-index:1;width:min(440px,calc(100vw - 32px));background:#313338eb;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:36px;box-shadow:0 24px 60px #00000080;animation:rise .35s ease}@keyframes rise{0%{transform:translateY(14px);opacity:0}to{transform:translateY(0);opacity:1}}.auth-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:6px}.auth-logo h1{font-size:28px;font-weight:800;color:var(--text-bright);letter-spacing:0}.auth-tagline{text-align:center;color:var(--text-muted);font-size:14px;margin-bottom:26px}.field{display:block;margin-bottom:18px}.field span{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--text-muted);margin-bottom:7px}.field input{width:100%;padding:11px 12px;font-size:15px;border:1px solid transparent;transition:border-color .15s}.field input:focus{border-color:var(--blurple)}.auth-error{color:#fa777c;font-size:13.5px;margin:-6px 0 14px}.auth-switch{margin-top:16px;font-size:14px;color:var(--text-muted)}.auth-switch button{color:var(--link);font-weight:500}.auth-switch button:hover{text-decoration:underline}.auth-download{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:22px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:#23242bb8}.auth-download strong,.auth-download span{display:block}.auth-download strong{color:var(--text-bright);font-size:14px;margin-bottom:3px}.auth-download span{color:var(--text-muted);font-size:12.5px;line-height:1.3}.auth-download-btn{flex-shrink:0;padding:9px 12px}.auth-floating-download{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:2;display:inline-flex;align-items:center;gap:10px;max-width:min(260px,calc(100vw - 32px));padding:11px 13px;border-radius:8px;color:var(--text-bright);background:#23242be6;border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 36px #00000061;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.auth-floating-download:hover{background:#313338f5}.auth-floating-download svg{flex-shrink:0;color:var(--blurple)}.auth-floating-download span{min-width:0;display:grid;gap:2px}.auth-floating-download strong,.auth-floating-download small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-floating-download strong{font-size:13.5px;line-height:1.1}.auth-floating-download small{color:var(--text-muted);font-size:11.5px;line-height:1.1}.app{display:flex;height:100vh;height:100dvh}.nav-shell{display:flex;flex-shrink:0;height:100%}.sidebar{width:244px;flex-shrink:0;background:var(--bg-sidebar);display:flex;flex-direction:column}.main{flex:1;min-width:0;background:var(--bg-main);display:flex;flex-direction:column}.nav-backdrop,.hamburger{display:none}.rail{width:72px;flex-shrink:0;background:var(--bg-deepest);display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:8px;overflow:hidden}.rail::-webkit-scrollbar{display:none}.rail-btn{position:relative;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;color:var(--text);background:var(--bg-sidebar);transition:border-radius .18s ease,background .18s ease,color .18s ease;flex-shrink:0}.rail-btn:hover,.rail-btn.active{border-radius:16px}.rail-home{color:var(--text)}.rail-home:hover,.rail-home.active{background:var(--blurple);color:#fff}.rail-server{color:#fff}.rail-server.active{box-shadow:0 0 0 2px var(--bg-deepest),0 0 0 4px #ffffffa6}.rail-add{color:var(--green)}.rail-add:hover{background:var(--green);color:#fff}.rail-download{color:var(--text-muted);text-decoration:none}.rail-download:hover{background:var(--blurple);color:#fff;text-decoration:none}.rail-divider{width:32px;height:2px;border-radius:1px;background:var(--bg-sidebar);flex-shrink:0}.rail-servers{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;min-height:0;flex:1;overflow-y:auto}.rail-servers::-webkit-scrollbar{display:none}.rail-unread{position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:4px;background:#fff}.rail-voice{position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;border-radius:50%;background:var(--green);border:3px solid var(--bg-deepest)}.server-head{justify-content:space-between}.server-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-action{margin-left:auto;display:none;color:var(--text-muted);padding:2px;border-radius:4px}.row-action:hover{color:var(--red)}.nav-row:hover .row-action{display:inline-flex}.nav-row.unread .unread-dot~.row-action,.nav-row:hover .unread-dot{display:none}.voice-count{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--text-muted);background:var(--bg-deepest);border-radius:8px;padding:1px 7px}.nav-row:hover .voice-count{display:none}.sidebar-header{height:50px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:0 16px;font-weight:800;font-size:16px;color:var(--text-bright);box-shadow:0 1px #00000040}.sidebar-scroll{flex:1;overflow-y:auto;padding:10px 8px}.nav-row{display:flex;align-items:center;gap:10px;width:100%;padding:7px 10px;border-radius:6px;color:var(--text-muted);font-weight:500;font-size:15px;margin-bottom:1px;transition:background .12s,color .12s;text-align:left}.nav-row:hover{background:var(--bg-hover);color:var(--text)}.nav-row.active{background:var(--bg-active);color:var(--text-bright)}.nav-row.unread{color:var(--text-bright);font-weight:600}.nav-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unread-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:var(--text-bright);margin-left:auto}.section-header{display:flex;align-items:center;justify-content:space-between;padding:16px 8px 4px 10px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted)}.section-header .icon-btn{width:22px;height:22px}.sidebar-hint{display:block;width:100%;text-align:left;padding:6px 10px;font-size:13px;color:var(--text-faint);border-radius:6px}.sidebar-hint:not(.static):hover{color:var(--text);background:var(--bg-hover)}.voice-members{padding:1px 0 4px 30px}.voice-member{display:flex;align-items:center;gap:7px;padding:2.5px 8px;font-size:13.5px;color:var(--text-muted)}.voice-member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sharing-ind{color:var(--green);flex-shrink:0}.dm-row{padding:5px 10px}.voice-bar{display:flex;align-items:center;gap:4px;padding:8px 10px;background:var(--bg-sidebar);border-top:1px solid var(--bg-deepest)}.voice-bar-info{flex:1;min-width:0}.voice-bar-status{display:flex;align-items:center;gap:6px;color:var(--green);font-size:13.5px;font-weight:700}.voice-bar-channel{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-bar{display:flex;align-items:center;gap:8px;padding:8px;background:#232428}.user-bar-name{flex:1;min-width:0}.user-bar-name .username{font-size:14px;font-weight:600;color:var(--text-bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-bar-name .substatus{font-size:11.5px;color:var(--text-muted)}.view-header{height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;box-shadow:0 1px #00000040;z-index:2}.view-title{display:flex;align-items:center;gap:9px;font-weight:700;color:var(--text-bright);min-width:0}.view-title>svg{color:var(--text-muted);flex-shrink:0}.view-title .topic{font-weight:400;font-size:13.5px;color:var(--text-muted);border-left:1px solid var(--bg-elevated);padding-left:10px;margin-left:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:8px}.friend-tabs{display:flex;align-items:center;gap:8px;margin-left:18px;flex:1}.tab{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:5px;font-weight:500;color:var(--text-muted)}.tab:hover{background:var(--bg-hover);color:var(--text)}.tab.active{background:var(--bg-active);color:var(--text-bright)}.tab-add{background:var(--green);color:#fff;font-weight:600}.tab-add:hover{background:var(--green);color:#fff}.tab-add.active{background:transparent;color:var(--green)}.view-body{flex:1;overflow-y:auto;padding:18px 24px}.list-label{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--text-muted);margin:12px 0 6px}.friend-row{display:flex;align-items:center;gap:12px;padding:10px 8px;border-top:1px solid rgba(78,80,88,.35);border-radius:6px;margin-top:-1px}.friend-row:hover{background:var(--bg-hover);border-color:transparent}.friend-row-text{flex:1;min-width:0}.friend-name{font-weight:600;color:var(--text-bright)}.friend-sub{font-size:13px;color:var(--text-muted)}.friend-actions{display:flex;gap:8px}.add-friend{max-width:640px}.add-friend h3{color:var(--text-bright);font-size:16px;margin-bottom:4px}.add-friend p{font-size:13.5px;margin-bottom:14px}.add-friend-form{display:flex;gap:10px;background:var(--bg-deepest);padding:8px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.05)}.add-friend-form input{flex:1;background:transparent;padding:8px 6px;font-size:15px}.add-friend-result{margin-top:12px;font-size:14px}.add-friend-result.ok{color:var(--green)}.add-friend-result.err{color:#fa777c}.empty-state{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--text-muted)}.empty-art{width:110px;height:110px;border-radius:50%;background:var(--bg-sidebar);display:flex;align-items:center;justify-content:center;color:var(--text-faint)}.chat-layout{flex:1;display:flex;min-height:0}.chat-column{flex:1;display:flex;flex-direction:column;min-width:0}.message-scroll{flex:1;overflow-y:auto;padding:18px 0 6px}.welcome-block{padding:24px 18px 30px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.welcome-icon{width:68px;height:68px;border-radius:50%;background:var(--bg-elevated);display:flex;align-items:center;justify-content:center;color:var(--text-bright)}.welcome-block h2{font-size:28px;font-weight:800;color:var(--text-bright)}.welcome-block p{color:var(--text-muted);font-size:14.5px}.day-divider{display:flex;align-items:center;margin:18px 16px 8px;border-top:1px solid rgba(78,80,88,.5)}.day-divider span{margin:-9px auto 0;background:var(--bg-main);padding:0 10px;font-size:12px;font-weight:600;color:var(--text-muted)}.msg{display:flex;gap:14px;padding:2px 18px;margin-top:14px}.msg:hover{background:#00000012}.msg-grouped{margin-top:0;padding-left:72px;position:relative}.msg-hover-time{position:absolute;left:14px;top:4px;font-size:10.5px;color:var(--text-faint);opacity:0;-webkit-user-select:none;user-select:none}.msg-grouped:hover .msg-hover-time{opacity:1}.msg-main{min-width:0;flex:1}.msg-meta{display:flex;align-items:baseline;gap:8px}.msg-author{font-weight:600;color:var(--text-bright)}.msg-time{font-size:11.5px;color:var(--text-faint)}.msg-content{color:var(--text);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.message-image{display:block;width:auto;max-width:min(520px,100%);max-height:420px;object-fit:contain;border-radius:8px;background:#111217;box-shadow:0 0 0 1px #ffffff0f}.message-image-link{display:inline-flex;flex-direction:column;gap:6px;max-width:100%;color:var(--text-muted)}.message-image-link:hover{text-decoration:none}.message-attachment-meta{display:block;max-width:min(520px,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--text-muted)}.message-file{display:inline-flex;align-items:center;gap:12px;width:min(420px,100%);min-width:0;margin-top:2px;padding:12px;border-radius:8px;color:var(--text);background:#2b2d31;border:1px solid rgba(255,255,255,.07)}.message-file:hover{background:#30323a;text-decoration:none}.message-file-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:8px;color:var(--text-bright);background:var(--bg-deepest)}.message-file-main{display:flex;flex-direction:column;min-width:0;flex:1}.message-file-main strong,.message-file-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-file-main strong{color:var(--text-bright);font-size:14px}.message-file-main span{color:var(--text-muted);font-size:12px}.input-area{padding:0 18px;flex-shrink:0}.input-shell{background:var(--bg-elevated);border-radius:var(--radius);padding:4px 8px;display:flex;align-items:flex-end;gap:8px;min-width:0}.upload-btn{width:36px;height:36px;margin-bottom:1px;border-radius:50%;color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,color .15s}.upload-btn:hover:not(:disabled){background:#ffffff0f;color:var(--text-bright)}.upload-btn:disabled{cursor:wait;opacity:.45}.input-shell textarea{display:block;width:100%;min-width:0;resize:none;background:transparent;padding:9px 0;line-height:1.4;max-height:200px;color:var(--text-bright)}.input-shell textarea::placeholder{color:var(--text-faint)}.typing-line{height:24px;display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text);padding:2px 4px}.typing-dots{display:inline-flex;gap:3px}.typing-dots i{width:5px;height:5px;border-radius:50%;background:var(--text-muted);animation:bounce 1.2s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.members-panel{width:232px;flex-shrink:0;background:var(--bg-sidebar);overflow-y:auto;padding:12px}.member-row{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:6px}.member-row:hover{background:var(--bg-hover)}.member-row.offline{opacity:.4}.member-name{font-weight:500;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-row:hover .member-name{color:var(--text)}.crown{color:var(--yellow);margin-left:auto;flex-shrink:0}.voice-teaser{display:flex;align-items:center;gap:9px;margin:10px 18px 0;padding:10px 14px;border-radius:var(--radius);background:#23a55a1f;border:1px solid rgba(35,165,90,.35);color:var(--green);font-weight:600;font-size:14px;transition:background .15s}.voice-teaser:hover{background:#23a55a33}.voice-stage{position:relative;background:var(--bg-deepest);padding:18px;flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:14px}.voice-stage.is-immersive{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;padding:24px;border-radius:0;background:#000}.voice-stage.is-immersive .voice-warning,.voice-stage.is-immersive .channel-browser-head{display:none}.voice-stage.is-immersive .voice-controls{position:absolute;left:50%;bottom:22px;z-index:21;padding:8px 10px;border-radius:999px;background:#111214b8;border:1px solid rgba(255,255,255,.08);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:0;pointer-events:none;transform:translate(-50%) translateY(8px);transition:opacity .16s ease,transform .16s ease}.voice-stage.is-immersive:hover .voice-controls,.voice-stage.is-immersive:focus-within .voice-controls{opacity:1;pointer-events:auto;transform:translate(-50%) translateY(0)}.voice-fullscreen-toggle{position:absolute;right:18px;bottom:18px;z-index:22;width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#111214d1;border:1px solid rgba(255,255,255,.1);color:var(--text-bright);box-shadow:0 8px 22px #00000052;transition:background .15s,opacity .15s,transform .15s}.voice-fullscreen-toggle:hover{background:#43464df2;transform:translateY(-1px)}.voice-stage.is-immersive .voice-fullscreen-toggle{right:24px;bottom:24px;opacity:.58}.voice-stage.is-immersive .voice-fullscreen-toggle:hover,.voice-stage.is-immersive:focus-within .voice-fullscreen-toggle{opacity:1}.voice-room{background:var(--bg-deepest)}.voice-stage.compact{flex:none;max-height:46vh;border-bottom:1px solid rgba(0,0,0,.4);padding:14px 18px}.voice-stage .voice-tiles{align-content:flex-start}.voice-stage:not(.compact) .voice-tiles{flex:1}.voice-room-grid{flex:1;min-height:0;display:grid;gap:0}.voice-room-grid.solo{grid-template-columns:1fr}.voice-room-grid.with-browser{grid-template-columns:minmax(320px,.95fr) minmax(380px,1.15fr)}.voice-room-grid .voice-stage{min-width:0}.voice-room-grid.with-browser .voice-stage{border-right:1px solid rgba(0,0,0,.35)}.voice-empty{color:var(--text-muted);font-size:14px;padding:18px 6px}.voice-join-strip{padding:14px 18px 20px;background:var(--bg-deepest);display:flex;justify-content:center}.voice-media{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.voice-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));grid-auto-rows:minmax(150px,1fr);gap:12px;align-content:center}.voice-focus-main{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.voice-filmstrip{flex-shrink:0;min-height:114px;max-height:144px;display:flex;justify-content:center;gap:10px;overflow-x:auto;overflow-y:hidden;padding:4px 2px}.voice-stage.is-immersive .voice-filmstrip{min-height:126px;max-height:158px;padding-bottom:8px}.voice-media-card{position:relative;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:var(--radius);background:#000;border:2px solid transparent;cursor:pointer;transition:border-color .12s ease,transform .12s ease,background .12s ease}.voice-media-card:hover{border-color:#ffffff1f}.voice-media-card.is-focused{cursor:default}.voice-media-card.selected,.voice-media-card.speaking{border-color:var(--green)}.voice-media-card.media-participant:not(.has-video){background:var(--bg-sidebar)}.voice-media-card.media-browser{background:#111214}.voice-filmstrip .voice-media-card{flex:0 0 184px;width:184px;height:104px}.voice-media-content{position:absolute;top:0;right:0;bottom:0;left:0;min-width:0;min-height:0}.voice-avatar-media{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}.voice-media-card.speaking .avatar{box-shadow:0 0 0 3px #23a55a73}.media-video{width:100%;height:100%;display:block;background:#000}.media-video.fit-cover{object-fit:cover}.media-video.fit-contain{object-fit:contain}.media-video.mirrored{transform:scaleX(-1)}.voice-media-card .channel-browser{width:100%;height:100%}.voice-media-card:not(.is-focused) .channel-browser{pointer-events:none}.browser-tile-shield{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background:#00000005}.dm-call-area{flex-shrink:0;display:flex;flex-direction:column}.dm-call-area .voice-teaser{margin:10px 18px}.voice-warning{background:#f0b2321f;border:1px solid rgba(240,178,50,.4);color:var(--yellow);font-size:13px;padding:8px 12px;border-radius:6px;margin-bottom:12px}.screen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px;margin-bottom:14px}.screen-tile{position:relative;border-radius:var(--radius);overflow:hidden;background:#000;aspect-ratio:16 / 9}.screen-tile video{width:100%;height:100%;object-fit:contain}.screen-label{position:absolute;left:8px;bottom:8px;background:#000000b3;color:#fff;font-size:12px;font-weight:600;padding:3px 8px;border-radius:4px}.screen-label.mine{background:#5865f2d9}.voice-tiles{display:flex;flex-wrap:wrap;gap:10px}.voice-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:200px;max-width:100%;aspect-ratio:16 / 10;padding:10px;background:var(--bg-sidebar);border-radius:10px;border:2px solid transparent;transition:border-color .1s;overflow:hidden}.voice-stage.compact .voice-tile{width:150px}.voice-tile.speaking{border-color:var(--green)}.voice-tile.speaking .avatar{box-shadow:0 0 0 3px #23a55a73}.voice-tile.has-video{padding:0;background:#000}.camera-video{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.camera-video.mirrored{transform:scaleX(-1)}.voice-tile-foot{position:absolute;left:8px;right:8px;bottom:7px;display:flex;align-items:center;justify-content:space-between;gap:6px;pointer-events:none}.voice-media-card .voice-tile-foot{z-index:4;pointer-events:auto}.voice-media-card .voice-tile-foot .profile-trigger{min-width:0;max-width:100%}.voice-media-card .voice-tile-foot .voice-tile-icons{pointer-events:none}.voice-tile.has-video .voice-tile-foot{background:#0009;border-radius:5px;padding:3px 7px;left:6px;right:auto;max-width:calc(100% - 12px)}.voice-media-card.has-video .voice-tile-foot,.voice-media-card.media-screen .voice-tile-foot,.voice-media-card.media-browser .voice-tile-foot{left:8px;right:auto;max-width:calc(100% - 16px);background:#000000ad;border-radius:6px;padding:4px 8px}.voice-tile-name{font-size:12.5px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voice-tile.has-video .voice-tile-name,.voice-media-card.has-video .voice-tile-name,.voice-media-card.media-screen .voice-tile-name,.voice-media-card.media-browser .voice-tile-name{color:#fff}.voice-media-card .voice-tile-name{display:block;max-width:min(340px,100%);text-shadow:0 1px 3px rgba(0,0,0,.65)}.voice-media-card.media-participant:not(.has-video) .voice-tile-name{text-shadow:none}.voice-media-card.is-focused .voice-tile-name{font-size:13.5px}.voice-tile-icons{display:flex;gap:5px;color:var(--text-muted)}.live-pill{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:9px;background:var(--red);color:#fff;font-size:10px;font-weight:800;letter-spacing:0}.server-muted-ind{color:var(--red)}.voice-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding-top:2px}.voice-ctl{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg-elevated);color:var(--text-bright);transition:background .15s,color .15s}.voice-ctl:hover{background:#43464d}.voice-ctl:disabled,.voice-ctl:disabled:hover{opacity:.45;cursor:not-allowed;background:var(--bg-elevated);color:var(--text-muted)}.voice-ctl.off{background:#fff;color:#000}.voice-ctl.on{background:var(--green)}.voice-ctl.leave{background:var(--red)}.voice-ctl.leave:hover{background:var(--red-hover)}.voice-ctl.locked,.icon-btn.locked{opacity:.6;cursor:not-allowed}.member-actions{margin-left:auto;display:none;gap:2px}.member-row:hover .member-actions{display:inline-flex}.member-action{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;color:var(--text-muted)}.member-action:hover{background:var(--bg-active);color:var(--text-bright)}.member-action.danger:hover{color:var(--red)}.member-muted{margin-left:4px;flex-shrink:0}.member-row:hover .member-muted,.member-row:hover .crown{display:none}.channel-browser{min-width:0;min-height:0;display:flex;flex-direction:column;background:#111214}.channel-browser-head{height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;background:var(--bg-sidebar);border-bottom:1px solid var(--bg-deepest)}.channel-browser-title{display:flex;align-items:center;gap:8px;min-width:0;color:var(--text-bright);font-size:13px;font-weight:700}.channel-browser-title svg{color:var(--text-muted);flex-shrink:0}.channel-browser-body{flex:1;min-height:0;position:relative;background:#111214}.channel-browser-body iframe{width:100%;height:100%;border:0;display:block;background:#111214}.channel-browser-state{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px;color:var(--text-muted);text-align:center;background:#111214;z-index:1}.channel-browser-state strong{color:var(--text-bright)}.channel-browser-state.error span{max-width:420px;line-height:1.4}.browser-view{flex:1;display:flex;flex-direction:column;min-height:0}.browser-bar{gap:2px;padding:0 10px}.address-bar{flex:1;display:flex;align-items:center;gap:8px;background:var(--bg-deepest);border-radius:8px;padding:0 12px;margin:0 6px;color:var(--text-muted);min-width:0}.address-bar input{flex:1;background:transparent;padding:8px 0;font-size:14px;min-width:0}.browser-body{flex:1;position:relative;min-height:0;background:#fff}.browser-frame{width:100%;height:100%;border:none;display:block}.browser-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:var(--bg-main);color:var(--text-muted);z-index:2}.browser-progress{position:absolute;top:0;left:0;height:2px;background:var(--blurple);z-index:3;animation:progress 1.2s ease-out forwards}@keyframes progress{0%{width:8%}to{width:92%}}.browser-note{padding:7px 14px;font-size:12px;color:var(--text-faint);background:var(--bg-sidebar);border-top:1px solid var(--bg-deepest)}.grow-input{flex:1;background:var(--bg-sidebar);padding:9px 10px;min-width:0}.browse-icon{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;flex-shrink:0}.type-toggle{display:flex;gap:8px;margin:4px 0 16px}.type-option{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;border-radius:var(--radius);background:var(--bg-deepest);color:var(--text-muted);font-weight:600;border:1px solid transparent}.type-option.active{border-color:var(--blurple);color:var(--text-bright)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:100;animation:fade .15s ease}@keyframes fade{0%{opacity:0}to{opacity:1}}.modal{position:relative;width:min(480px,calc(100vw - 40px));max-height:min(640px,calc(100vh - 60px));overflow-y:auto;background:var(--bg-main);border-radius:10px;padding:24px;box-shadow:0 16px 48px #00000080;animation:rise .2s ease}.modal-sm{width:min(420px,calc(100vw - 40px))}.modal h2{color:var(--text-bright);font-size:20px;margin-bottom:6px}.modal-body-text{color:var(--text-muted);font-size:14px;margin-bottom:16px;line-height:1.45}.modal-close{position:absolute;top:14px;right:14px;color:var(--text-muted)}.modal-close:hover{color:var(--text-bright)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.create-channel{background:var(--bg-deepest);border-radius:var(--radius);padding:12px;margin-bottom:6px}.create-row{display:flex;gap:10px}.create-row .btn{flex-shrink:0}.input-with-icon{flex:1;display:flex;align-items:center;gap:7px;background:var(--bg-sidebar);border-radius:5px;padding:0 10px;color:var(--text-muted)}.input-with-icon input{flex:1;background:transparent;padding:9px 0}.topic-input{width:100%;margin-top:8px;background:var(--bg-sidebar);padding:9px 10px;font-size:14px}.channel-browse{display:flex;flex-direction:column}.browse-row{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:6px;color:var(--text-muted)}.browse-row:hover{background:var(--bg-hover)}.browse-text{flex:1;min-width:0}.browse-name{font-weight:600;color:var(--text-bright)}.browse-sub{font-size:12.5px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.joined-tag{font-size:12px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px}.joined-tag.owner{color:var(--yellow)}.invite-box{display:flex;gap:10px;background:var(--bg-deepest);border-radius:var(--radius);padding:8px}.invite-box input{flex:1;min-width:0;background:transparent;padding:8px 6px}.settings-profile{display:flex;align-items:center;gap:16px;margin:8px 0 18px}.avatar-edit{width:72px;height:72px;padding:0;border-radius:50%;background:transparent;position:relative}.avatar-edit:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;box-shadow:inset 0 0 0 2px #ffffff2e}.avatar-actions{display:flex;flex-wrap:wrap;gap:8px}.settings-section{margin-top:16px;padding-top:14px;border-top:1px solid var(--bg-elevated)}.settings-section-title{color:var(--text-bright);font-size:13px;font-weight:700;margin-bottom:10px}.volume-row{display:grid;grid-template-columns:96px minmax(0,1fr) 48px;align-items:center;gap:10px;margin:10px 0;color:var(--text);font-size:13px}.volume-row input[type=range]{width:100%;accent-color:var(--brand)}.volume-row strong{color:var(--text-bright);font-size:12px;text-align:right}.context-menu{position:fixed;z-index:300;min-width:178px;background:var(--bg-elevated);border:1px solid rgba(0,0,0,.4);border-radius:8px;padding:6px;box-shadow:0 8px 24px #00000080;animation:fade .1s ease}.context-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:5px;font-size:14px;font-weight:500;color:var(--text);text-align:left}.context-item:hover{background:var(--bg-active)}.context-item.danger{color:var(--red)}.context-item.danger:hover{background:var(--red);color:#fff}.toasts{position:fixed;bottom:22px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:200;pointer-events:none}.toast{background:var(--bg-deepest);border:1px solid rgba(255,255,255,.08);color:var(--text-bright);font-size:14px;font-weight:500;padding:10px 18px;border-radius:24px;box-shadow:0 8px 24px #00000073;animation:toast-in .25s ease}.toast-success{border-color:#23a55a80}.toast-error{border-color:#f23f438c}@keyframes toast-in{0%{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.members-backdrop{display:none}@media(max-width:1100px){.members-panel{position:fixed;right:0;top:0;bottom:0;width:240px;z-index:60;box-shadow:-8px 0 24px #00000073;padding-top:14px}.members-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:55;animation:fade .2s ease}}@media(max-width:768px){.nav-shell{position:fixed;left:0;top:0;bottom:0;z-index:80;transform:translate(-105%);transition:transform .22s ease;box-shadow:8px 0 28px #00000080}.nav-shell.open{transform:translate(0)}.nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:70;animation:fade .2s ease}.hamburger{display:inline-flex;margin-right:2px}.view-header{padding:0 10px}.view-title{gap:7px}.view-title .topic{display:none}.friend-tabs{margin-left:8px;gap:4px;overflow-x:auto}.view-body{padding:14px 12px}.msg{padding:2px 12px;gap:10px}.msg-grouped{padding-left:62px}.input-area{padding:0 10px}.message-image{max-width:100%;max-height:320px}.voice-tile{width:calc(50% - 5px)}.voice-stage{padding:12px}.voice-room-grid{grid-template-columns:1fr}.voice-room-grid.with-browser{grid-template-rows:minmax(300px,.9fr) minmax(360px,1.1fr)}.voice-room-grid.with-browser .voice-stage{border-right:0;border-bottom:1px solid rgba(0,0,0,.35)}.screen-grid{grid-template-columns:1fr}.voice-ctl{width:42px;height:42px}.modal{padding:18px}.browser-bar .icon-btn:nth-child(3){display:none}.browser-note{display:none}.toasts{width:calc(100vw - 24px)}.toast{text-align:center}}@media(max-width:420px){.voice-tile{width:100%}.friend-row{gap:8px}.add-friend-form{flex-direction:column}}.rail-server-icon{width:100%;height:100%;object-fit:cover;border-radius:inherit}.server-head-id{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.server-head-icon{width:26px;height:26px;border-radius:8px;object-fit:cover;flex-shrink:0}.server-head-icon.letter{display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#fff}.server-head .server-title{flex:1}.browse-icon{overflow:hidden}.browse-icon img{width:100%;height:100%;object-fit:cover}:root{--radius: 9px;--accent: linear-gradient(135deg, #5d6cf5 0%, #7d5cf5 100%);--accent-hover: linear-gradient(135deg, #6b78f7 0%, #8c6df7 100%);--ring: 0 0 0 2px var(--bg-deepest), 0 0 0 4px var(--blurple);--shadow-soft: 0 10px 30px rgba(0, 0, 0, .32)}.main{background:radial-gradient(1100px 560px at 100% -12%,rgba(94,108,245,.07),transparent 62%),var(--bg-main)}.btn{transition:background .15s ease,box-shadow .15s ease,transform .06s ease}.btn:active:not(:disabled){transform:translateY(1px)}.btn-primary{background-image:var(--accent);box-shadow:0 2px 12px #5865f247}.btn-primary:hover:not(:disabled){background-color:transparent;background-image:var(--accent-hover)}.rail-servers{padding:5px 0}.rail-server.active{box-shadow:var(--ring)}.nav-row.active{box-shadow:inset 2px 0 0 var(--blurple)}.field input:focus{box-shadow:0 0 0 2px #5865f273}.modal,.auth-card{box-shadow:var(--shadow-soft)}.auth-logo h1{background:linear-gradient(135deg,#c8ccff,#fff 60%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.auth-download{display:block;text-align:left}.auth-download-head{font-size:12.5px;font-weight:700;color:var(--text-muted);margin-bottom:10px}.dl-choices{display:flex;flex-direction:column;gap:8px}.modal .dl-choices{margin-top:6px}.dl-choice{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:9px;background:#23242b8c;border:1px solid rgba(255,255,255,.07);color:var(--text);text-decoration:none}a.dl-choice{transition:background .13s ease,border-color .13s ease,transform .06s ease}a.dl-choice:hover{background:var(--bg-hover);border-color:var(--blurple);text-decoration:none}a.dl-choice:active{transform:translateY(1px)}.dl-choice.disabled{opacity:.55;cursor:default}.dl-choice-icon{flex-shrink:0;width:28px;display:inline-flex;justify-content:center;color:var(--text-bright)}.dl-choice-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.dl-choice-text strong{font-size:14px;color:var(--text-bright);font-weight:700}.dl-choice-text span{font-size:12px;color:var(--text-muted)}.dl-choice-arrow{color:var(--text-muted);flex-shrink:0}.dl-choice-soon{flex-shrink:0;font-size:11px;font-weight:700;color:var(--text-faint);background:var(--bg-deepest);padding:3px 8px;border-radius:10px}
