.login-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2)}.login-box{background:var(--bg-secondary);padding:2rem;border-radius:8px;width:400px;box-shadow:0 8px 32px #0000004d}.login-box h1{font-size:2rem;margin-bottom:.5rem;text-align:center}.subtitle{color:var(--text-secondary);text-align:center;margin-bottom:2rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:600;text-transform:uppercase;color:var(--text-secondary)}.form-group input{width:100%;padding:.75rem;background:var(--bg-tertiary);border:1px solid transparent;border-radius:4px;color:var(--text-primary);font-size:1rem}.form-group input:focus{border-color:var(--accent)}.error{color:var(--danger);margin-bottom:1rem;padding:.75rem;background:#ed42451a;border-radius:4px;font-size:.875rem}button[type=submit]{width:100%;padding:.75rem;background:var(--accent);color:#fff;border-radius:4px;font-size:1rem;font-weight:600;transition:background .2s}button[type=submit]:hover:not(:disabled){background:var(--accent-hover)}button[type=submit]:disabled{opacity:.5;cursor:not-allowed}.switch-mode{width:100%;margin-top:1rem;padding:.5rem;background:transparent;color:var(--accent);font-size:.875rem}.switch-mode:hover{text-decoration:underline}.channel-category{margin-bottom:.5rem}.category-header{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.category-header:hover{background:#ffffff08}.collapse-arrow{font-size:.625rem;color:var(--text-secondary);transition:transform .2s}.collapse-arrow.collapsed{transform:rotate(-90deg)}.category-name{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-secondary);letter-spacing:.5px}.category-channels{margin:.25rem 0}.channel{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin:2px 8px;cursor:pointer;color:var(--text-secondary);border-radius:4px;transition:all .15s}.channel-icon{font-size:1.25rem;opacity:.6}.channel.active .channel-icon{opacity:1}.channel-name{font-size:.9375rem;font-weight:500;flex:1}.channel-unread .channel-name{color:var(--text-primary);font-weight:600}.channel-unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#fff;flex-shrink:0;opacity:.9}.channel-mention-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ed4245;color:#fff;font-size:.7rem;font-weight:800;flex-shrink:0;line-height:1}.channel-mentioned .channel-name{color:var(--text-primary);font-weight:600}.sidebar{display:flex;flex-direction:column;background:var(--bg-secondary);height:100%;overflow:hidden}.server-header{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid rgba(0,0,0,.2);box-shadow:0 2px 4px #0000001a}.server-name{font-weight:600;font-size:1.125rem}.dm-bubble-btn{position:relative;background:#ffffff1a;font-size:1.2rem;padding:.25rem .45rem;border-radius:8px;opacity:.85;transition:opacity .15s,transform .15s,background .15s;line-height:1}.dm-unread-indicator{position:absolute;top:-3px;right:-3px;width:10px;height:10px;border-radius:50%;background:#ed4245;border:2px solid var(--bg-secondary);pointer-events:none}.dm-bubble-btn:hover{opacity:1;transform:scale(1.08);background:#ffffff2e}.channels{flex:1;overflow-y:auto;overflow-x:hidden;padding:1rem 0}.channels::-webkit-scrollbar{width:8px}.channels::-webkit-scrollbar-track{background:transparent}.channels::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}.channels::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.channels-header{padding:.5rem 1rem;font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-secondary)}.channel{padding:.5rem 1rem;cursor:pointer;color:var(--text-secondary);transition:all .15s;margin:2px 8px;border-radius:4px}.channel:hover{background:#ffffff0d;color:var(--text-primary)}.channel.active{background:#5865f233;color:var(--text-primary)}.voice-channels-section{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.05)}.voice-channel-item{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;margin:2px 8px;cursor:pointer;color:var(--text-secondary);border-radius:4px;transition:all .15s}.voice-channel-item:hover{background:#ffffff0d;color:var(--text-primary)}.voice-icon{font-size:1.125rem;opacity:.6}.voice-name{font-size:.9375rem;font-weight:500}.user-bar{display:flex;align-items:center;justify-content:space-between;padding:.75rem;background:#0003}.user-info{display:flex;align-items:center;gap:.5rem;flex:1}.avatar{width:32px;height:32px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:600}.avatar-btn{position:relative;background:var(--accent);border-radius:50%;padding:0;overflow:hidden;cursor:pointer;flex-shrink:0;border:2px solid transparent;transition:border-color .15s}.avatar-btn:hover{border-color:var(--accent)}.avatar-btn:hover .avatar-camera{opacity:1}.avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.avatar-camera{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0009;border-radius:50%;font-size:.9rem;opacity:0;transition:opacity .15s;pointer-events:none}.avatar-uploading{opacity:.5;cursor:wait}.user-details{display:flex;flex-direction:column}.username{font-size:.875rem;font-weight:600}.status{font-size:.75rem;color:var(--success)}.logout-btn{background:transparent;font-size:1.25rem;padding:.25rem;opacity:.6;transition:opacity .15s}.logout-btn:hover{opacity:1}@media (max-width: 768px){.server-header{justify-content:center}.server-name,.channels-header,.voice-name,.user-details,.logout-btn{display:none}.channel{padding:.5rem;margin:2px 4px;display:flex;justify-content:center;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:clip;max-width:52px}.voice-channel-item{padding:.5rem;margin:2px 4px;justify-content:center}.voice-icon{opacity:1}.user-bar{justify-content:center;padding:.5rem}.user-info{justify-content:center}}.mc-code-block{margin:6px 0 2px;border-radius:4px;overflow:hidden;background:#1e1f22;border:1px solid rgba(255,255,255,.06);max-width:100%;font-size:.875rem}.mc-code-header{display:flex;justify-content:space-between;align-items:center;padding:6px 12px;background:#2b2d31;border-bottom:1px solid rgba(255,255,255,.06)}.mc-code-lang{font-size:.75rem;font-weight:600;color:#b5bac1;text-transform:lowercase;font-family:Consolas,Monaco,Courier New,monospace}.mc-code-copy{font-size:.75rem;color:#b5bac1;background:none;border:none;cursor:pointer;padding:2px 8px;border-radius:3px;transition:background .15s,color .15s}.mc-code-copy:hover{background:#ffffff14;color:#fff}.mc-pre{margin:0;padding:12px 16px;overflow-x:auto;font-family:Consolas,Monaco,Menlo,Courier New,monospace;font-size:.875rem;line-height:1.5;-moz-tab-size:4;tab-size:4}.mc-pre code{font-family:inherit;background:none;padding:0;color:#e0e0e0}.mc-inline{font-family:Consolas,Monaco,Menlo,Courier New,monospace;font-size:.85em;background:#1e1f22;color:#e0e0e0;padding:1px 5px;border-radius:3px;border:1px solid rgba(255,255,255,.06)}.mc-root{display:inline;white-space:pre-wrap;word-break:break-word}.mc-pre .hljs-keyword,.mc-pre .hljs-selector-tag,.mc-pre .hljs-built_in,.mc-pre .hljs-name,.mc-pre .hljs-tag{color:#e06c75}.mc-pre .hljs-string,.mc-pre .hljs-attr,.mc-pre .hljs-symbol,.mc-pre .hljs-bullet,.mc-pre .hljs-addition{color:#98c379}.mc-pre .hljs-number,.mc-pre .hljs-literal{color:#d19a66}.mc-pre .hljs-comment,.mc-pre .hljs-quote{color:#5c6370;font-style:italic}.mc-pre .hljs-title,.mc-pre .hljs-section{color:#61afef}.mc-pre .hljs-variable,.mc-pre .hljs-template-variable,.mc-pre .hljs-params{color:#e5c07b}.mc-pre .hljs-meta,.mc-pre .hljs-meta .hljs-keyword{color:#c678dd}.mc-pre .hljs-type{color:#56b6c2}.mc-pre .hljs-operator,.mc-pre .hljs-punctuation{color:#abb2bf}.mc-pre .hljs-deletion{color:#e06c75}.mc-mention{color:#faa61a;background:#faa61a1a;border-radius:3px;padding:0 3px;font-weight:600;cursor:default}.mc-mention-self{color:#fff8e1;background:#faa61a47}.mc-link{color:#00b0f4;text-decoration:none;word-break:break-all}.mc-link:hover{text-decoration:underline}.mc-embed{margin-top:8px;max-width:560px;border-radius:4px;overflow:hidden}.mc-oembed iframe{display:block;width:100%!important;max-width:560px;border-radius:4px}.mc-og-card{display:flex;margin-top:8px;max-width:480px;background:var(--bg-secondary);border-left:4px solid var(--accent);border-radius:4px;overflow:hidden;text-decoration:none;color:inherit;transition:filter .15s}.mc-og-card:hover{filter:brightness(1.1)}.mc-og-image{width:80px;min-width:80px;height:80px;object-fit:cover}.mc-og-body{padding:8px 12px;min-width:0}.mc-og-site{font-size:.7rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}.mc-og-title{font-weight:600;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mc-og-desc{font-size:.8rem;color:var(--text-secondary);margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.emote-picker{position:relative}.emote-trigger{background:transparent;font-size:1.25rem;padding:.25rem .5rem;border-radius:4px;transition:background .15s}.emote-trigger:hover{background:#ffffff1a}.emote-dropdown{position:absolute;bottom:100%;left:0;margin-bottom:.5rem;background:var(--bg-secondary);border-radius:8px;box-shadow:0 8px 16px #0000004d;padding:.5rem;z-index:1000}.emote-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:.25rem;max-width:320px}.emote-btn{background:transparent;font-size:1.5rem;padding:.5rem;border-radius:4px;transition:background .15s;cursor:pointer}.emote-btn:hover{background:#ffffff1a;transform:scale(1.2)}.cal-root{display:flex;flex-direction:column;height:100%;background:var(--bg-primary);overflow:hidden}.cal-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.06);flex-shrink:0;gap:8px}.cal-nav{display:flex;align-items:center;gap:4px}.cal-title{font-size:1.1rem;font-weight:600;color:var(--text-primary);min-width:190px;text-align:center;-webkit-user-select:none;user-select:none}.cal-nav-btn{background:none;border:none;color:var(--text-secondary);font-size:1.4rem;line-height:1;padding:4px 8px;border-radius:4px;cursor:pointer;transition:background .15s,color .15s}.cal-nav-btn:hover{background:#ffffff14;color:var(--text-primary)}.cal-today-btn{margin-left:6px;padding:4px 12px;border:1px solid rgba(255,255,255,.15);border-radius:4px;background:none;color:var(--text-secondary);font-size:.8125rem;cursor:pointer;transition:background .15s,color .15s}.cal-today-btn:hover{background:#ffffff14;color:var(--text-primary)}.cal-create-btn{padding:6px 14px;background:var(--accent);color:#fff;border:none;border-radius:4px;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .15s;white-space:nowrap}.cal-create-btn:hover{background:var(--accent-hover)}.cal-day-labels{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid rgba(255,255,255,.06);flex-shrink:0}.cal-day-label{text-align:center;padding:7px 0;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-secondary)}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,1fr);flex:1;overflow:hidden}.cal-cell{border-right:1px solid rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.05);padding:5px 4px 4px;cursor:pointer;overflow:hidden;display:flex;flex-direction:column;gap:2px;transition:background .1s}.cal-cell:hover{background:#ffffff06}.cal-cell:nth-child(7n){border-right:none}.cal-cell--other .cal-cell-num{color:#ffffff2e}.cal-cell--other .cal-event-pill,.cal-cell--other .cal-overflow{opacity:.45}.cal-cell--today{background:#5865f20f}.cal-cell-num{width:22px;height:22px;border-radius:50%;font-size:.75rem;font-weight:500;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;flex-shrink:0;align-self:flex-start;-webkit-user-select:none;user-select:none}.cal-cell-num--today{background:var(--accent);color:#fff;font-weight:700}.cal-cell-events{display:flex;flex-direction:column;gap:2px;overflow:hidden;flex:1;min-height:0}.cal-event-pill{padding:1px 5px;border-radius:3px;font-size:.65rem;font-weight:500;color:#fff;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:filter .1s;line-height:1.5}.cal-event-pill:hover{filter:brightness(1.2)}.cal-overflow{font-size:.6rem;color:var(--text-secondary);padding:0 4px;font-weight:500}.cal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.cal-modal{background:var(--bg-secondary);border-radius:8px;width:440px;max-width:100%;box-shadow:0 12px 40px #0009;overflow:hidden;display:flex;flex-direction:column}.cal-modal-header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.07);font-size:1rem;font-weight:600;color:var(--text-primary)}.cal-modal-close{background:none;border:none;color:var(--text-secondary);font-size:1rem;line-height:1;padding:4px;border-radius:4px;cursor:pointer;transition:background .15s,color .15s}.cal-modal-close:hover{background:#ffffff14;color:var(--text-primary)}.cal-modal-body{padding:18px;display:flex;flex-direction:column;gap:12px}.cal-modal-footer{padding:12px 18px;border-top:1px solid rgba(255,255,255,.07);display:flex;justify-content:flex-end;gap:8px}.cal-input{width:100%;box-sizing:border-box;padding:8px 11px;background:#00000040;border:1px solid rgba(255,255,255,.08);border-radius:4px;color:var(--text-primary);font-size:.9375rem;font-family:inherit;transition:border-color .15s}.cal-input:focus{outline:none;border-color:var(--accent)}.cal-input--title{font-size:1rem;font-weight:500}.cal-textarea{resize:vertical;min-height:68px}.cal-form-row{display:flex;gap:10px}.cal-form-group{flex:1;display:flex;flex-direction:column;gap:4px}.cal-form-group label{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}.cal-color-row{display:flex;gap:8px;flex-wrap:wrap}.cal-swatch{width:22px;height:22px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:transform .1s,border-color .1s}.cal-swatch:hover{transform:scale(1.2)}.cal-swatch--active{border-color:#fff;transform:scale(1.2)}.cal-btn{padding:7px 16px;border:none;border-radius:4px;font-size:.875rem;font-weight:600;cursor:pointer;transition:background .15s}.cal-btn--primary{background:var(--accent);color:#fff}.cal-btn--primary:hover{background:var(--accent-hover)}.cal-btn--ghost{background:#ffffff12;color:var(--text-primary)}.cal-btn--ghost:hover{background:#ffffff1f}.cal-btn--danger{background:#ed4245;color:#fff}.cal-btn--danger:hover{background:#c03537}.cal-detail{gap:6px}.cal-detail-date{margin:0;font-size:.9375rem;font-weight:600;color:var(--text-primary)}.cal-detail-time{margin:0;font-size:.875rem;color:var(--text-secondary)}.cal-detail-desc{margin:4px 0 0;font-size:.9375rem;color:var(--text-primary);line-height:1.5;white-space:pre-wrap}.cal-detail-creator{margin:4px 0 0;font-size:.75rem;color:var(--text-secondary);font-style:italic}input[type=date],input[type=time]{color-scheme:dark}.voice-room{display:flex;flex-direction:column;background:var(--bg-primary);height:100%;min-height:0;overflow:hidden}.voice-room-header{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid rgba(0,0,0,.2);box-shadow:0 2px 4px #0000001a}.voice-room-icon{font-size:1.25rem}.voice-room-name{font-weight:600;font-size:1rem}.voice-room-body{flex:1;display:flex;flex-direction:column;overflow-y:auto;min-height:0}.voice-join-prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:.75rem;color:var(--text-secondary)}.voice-join-icon{font-size:4rem;opacity:.4}.voice-join-title{font-size:1.5rem;font-weight:700;color:var(--text-primary)}.voice-join-subtitle{font-size:.9375rem}.voice-join-btn{margin-top:.5rem;padding:.75rem 2rem;background:var(--success);color:#fff;border-radius:8px;font-size:1rem;font-weight:600;transition:opacity .2s}.voice-join-btn:hover{opacity:.85}.voice-active{width:100%;display:flex;flex-direction:column;align-items:center;gap:2rem;padding:2rem}.voice-participants{display:flex;flex-wrap:wrap;gap:2rem;justify-content:center}.participant{display:flex;flex-direction:column;align-items:center;gap:.5rem;position:relative}.participant-avatar{width:80px;height:80px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;color:#fff;position:relative;z-index:1}.participant-speaking-ring{position:absolute;top:-4px;left:-4px;width:88px;height:88px;border-radius:50%;border:3px solid var(--success);opacity:0;transition:opacity .1s ease}.participant-speaking-ring.speaking{opacity:1;animation:speakingPulse .8s ease-in-out infinite}@keyframes speakingPulse{0%{box-shadow:0 0 #43b58180}70%{box-shadow:0 0 0 8px #43b58100}to{box-shadow:0 0 #43b58100}}.participant-speaking-ring.muted{border-color:var(--danger);opacity:.5;animation:none}.participant-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}.participant-muted-badge{font-size:.75rem}.video-feeds{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:flex-start;width:100%}.video-feed{position:relative;border-radius:8px;overflow:hidden;background:#000;width:160px;flex-shrink:0}.screen-share-feed{flex:1;min-width:0;width:auto}.video-feed{cursor:pointer;transition:all .2s ease}.feed-expanded{flex:1 1 auto!important;width:auto!important}.feed-minimized{width:120px!important;flex-shrink:0}.video-feed-video{width:100%;display:block;border-radius:8px}.video-feed-label{position:absolute;bottom:.5rem;left:.5rem;font-size:.75rem;font-weight:600;background:#0009;padding:.2rem .5rem;border-radius:4px}.voice-room-controls{border-top:1px solid rgba(0,0,0,.2);padding:1rem;background:#0000001a}.voice-room-status{text-align:center;font-size:.75rem;color:var(--success);font-weight:600;margin-bottom:.75rem}.voice-room-buttons{display:flex;justify-content:center;gap:.75rem}.vr-btn{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.625rem 1rem;background:#ffffff12;border-radius:8px;font-size:1.25rem;min-width:64px;transition:background .15s}.vr-btn span{font-size:.6875rem;color:var(--text-secondary)}.vr-btn:hover{background:#ffffff1f}.vr-btn-active{background:#ed42454d}.vr-btn-active:hover{background:#ed424566}.vr-btn-disconnect{background:#ed424533}.vr-btn-disconnect:hover{background:#ed424559}.chat-area{display:flex;flex-direction:column;background:var(--bg-primary);height:100%}.chat-header{display:flex;align-items:center;padding:1rem;border-bottom:1px solid rgba(0,0,0,.2);box-shadow:0 2px 4px #0000001a}.channel-hash{font-size:1.5rem;color:var(--text-secondary);margin-right:.5rem}.channel-name{font-weight:600;font-size:1rem}.messages{flex:1;overflow-y:auto;padding:1rem}.empty-messages{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-secondary)}.message{display:flex;gap:1rem;padding:.5rem;margin-bottom:.5rem;border-radius:4px;transition:background .15s}.message:hover{background:#0000001a}.message-avatar{width:40px;height:40px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0;overflow:hidden}.message-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.message-content{flex:1;min-width:0}.message-header{display:flex;align-items:baseline;gap:.5rem;margin-bottom:.25rem}.message-author{font-weight:600;font-size:.9375rem}.message-timestamp{font-size:.75rem;color:var(--text-secondary)}.message-text{word-wrap:break-word;line-height:1.375}.message-input{display:flex;gap:.5rem;padding:1rem;padding-bottom:max(1rem,env(safe-area-inset-bottom));align-items:flex-end}.message-input-wrap{position:relative;flex:1;min-width:0}.message-input-wrap textarea{width:100%;padding:.75rem;background:#0003;border:1px solid transparent;border-radius:8px;color:var(--text-primary);font-size:.9375rem;font-family:inherit;line-height:1.375;resize:none;overflow-y:auto;max-height:200px;box-sizing:border-box}.message-input-wrap textarea:focus{border-color:var(--accent);outline:none}.mention-dropdown{position:absolute;bottom:calc(100% + 6px);left:0;right:0;background:#2b2d31;border:1px solid rgba(255,255,255,.1);border-radius:8px;overflow:hidden;box-shadow:0 -4px 16px #0006;z-index:100}.mention-option{display:flex;align-items:center;gap:.25rem;padding:.5rem .75rem;font-size:.9rem;color:var(--text-primary);cursor:pointer;transition:background .1s}.mention-option:hover{background:#ffffff12}.mention-option-at{color:#faa61a;font-weight:700}.message-input button[type=submit]{padding:.75rem 1.25rem;background:var(--accent);color:#fff;border-radius:8px;font-weight:600;transition:background .2s;flex-shrink:0;width:auto;white-space:nowrap}.message-input button:hover{background:var(--accent-hover)}.message-actions{display:none;gap:.25rem;align-self:flex-start;padding-top:.125rem}.message:hover .message-actions{display:flex}.message-actions button{background:#0000004d;border-radius:4px;padding:.2rem .4rem;font-size:.8rem;line-height:1;cursor:pointer;transition:background .15s}.message-actions button:hover{background:#00000080}.message-edited{font-size:.7rem;color:var(--text-secondary);font-style:italic}.message-edit{display:flex;flex-direction:column;gap:.4rem}.message-edit input{padding:.4rem .6rem;background:#0000004d;border:1px solid var(--accent);border-radius:4px;color:var(--text-primary);font-size:.9375rem;width:100%}.edit-actions{display:flex;gap:.5rem}.edit-actions button{padding:.25rem .75rem;border-radius:4px;font-size:.8rem;cursor:pointer}.edit-actions button:first-child{background:var(--accent);color:#fff}.edit-actions button:last-child{background:#0000004d;color:var(--text-primary)}.voice-panel{display:flex;flex-direction:column;background:var(--bg-secondary);height:100%;width:100%;overflow:hidden;border-left:1px solid rgba(0,0,0,.2)}.voice-header{padding:1rem;font-weight:600;font-size:.875rem;text-transform:uppercase;color:var(--text-secondary);border-bottom:1px solid rgba(0,0,0,.2)}.members-list{flex:1;overflow-y:auto;padding:.5rem 0}.members-section{margin-bottom:1rem}.members-header{padding:.5rem 1rem;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}.user-list{display:flex;flex-direction:column}.member-row{display:flex;align-items:center;gap:.75rem;padding:.375rem 1rem;border-radius:4px;margin:0 .5rem;cursor:default;transition:background .15s}.member-row:hover{background:#ffffff0d}.member-dm-btn{background:transparent;font-size:1rem;padding:.2rem .3rem;border-radius:6px;opacity:0;transition:opacity .15s,background .15s;flex-shrink:0;line-height:1}.member-unread-badge{background:#ed4245;color:#fff;font-size:.6875rem;font-weight:700;min-width:18px;height:18px;border-radius:9px;padding:0 4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}.member-row:hover .member-dm-btn{opacity:.7}.member-dm-btn:hover{opacity:1!important;background:#ffffff1a}.member-avatar-wrap{position:relative;flex-shrink:0}.member-avatar{width:32px;height:32px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:600;color:#fff;font-size:.875rem;overflow:hidden}.member-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.status-dot{position:absolute;bottom:-1px;right:-1px;width:10px;height:10px;border-radius:50%;border:2px solid var(--bg-secondary)}.status-online{background:var(--success)}.status-away{background:#faa61a}.status-offline{background:#747f8d}.member-info{flex:1;min-width:0}.member-name{font-size:.875rem;font-weight:500;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-status-text{font-size:.75rem;color:var(--text-secondary)}.members-empty{padding:.25rem 1rem;font-size:.8125rem;color:var(--text-secondary);font-style:italic}@media (max-width: 768px){.voice-panel{display:none}}.dm-panel{position:fixed;left:240px;top:0;bottom:0;width:300px;background:var(--bg-secondary);border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;z-index:200;box-shadow:4px 0 24px #00000080;animation:dm-slide-in .18s ease}@keyframes dm-slide-in{0%{opacity:0;transform:translate(-12px)}to{opacity:1;transform:translate(0)}}.dm-header{display:flex;align-items:center;gap:.5rem;padding:.875rem 1rem;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 4px #0000001a;flex-shrink:0}.dm-title{flex:1;font-weight:600;font-size:.9375rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-back-btn,.dm-close-btn{background:transparent;color:var(--text-secondary);font-size:1.1rem;padding:.2rem .4rem;border-radius:4px;transition:color .15s,background .15s;flex-shrink:0}.dm-back-btn{font-size:1.4rem;line-height:1}.dm-back-btn:hover,.dm-close-btn:hover{color:var(--text-primary);background:#ffffff12}.dm-member-list{flex:1;overflow-y:auto;padding:.5rem 0}.dm-member-list::-webkit-scrollbar{width:6px}.dm-member-list::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:3px}.dm-member-item{display:flex;align-items:center;gap:.75rem;width:100%;padding:.6rem 1rem;background:transparent;color:var(--text-secondary);text-align:left;border-radius:0;transition:background .12s,color .12s;position:relative}.dm-member-item:hover{background:#ffffff0f;color:var(--text-primary)}.dm-member-avatar{width:36px;height:36px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.875rem;flex-shrink:0;overflow:hidden}.dm-member-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.dm-member-name{font-size:.9375rem;font-weight:500;flex:1}.dm-unread-badge{background:#ed4245;color:#fff;font-size:.6875rem;font-weight:700;min-width:18px;height:18px;border-radius:9px;padding:0 4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}.dm-messages{flex:1;overflow-y:auto;padding:.75rem .75rem .25rem;display:flex;flex-direction:column;gap:.35rem}.dm-messages::-webkit-scrollbar{width:6px}.dm-messages::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:3px}.dm-empty,.dm-loading{text-align:center;color:var(--text-secondary);font-size:.875rem;padding:2rem 1rem}.dm-message{display:flex;align-items:flex-end;gap:.4rem;max-width:100%}.dm-message-mine{flex-direction:row-reverse}.dm-msg-avatar{width:28px;height:28px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.75rem;flex-shrink:0;overflow:hidden;align-self:flex-end}.dm-msg-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.dm-msg-bubble{display:flex;flex-direction:column;max-width:200px}.dm-message-mine .dm-msg-bubble{align-items:flex-end}.dm-msg-text{background:#ffffff14;padding:.45rem .7rem;border-radius:14px;font-size:.875rem;line-height:1.4;word-break:break-word;white-space:pre-wrap}.dm-message-mine .dm-msg-text{background:var(--accent);color:#fff;border-radius:14px 14px 4px}.dm-message-theirs .dm-msg-text{border-radius:14px 14px 14px 4px}.dm-msg-time{font-size:.675rem;color:var(--text-secondary);margin-top:2px;padding:0 .25rem}.dm-input-area{display:flex;align-items:center;gap:.5rem;padding:.625rem .75rem;border-top:1px solid rgba(0,0,0,.2);flex-shrink:0}.dm-input{flex:1;background:#00000040;border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:.45rem .875rem;font-size:.875rem;color:var(--text-primary);outline:none;transition:border-color .15s}.dm-input:focus{border-color:var(--accent)}.dm-input::placeholder{color:var(--text-secondary)}.dm-send-btn{background:var(--accent);color:#fff;border-radius:50%;width:32px;height:32px;font-size:.875rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .15s,transform .1s}.dm-send-btn:hover:not(:disabled){opacity:.85;transform:scale(1.05)}.dm-send-btn:disabled{opacity:.35;cursor:not-allowed}@media (max-width: 768px){.dm-panel{left:0;width:100%}}.main-app{display:grid;grid-template-columns:240px 1fr 300px;width:100%;height:100%;overflow:hidden}.main-app>*{min-height:0;overflow:hidden}.right-panel-wrapper{display:flex;position:relative;overflow:hidden}.resize-handle{width:4px;cursor:col-resize;background:transparent;flex-shrink:0;transition:background .15s}.resize-handle:hover,.resize-handle:active{background:var(--accent)}@media (max-width: 768px){.main-app{grid-template-columns:60px 1fr}.right-panel-wrapper{display:none}}*{margin:0;padding:0;box-sizing:border-box}:root{--bg-primary: #36393f;--bg-secondary: #2f3136;--bg-tertiary: #202225;--text-primary: #ffffff;--text-secondary: #b9bbbe;--accent: #5865f2;--accent-hover: #4752c4;--success: #3ba55d;--danger: #ed4245}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bg-tertiary);color:var(--text-primary)}#root{width:100vw;height:100vh;height:100dvh;overflow:hidden}button{cursor:pointer;border:none;outline:none;font-family:inherit}input{font-family:inherit;outline:none}
