:root{
  color-scheme:dark;--bg:#313338;--sidebar:#2b2d31;--rail:#1e1f22;--panel:#232428;--text:#f2f3f5;--muted:#b5bac1;--faint:#949ba4;--brand:#5865f2;--hover:#35373c;--selected:#404249;--green:#23a55a;--yellow:#f0b232;--red:#f23f43;--line:#3f4147;--header:48px;--userbar:52px
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;background:var(--rail);font-family:"gg sans","Noto Sans","Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--text);font-size:16px}
body{padding:0}
button,input{font:inherit}
button{color:inherit}
.hidden{display:none!important}
.password-gate{display:none;position:fixed;inset:0;z-index:100;background:#1e1f22;place-items:center;padding:24px}.site-locked .password-gate{display:grid}.site-locked .browser-frame,.site-locked .profile-popover,.site-locked .media-lightbox,.site-locked .quick-switcher{display:none!important}.password-card{width:min(100%,420px);padding:32px;border-radius:8px;background:#2b2d31;box-shadow:0 12px 36px rgba(0,0,0,.38)}.password-logo{width:64px;height:64px;margin:0 auto 18px;border-radius:20px;display:grid;place-items:center;background:#5865f2;color:#fff;font-size:19px;font-weight:800}.password-card h1{margin:0 0 8px;text-align:center;font-size:24px}.password-card>p{margin:0 0 24px;text-align:center;color:#b5bac1;line-height:1.45}.password-card label{display:block;margin-bottom:8px;color:#dbdee1;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.password-card input{width:100%;height:44px;border:1px solid #111214;border-radius:4px;outline:0;background:#1e1f22;color:#f2f3f5;padding:0 12px}.password-card input:focus{border-color:#00a8fc}.password-card button{width:100%;height:44px;margin-top:18px;border:0;border-radius:4px;background:#5865f2;color:#fff;font-weight:700;cursor:pointer}.password-card button:hover{background:#4752c4}.password-error{min-height:20px;margin-top:12px;color:#fa777c;font-size:13px}.password-card.shake{animation:password-shake .28s ease}@keyframes password-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
.browser-frame{width:100%;height:100%;overflow:hidden;background:var(--rail)}
.site-banner{height:28px;display:flex;align-items:center;justify-content:center;gap:7px;background:#18191c;border-bottom:1px solid #0f1012;color:#dbdee1;font-size:12px;letter-spacing:.02em;user-select:none}.site-banner strong{font-weight:600}.status-badge{padding:2px 5px;border-radius:3px;background:#3f4147;color:#b5bac1;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.browser-viewport{position:relative;height:calc(100% - 28px);overflow:hidden;background:var(--rail)}
.app-shell{height:100%;min-height:0;display:grid;grid-template-columns:72px 240px minmax(360px,1fr) 240px;grid-template-rows:minmax(0,1fr);background:var(--bg);overflow:hidden}
.app-shell.no-members{grid-template-columns:72px 240px minmax(360px,1fr)}
.app-shell.no-members .member-list{display:none}
.server-rail{min-height:0;background:var(--rail);display:flex;flex-direction:column;align-items:center;padding:12px 0 8px;gap:8px;overflow:hidden}
.server{position:relative;width:48px;height:48px;border-radius:50%;border:0;background:#313338;color:#dbdee1;display:grid;place-items:center;font-weight:700;cursor:pointer;transition:border-radius .16s,background .16s,color .16s;font-size:14px}
.server:hover,.server.active{border-radius:16px;background:var(--brand);color:#fff}
.server i{display:none;position:absolute;left:-16px;width:4px;height:40px;border-radius:0 4px 4px 0;background:#fff}
.server.active i{display:block}.server:hover:before{content:"";position:absolute;left:-16px;width:4px;height:20px;border-radius:0 4px 4px 0;background:#fff}
.server.active:hover:before{display:none}.home-server{font-size:20px}.home-server.active{background:var(--brand)}.discord-mark{letter-spacing:-6px;transform:translateX(-3px)}
.add-server,.explore,.download{background:#313338;color:#23a55a;font-size:24px;font-weight:400}.add-server:hover,.explore:hover,.download:hover{background:#23a55a;color:#fff}.rail-line{width:32px;height:2px;background:#35363c;border-radius:1px}.rail-spacer{flex:1}
.sidebar{min-width:0;min-height:0;background:var(--sidebar);position:relative;display:flex;flex-direction:column;box-shadow:1px 0 0 rgba(0,0,0,.08);overflow:hidden}
.server-header{height:var(--header);flex:0 0 var(--header);display:flex;align-items:center;padding:0 16px;justify-content:space-between;box-shadow:0 1px 0 rgba(0,0,0,.25),0 1.5px 0 rgba(0,0,0,.06);cursor:pointer}
.server-header:hover{background:#35373c}.server-header strong{font-size:15px}.header-chevron{font-size:20px;color:var(--muted)}
.sidebar-content{overflow-y:auto;padding:8px 8px calc(var(--userbar) + 12px);scrollbar-width:thin;scrollbar-color:#1a1b1e transparent}
.category{margin-top:15px}.category:first-child{margin-top:1px}.category-title{height:24px;padding:0 2px;color:#949ba4;font-size:11px;font-weight:800;letter-spacing:.02em;display:flex;align-items:center;text-transform:uppercase}.category-title:hover{color:#dbdee1}.category-title .caret{font-size:9px;margin-right:4px}.category-title .plus{margin-left:auto;font-size:18px;font-weight:400}
.channel,.dm-row{width:100%;height:34px;padding:0 8px;border:0;background:transparent;border-radius:4px;color:#949ba4;display:flex;align-items:center;gap:6px;cursor:pointer;text-align:left;white-space:nowrap}.channel:hover,.dm-row:hover{background:#35373c;color:#dbdee1}.channel.active,.dm-row.active{background:#404249;color:#fff}.channel.unread{color:#f2f3f5;font-weight:600}.channel-symbol-small{font-size:21px;width:20px;text-align:center;color:#80848e;font-weight:400}.channel-name{overflow:hidden;text-overflow:ellipsis}.channel-badge{margin-left:auto;min-width:16px;height:16px;border-radius:8px;padding:0 5px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}.channel-actions{margin-left:auto;display:none;gap:5px}.channel:hover .channel-actions{display:flex}.voice-icon{font-size:15px}.voice-connected{padding:6px 8px 3px 28px;color:#23a55a;font-size:12px;font-weight:600}.voice-users{padding-left:30px}.voice-user{display:flex;align-items:center;height:30px;gap:8px;color:#b5bac1;font-size:14px}.voice-user .avatar{width:24px;height:24px;font-size:9px}.event-card{margin:7px 0 12px;background:#1e1f22;border-radius:8px;padding:12px;border:1px solid #3a3c42}.event-card small{color:#949ba4}.event-card strong{display:block;margin:3px 0;font-size:14px}.event-card span{font-size:12px;color:#b5bac1}
.current-user{position:absolute;bottom:0;left:0;right:0;height:var(--userbar);background:#232428;display:flex;align-items:center;padding:0 8px;gap:6px}.avatar-button{position:relative;padding:0;border:0;background:none;cursor:pointer}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:800;flex:none;user-select:none}.owner-avatar{background:linear-gradient(145deg,#5865f2,#8b5cf6)}.status{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;border:3px solid #232428;background:#80848e}.status.online{background:#23a55a}.status.idle{background:#f0b232}.status.dnd{background:#f23f43}.user-copy{min-width:0;flex:1;text-align:left;border:0;background:none;padding:0;cursor:pointer}.user-copy strong,.user-copy small{display:block;overflow:hidden;text-overflow:ellipsis}.user-copy strong{font-size:13px}.user-copy small{font-size:11px;color:#b5bac1}.user-controls{display:flex}.user-controls button{width:30px;height:30px;border:0;background:none;border-radius:4px;color:#b5bac1;cursor:pointer}.user-controls button:hover{background:#383a40;color:#dbdee1}
.chat-panel{height:100%;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
.chat-header{height:var(--header);flex:0 0 var(--header);display:flex;align-items:center;padding:0 8px 0 16px;gap:8px;box-shadow:0 1px 0 rgba(0,0,0,.25),0 1.5px 0 rgba(0,0,0,.06);z-index:2}.channel-symbol{font-size:25px;color:#80848e}.chat-header>strong{font-size:15px;white-space:nowrap}.header-topic{border-left:1px solid #3f4147;margin-left:4px;padding-left:12px;color:#b5bac1;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-tools{margin-left:auto;display:flex;align-items:center;gap:4px}.header-tools>button,.mobile-menu{border:0;background:none;color:#b5bac1;width:32px;height:32px;border-radius:4px;font-size:18px;cursor:pointer}.header-tools>button:hover,.header-tools>button.members-active{color:#f2f3f5}.search-box{margin:0 4px;width:144px;height:24px;background:#1e1f22;border-radius:4px;display:flex;align-items:center;padding:0 4px 0 6px;transition:width .2s}.search-box:focus-within{width:220px}.search-box input{width:100%;border:0;outline:0;background:none;color:#dbdee1;font-size:12px}.search-box span{color:#949ba4}.mobile-menu{display:none}
.messages-wrap{position:relative;height:100%;min-height:0;flex:1 1 0;display:flex;flex-direction:column;overflow:hidden}.messages{height:0;flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:0 0 26px;scrollbar-width:thin;scrollbar-color:#1a1b1e #2b2d31}.messages::-webkit-scrollbar{width:14px}.messages::-webkit-scrollbar-track{background:#2b2d31}.messages::-webkit-scrollbar-thumb{background:#1a1b1e;border:3px solid #2b2d31;border-radius:8px}.welcome{padding:48px 16px 22px}.welcome-icon{width:68px;height:68px;border-radius:50%;background:#41434a;display:grid;place-items:center;font-size:36px;font-weight:700}.welcome h1{font-size:31px;margin:10px 0 5px;letter-spacing:-.02em}.welcome p{margin:0;color:#b5bac1;line-height:1.45}.welcome .owner-note{margin-top:8px;color:#949ba4;font-size:13px}.date-divider{height:1px;background:#3f4147;margin:22px 16px 18px;position:relative}.date-divider span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#313338;color:#949ba4;font-size:11px;font-weight:600;padding:0 8px;white-space:nowrap}
.message{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);padding:2px 16px 2px 0;min-height:38px}.message:hover{background:#2e3035}.message.has-avatar{margin-top:15px}.message .avatar{grid-column:1;justify-self:center;margin-top:1px;width:40px;height:40px;font-size:12px;cursor:pointer}.message-main{grid-column:2;min-width:0}.message-head{height:22px;display:flex;align-items:baseline;gap:7px}.author{font-weight:600;font-size:15px;cursor:pointer}.author:hover{text-decoration:underline}.bot-tag,.role-tag{font-size:9px;font-weight:800;padding:1px 4px;border-radius:3px;background:var(--brand);color:#fff;text-transform:uppercase}.role-tag{background:#b96ad9}.timestamp{font-size:11px;color:#949ba4}.message-text{font-size:15px;line-height:1.35;color:#dbdee1;white-space:pre-wrap;overflow-wrap:anywhere}.message-text a{color:#00a8fc}.message-text .mention{background:rgba(88,101,242,.3);color:#c9cdfb;border-radius:3px;padding:0 2px;font-weight:500}.message-text .channel-mention{color:#c9cdfb;background:#404675;border-radius:3px;padding:0 3px}.message-text .money{color:#23a55a;font-weight:600}.message-text .emoji{font-size:20px}.edited{font-size:10px;color:#949ba4}.message-actions{display:none;position:absolute;right:18px;top:-16px;height:32px;border:1px solid #1e1f22;border-radius:4px;background:#2b2d31;box-shadow:0 2px 4px rgba(0,0,0,.25);align-items:center}.message:hover .message-actions{display:flex}.message-actions button{width:34px;height:30px;border:0;background:none;color:#b5bac1;cursor:pointer}.message-actions button:hover{background:#3f4147;color:#fff}.reaction-row{display:flex;gap:4px;margin-top:5px}.reaction{height:24px;border:1px solid transparent;background:#2b2d31;border-radius:8px;color:#b5bac1;padding:0 7px;font-size:12px;display:flex;align-items:center;gap:5px}.reaction.mine{border-color:#5865f2;background:#373a54;color:#dee0fc}.attachment{margin-top:8px;max-width:460px;background:#2b2d31;border:1px solid #1e1f22;border-radius:4px;padding:12px}.attachment .file-icon{font-size:26px;float:left;margin-right:10px}.attachment strong{display:block;color:#00a8fc;font-size:13px}.attachment small{color:#949ba4}.embed{margin-top:7px;max-width:520px;background:#2b2d31;border-left:4px solid #5865f2;border-radius:4px;padding:12px}.embed small{color:#b5bac1}.embed strong{display:block;margin:5px 0;color:#fff}.embed p{margin:3px 0;color:#b5bac1;font-size:13px;line-height:1.4}.embed-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}.embed-grid span{font-size:12px;color:#b5bac1}.embed-grid b{display:block;color:#f2f3f5;font-size:12px}.thread-link{margin-top:6px;color:#00a8fc;font-size:13px;font-weight:600;cursor:pointer}.thread-link:hover{text-decoration:underline}
.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(540px,100%);margin-top:8px;overflow:hidden;border-radius:8px}.media-grid.media-count-1{grid-template-columns:minmax(0,360px);width:min(360px,100%)}.media-card{position:relative;display:block;width:100%;padding:0;border:0;background:#1e1f22;overflow:hidden;cursor:zoom-in;min-height:0}.media-card img{display:block;width:100%;height:220px;object-fit:cover;transition:transform .18s ease,filter .18s ease}.media-count-1 .media-card img{height:auto;aspect-ratio:4/5}.media-card:hover img{transform:scale(1.015);filter:brightness(1.05)}.media-label{position:absolute;left:0;right:0;bottom:0;padding:24px 9px 7px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;text-align:left;font-size:11px;font-weight:600;opacity:0;transition:opacity .15s}.media-card:hover .media-label{opacity:1}.media-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;display:grid;place-items:center;padding-left:3px;background:rgba(17,18,20,.78);border:1px solid rgba(255,255,255,.45);color:#fff;font-size:18px;box-shadow:0 3px 12px rgba(0,0,0,.4)}.media-duration{position:absolute;right:7px;bottom:7px;padding:2px 5px;border-radius:3px;background:rgba(0,0,0,.82);color:#fff;font-size:10px;font-weight:700}.media-lightbox{position:fixed;inset:0;z-index:80;background:rgba(8,9,11,.92);display:flex;align-items:center;justify-content:center;padding:48px 24px 60px;backdrop-filter:blur(5px)}.media-lightbox img{display:block;max-width:min(92vw,960px);max-height:calc(100vh - 110px);object-fit:contain;border-radius:5px;box-shadow:0 16px 50px rgba(0,0,0,.55)}.lightbox-close{position:absolute;right:22px;top:18px;width:38px;height:38px;border:0;border-radius:50%;background:#2b2d31;color:#fff;font-size:27px;line-height:1;cursor:pointer}.lightbox-close:hover{background:#4e5058}.lightbox-caption{position:absolute;left:20px;right:20px;bottom:20px;text-align:center;color:#dbdee1;font-size:13px;font-weight:600}
.composer{height:44px;flex:0 0 44px;margin:0 16px 24px;border-radius:8px;background:#383a40;display:flex;align-items:center;padding:0 8px;gap:5px}.composer button{width:28px;height:32px;flex:none;border:0;background:none;color:#b5bac1;cursor:pointer}.composer button:hover{color:#f2f3f5}.composer .add-attach{border-radius:50%;width:22px;height:22px;padding:0;background:#b5bac1;color:#383a40;font-size:18px;line-height:18px;margin-right:4px}.composer input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#dbdee1;font-size:15px}.composer input::placeholder{color:#949ba4}.gif-button{font-size:9px!important;background:#b5bac1!important;color:#383a40!important;border-radius:3px!important;height:17px!important;font-weight:900}.new-banner{position:absolute;bottom:78px;left:50%;transform:translateX(-50%);background:#1e1f22;border-radius:16px;padding:7px 14px;color:#b5bac1;font-size:12px;box-shadow:0 3px 8px rgba(0,0,0,.25)}
.member-list{min-height:0;background:#2b2d31;overflow-y:auto;padding:16px 8px 12px;scrollbar-width:none}.member-group{color:#949ba4;font-size:11px;font-weight:700;text-transform:uppercase;margin:7px 8px 4px}.member{height:42px;border-radius:4px;padding:0 8px;display:flex;align-items:center;gap:10px;color:#949ba4;cursor:pointer}.member:hover{background:#35373c;color:#dbdee1}.member .avatar-wrap{position:relative}.member .avatar{width:32px;height:32px}.member .status{border-color:#2b2d31}.member:hover .status{border-color:#35373c}.member-copy{min-width:0}.member-copy strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-copy small{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#949ba4}.member.offline{opacity:.45}.crown{color:#f0b232;font-size:11px;margin-left:4px}.flag{font-size:14px;margin-left:3px}.role-owner{color:#f0b232}.role-manager{color:#e67eeb}.role-lead{color:#e67e22}.role-creator{color:#52c7ea}.role-editor{color:#23a55a}
.dm-search{padding:2px 2px 8px}.dm-search button{width:100%;height:28px;border:0;border-radius:4px;background:#1e1f22;color:#949ba4;text-align:left;padding:0 7px;font-size:12px;cursor:pointer}.dm-nav{margin-bottom:14px}.dm-nav button{width:100%;height:42px;border:0;border-radius:4px;background:none;color:#b5bac1;text-align:left;padding:0 10px;font-size:15px}.dm-nav button:hover{background:#35373c}.dm-nav span{display:inline-block;width:30px;font-size:19px;color:#949ba4}.dm-heading{display:flex;justify-content:space-between;color:#949ba4;font-size:11px;font-weight:700;padding:0 10px 5px}.dm-row{height:42px;padding:0 8px;gap:10px}.dm-row .avatar{width:32px;height:32px}.dm-row .dm-copy{min-width:0;flex:1}.dm-row strong{font-size:14px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis}.dm-row small{font-size:11px;color:#949ba4;display:block}.dm-row .close{display:none}.dm-row:hover .close{display:block;color:#949ba4}
.profile-popover{position:fixed;z-index:50;width:340px;border-radius:8px;background:#111214;box-shadow:0 8px 24px rgba(0,0,0,.45);overflow:hidden;border:1px solid #111214}.profile-banner{height:60px;background:linear-gradient(120deg,#5865f2,#9b59b6)}.profile-top{position:relative;height:56px}.profile-top .avatar{position:absolute;left:16px;top:-36px;width:80px;height:80px;border:6px solid #111214;font-size:24px}.profile-top .big-status{position:absolute;left:78px;top:17px;width:20px;height:20px;border:5px solid #111214;border-radius:50%;background:#23a55a}.profile-actions{position:absolute;right:14px;top:10px;display:flex;gap:7px}.profile-actions button{border:0;background:#4e5058;border-radius:4px;padding:7px 10px;color:#fff;font-size:12px;font-weight:600}.profile-actions button.primary{background:#248046}.profile-body{margin:0 16px 16px;background:#232428;border-radius:8px;padding:12px}.profile-body h2{font-size:19px;margin:0}.profile-body .handle{font-size:13px;color:#dbdee1;padding-bottom:12px;border-bottom:1px solid #3f4147}.profile-section{margin-top:12px}.profile-section h3{font-size:11px;margin:0 0 6px;text-transform:uppercase}.profile-section p{font-size:13px;color:#dbdee1;line-height:1.4;margin:0}.role-pills{display:flex;gap:5px;flex-wrap:wrap}.role-pill{background:#2b2d31;padding:4px 7px;border-radius:4px;font-size:11px}.role-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:5px}.note-input{width:100%;border:0;background:none;color:#dbdee1;font-size:12px;outline:0}.mutual{font-size:12px;color:#b5bac1}.profile-message{margin-top:12px;width:100%;height:34px;border:1px solid #3f4147;background:#1e1f22;border-radius:4px;padding:0 8px;color:#dbdee1;outline:0}
.quick-switcher{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.7);display:flex;justify-content:center;align-items:flex-start;padding-top:90px}.switcher-card{width:min(570px,calc(100vw - 30px));background:#2b2d31;border-radius:8px;overflow:hidden;box-shadow:0 15px 40px rgba(0,0,0,.5);padding:16px}.switcher-card>input{width:100%;height:64px;background:#1e1f22;border:0;border-radius:4px;padding:0 16px;color:#dbdee1;font-size:21px;outline:0}.switcher-result{height:46px;display:flex;align-items:center;gap:10px;padding:0 8px;border-radius:4px;color:#b5bac1}.switcher-result.selected,.switcher-result:hover{background:#404249;color:#fff}.switcher-card footer{margin-top:12px;color:#949ba4;font-size:11px}.switcher-card footer span{font-weight:700}kbd{background:#1e1f22;border-radius:3px;padding:2px 5px}
.mobile-scrim{position:absolute;inset:0;z-index:9;background:rgba(0,0,0,.55)}
@media(max-width:1050px){.app-shell{grid-template-columns:72px 240px minmax(340px,1fr)}.member-list{display:none}.header-tools>button:nth-of-type(-n+3){display:none}}
@media(max-width:720px){.site-banner{height:26px}.browser-viewport{height:calc(100% - 26px)}.app-shell{height:100%;display:block}.server-rail{display:none}.sidebar{position:absolute;z-index:12;left:0;top:0;bottom:0;width:min(310px,88vw);transform:translateX(-101%);transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.chat-panel{height:100%}.mobile-menu{display:block}.chat-header{padding-left:8px}.header-topic{display:none}.header-tools>button{display:none!important}.header-tools .search-box{display:none}.member-list{display:none!important}.messages{padding-bottom:10px}.composer{margin:0 8px 10px}.composer button:not(.add-attach):not(:last-child){display:none}.welcome{padding-top:35px}.message{grid-template-columns:50px minmax(0,1fr);padding-right:8px}.message-text{font-size:14px}.profile-popover{left:10px!important;right:10px!important;bottom:10px!important;top:auto!important;width:auto}.message-actions{display:none!important}}
@media(max-width:430px){.composer button:last-child{display:none}.welcome h1{font-size:25px}.welcome-icon{width:58px;height:58px}.message .avatar{width:36px;height:36px}.embed-grid{grid-template-columns:1fr}.media-card img{height:160px}.media-count-1 .media-card img{height:auto}.media-lightbox{padding:42px 8px 54px}.lightbox-close{right:10px;top:8px}}
