.server-list{width:var(--server-list-width);background:var(--bg-primary);display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:8px;overflow-y:auto;flex-shrink:0}.server-icon{width:48px;height:48px;border-radius:50%;background:var(--bg-secondary);color:var(--text-primary);display:flex;align-items:center;justify-content:center;font-size:1.125rem;font-weight:600;transition:border-radius .2s,background .15s;overflow:hidden}.server-icon:hover,.server-icon.active{border-radius:var(--radius-lg);background:var(--brand-primary)}.server-icon img{width:100%;height:100%;object-fit:cover}.home-icon{background:var(--bg-tertiary);color:var(--brand-accent)}.add-server{background:var(--bg-secondary);color:var(--status-online);font-size:1.5rem}.add-server:hover{background:var(--status-online);color:#fff}.server-separator{width:32px;height:2px;background:var(--bg-tertiary);border-radius:1px}.voice-panel{background:var(--bg-secondary);border-top:1px solid var(--bg-tertiary);padding:8px}.voice-panel-info{padding:4px 8px;margin-bottom:4px}.voice-status{display:flex;align-items:center;gap:6px;margin-bottom:2px}.voice-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.voice-indicator.connected{background:var(--accent-green, #43b581)}.voice-indicator.connecting{background:var(--accent-yellow, #faa61a);animation:pulse 1s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}.voice-status-text{font-size:.8125rem;font-weight:600;color:var(--accent-green, #43b581)}.voice-channel-name{font-size:.75rem;color:var(--text-muted);padding-left:14px}.voice-participants{padding:4px 8px;max-height:120px;overflow-y:auto}.voice-participant{display:flex;align-items:center;gap:6px;padding:2px 0;font-size:.8125rem;color:var(--text-primary)}.voice-participant-indicator{width:6px;height:6px;border-radius:50%;background:var(--text-muted);flex-shrink:0}.voice-participant-indicator.speaking{background:var(--accent-green, #43b581);box-shadow:0 0 4px var(--accent-green, #43b581)}.voice-participant-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voice-icon{font-size:.75rem;flex-shrink:0}.voice-icon.muted{opacity:.5}.voice-controls{display:flex;gap:4px;padding:4px 8px 0}.voice-control-btn{flex:1;padding:6px;border:none;border-radius:4px;background:var(--bg-tertiary);color:var(--text-primary);cursor:pointer;font-size:.875rem;transition:background .15s}.voice-control-btn:hover{background:var(--bg-hover)}.voice-control-btn.active{background:#ffffff1a;color:var(--text-muted)}.voice-control-btn.disconnect{background:var(--accent-red, #f04747);color:#fff}.voice-control-btn.disconnect:hover{background:#d84040}.avatar-crop-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000}.avatar-crop-card{background:var(--bg-secondary);border-radius:var(--radius-md, 8px);padding:24px;display:flex;flex-direction:column;align-items:center;gap:16px;min-width:340px}.avatar-crop-card h3{margin:0;font-size:1.125rem;font-weight:700;color:var(--text-primary)}.avatar-crop-canvas{border-radius:8px;cursor:grab;-webkit-user-select:none;user-select:none}.avatar-crop-canvas:active{cursor:grabbing}.avatar-crop-zoom{display:flex;align-items:center;gap:8px;width:100%;font-size:.8125rem;color:var(--text-secondary)}.avatar-crop-zoom input[type=range]{flex:1}.avatar-crop-buttons{display:flex;gap:8px;width:100%;justify-content:flex-end}.server-settings{background:var(--bg-primary);border-radius:var(--radius-lg);width:600px;max-width:95vw;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #00000080}.server-settings-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--bg-tertiary);flex-shrink:0}.server-settings-header h2{font-size:1.125rem;font-weight:700}.server-settings-close{width:32px;height:32px;background:transparent;color:var(--text-muted);font-size:1.125rem;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center}.server-settings-close:hover{background:var(--bg-hover);color:var(--text-primary)}.server-settings-body{display:flex;flex:1;overflow:hidden}.server-settings-tabs{width:160px;padding:12px;border-right:1px solid var(--bg-tertiary);display:flex;flex-direction:column;gap:2px;flex-shrink:0}.ss-tab{width:100%;padding:8px 12px;background:transparent;color:var(--text-secondary);font-size:.875rem;border-radius:var(--radius-sm);text-align:left}.ss-tab:hover{background:var(--bg-hover);color:var(--text-primary)}.ss-tab.active{background:var(--bg-hover);color:var(--text-primary);font-weight:500}.server-settings-content{flex:1;padding:20px;overflow-y:auto}.ss-danger-zone{margin-top:32px;padding-top:16px;border-top:1px solid rgba(240,71,71,.3)}.ss-danger-zone h3{font-size:.875rem;font-weight:600;color:var(--error);margin-bottom:12px}.ss-member-count{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-muted);letter-spacing:.02em;padding-bottom:8px;margin-bottom:4px;border-bottom:1px solid var(--bg-tertiary)}.ss-member-row{display:flex;align-items:center;gap:10px;padding:8px 4px;border-radius:var(--radius-sm)}.ss-member-row:hover{background:var(--bg-hover)}.ss-member-info{flex:1;min-width:0;display:flex;align-items:center;gap:6px}.ss-member-name{font-size:.875rem;font-weight:500}.ss-owner-badge{font-size:.625rem;font-weight:700;text-transform:uppercase;background:var(--brand-primary);color:#fff;padding:1px 6px;border-radius:9999px;letter-spacing:.02em}.ss-ban-reason{font-size:.75rem;color:var(--text-muted)}.ss-member-actions{display:flex;gap:4px}.ss-member-actions .btn{padding:4px 10px;font-size:.75rem}.ss-loading,.ss-empty{color:var(--text-muted);font-size:.875rem;text-align:center;padding:24px}.ss-channel-create{display:flex;gap:8px;margin-bottom:16px}.ss-channel-create .input{flex:1}.ss-invite-create{margin-bottom:16px}.ss-invite-row{display:flex;align-items:center;gap:10px;padding:8px 4px;border-radius:var(--radius-sm)}.ss-invite-row:hover{background:var(--bg-hover)}.ss-invite-url{flex:1;min-width:0;font-size:.8125rem;color:var(--brand-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:monospace}.ss-role-color{width:14px;height:14px;border-radius:50%;flex-shrink:0}.ss-role-edit{display:flex;align-items:center;gap:8px;flex:1}.ss-emoji-upload{display:flex;gap:8px;margin-bottom:16px;align-items:center}.ss-emoji-upload .input{flex:1}.ss-emoji-preview{width:32px;height:32px;object-fit:contain;flex-shrink:0}.ss-emoji-grid{display:flex;flex-direction:column}.ss-migration h3{font-size:1rem;font-weight:600;margin-bottom:8px}.ss-migration-guild{font-size:.875rem;color:var(--text-secondary);margin-bottom:16px}.ss-migration-connect{text-align:center;padding:32px 16px}.ss-migration-form .input-group{margin-bottom:0}.ss-migration-phases{display:flex;gap:4px;margin:16px 0 12px}.ss-phase-step{flex:1;text-align:center;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;padding:6px 4px;border-radius:var(--radius-sm);background:var(--bg-tertiary);color:var(--text-muted)}.ss-phase-step.done{background:var(--success, #43b581);color:#fff}.ss-phase-step.active{background:var(--accent, #5865f2);color:#fff;animation:ss-pulse 1.5s infinite}@keyframes ss-pulse{0%,to{opacity:1}50%{opacity:.7}}.ss-progress-bar-container{width:100%;height:8px;background:var(--bg-tertiary);border-radius:4px;overflow:hidden;margin-top:8px}.ss-progress-bar{height:100%;background:var(--accent, #5865f2);border-radius:4px;transition:width .3s ease}.ss-migration-last-job{font-size:.8125rem;padding:8px 12px;border-radius:var(--radius-sm);background:var(--bg-secondary)}.ss-migration-last-job.complete{border-left:3px solid var(--success, #43b581)}.ss-migration-last-job.failed{border-left:3px solid var(--error)}.ss-migration-last-job.cancelled{border-left:3px solid var(--text-muted)}@media (max-width: 768px){.server-settings{width:100%;max-width:100vw}.server-settings-body{flex-direction:column}.server-settings-tabs{width:100%;flex-direction:row;overflow-x:auto;border-right:none;border-bottom:1px solid var(--bg-tertiary)}}.channel-sidebar{width:var(--sidebar-width);background:var(--bg-secondary);display:flex;flex-direction:column;flex-shrink:0}.channel-sidebar-header{height:var(--header-height);padding:0 16px;display:flex;align-items:center;border-bottom:1px solid var(--bg-primary);flex-shrink:0}.channel-sidebar-header h2{font-size:.9375rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.server-settings-btn{width:28px;height:28px;background:transparent;color:var(--text-muted);font-size:1rem;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}.server-settings-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.channel-list{flex:1;overflow-y:auto;padding:8px}.channel-item{width:100%;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--radius-sm);color:var(--text-secondary);background:transparent;font-size:.9375rem;transition:background .1s,color .1s;min-width:0}.channel-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-item:hover{background:var(--bg-hover);color:var(--text-primary)}.channel-item.active{background:var(--bg-hover);color:var(--text-primary);font-weight:500}.channel-hash{color:var(--text-muted);font-weight:500}.channel-category{margin-bottom:8px}.channel-category-header{display:flex;align-items:center;padding:6px 4px 4px 2px;cursor:pointer;-webkit-user-select:none;user-select:none;gap:2px}.channel-category-label{flex:1;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:var(--text-muted)}.channel-add-btn{width:20px;height:20px;background:transparent;color:var(--text-muted);font-size:1.125rem;line-height:1;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center}.channel-add-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.channel-create-form{padding:2px 8px 6px;display:flex;flex-direction:column;gap:4px}.channel-type-toggle{display:flex;gap:4px}.channel-type-btn{flex:1;padding:3px 6px;background:var(--bg-primary);color:var(--text-muted);border:1px solid var(--bg-tertiary);border-radius:var(--radius-sm);font-size:.75rem;cursor:pointer}.channel-type-btn.active{background:var(--brand-primary);color:var(--text-primary);border-color:var(--brand-primary)}.channel-create-input,.channel-rename-input{width:100%;padding:4px 8px;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-sm);font-size:.875rem}.channel-create-input:focus,.channel-rename-input:focus{outline:1px solid var(--brand-primary);border-color:var(--brand-primary)}.channel-context-menu{position:fixed;z-index:1000;background:var(--bg-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);padding:4px;min-width:160px;box-shadow:0 4px 16px #0000004d}.channel-context-menu button{width:100%;padding:8px 12px;background:transparent;color:var(--text-primary);font-size:.8125rem;text-align:left;border-radius:var(--radius-sm)}.channel-context-menu button:hover{background:var(--bg-hover)}.channel-context-menu button.danger{color:var(--error)}.channel-context-menu button.danger:hover{background:#f047471a}.channel-item.voice .voice-icon-sm{font-size:.75rem}.channel-item.voice-active{color:var(--accent-green, #43b581)}.channel-category-create{padding:4px 8px}.channel-category-create-btn{width:100%;padding:6px 10px;background:transparent;color:var(--text-muted);font-size:.75rem;border-radius:var(--radius-sm);text-align:left}.channel-category-create-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.channel-category-arrow{font-size:.625rem;color:var(--text-muted);transition:transform .15s ease;display:inline-block;width:12px;text-align:center}.channel-category-arrow.collapsed{transform:rotate(-90deg)}.channel-category.drag-over{border-top:2px solid var(--brand-primary)}.channel-item.drop-before{box-shadow:0 -2px 0 0 var(--brand-primary)}.channel-item.drop-after{box-shadow:0 2px 0 0 var(--brand-primary)}.channel-empty{padding:16px;color:var(--text-muted);font-size:.8125rem;text-align:center}.user-panel{height:52px;padding:0 8px;display:flex;align-items:center;gap:8px;background:var(--bg-primary);flex-shrink:0}.user-info{flex:1;min-width:0;display:flex;flex-direction:column}.user-name{font-size:.8125rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-status{font-size:.6875rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-btn{width:32px;height:32px;background:transparent;color:var(--text-secondary);font-size:1.125rem;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center}.settings-btn:hover,.settings-btn.active{background:var(--bg-hover);color:var(--text-primary)}.member-list{width:240px;min-width:240px;background:var(--bg-secondary);display:flex;flex-direction:column;overflow:hidden}.member-list-header{height:var(--header-height);padding:0 16px;display:flex;align-items:center;border-bottom:1px solid var(--bg-tertiary);flex-shrink:0}.member-list-header h3{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-muted);letter-spacing:.02em}.member-list-body{flex:1;overflow-y:auto;padding:8px}.member-group-header{padding:16px 8px 4px;font-size:.6875rem;font-weight:700;text-transform:uppercase;color:var(--text-muted);letter-spacing:.02em}.member-item{display:flex;align-items:center;padding:4px 8px;border-radius:var(--radius-sm);gap:8px;cursor:default}.member-item:hover{background:var(--bg-tertiary)}.member-item--offline{opacity:.4}.member-item--offline:hover{opacity:.7}.member-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8125rem;font-weight:600;color:#fff;background:var(--accent);flex-shrink:0;position:relative}.member-presence-dot{position:absolute;bottom:-1px;right:-1px;width:10px;height:10px;border-radius:50%;background:#747f8d;border:2px solid var(--bg-secondary)}.member-presence-dot--online{background:#3ba55d}.member-info{min-width:0;flex:1}.member-name{font-size:.875rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-status-text{font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-bot-badge{font-size:.625rem;font-weight:700;background:var(--accent);color:#fff;padding:1px 5px;border-radius:3px;text-transform:uppercase;flex-shrink:0;letter-spacing:.02em}.member-friend-badge{font-size:.625rem;font-weight:600;color:var(--success, #43b581);padding:1px 5px;border-radius:3px;flex-shrink:0;opacity:0}.member-item:hover .member-friend-badge{opacity:1}.member-pending-badge{font-size:.625rem;font-weight:600;color:var(--text-muted);padding:1px 5px;border-radius:3px;flex-shrink:0;opacity:0}.member-item:hover .member-pending-badge{opacity:1}.member-add-friend{width:24px;height:24px;border-radius:50%;border:none;background:transparent;color:var(--text-muted);font-size:1rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;opacity:0;transition:opacity .15s,background .15s}.member-item:hover .member-add-friend{opacity:1}.member-add-friend:hover{background:var(--bg-hover);color:var(--accent, #5865f2)}@media (max-width: 768px){.member-list{display:none}.member-add-friend,.member-friend-badge,.member-pending-badge{opacity:1}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:var(--radius-md);font-size:.875rem;font-weight:500;transition:background .15s,opacity .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--brand-primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-secondary)}.btn-secondary{background:var(--bg-tertiary);color:var(--text-primary)}.btn-secondary:hover:not(:disabled){background:var(--bg-hover)}.btn-danger{background:var(--error);color:#fff}.btn-danger:hover:not(:disabled){opacity:.85}.input{width:100%;padding:10px 14px;background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);font-size:.9375rem;transition:border-color .15s}.input:focus{border-color:var(--brand-primary)}.input-group{display:flex;flex-direction:column;gap:6px}.input-group label{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-secondary);letter-spacing:.02em}.input-error{border-color:var(--error)}.card{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:24px}.auth-page{display:flex;align-items:center;justify-content:center;width:100%;height:100vh;background:var(--bg-primary)}.auth-form{width:100%;max-width:420px;padding:32px;background:var(--bg-secondary);border-radius:var(--radius-lg)}.auth-form h1{font-size:1.5rem;font-weight:700;margin-bottom:4px}.auth-form .subtitle{color:var(--text-secondary);font-size:.875rem;margin-bottom:24px}.auth-form .error-msg{color:var(--error);font-size:.8125rem;margin-bottom:12px}.auth-form .footer{margin-top:16px;font-size:.8125rem;color:var(--text-secondary)}.progress-bar{width:100%;height:8px;background:var(--bg-primary);border-radius:var(--radius-sm);overflow:hidden}.progress-bar-fill{height:100%;background:var(--brand-primary);border-radius:var(--radius-sm);transition:width .3s ease}.avatar{width:40px;height:40px;border-radius:var(--radius-full);background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;color:var(--text-primary);font-weight:600;font-size:.875rem;flex-shrink:0;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-sm{width:32px;height:32px;font-size:.75rem}.avatar-lg{width:80px;height:80px;font-size:1.5rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:var(--bg-primary);border-radius:var(--radius-lg, 12px);padding:24px;width:400px;max-width:90vw;box-shadow:0 8px 32px #0006}.layout{display:flex;width:100%;height:100vh;overflow:hidden}.sidebar-drawer{display:flex;flex-shrink:0}.layout-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.sidebar-backdrop,.mobile-menu-btn{display:none}@media (max-width: 768px){.layout{overflow-x:clip}.sidebar-drawer{position:fixed;top:0;left:0;bottom:0;z-index:500;width:max-content;max-width:100%;visibility:hidden;transform:translate(-100%);transition:transform .2s ease,visibility 0s .2s}.sidebar-drawer.open{visibility:visible;transform:translate(0);transition:transform .2s ease,visibility 0s}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:499;background:#00000080}.mobile-menu-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:transparent;color:var(--text-primary);font-size:1.25rem;border:none;flex-shrink:0;position:absolute;top:4px;left:4px;z-index:10;border-radius:var(--radius-sm)}.mobile-menu-btn:hover{background:var(--bg-hover)}.layout-main{position:relative;overflow-x:clip}.member-list{display:none}}.lightbox-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#000000d9;display:flex;align-items:center;justify-content:center;cursor:zoom-out}.lightbox-image{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:4px;cursor:default;-webkit-user-select:none;user-select:none}.lightbox-close{position:absolute;top:16px;right:16px;background:#0009;color:#fff;border:none;border-radius:50%;width:36px;height:36px;font-size:24px;line-height:36px;text-align:center;cursor:pointer;padding:0;z-index:1}.lightbox-close:hover{background:#000c}.message-list-container{display:flex;flex-direction:column;flex:1;overflow:hidden}.message-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:4px;overscroll-behavior-x:none}.message-history-start{color:var(--text-muted);text-align:center;padding:16px;font-size:.75rem;border-bottom:1px solid var(--border);margin-bottom:8px}.unread-divider{display:flex;align-items:center;margin:4px 16px;gap:8px}.unread-divider:before,.unread-divider:after{content:"";flex:1;height:1px;background:var(--error, #e74c3c)}.unread-divider-label{font-size:.6875rem;font-weight:700;color:var(--error, #e74c3c);text-transform:uppercase;letter-spacing:.03em;flex-shrink:0}.message-loading{color:var(--text-muted);text-align:center;padding:32px}.message{display:flex;gap:12px;padding:4px 8px;border-radius:var(--radius-sm);position:relative}.message:hover{background:var(--bg-hover)}.message:hover .message-actions{opacity:1}.message-body{flex:1;min-width:0}.message-header{display:flex;align-items:baseline;gap:8px}.message-author{font-size:.9375rem;font-weight:600;color:var(--brand-primary, #7b68ee);cursor:pointer}.message-author:hover{text-decoration:underline}.message-timestamp,.message-edited{font-size:.6875rem;color:var(--text-muted)}.message-content{font-size:.9375rem;color:var(--text-primary);line-height:1.4;word-wrap:break-word}.message-link{color:var(--brand-primary);text-decoration:none;word-break:break-all}.message-link:hover{text-decoration:underline}.reply-indicator{display:flex;align-items:center;gap:6px;font-size:.75rem;color:var(--text-muted);margin-bottom:2px;padding:2px 0}.reply-icon{font-size:.75rem;color:var(--text-muted)}.reply-author{font-weight:600;color:var(--brand-primary)}.reply-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}.typing-indicator{display:flex;align-items:center;gap:6px;padding:4px 16px;font-size:.75rem;color:var(--text-muted);min-height:20px}.typing-dots{display:flex;gap:2px}.typing-dots span{width:4px;height:4px;border-radius:50%;background:var(--text-muted);animation:typingBounce 1.4s infinite ease-in-out}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes typingBounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}.reply-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:var(--bg-secondary);border-top:2px solid var(--brand-primary);font-size:.8125rem;color:var(--text-secondary)}.reply-bar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.reply-bar-text strong{color:var(--text-primary)}.reply-bar-preview{color:var(--text-muted)}.reply-bar-close{width:24px;height:24px;background:transparent;color:var(--text-muted);border-radius:var(--radius-sm);font-size:.875rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.reply-bar-close:hover{background:var(--bg-hover);color:var(--text-primary)}.message-actions{position:absolute;right:8px;top:-8px;opacity:0;display:flex;gap:2px;background:var(--bg-secondary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-sm);transition:opacity .1s}.message-action-btn{width:28px;height:28px;background:transparent;color:var(--text-muted);font-size:.875rem;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm)}.message-action-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.message-action-btn.delete:hover{color:var(--error)}.mention{background:#5b68f433;color:var(--brand-primary);padding:0 2px;border-radius:3px;font-weight:500;cursor:pointer}.mention:hover{background:#5b68f459}.message-input-wrapper{position:relative}.mention-popup{position:absolute;bottom:100%;left:16px;right:16px;background:var(--bg-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);padding:4px;max-height:240px;overflow-y:auto;box-shadow:0 -4px 16px #0000004d;z-index:100}.mention-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--radius-sm);color:var(--text-primary);background:transparent;font-size:.875rem}.mention-item:hover,.mention-item.active{background:var(--bg-hover)}.mention-item-name{font-weight:500}.mention-item-username{color:var(--text-muted);font-size:.75rem}.emoji-autocomplete-popup{position:absolute;bottom:100%;left:16px;right:16px;background:var(--bg-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);padding:4px;max-height:240px;overflow-y:auto;box-shadow:0 -4px 16px #0000004d;z-index:100}.emoji-autocomplete-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--radius-sm);color:var(--text-primary);background:transparent;font-size:.875rem}.emoji-autocomplete-item:hover,.emoji-autocomplete-item.active{background:var(--bg-hover)}.emoji-autocomplete-img{width:24px;height:24px;object-fit:contain}.emoji-autocomplete-name{font-weight:500}.message-input-container{display:flex;padding:0 16px 16px;gap:8px}.message-input{flex:1;padding:10px 14px;background:var(--bg-secondary);color:var(--text-primary);border-radius:var(--radius-md);font-size:.9375rem;min-height:44px;max-height:200px;overflow-y:auto;white-space:pre-wrap;word-wrap:break-word;line-height:1.4}.message-input:focus{outline:1px solid var(--brand-primary)}.message-input[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none}.send-btn{width:44px;height:44px;background:var(--brand-primary);color:#fff;border-radius:var(--radius-md);font-size:1.25rem;display:flex;align-items:center;justify-content:center}.send-btn:disabled{opacity:.4}.send-btn:hover:not(:disabled){background:var(--brand-secondary)}.message-edit-form{margin-top:4px}.message-edit-input{width:100%;padding:8px 12px;background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--brand-primary);border-radius:var(--radius-sm);font-size:.9375rem;resize:none;min-height:38px;font-family:inherit;line-height:1.4}.message-edit-input:focus{outline:none;border-color:var(--brand-primary);box-shadow:0 0 0 1px var(--brand-primary)}.message-edit-hint{font-size:.6875rem;color:var(--text-muted);margin-top:4px}.reactions-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.reaction-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:9999px;background:var(--bg-secondary);border:1px solid var(--bg-tertiary);font-size:.8125rem;cursor:pointer;transition:background .1s}.reaction-chip:hover{background:var(--bg-hover);border-color:var(--text-muted)}.reaction-chip.reacted{background:#5b68f426;border-color:var(--brand-primary)}.reaction-emoji{font-size:.875rem;line-height:1}.reaction-count{font-size:.75rem;color:var(--text-secondary);font-weight:500}.reaction-chip.reacted .reaction-count{color:var(--brand-primary)}.emoji-picker{position:absolute;right:0;bottom:100%;margin-bottom:4px;display:grid;grid-template-columns:repeat(8,32px);gap:2px;padding:4px;background:var(--bg-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);box-shadow:0 4px 12px #0000004d;z-index:100;max-height:300px;overflow-y:auto}.emoji-pick-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:var(--radius-sm);font-size:1.125rem;cursor:pointer}.emoji-pick-btn:hover{background:var(--bg-hover)}.emoji-pick-img{width:22px;height:22px;object-fit:contain}.custom-emoji{display:inline;height:1.375em;width:auto;vertical-align:-.3em;object-fit:contain}.message-content.emoji-only .custom-emoji{height:3em;vertical-align:-.5em}.search-results{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:4px}.search-results-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--bg-tertiary)}.search-results-header h3{font-size:.875rem;font-weight:600;color:var(--text-muted)}.search-results-close{width:24px;height:24px;background:transparent;color:var(--text-muted);border-radius:var(--radius-sm);font-size:.875rem;display:flex;align-items:center;justify-content:center}.search-results-close:hover{background:var(--bg-hover);color:var(--text-primary)}.message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.attachment-image-link{display:block;border-radius:var(--radius-md);overflow:hidden;line-height:0}.attachment-image{display:block;border-radius:var(--radius-md);object-fit:contain;cursor:pointer}.attachment-image:hover{opacity:.9}.attachment-video{display:block;border-radius:var(--radius-md);max-width:400px;max-height:300px}.attachment-audio{display:block;max-width:400px}.attachment-file{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--bg-secondary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);color:var(--text-primary);text-decoration:none;font-size:.8125rem}.attachment-file:hover{background:var(--bg-hover)}.attachment-file-icon{font-size:1.25rem}.attachment-file-name{font-weight:500}.attachment-file-size{color:var(--text-muted);font-size:.75rem}.message-embeds{display:flex;flex-direction:column;gap:6px;margin-top:6px}.embed-card{max-width:420px;padding:12px;background:var(--bg-secondary);border-left:4px solid var(--brand-primary);border-radius:var(--radius-md);overflow:hidden}.embed-site{font-size:.6875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;margin-bottom:4px}.embed-title{font-size:.875rem;font-weight:600;margin-bottom:4px}.embed-title a{color:var(--brand-primary);text-decoration:none}.embed-title a:hover{text-decoration:underline}.embed-description{font-size:.8125rem;color:var(--text-secondary);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.embed-image{margin-top:8px;max-width:100%;max-height:200px;border-radius:var(--radius-sm);object-fit:cover}.upload-btn{width:44px;height:44px;background:var(--bg-secondary);color:var(--text-muted);border-radius:var(--radius-md);font-size:1.5rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.upload-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.gif-btn{width:44px;height:44px;background:var(--bg-secondary);color:var(--text-muted);border-radius:var(--radius-md);font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:.02em}.gif-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.gif-picker{position:absolute;bottom:calc(100% + 8px);left:0;width:420px;height:460px;background:var(--bg-primary);border:1px solid var(--bg-tertiary);border-radius:var(--radius-md);box-shadow:0 -4px 16px #0000004d;z-index:200;display:flex;flex-direction:column;overflow:hidden}.gif-picker-search{width:100%;padding:10px 12px;background:var(--bg-secondary);color:var(--text-primary);border:none;border-bottom:1px solid var(--bg-tertiary);font-size:.875rem;outline:none;flex-shrink:0;box-sizing:border-box}.gif-picker-search::placeholder{color:var(--text-muted)}.gif-picker-search:focus{background:var(--bg-tertiary)}.gif-picker-loading{padding:32px;text-align:center;color:var(--text-muted);font-size:.8125rem}.gif-picker-grid{column-count:2;column-gap:4px;padding:4px;overflow-y:auto;flex:1}.gif-picker-item{background:var(--bg-secondary);border:none;border-radius:var(--radius-sm);overflow:hidden;cursor:pointer;padding:0;display:block;break-inside:avoid;margin-bottom:4px}.gif-picker-item:hover{outline:2px solid var(--brand-primary);outline-offset:-2px}.gif-picker-item img{width:100%;height:auto;display:block}.emoji-input-btn{width:44px;height:44px;background:var(--bg-secondary);border:none;border-radius:8px;cursor:pointer;font-size:1.25rem;color:var(--text-muted);display:flex;align-items:center;justify-content:center;flex-shrink:0}.emoji-input-btn:hover{background:var(--bg-hover)}.emoji-input-picker{position:absolute;bottom:calc(100% + 8px);left:0;width:320px;max-height:300px;overflow-y:auto;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:12px;padding:8px;z-index:1000;box-shadow:0 8px 24px #0006}.emoji-input-section{margin-bottom:8px}.emoji-input-label{font-size:.7rem;text-transform:uppercase;color:var(--text-muted);padding:4px 4px 6px;font-weight:600}.emoji-input-grid{display:flex;flex-wrap:wrap;gap:2px}.pending-files{display:flex;gap:8px;padding:8px 16px;overflow-x:auto}.pending-file{position:relative;border-radius:var(--radius-md);overflow:hidden;background:var(--bg-secondary);border:1px solid var(--bg-tertiary)}.pending-file-preview{display:block;width:100px;height:100px;object-fit:cover}.pending-file-name{display:block;padding:8px 12px;font-size:.75rem;color:var(--text-secondary);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pending-file-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;background:#0009;color:#fff;border-radius:50%;font-size:.625rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.pending-file-remove:hover{background:var(--error)}.message-grouped{padding-top:2px;padding-bottom:2px}.message-gutter{width:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.message-timestamp-hover{display:none;font-size:.625rem;color:var(--text-muted);white-space:nowrap}.message-grouped:hover .message-timestamp-hover{display:block}.message-edited-inline{font-size:.6875rem;color:var(--text-muted);margin-left:4px}@media (max-width: 768px){.message-actions{opacity:1}.message-input-container{padding:0 8px 8px}.gif-picker{width:calc(100vw - 32px)}.attachment-video,.attachment-audio,.embed-card{max-width:100%}.reply-text{max-width:200px}}.screen-share-view{display:flex;flex-direction:column;background:var(--bg-primary);border-bottom:1px solid var(--bg-secondary)}.screen-share-header{padding:8px 16px;background:var(--bg-secondary);display:flex;align-items:center}.screen-share-label{font-size:.8125rem;font-weight:600;color:var(--accent-green, #43b581)}.screen-share-video-container{position:relative;width:100%;max-height:400px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#000}.screen-share-video{width:100%;max-height:400px;object-fit:contain}.invite-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg-primary);padding:16px}.invite-card{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:40px;text-align:center;max-width:440px;width:100%;box-shadow:0 8px 32px #0006}.invite-card h2{font-size:1.25rem;font-weight:700;margin-bottom:8px}.invite-server-icon{width:80px;height:80px;border-radius:50%;background:var(--brand-primary);color:#fff;font-size:2rem;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}.invite-subtitle{font-size:.875rem;color:var(--text-muted);margin-bottom:4px}.invite-server-name{font-size:1.5rem;font-weight:700;margin-bottom:8px}.invite-description{font-size:.875rem;color:var(--text-secondary);margin-bottom:16px}.invite-actions{display:flex;gap:12px;justify-content:center;margin-top:24px}.invite-join-btn{padding:10px 32px;font-size:1rem}.invite-loading,.invite-error{color:var(--text-muted);font-size:.875rem;padding:16px}.invite-error{color:var(--error)}.friends-page{display:flex;flex-direction:column;height:100%}.friends-header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border-color, rgba(255, 255, 255, .06));flex-shrink:0}.friends-header h2{font-size:1rem;font-weight:700;margin:0 8px 0 0}.friends-tabs{display:flex;gap:4px}.friends-tab{background:transparent;border:none;color:var(--text-muted);font-size:.8125rem;font-weight:500;padding:4px 10px;border-radius:var(--radius-sm, 4px);cursor:pointer;display:flex;align-items:center;gap:6px}.friends-tab:hover,.friends-tab.active{background:var(--bg-hover);color:var(--text-primary)}.friends-badge{background:var(--error, #e74c3c);color:#fff;font-size:.6875rem;font-weight:700;min-width:16px;height:16px;line-height:16px;text-align:center;border-radius:8px;padding:0 4px}.friends-add-btn{margin-left:auto;background:var(--accent, #5865f2);color:#fff;border:none;font-size:.8125rem;font-weight:500;padding:6px 14px;border-radius:var(--radius-sm, 4px);cursor:pointer}.friends-add-btn:hover{opacity:.9}.friends-add-btn.active{background:transparent;color:var(--accent, #5865f2);border:1px solid var(--accent, #5865f2)}.friends-body{flex:1;overflow-y:auto;padding:16px}.friends-section-header{font-size:.75rem;font-weight:600;text-transform:uppercase;color:var(--text-muted);padding:8px 4px;margin-top:8px}.friends-section-header:first-child{margin-top:0}.friends-row{display:flex;align-items:center;gap:12px;padding:8px;border-radius:var(--radius-sm, 4px);border-top:1px solid var(--border-color, rgba(255, 255, 255, .04))}.friends-row:hover{background:var(--bg-hover)}.friends-row-avatar{width:36px;height:36px;border-radius:50%;background:var(--bg-tertiary, #2f3136);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.875rem;color:var(--text-primary);flex-shrink:0;position:relative;overflow:visible}.friends-presence{position:absolute;bottom:-1px;right:-1px;width:12px;height:12px;border-radius:50%;background:var(--text-muted);border:2px solid var(--bg-primary, #36393f)}.friends-presence--online{background:var(--success, #43b581)}.friends-row-info{flex:1;min-width:0}.friends-row-name{font-size:.9375rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friends-row-status{font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friends-row-actions{display:flex;gap:6px;flex-shrink:0;opacity:0}.friends-row:hover .friends-row-actions{opacity:1}.btn-sm{padding:4px 10px!important;font-size:.75rem!important}.friends-empty{color:var(--text-muted);font-size:.875rem;text-align:center;padding:48px 16px}.friends-add-section{max-width:520px;padding:8px 0}.friends-add-section h3{font-size:1rem;font-weight:700;margin:0 0 4px}.friends-add-section p{font-size:.8125rem;color:var(--text-muted);margin:0 0 16px}.friends-add-input{display:flex;gap:8px;background:var(--bg-secondary);padding:8px;border-radius:var(--radius-md, 8px)}.friends-add-input .input{flex:1}.friends-add-status{font-size:.8125rem;margin:8px 0 0}.friends-add-status--success{color:var(--success, #43b581)}.friends-add-status--error{color:var(--error, #e74c3c)}@media (max-width: 768px){.friends-row-actions{opacity:1}.friends-header{flex-wrap:wrap}.friends-add-btn{margin-left:0}}:root{--brand-primary: #5B68F4;--brand-secondary: #4752C4;--brand-accent: #7983F7;--bg-primary: #1a1a2e;--bg-secondary: #16213e;--bg-tertiary: #0f3460;--bg-hover: #1f2b4d;--text-primary: #e8e8f0;--text-secondary: #a0a0b8;--text-muted: #6b6b80;--status-online: #43b581;--status-idle: #faa61a;--status-busy: #f04747;--status-invisible: #747f8d;--error: #f04747;--success: #43b581;--warning: #faa61a;--info: #5B68F4;--sidebar-width: 240px;--server-list-width: 72px;--header-height: 48px;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", monospace;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 16px;--radius-full: 50%}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-font-smoothing:antialiased;overflow:hidden;position:fixed;width:100%;height:100%}body{font-family:var(--font-sans);background:var(--bg-primary);color:var(--text-primary);line-height:1.5;overflow:hidden;width:100%;height:100%}#root{width:100%;height:100%;display:flex}a{color:var(--brand-accent);text-decoration:none}a:hover{text-decoration:underline}button{font-family:inherit;cursor:pointer;border:none;outline:none}input,textarea{font-family:inherit;border:none;outline:none}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:var(--radius-sm)}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.flex-1{flex:1}.overflow-y-auto{overflow-y:auto}.overflow-hidden{overflow:hidden}.text-center{text-align:center}.w-full{width:100%}
