:root{color-scheme:dark;--bg:#101013;--panel:#17171c;--panel2:#1e1e24;--line:#2b2b33;--muted:#9999a8;--text:#f5f5f7;--red:#ef3340;--redhover:#ff4a56;--green:#4bdba5;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:transparent;border:0}button:disabled{opacity:.45;cursor:wait}a{color:#ff8f97}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ff8f97;outline-offset:3px}input,textarea,select{color:var(--text);background:#111115;border:1px solid #35353e;border-radius:10px;padding:12px;width:100%}input:focus,textarea:focus{border-color:#ef3340;outline:none}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}svg.ico{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{transition:background .15s,color .15s,transform .15s}button:hover{background:#ffffff09}small,.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--red)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid var(--line);border-radius:9px;background:#25252c;font-weight:650;text-decoration:none;color:white}.btn:hover{background:#303039}.btn.primary{background:var(--red);border-color:var(--red)}.btn.primary:hover{background:var(--redhover)}.btn.danger{background:#ef334014;border-color:#ef334040;color:#ff8e96}.btn.full{width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;color:var(--muted)}.icon-btn:hover{background:#ffffff0d;color:white}.icon-btn.active{background:#ef33401f;color:#ff6e79}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:1px}.brand img{border-radius:12px}.brand .accent{color:var(--red)}.boot{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;letter-spacing:2px}.boot span{letter-spacing:0;color:var(--muted);font-size:13px}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-main{padding:42px max(32px,8vw);display:flex;flex-direction:column;justify-content:space-between;gap:64px}.auth-form{max-width:400px;width:100%;margin:auto}.auth-form h1{font-size:34px;letter-spacing:-1px;margin-bottom:10px}.auth-form p{color:var(--muted);line-height:1.7;margin-bottom:28px}.form-row{display:grid;gap:8px;margin-bottom:18px}.form-row label{font-size:12px;font-weight:650}.form-row small{font-size:11px;line-height:1.6}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:28px;gap:28px}.auth-tabs button{padding:12px 0;color:var(--muted);font-weight:700;border-bottom:2px solid transparent}.auth-tabs button.selected{color:white;border-bottom-color:var(--red)}.auth-visual{position:relative;overflow:hidden;background:radial-gradient(ellipse at 85% 20%,#a3222b88,transparent 52%),linear-gradient(150deg,#301015,#170b10 65%);border-left:1px solid #ef334033;padding:80px 60px;display:flex;flex-direction:column;justify-content:center}.auth-visual:before{content:"P";position:absolute;font-weight:1000;font-size:800px;line-height:1;right:-100px;top:20%;color:#ef334008;transform:rotate(-12deg)}.auth-visual h2{font-size:clamp(50px,5vw,80px);line-height:1.02;letter-spacing:-4px;z-index:1;margin:24px 0}.auth-visual h2 span{color:var(--red)}.auth-visual p{max-width:330px;line-height:1.8;color:#bc9ea4;font-size:15px;z-index:1}.visual-card{z-index:1;margin-top:30px;background:#ffffff06;border:1px solid #ffffff12;padding:18px;border-radius:14px;max-width:340px;display:flex;align-items:center;gap:14px}.visual-card .ico{color:var(--red);width:28px;height:28px}.visual-card small{display:block;margin-top:5px}.footnote{font-size:11px;color:#777785;line-height:1.7}.error{color:#ff9aa2;border:1px solid #ef334050;background:#ef334013;padding:12px;border-radius:9px;font-size:12px;margin-bottom:16px;line-height:1.6}.hidden{display:none!important}.layout{height:100dvh;display:grid;grid-template-columns:76px 252px minmax(280px,1fr);overflow:hidden}.rail{background:#0c0c0f;border-right:1px solid #222228;padding:22px 12px;display:flex;flex-direction:column;align-items:center;gap:14px;overflow-y:auto}.rail-logo{width:48px;height:48px;border-radius:15px;margin-bottom:8px}.rail-line{height:1px;width:30px;background:var(--line);margin:2px}.server-btn{position:relative;flex-shrink:0;width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:#23232a;color:#b3b3c0;font-weight:800;font-size:14px}.server-btn:hover,.server-btn.selected{background:var(--red);color:white}.server-btn.selected:before{content:"";position:absolute;left:-13px;top:12px;height:22px;width:3px;background:white;border-radius:0 4px 4px 0}.server-btn.add{border:1px dashed #45454e;background:transparent;color:var(--muted)}.rail-bottom{margin-top:auto;padding-top:22px}.sidebar{background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.server-head{height:75px;flex-shrink:0;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:8px}.server-head strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.workspace-sub{font-size:10px;color:var(--muted);margin-top:5px;letter-spacing:1px}.side-scroll{padding:18px 12px;overflow-y:auto;flex:1}.side-action{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:7px;color:#acacb8;font-size:13px}.side-action:hover{background:#ffffff08;color:white}.side-action .ico{width:18px;height:18px}.side-action.primary-side{background:#ef334015;color:#ff7781;border:1px solid #ef334022;margin-bottom:12px}.section-title{display:flex;align-items:center;justify-content:space-between;color:#7f7f8c;font-size:10px;letter-spacing:1.3px;font-weight:800;margin:25px 10px 10px}.section-title .icon-btn{width:22px;height:22px}.section-title .ico{width:14px;height:14px}.channel{width:100%;display:flex;align-items:center;text-align:left;gap:10px;padding:10px 12px;margin:3px 0;border-radius:7px;color:#9999a8;font-size:13px;min-height:38px}.channel .ico{width:18px;height:18px;color:#666673}.channel.selected{background:#ef334014;color:#fff;border-left:2px solid var(--red);padding-left:10px}.channel.selected .ico{color:var(--red)}.channel:hover{background:#ffffff08;color:white}.channel-name{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.count{font-size:10px;background:#ffffff0b;border-radius:5px;padding:2px 5px}.voice-mini{padding:2px 10px 6px 40px;font-size:11px;color:#8b8b99;display:flex;gap:5px;flex-wrap:wrap}.user-panel{padding:14px 12px;background:#121216;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;min-height:78px}.avatar{width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:white;font-weight:800;font-size:12px;background:#632631;flex-shrink:0;position:relative}.avatar.sm{width:29px;height:29px;border-radius:9px;font-size:10px}.avatar.lg{width:64px;height:64px;border-radius:20px;font-size:22px}.dot{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:#5a5a67;border:2px solid var(--panel)}.dot.online{background:var(--green)}.dot.busy{background:var(--red)}.dot.away{background:#e9b94f}.user-info{min-width:0;flex:1}.user-info strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info small{font-size:10px;display:block;margin-top:4px}.main{display:flex;flex-direction:column;min-height:0;min-width:0;background:#1b1b21}.topbar{height:75px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;border-bottom:1px solid var(--line);background:#19191f}.top-title{display:flex;align-items:center;gap:12px;min-width:0}.top-title>.ico{color:#6b6b79;width:24px;height:24px}.top-title h1{font-size:15px;margin:0;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-title small{display:block;margin-top:4px;font-size:11px}.top-actions{display:flex;gap:5px;align-items:center}.online-badge{font-size:10px;letter-spacing:.5px;color:#9e9eac;display:flex;align-items:center;gap:6px;margin-right:10px;white-space:nowrap}.online-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--green)}.connection{font-size:11px;text-align:center;padding:8px;background:#8c2935;color:#fff;flex-shrink:0}.content{display:flex;min-height:0;flex:1;position:relative}.chat-area{display:flex;flex-direction:column;min-width:0;flex:1;position:relative}.messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 28px 15px;scrollbar-width:thin;scrollbar-color:#383841 transparent}.welcome{padding:30px 0 20px;margin-bottom:18px;border-bottom:1px solid var(--line)}.welcome-symbol{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#ef334012;color:var(--red);border:1px solid #ef334025;margin-bottom:20px}.welcome-symbol .ico{width:26px;height:26px}.welcome h2{font-size:25px;letter-spacing:-.7px;margin-bottom:10px}.welcome p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:14px;max-width:430px}.welcome-tag{font-size:9px;letter-spacing:1.5px;color:#a4a4b0;border:1px solid #34343d;border-radius:5px;padding:5px 8px;display:inline-block}.day-divider{display:flex;align-items:center;gap:12px;margin:24px 0;color:#777785;font-size:10px;white-space:nowrap}.day-divider:before,.day-divider:after{content:"";height:1px;background:var(--line);flex:1}.message{display:flex;gap:12px;padding:12px 0;position:relative;border-radius:8px;scroll-margin:20px}.message:hover{background:#ffffff02}.message-body{min-width:0;flex:1}.message-meta{display:flex;align-items:center;gap:9px;margin:1px 0 6px}.message-meta strong{font-size:12px}.message-meta time{font-size:10px;color:#737380}.message-meta .edited{font-size:9px;color:#777785}.message-text{font-size:13px;line-height:1.75;color:#ceced8;white-space:pre-wrap;overflow-wrap:anywhere}.message-text a{color:#ff8992}.message-text .mention{background:#ef334022;color:#ff8a94;border-radius:3px;padding:1px 3px}.message-tools{display:flex;gap:2px;position:absolute;right:0;top:-12px;background:#25252d;border:1px solid #393943;border-radius:8px;opacity:0;z-index:2;padding:2px}.message:hover .message-tools,.message:focus-within .message-tools{opacity:1}.message-tools .icon-btn{width:27px;height:27px}.message-tools .ico{width:15px;height:15px}.reply-preview{font-size:10px;color:#90909d;border-left:2px solid #5c3941;padding:5px 9px;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.reaction-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.reaction{font-size:11px;border:1px solid #3d3d47;border-radius:6px;padding:3px 7px;background:#25252c}.reaction.mine{background:#ef334018;border-color:#ef334065}.attachment{display:flex;gap:10px;align-items:center;margin-top:8px;padding:12px;background:#222229;border:1px solid #373740;border-radius:9px;max-width:360px;color:#dadade;text-decoration:none;font-size:12px}.attachment small{font-size:10px;display:block;margin-top:4px}.attachment .ico{color:#ff737e}.pinned-label{font-size:9px;color:#e9a7ac;margin-bottom:5px;display:flex;align-items:center;gap:4px}.pinned-label .ico{width:12px;height:12px}.composer-wrap{padding:0 28px 15px;flex-shrink:0}.composer{display:flex;align-items:flex-end;gap:10px;background:#26262e;border:1px solid #373740;border-radius:12px;padding:10px 12px;box-shadow:0 3px 20px #0000000a}.composer textarea{background:transparent;border:0;resize:none;padding:8px 2px;max-height:160px;min-height:35px;height:35px;line-height:1.5;outline:none;font-size:13px}.composer:focus-within{border-color:#66616b}.send{width:36px;height:36px;border-radius:9px;background:var(--red);display:grid;place-items:center;flex-shrink:0}.send:hover{background:var(--redhover)}.composer-note{display:flex;justify-content:space-between;padding:9px 2px 0;font-size:9px;color:#686876;gap:12px}.composer-note strong{font-weight:600;color:#888894}.draft-extra{padding:8px 12px;background:#24212a;border:1px solid #40313a;border-radius:9px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}.typing{height:22px;padding:3px 2px;font-size:10px;color:#a4a4b0}.members{width:215px;background:#17171d;border-left:1px solid var(--line);padding:24px 16px;overflow-y:auto;flex-shrink:0}.members-heading{font-size:10px;letter-spacing:1.5px;color:#7b7b88;margin-bottom:16px;font-weight:750;display:flex;justify-content:space-between}.member{display:flex;align-items:center;gap:10px;padding:9px 4px;width:100%;text-align:left;border-radius:8px}.member strong{font-size:11px;display:block}.member small{font-size:9px;display:block;margin-top:4px}.role-badge{font-size:8px;background:#ef334018;color:#f67982;padding:3px 5px;border-radius:4px;letter-spacing:.5px}.members-note{padding:16px 2px;border-top:1px solid var(--line);margin-top:28px;font-size:10px;line-height:1.7;color:#646471}.members-note strong{color:#858591;display:block;margin-bottom:4px}.searchbar{padding:12px 28px;border-bottom:1px solid var(--line);display:flex;gap:8px;flex-shrink:0}.searchbar input{padding:9px 12px;font-size:12px}.search-label{font-size:11px;color:#ccc;padding:10px 28px;background:#28222b}.empty{padding:50px 20px;color:#8d8d9c;text-align:center;line-height:1.8;font-size:13px}.empty .ico{width:36px;height:36px;margin-bottom:10px;color:#5a5a68}.load-more{display:block;margin:0 auto 15px;font-size:11px;color:#a6a6b3;padding:8px 14px;border:1px solid #383841;border-radius:6px}.menu-toggle{display:none}.call-dock{border-top:1px solid #ef334035;background:linear-gradient(90deg,#28191f,#19191f);padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.call-dock strong{display:block;font-size:11px}.call-dock small{display:block;font-size:10px;margin-top:5px;color:#a9989d}.call-buttons{display:flex;gap:5px}.call-buttons .icon-btn{width:36px;height:36px;background:#ffffff08;color:#e2dce0}.call-buttons .icon-btn.off{background:#ef334033;color:#ff7a85}.call-buttons .hangup{background:var(--red);color:white}.call-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:28px}.call-intro{text-align:center;margin:auto;padding:50px 20px;max-width:480px}.call-intro>.ico{width:42px;height:42px;color:var(--red);margin-bottom:25px}.call-intro h2{font-size:28px;letter-spacing:-.8px;margin-bottom:12px}.call-intro p{color:var(--muted);line-height:1.8;font-size:12px}.call-intro .btn{margin-top:15px}.call-tip{padding:15px;border:1px solid #35353e;border-radius:10px;margin:28px 0;color:#858593;font-size:11px;line-height:1.7}.call-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-content:start}.video-tile{position:relative;aspect-ratio:16/11;background:radial-gradient(ellipse at top,#30303a,#202026);border:1px solid #3a3a44;border-radius:14px;overflow:hidden;display:grid;place-items:center;min-width:0}.video-tile .avatar{position:absolute;pointer-events:none}.video-tile video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;background:transparent}.video-tile.screen{grid-column:1/-1;aspect-ratio:16/9;max-height:65vh}.video-tile.screen video{object-fit:contain;background:#111}.video-label{position:absolute;bottom:10px;left:12px;background:#101013bb;padding:5px 9px;border-radius:6px;font-size:10px;z-index:2}.video-status{position:absolute;top:10px;right:10px;color:#a8a8b5;background:#16161cc9;padding:4px 7px;border-radius:5px;font-size:9px;z-index:2}.call-quality{font-size:11px;color:#92929f;margin-top:15px;line-height:1.7}.volume-control{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:10px;color:var(--muted)}.volume-control input{padding:0;width:100px;accent-color:var(--red)}#media-host{display:none}.modal-backdrop{display:none}dialog{background:#1c1c23;color:var(--text);border:1px solid #3a3a45;border-radius:16px;padding:28px;width:min(520px,calc(100% - 28px));max-height:85dvh;box-shadow:0 20px 120px #0009}dialog::backdrop{background:#050507bd;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.dialog-head h2{font-size:20px;letter-spacing:-.5px;margin:0}.dialog-head .icon-btn{margin:-5px}.dialog-copy{color:#9999a8;font-size:12px;line-height:1.8;margin-bottom:22px}.dialog-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}.dialog-section{margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.dialog-section h3{font-size:12px;margin-bottom:12px}.dialog-list{display:flex;flex-direction:column;gap:10px}.dialog-item{padding:14px;background:#24242d;border:1px solid #34343f;border-radius:10px}.dialog-item h3{font-size:14px;margin-bottom:7px}.dialog-item p{font-size:12px;line-height:1.7;color:#b5b5c2;white-space:pre-wrap;overflow-wrap:anywhere}.dialog-item small{font-size:10px;line-height:1.6}.dialog-item .btn{font-size:11px;margin-top:10px;padding:7px 12px}.poll-option{display:flex;gap:10px;align-items:center;justify-content:space-between;width:100%;padding:11px 12px;margin-top:7px;border:1px solid #40404b;border-radius:7px;background:linear-gradient(90deg,#ef334020 var(--percent,0%),transparent var(--percent,0%));text-align:left;font-size:12px}.poll-option.mine{border-color:#ef3340}.invite-code{font:12px ui-monospace,monospace;background:#111115;border:1px solid #41414e;padding:15px;border-radius:9px;overflow-wrap:anywhere;user-select:all}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-row{display:flex;align-items:center;gap:9px;font-size:12px;margin-bottom:16px}.check-row input{width:auto;accent-color:var(--red)}.member-profile{text-align:center;padding:10px}.member-profile h3{margin:15px 0 7px}.member-profile p{font-size:12px;color:var(--muted)}.member-profile .avatar{width:70px;height:70px;font-size:24px}.member-profile .btn{margin:5px}.warning-copy{color:#c6a2a6;font-size:11px;line-height:1.7;background:#ef33400b;border:1px solid #ef334020;padding:12px;border-radius:8px;margin:15px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#f3f3f5;color:#17171c;font-size:12px;padding:13px 20px;border-radius:10px;box-shadow:0 10px 45px #0008;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 30px);text-align:center;line-height:1.6}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-shade{display:none}.install-banner{border:1px solid #ef334028;background:#ef33400b;border-radius:9px;margin:20px 3px 5px;padding:12px;color:#bda2a6;font-size:10px;line-height:1.7}.install-banner button{font-weight:700;color:#ff8790;margin-top:6px;display:flex;gap:6px;align-items:center;padding:3px 0}.install-banner .ico{width:13px;height:13px}.storage-info{font-size:10px;color:#8f8f9d;line-height:1.7}.status-chip{font-size:10px;padding:5px 8px;border:1px solid #41414b;border-radius:5px;color:#a8a8b5}.new-marker{font-size:9px;background:#ef3340;padding:2px 5px;border-radius:5px;color:white}.retry-row{display:flex;gap:8px;justify-content:center;padding:20px}.mobile-members-btn{display:none}
@media(min-width:1500px){.layout{grid-template-columns:84px 275px minmax(280px,1fr)}.members{width:250px}.messages{padding-left:40px;padding-right:40px}.composer-wrap{padding-left:40px;padding-right:40px}}
@media(max-width:1100px){.members{display:none}.members.visible{display:block;position:absolute;right:0;top:0;bottom:0;z-index:5;box-shadow:-20px 0 50px #0005}.mobile-members-btn{display:inline-flex}.online-badge{display:none}.topbar{padding:0 20px}.messages{padding:15px 20px}.composer-wrap{padding:0 20px 12px}}
@media(max-width:760px){.auth{grid-template-columns:1fr}.auth-main{padding:28px 26px;gap:45px;min-height:100dvh}.auth-visual{display:none}.auth-form h1{font-size:30px}.layout{display:flex}.rail{position:fixed;left:-76px;top:0;bottom:0;width:76px;z-index:21;transition:left .2s}.sidebar{position:fixed;left:-252px;top:0;bottom:0;width:252px;z-index:20;transition:left .2s}.layout.menu-open .rail{left:0}.layout.menu-open .sidebar{left:76px}.mobile-shade{display:block;position:fixed;inset:0;background:#0009;z-index:19;opacity:0;pointer-events:none;transition:opacity .2s}.layout.menu-open .mobile-shade{opacity:1;pointer-events:auto}.main{width:100%;height:100dvh}.topbar{height:64px;padding:0 12px;gap:6px}.top-title{gap:6px;flex:1}.top-title>.ico{display:none}.top-title h1{font-size:14px;max-width:45vw}.top-title small{font-size:9px}.menu-toggle{display:inline-flex;flex-shrink:0}.top-actions{gap:0}.top-actions .icon-btn{width:31px;height:34px}.top-actions .ico{width:17px;height:17px}.top-actions .desktop-only{display:none}.messages{padding:12px 16px}.welcome{padding:25px 0 18px}.welcome h2{font-size:23px}.composer-wrap{padding:0 10px max(9px,env(safe-area-inset-bottom))}.composer{padding:8px;gap:5px}.composer textarea{font-size:16px}.composer-note{font-size:8px}.composer-note span:last-child{display:none}.message{gap:10px;padding:12px 0}.message-tools{position:static;opacity:1;margin-top:5px;background:transparent;border:0;width:max-content;padding:0;gap:6px}.message-tools .icon-btn{height:22px;width:23px;color:#656573}.message-tools .ico{width:13px;height:13px}.message-text{font-size:13px}.message-meta strong{font-size:12px}.message-meta{gap:6px;flex-wrap:wrap}.call-dock{padding:10px 12px}.call-buttons{gap:3px}.call-buttons .icon-btn{width:32px;height:34px}.call-buttons .ico{width:17px;height:17px}.call-dock strong{font-size:10px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-dock small{font-size:8px}.call-stage{padding:16px}.call-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.video-tile{aspect-ratio:1}.video-tile .avatar{width:44px;height:44px;font-size:16px}.video-tile.screen{aspect-ratio:16/10}.video-label{font-size:9px;left:6px;bottom:6px;padding:4px 6px}.video-status{font-size:8px;right:6px;top:6px}.searchbar{padding:10px 12px}.search-label{padding:10px 16px}.dialog-actions .btn{flex:1}.members{width:230px}.settings-grid{grid-template-columns:1fr}.auth-main>.footnote{padding-bottom:env(safe-area-inset-bottom)}.composer .icon-btn{width:29px}.message .avatar{width:32px;height:32px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.auth-helmet{width:180px;height:180px;object-fit:contain;margin-bottom:30px;position:relative;z-index:1;border-radius:25px;mix-blend-mode:screen}.auth-visual h2{font-size:clamp(44px,4.5vw,70px)}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-avatar-row{display:flex;gap:10px;align-items:center;margin-bottom:24px}.profile-avatar-row .btn{font-size:11px;padding:8px 10px}.device-preview{width:100%;aspect-ratio:16/9;background:#111;border:1px solid #393943;border-radius:12px;object-fit:cover;margin:12px 0}.device-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;font-size:11px;color:#a3a3b0}.device-status .ico{width:15px;height:15px}.meter{height:7px;background:#34343e;border-radius:8px;overflow:hidden;margin:12px 0}.meter span{display:block;height:100%;background:linear-gradient(90deg,#4bdba5,#ef3340);width:0;transition:width .08s}.range-row{display:flex;align-items:center;gap:12px;margin-bottom:15px;color:#aaaaba;font-size:11px}.range-row input{padding:0;accent-color:var(--red)}
.profile-cover,.profile-cover-editor{position:relative;height:155px;border-radius:12px;background:radial-gradient(ellipse at top right,#ef33407a,transparent 65%),linear-gradient(135deg,#3d1720,#17171c);overflow:hidden;border:1px solid #ef334030}.profile-cover img,.profile-cover-editor img{width:100%;height:100%;object-fit:cover}.profile-cover-editor{height:145px;margin-bottom:18px}.profile-cover-editor .btn{position:absolute;right:12px;bottom:12px;font-size:10px;background:#111c;border-color:#fff3;backdrop-filter:blur(4px)}.member-profile>.avatar{margin-top:-48px;border:5px solid #1c1c23;box-sizing:content-box}.member-profile h3{font-size:22px;margin-top:12px}.profile-progress{display:flex;justify-content:space-between;gap:10px;background:#ef33400b;border:1px solid #ef334021;border-radius:8px;padding:11px;margin-bottom:20px;font-size:11px}.profile-progress strong{color:#ff8a94}.profile-since{font-size:10px!important;color:#79798a!important}
.friend-card{display:flex;align-items:center;gap:10px;background:#25252d;border:1px solid #34343d;border-radius:10px;padding:12px}.friend-card>div:first-of-type{flex:1;min-width:0}.friend-card strong{font-size:12px;display:block}.friend-card small{font-size:10px;display:block;margin-top:5px}.friend-card .icon-btn{width:28px;height:30px}

.channel-category{margin-top:16px}.channel-category summary{padding:9px 6px;color:#aaaab7;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:1px;cursor:pointer;overflow-wrap:anywhere}.manager-row{display:flex;width:100%;align-items:center;justify-content:flex-start;gap:10px;margin:7px 0;text-align:left}.manager-row>span:last-child{margin-left:auto;font-size:11px;color:var(--muted)}.permission-add{display:flex;gap:8px;margin:16px 0}.permission-add select{min-width:0;flex:1}.permission-row{padding:14px;background:#111116;border:1px solid #30303a;border-radius:10px;margin:10px 0}.permission-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.permission-grid label{font-size:11px;color:#b8b8c5;display:grid;gap:6px}.permission-grid select,.permission-add select{background:#1a1a22;border:1px solid #363641;border-radius:7px;padding:9px;color:white;width:100%}.group-choices{max-height:300px;overflow:auto}.direct-call-stage{padding:18px;background:#101014;max-height:48vh;overflow:auto;border-bottom:1px solid #30303a;flex-shrink:0}.direct-call-stage[hidden]{display:none}.direct-call-stage .call-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.direct-call-stage .video-tile{min-height:120px}@media(max-width:600px){.permission-grid{grid-template-columns:1fr}.permission-add{flex-wrap:wrap}.manager-row{flex-wrap:wrap}}
.custom-role-badge{font-size:9px;display:inline-block;max-width:100%;white-space:normal;padding:2px 5px;border:1px solid currentColor;border-radius:5px;margin:3px 2px 3px 0}.moderation-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.moderation-controls select{background:#191920;color:white;border:1px solid #363641;border-radius:6px;padding:8px;max-width:100%}
.forum-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;padding:22px 18px}.forum-head h2{margin:10px 0}.forum-head p{font-size:13px;color:#aaaab7;max-width:600px;line-height:1.6}.forum-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;padding:8px 18px 30px}.forum-post{padding:20px;border:1px solid #34343e;background:#1c1c24;border-radius:12px;text-align:left;color:#f5f5f7;cursor:pointer;overflow-wrap:anywhere}.forum-post:hover{border-color:#ef3340;background:#24242e}.forum-post small{color:#a4a4b2;font-size:10px}.forum-post h3{margin:14px 0;font-size:18px}.forum-post p{color:#aaaab7;font-size:12px;line-height:1.6;max-height:80px;overflow:hidden}.forum-post>span{display:flex;align-items:center;gap:10px;color:#ff6570;margin-top:20px;font-size:11px}@media(max-width:600px){.forum-head{flex-wrap:wrap}.forum-posts{grid-template-columns:1fr}}
.server-icon{width:100%;height:100%;object-fit:cover;border-radius:inherit}.server-image-edit{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.server-image-edit img{width:64px;height:64px;object-fit:cover;border-radius:18px}.community-rules{font-size:14px;line-height:1.8;color:#dedee8;overflow-wrap:anywhere}
.message-entry,.message-leading{display:contents}.save-resources *,.save-resources *::before,.save-resources *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.save-resources .auth-visual{filter:none}.save-resources .auth-helmet{filter:none}
.inbox-button{position:relative;display:flex;align-items:center}.inbox-count{position:absolute;right:-3px;top:-3px;background:#ef3340;color:white;border:2px solid #17171c;border-radius:12px;padding:1px 5px;font-size:9px;font-weight:800;pointer-events:none}.inbox-item{padding:18px;border:1px solid #30303c;border-radius:11px;background:#17171e;margin:12px 0}.inbox-item.unread{border-left:3px solid #ef3340;background:#21181e}.inbox-meta{display:flex;justify-content:space-between;gap:12px;color:#a4a4b5;font-size:9px;margin-bottom:12px}.inbox-item>p{white-space:pre-wrap;overflow-wrap:anywhere;color:#c6c6d0;margin-top:10px;font-size:13px;line-height:1.6}.moderation-reason{color:#ff8790!important;font-weight:700;margin:12px 0 6px}.message-highlight{outline:1px solid #ef3340;background:#ef33401a!important}#inbox-count.hidden{display:none}

/* Voice participants stay compact; only live camera/screen tracks get a video tile. */
.call-grid{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),320px));align-items:start;justify-content:start}.voice-participant{position:relative;display:flex;align-items:center;gap:12px;min-height:76px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);min-width:0}.voice-participant .avatar.lg{width:42px;height:42px;flex-shrink:0;font-size:16px}.voice-participant .video-label{position:static;background:none;padding:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;flex:1}.voice-participant .video-status{position:static;background:none;padding:0;color:var(--muted);font-size:10px;max-width:90px}.call-grid .video-tile{max-height:300px;aspect-ratio:16/10}.call-grid .video-tile.screen{grid-column:1/-1;width:100%;max-width:1000px;max-height:65vh;aspect-ratio:16/9}.direct-call-stage .call-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),320px))}@media(max-width:600px){.call-grid{grid-template-columns:1fr}.voice-participant{min-height:68px;padding:10px}.direct-call-stage .call-grid{grid-template-columns:1fr}}

/* One focused stream plus a bounded thumbnail strip: the call never grows vertically. */
.call-stage{overflow:hidden;padding:16px;min-height:0}.call-stage>#voice-stage{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;gap:10px}#voice-stage>div:first-child{flex-shrink:0;margin-bottom:0!important}#voice-stage .call-grid{min-height:0;flex:1;gap:10px;overflow:hidden}#voice-stage .call-grid.has-focus{display:grid;grid-template-columns:repeat(var(--thumbs,1),minmax(0,1fr));grid-template-rows:minmax(0,1fr) var(--strip-height,100px);align-content:stretch}#voice-stage .call-grid.has-focus>.video-tile,#voice-stage .call-grid.has-focus>.voice-participant{grid-row:2;max-width:none;max-height:none;width:100%;height:100%;min-height:0;aspect-ratio:auto;grid-column:auto;border-radius:10px}#voice-stage .call-grid.has-focus>.focused{grid-row:1;grid-column:1/-1!important;min-height:0;max-height:none;aspect-ratio:auto;background:#09090c;border-color:#ef3340}#voice-stage .call-grid.has-focus>.focused video{object-fit:contain}#voice-stage .call-grid>[hidden]{display:none!important}.call-grid [role=button]{cursor:pointer}.call-grid [role=button]:focus-visible{outline:2px solid #ff8f97;outline-offset:-3px}.call-grid .video-tile video{pointer-events:none}.call-grid .video-label,.call-grid .video-status{pointer-events:none}.call-grid.has-focus .voice-participant{flex-direction:column;justify-content:center;gap:3px;padding:5px}.call-grid.has-focus .voice-participant .avatar{width:30px;height:30px}.call-grid.has-focus .voice-participant .video-label{font-size:11px;flex:0}.call-grid.has-focus .voice-participant .video-status{font-size:8px}.call-quality{font-size:10px;line-height:1.4;max-height:2.8em;overflow:hidden;flex-shrink:0;margin:0}.volume-control{flex-shrink:0}.call-pages{display:flex;align-items:center;justify-content:center;gap:12px;font-size:11px;flex-shrink:0}.call-pages[hidden]{display:none}.call-pages .btn{padding:4px 10px}.call-grid.voice-only{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),320px));grid-auto-rows:minmax(0,80px);align-content:start}.direct-call-stage{max-height:60vh}.direct-call-stage .call-grid .video-tile{max-height:220px}@media(max-width:600px){.call-stage{padding:8px}#voice-stage .call-grid{gap:5px}.call-grid.has-focus .video-label{font-size:8px;padding:3px;left:3px;bottom:3px}.call-grid.has-focus .video-status{display:none}.call-grid.has-focus .focused .video-status{display:block}.call-grid.has-focus .voice-participant .avatar{width:24px;height:24px}.call-grid.has-focus .voice-participant .video-label{font-size:8px}.call-grid.voice-only{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,66px)}}

/* Channel editor: bounded body, persistent actions, clear access and destructive sections. */
dialog.channel-editor-dialog{width:min(740px,calc(100% - 28px));padding:0;max-height:90dvh;overflow:hidden}dialog.channel-editor-dialog[open]{display:flex;flex-direction:column}.channel-editor-dialog .dialog-head{padding:22px 24px 4px;margin:0;flex-shrink:0}.channel-editor-dialog .dialog-head h2{font-size:21px;margin:0}.channel-editor-subtitle{margin:0;padding:0 24px 18px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.channel-editor-tabs{display:flex;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);flex-shrink:0}.channel-editor-tabs button{padding:12px 0;border-bottom:2px solid transparent;font-size:13px;font-weight:700;color:var(--muted)}.channel-editor-tabs button[aria-selected=true]{border-color:var(--red);color:var(--text)}.channel-editor-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;margin:0}.channel-editor-body{padding:22px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.channel-editor-panel[hidden]{display:none}.channel-editor-section{margin-bottom:22px}.channel-editor-section h3{font-size:14px;margin:0 0 8px}.channel-editor-section .footnote{margin:0 0 14px}.channel-editor-section .form-row{margin-bottom:14px}.channel-location-grid{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px}.channel-slowmode{max-width:320px}.channel-editor-footer{padding:16px 24px;border-top:1px solid var(--line);background:#18181f;flex-shrink:0}.channel-editor-footer .dialog-actions{margin:0;flex-wrap:nowrap}.channel-option{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer}.channel-option input{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--red);padding:0}.channel-option strong{display:block;font-size:13px}.channel-option small{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:var(--muted)}.channel-editor-danger{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px;border:1px solid #ef334030;background:#ef334007;border-radius:12px;margin-top:10px}.channel-editor-danger h3{font-size:13px;color:#ff999f;margin:0 0 5px}.channel-editor-danger p{color:var(--muted);font-size:11px;line-height:1.5;margin:0;max-width:360px}.channel-editor-danger .btn{white-space:nowrap;font-size:12px;padding:9px 12px}.channel-editor-panel .dialog-section{margin-top:8px;padding-top:16px}.channel-editor-panel .permission-add{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.channel-editor-panel .permission-add .btn{white-space:nowrap}.channel-editor-dialog input,.channel-editor-dialog select,.channel-editor-dialog textarea{font-size:13px}@media(max-width:600px){.channel-editor-dialog .dialog-head{padding:18px 16px 4px}.channel-editor-subtitle{padding:0 16px 12px}.channel-editor-tabs{padding:0 16px;gap:16px}.channel-editor-body{padding:18px 16px}.channel-editor-footer{padding:12px 16px}.channel-location-grid{grid-template-columns:minmax(0,1fr) 100px;gap:10px}.channel-editor-danger{align-items:flex-start;flex-direction:column;gap:12px}.channel-editor-panel .permission-add{grid-template-columns:1fr}.channel-editor-footer .btn{flex:1}}

.profile-editor-dialog .profile-editor-body{padding:20px 24px}.profile-editor-dialog .profile-panel[hidden],.profile-editor-dialog .dialog-actions[hidden]{display:none!important}.profile-editor-dialog .profile-panel{margin:0;border:0;padding:0}.profile-editor-dialog .profile-panel>h3{font-size:15px;margin:0 0 18px}.profile-editor-dialog .profile-images>h3{margin-bottom:14px}.profile-editor-dialog .profile-cover-editor{height:148px;margin-bottom:18px}.profile-editor-dialog .profile-banner-actions{position:absolute;right:12px;bottom:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.profile-editor-dialog .profile-banner-actions label{position:static!important;inset:auto}.profile-editor-dialog .profile-banner-actions .btn{font-size:11px;padding:8px 10px;margin:0}.profile-editor-dialog .profile-avatar-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.profile-editor-dialog .profile-avatar-row .btn{font-size:12px;padding:10px 12px}.profile-editor-dialog .profile-avatar-row .avatar{flex-shrink:0}.profile-editor-dialog .profile-progress{margin:0;padding:10px 12px;font-size:11px}.profile-editor-dialog .profile-images{padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:22px}.profile-editor-dialog .settings-grid{align-items:start;gap:16px}.profile-editor-dialog .settings-grid .form-row{margin:0}.profile-editor-dialog .settings-grid select,.profile-editor-dialog .profile-color-input{height:44px;min-height:44px;margin:0}.profile-editor-dialog .profile-color-input{width:100%;padding:6px 9px;cursor:pointer}.profile-editor-dialog .form-row label{display:block;min-height:18px;margin:0 0 8px}.profile-editor-dialog .profile-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.profile-editor-dialog .profile-action-grid .btn{width:100%;min-height:48px;margin:0;white-space:normal;font-size:12px;padding:12px;justify-content:flex-start}.profile-editor-dialog .profile-action-grid .ico{width:19px;height:19px}.profile-editor-dialog .check-row{display:flex;align-items:flex-start;gap:12px;line-height:1.6;padding:14px 0;margin:0;border-bottom:1px solid var(--line)}.profile-editor-dialog .check-row input{margin:3px 0 0;width:16px;height:16px;flex:0 0 16px}.profile-editor-dialog .profile-panel>.footnote{line-height:1.7;margin:12px 0}.profile-editor-dialog .channel-editor-footer .dialog-actions{justify-content:flex-end}@media(max-width:600px){.profile-editor-dialog .profile-editor-body{padding:18px 16px}.profile-editor-dialog .profile-action-grid{grid-template-columns:1fr}.profile-editor-dialog .channel-editor-tabs{gap:14px}.profile-editor-dialog .channel-editor-tabs button{font-size:12px}.profile-editor-dialog .profile-cover-editor{height:132px}.profile-editor-dialog .profile-banner-actions{right:8px;bottom:8px;gap:6px}.profile-editor-dialog .profile-banner-actions .btn{font-size:10px;padding:7px 8px}}

.profile-editor-dialog .profile-banner-actions .btn{position:static!important;right:auto;bottom:auto;inset:auto;flex:0 0 auto}.profile-editor-dialog .profile-banner-actions{max-width:calc(100% - 24px)}

#dm-alerts{position:fixed;right:20px;bottom:86px;width:min(350px,calc(100vw - 32px));display:grid;gap:10px;z-index:100;pointer-events:none}.dm-alert{display:flex;align-items:flex-start;gap:6px;background:#22222c;border:1px solid #ef334065;box-shadow:0 8px 28px #0006;border-radius:12px;padding:12px;pointer-events:auto}.dm-alert-open{display:grid;gap:6px;min-width:0;flex:1;text-align:left}.dm-alert-open small{font-size:9px;letter-spacing:1px;color:#ff8791}.dm-alert-open strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-alert-open span{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.dm-alert-close{font-size:22px;color:var(--muted);width:26px;height:26px;flex-shrink:0}.notification-settings .check-row{display:flex;gap:12px;align-items:center;padding:10px 0}.notification-settings .check-row input{width:16px;height:16px;flex:0 0 16px}.notification-settings .footnote{margin-top:14px;line-height:1.7}

.channel-row{display:flex;align-items:center;gap:3px;min-width:0}.channel-row>.channel{flex:1;min-width:0;width:auto}.channel-row .channel-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-row>.channel-edit{width:28px;height:32px;flex:0 0 28px;color:#858595}.channel-row>.channel-edit .ico{width:15px;height:15px}.channel-row:hover>.channel-edit,.channel-row:focus-within>.channel-edit{color:#ff8791}.channel-category summary{display:flex;align-items:center;justify-content:space-between;gap:8px}.channel-category summary>span{min-width:0;overflow-wrap:anywhere}.category-edit{width:26px;height:26px;flex-shrink:0}.category-edit .ico{width:14px;height:14px}#server-identity .server-image-edit{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}#server-identity .server-image-edit img{width:64px;height:64px;object-fit:cover;border-radius:14px;flex-shrink:0}

/* Uploaded server artwork fills the button; selection stays in the side marker. */
.server-btn.has-image{padding:0;background:#17171c;isolation:isolate}.server-btn.has-image:hover,.server-btn.has-image.selected{background:#17171c}.server-btn.has-image>.server-icon{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.server-btn.has-image:hover>.server-icon{filter:brightness(1.08)}

#voice-stage .call-grid.solo-camera{grid-template-columns:minmax(0,320px);grid-auto-rows:auto;align-content:start}#voice-stage .call-grid.solo-camera>.video-tile{width:100%;height:auto;min-height:0;max-height:200px;aspect-ratio:16/10}

.members-heading{display:flex;align-items:center;gap:8px}.members-heading>.icon-btn{margin-left:auto;width:26px;height:26px}.members-heading>.icon-btn .ico{width:15px;height:15px}.member-group{margin-top:20px}.member-group h3{display:flex;align-items:center;gap:7px;margin:0 0 9px;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.member-group h3 span{font-weight:400}.member-group[data-member-group=developer] h3{color:#ff8791}.member-group .member{width:100%;min-width:0}.member-group .member>span{min-width:0;display:grid;gap:4px;text-align:left}.member-group .member strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-role-list{display:flex;flex-wrap:wrap;gap:4px}.member-role-list:empty{display:none}.member-group[data-member-group=offline] .member{opacity:.65}.role-manager-list{display:grid;gap:8px}.role-manager-list .manager-row{margin:0;min-height:48px}

#modal .check-row:has([data-role-user]){display:grid;grid-template-columns:32px 18px minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;margin:8px 0;background:#15151b;border:1px solid var(--line);border-radius:9px;min-height:54px}#modal [data-role-user]{margin:0;width:16px;height:16px}

.server-home{padding:28px;overflow-y:auto}.server-home-content{width:100%;max-width:1040px;margin:0 auto;display:grid;gap:24px}.server-home-hero{border:1px solid #74303b;border-radius:14px;padding:32px;background:radial-gradient(ellipse at 100% 0,#8e202c66,transparent 70%),#21151b}.server-home-identity{display:flex;align-items:center;gap:16px;margin:14px 0}.server-home-identity h2{font-size:clamp(24px,3vw,36px);margin:0;overflow-wrap:anywhere}.server-home-icon{width:64px;height:64px;object-fit:cover;border-radius:18px;flex-shrink:0}.server-home-hero p{color:#d1b7bc;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:22px;max-width:650px}.server-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.server-home-section-head h3{font-size:16px;margin:0}.server-home-section-head>span{font-size:12px;color:var(--muted)}.server-home-room{display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-radius:11px;padding:18px;background:var(--panel2);margin-top:10px}.server-home-room>.ico{color:#ff8791;flex-shrink:0}.server-home-room>div{flex:1;min-width:0}.server-home-room strong{overflow-wrap:anywhere}.server-home-room small{display:block;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}.server-home-room .btn{flex-shrink:0}.server-home-announcement{border:1px solid var(--line);background:var(--panel2);border-radius:12px;padding:24px}.server-home-announcement h3{font-size:16px}.server-home-announcement p{line-height:1.7;color:#b0b0be;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}.server-home-announcement .ico{color:var(--muted)}@media(max-width:760px){.server-home{padding:16px}.server-home-hero{padding:22px}.server-home-content{gap:18px}.server-home-room{flex-wrap:wrap;padding:14px}.server-home-room .btn{max-width:100%;white-space:normal}.server-home-section-head{flex-wrap:wrap}.server-home-icon{width:48px;height:48px}}

.role-editor-section{padding:18px 0;border-bottom:1px solid var(--line)}.role-editor-section:first-child{padding-top:0}.role-editor-section h3{font-size:14px;margin:0 0 16px}.role-permission-options{display:grid;gap:10px}.role-permission-options .channel-option{margin:0;padding:12px;border:1px solid var(--line);border-radius:9px}.role-permission-options input{width:16px;height:16px;flex-shrink:0}.role-permission-options strong{font-size:12px;font-weight:500}

.sidebar{position:relative}.server-head{height:auto;min-height:86px;padding:14px 16px;display:grid;gap:12px}.server-head>div:first-child{min-width:0}.server-head strong{display:block}.sidebar-head-actions{display:flex;align-items:center;gap:10px;justify-content:space-between}.sidebar-menu-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#23232b;border-radius:7px;padding:6px 10px;font-size:12px;color:#d6d6df}.sidebar-menu-toggle .ico{width:15px;height:15px}.sidebar-menu-toggle[aria-expanded=true]{border-color:#ef334066;color:#ff8791}.friends-shortcut{position:relative;width:32px;height:30px}.friend-request-count{position:absolute;right:-4px;top:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--red);color:white;font-size:10px;font-weight:700;display:grid;place-items:center;border:2px solid var(--panel)}.friend-request-count[hidden]{display:none}.sidebar-dropdown{position:absolute;z-index:30;left:12px;right:12px;top:110px;padding:8px;background:#222229;border:1px solid #393943;border-radius:10px;box-shadow:0 12px 32px #0007}.sidebar-dropdown[hidden]{display:none}.sidebar-dropdown>button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:11px 10px;border-radius:6px;font-size:12px}.sidebar-dropdown>button:hover{background:#ef33401a;color:#ff8791}.sidebar-dropdown .ico{width:17px;height:17px}.sidebar-dropdown-label{font-size:9px;color:var(--muted);letter-spacing:1px;padding:7px 10px}.sidebar-dropdown-separator{height:1px;background:var(--line);margin:6px}.side-scroll>.section-title:first-child{margin-top:5px}
