:root{--bg-chat: #313338;--bg-side: #2b2d31;--bg-dark: #1e1f22;--bg-input: #383a40;--bg-hover: #35373c;--text: #dbdee1;--muted: #949ba4;--bright: #f2f3f5;--accent: #5865f2;--danger: #da373c;--border: #3f4147;--font: "gg sans", "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg-dark);color:var(--text);font:16px/1.375 var(--font);-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit}:focus-visible{outline:2px solid #00a8fc;outline-offset:2px}.app{display:flex;height:100%;height:100dvh;overflow:hidden}.rail{width:72px;background:var(--bg-dark);display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0;flex:none}.rail-btn{width:48px;height:48px;border-radius:50%;background:var(--bg-chat);color:#23a55a;display:grid;place-items:center;transition:border-radius .15s,background .15s}.rail-btn:hover,.rail-btn.active{border-radius:16px;background:var(--accent);color:#fff}.rail-sep{width:32px;height:2px;border-radius:1px;background:var(--bg-hover)}.sidebar{width:240px;background:var(--bg-side);display:flex;flex-direction:column;flex:none}.sidebar-search{height:48px;padding:10px;border-bottom:1px solid #1f2023;box-shadow:0 1px #04040505}.sidebar-search button{width:100%;height:28px;background:var(--bg-dark);border:0;border-radius:4px;color:var(--muted);font-size:13px;text-align:left;padding:0 6px;cursor:default}.sidebar-scroll{flex:1;padding:8px;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:12px;height:42px;padding:0 8px;border-radius:4px;color:var(--muted);font-weight:500}.nav-item:hover{background:var(--bg-hover);color:var(--bright)}.nav-item.active{background:#404249;color:var(--bright)}.sidebar-label{font-size:12px;font-weight:600;color:var(--muted);padding:18px 8px 4px}.dm{height:42px;padding:0 8px}.dm-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.userpanel{height:52px;background:#232428;display:flex;align-items:center;gap:8px;padding:0 8px}.up-names{display:flex;flex-direction:column;line-height:1.15;min-width:0;flex:1}.up-names strong{font-size:14px;color:var(--bright);font-weight:600}.up-names span{font-size:12px;color:var(--muted)}.up-icons{display:flex;gap:12px;color:var(--muted);padding-right:6px}.avatar{position:relative;display:inline-block;flex:none;border-radius:50%}.avatar img,.avatar-ph{width:100%;height:100%;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:600}.avatar.me .avatar-ph{background:#3ba55d}.dot{position:absolute;right:-3px;bottom:-3px;width:36%;height:36%;min-width:10px;min-height:10px;border-radius:50%;border:3px solid var(--bg-side);background:#80848e}.chat-head .dot{border-color:var(--bg-chat)}.dot.online{background:#23a55a}.dot.idle{background:#f0b232}.dot.dnd{background:#f23f43}.dot.offline{background:#80848e}.avatar .dot{box-sizing:content-box}.chat{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg-chat);border-top-left-radius:8px}.chat-head{height:48px;flex:none;display:flex;align-items:center;gap:10px;padding:0 12px 0 16px;border-bottom:1px solid #26272b;box-shadow:0 1px #0404050a}.chat-head h1{margin:0;font-size:16px;font-weight:600;color:var(--bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-head .avatar{margin-right:2px}.head-icons{margin-left:auto;display:flex;align-items:center;gap:16px;color:var(--muted)}.icon-btn{background:none;border:0;padding:0;display:grid;place-items:center;color:inherit;cursor:pointer;border-radius:4px}.icon-btn:hover{color:var(--bright)}.head-search{display:flex;align-items:center;gap:6px;background:var(--bg-dark);border-radius:4px;padding:3px 8px;font-size:13px;width:140px;justify-content:space-between;flex-direction:row-reverse}.scroller{flex:1;overflow-y:auto;padding-bottom:16px;display:flex;flex-direction:column}.intro{padding:16px 16px 8px;margin-top:auto}.intro-av{margin-bottom:8px}.intro h2{margin:0;font-size:32px;line-height:1.2;color:var(--bright);font-weight:700}.intro h3{margin:0 0 8px;font-size:24px;font-weight:600;color:var(--bright)}.intro p{margin:0;color:var(--muted);font-size:16px}.intro p strong{color:var(--text);font-weight:500}.divider{display:flex;align-items:center;margin:24px 16px 8px;border-top:1px solid #3f4147;height:0;justify-content:center}.divider span{background:var(--bg-chat);padding:2px 8px;margin-top:0;font-size:12px;font-weight:600;color:var(--muted);transform:translateY(0)}.group{position:relative;display:flex;gap:16px;padding:2px 48px 2px 16px;margin-top:17px}.group .avatar{margin-top:2px}.group-body{min-width:0;flex:1}.group-head{display:flex;align-items:baseline;gap:8px;line-height:1.375}.author{font-weight:500;color:var(--bright)}.stamp{font-size:12px;color:var(--muted)}.line{position:relative;line-height:1.375;padding:1px 0}.text{white-space:pre-wrap;overflow-wrap:anywhere}.hover-time{position:absolute;left:-56px;width:40px;text-align:right;top:3px;font-size:11px;color:var(--muted);visibility:hidden;-webkit-user-select:none;user-select:none}.group:hover{background:#0202020f}.line:hover .hover-time{visibility:visible}.error-row{margin:12px 16px 0;padding:8px 12px;background:#da373c1f;border-left:3px solid var(--danger);border-radius:4px;display:flex;align-items:center;gap:12px;font-size:14px}.error-row button{background:var(--accent);border:0;border-radius:3px;padding:3px 12px;cursor:pointer;color:#fff}.error-row button:hover{background:#4752c4}.composer-wrap{flex:none;padding:0 16px}.composer{display:flex;align-items:flex-end;background:var(--bg-input);border-radius:8px;padding:0 16px}.composer textarea{flex:1;min-height:44px;max-height:200px;resize:none;border:0;outline:0;background:transparent;color:var(--text);font:inherit;padding:11px 0;line-height:22px}.composer textarea::placeholder{color:#6d6f78}.composer-icon{color:var(--muted);padding:10px 0 10px 12px}.typing-slot{height:24px;padding-top:1px}.typing{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--bright);height:24px}.typing strong{font-weight:700}.typing-dots{display:inline-flex;gap:3px;width:24px}.typing-dots i{width:6px;height:6px;border-radius:50%;background:var(--bright);opacity:.35;animation:blink 1.2s infinite ease-in-out}.typing-dots i:nth-child(2){animation-delay:.2s}.typing-dots i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,60%,to{opacity:.35;transform:scale(.85)}30%{opacity:1;transform:scale(1.1)}}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:grid;place-items:center;z-index:10;padding:16px}.modal{background:var(--bg-chat);width:100%;max-width:440px;border-radius:6px;padding:16px;box-shadow:0 8px 24px #0006}.modal h4{margin:0 0 8px;font-size:20px;color:var(--bright)}.modal p{margin:0 0 16px;color:var(--text);font-size:15px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;background:var(--bg-side);margin:0 -16px -16px;padding:16px;border-radius:0 0 6px 6px}.btn-link,.btn-danger{border:0;border-radius:3px;padding:2px 16px;height:38px;cursor:pointer;font-weight:500;font-size:14px}.btn-link{background:transparent;color:var(--bright)}.btn-link:hover{text-decoration:underline}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:#a12828}@media(max-width:720px){.rail,.sidebar,.head-search{display:none}.chat{border-radius:0}.head-icons{gap:14px}.head-icons>svg{display:none}.group{padding-right:16px;gap:12px}.hover-time{display:none}.composer-wrap{padding:0 8px env(safe-area-inset-bottom,0)}.composer textarea{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.typing-dots i{opacity:.8}}
