*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{color:#17202a;background:#f3f5f8;font-family:Arial,Helvetica,sans-serif}button,input{font:inherit}button{cursor:pointer}.chat-shell{background:#fff;grid-template-columns:330px 1fr;min-height:100vh;display:grid}.sidebar{background:#fafbfc;border-right:1px solid #e5e7eb;padding:24px 16px;overflow-y:auto}.brand{align-items:center;gap:12px;padding:4px 8px 26px;display:flex}.brand-mark{color:#fff;background:#17202a;border-radius:12px;place-items:center;width:40px;height:40px;font-weight:700;display:grid}.brand strong,.brand small,.conversation strong,.conversation small{display:block}.brand small,.conversation small,.chat-header small{color:#7b8490;margin-top:3px;font-size:12px}.section-title{color:#68727d;text-transform:uppercase;letter-spacing:.06em;padding:12px 8px 8px;font-size:12px;font-weight:700}.user-list,.conversation-list{gap:4px;display:grid}.user-button,.conversation{text-align:left;width:100%;color:inherit;background:0 0;border:0;border-radius:10px;align-items:center;gap:11px;padding:10px 8px;display:flex}.user-button:hover,.conversation:hover,.conversation.active{background:#edf1f5}.avatar{color:#39434e;background:#dfe5eb;border-radius:50%;flex:0 0 38px;place-items:center;width:38px;height:38px;font-size:12px;font-weight:700;display:grid}.user-id,.conversation strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.conversation-section{margin-top:18px}.muted,.no-messages{color:#7b8490;padding:0 8px;font-size:14px;line-height:1.5}.chat-panel{flex-direction:column;min-width:0;display:flex}.chat-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;min-height:76px;padding:16px 28px;display:flex}.chat-header>div{align-items:center;gap:9px;display:flex}.online-dot,.offline-dot{background:#39a96b;border-radius:50%;width:9px;height:9px}.messages{flex:1;padding:28px;overflow-y:auto}.message-row{justify-content:flex-start;margin-bottom:12px;display:flex}.message-row.own{justify-content:flex-end}.message{background:#f0f2f5;border-radius:14px 14px 14px 4px;max-width:min(680px,75%);padding:10px 14px}.message-row.own .message{color:#fff;background:#17202a;border-radius:14px 14px 4px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.45}.message time{opacity:.6;margin-top:5px;font-size:10px;display:block}.composer{background:#fff;border-top:1px solid #e5e7eb;gap:10px;padding:16px 20px;display:flex}.composer input{border:1px solid #d7dce1;border-radius:12px;outline:none;flex:1;min-width:0;padding:12px 14px}.composer input:focus{border-color:#9aa4af}.composer button{color:#fff;background:#17202a;border:0;border-radius:12px;padding:0 20px;font-weight:700}.composer button:disabled{opacity:.45;cursor:default}.empty-state{text-align:center;flex:1;place-content:center;justify-items:center;padding:30px;display:grid}.empty-icon{margin-bottom:8px;font-size:42px}.empty-state h1{margin:0 0 8px}.empty-state p{color:#68727d;margin:0}.error-banner{color:#a32929;background:#fff1f1;border:1px solid #f0caca;border-radius:10px;max-width:min(500px,100vw - 36px);padding:12px 16px;font-size:14px;position:fixed;bottom:18px;right:18px;box-shadow:0 8px 30px #00000018}@media (max-width:760px){.chat-shell{grid-template-rows:auto 1fr;grid-template-columns:1fr}.sidebar{border-bottom:1px solid #e5e7eb;border-right:0;max-height:44vh}.messages{padding:18px}.chat-header{padding:14px 18px}.composer{padding:12px}}.logout-button{color:#4b5560;background:#fff;border:1px solid #d7dce1;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:700}.logout-button:hover{background:#f3f5f8}.auth-page{background:#f3f5f8;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{text-align:center;background:#fff;border:1px solid #e1e5e9;border-radius:18px;width:min(440px,100%);padding:34px;box-shadow:0 18px 50px #00000010}.auth-logo{color:#fff;background:#17202a;border-radius:15px;place-items:center;width:52px;height:52px;margin:0 auto 18px;font-size:21px;font-weight:700;display:grid}.auth-card h1{margin:0}.auth-description{color:#68727d;margin:12px 0 22px;line-height:1.55}.auth-status{color:#4b5560;background:#f3f5f8;border-radius:10px;margin:0 0 18px;padding:12px 14px;font-size:14px}.auth-button{color:#fff;background:#17202a;border-radius:11px;justify-content:center;width:100%;padding:12px 16px;font-weight:700;text-decoration:none;display:inline-flex}.auth-button:hover{opacity:.9}.auth-hint{color:#7b8490;margin:0;font-size:13px;line-height:1.5}.offline-dot{background:#9aa4af}.new-group-button{color:#39434e;text-align:left;background:#fff;border:1px solid #d7dce1;border-radius:10px;width:100%;margin:0 0 8px;padding:9px 10px;font-weight:700}.new-group-button:hover{background:#edf1f5}.modal-backdrop{z-index:20;background:#00000040;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-card{background:#fff;border:1px solid #e1e5e9;border-radius:18px;flex-direction:column;gap:14px;width:min(480px,100%);max-height:min(700px,90vh);padding:22px;display:flex;box-shadow:0 20px 60px #00000020}.modal-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.modal-header strong,.modal-header small{display:block}.modal-header small{color:#7b8490;margin-top:4px}.modal-close{color:#68727d;background:0 0;border:0;font-size:26px;line-height:1}.modal-input{border:1px solid #d7dce1;border-radius:10px;outline:none;width:100%;padding:11px 12px}.group-user-list{gap:4px;padding:2px;display:grid;overflow-y:auto}.group-user{cursor:pointer;border-radius:10px;align-items:center;gap:10px;padding:9px;display:flex}.group-user:hover{background:#f3f5f8}.group-user input{margin:0 2px 0 0}.create-group-button{color:#fff;background:#17202a;border:0;border-radius:11px;padding:12px 16px;font-weight:700}.create-group-button:disabled{opacity:.45;cursor:default}.message-row{align-items:center;position:relative}.message-actions{align-self:center;margin:0 4px;position:relative}.message-actions-button{color:#68727d;opacity:0;background:0 0;border:0;border-radius:8px;width:30px;height:30px;transition:opacity .15s,background .15s}.message-row:hover .message-actions-button,.message-actions-button:focus{opacity:1}.message-actions-button:hover{background:#edf1f5}.message-actions-menu{z-index:5;background:#fff;border:1px solid #e1e5e9;border-radius:10px;min-width:165px;padding:5px;display:none;position:absolute;bottom:calc(100% + 4px);right:0;box-shadow:0 10px 30px #00000018}.message-actions:hover .message-actions-menu,.message-actions:focus-within .message-actions-menu{display:grid}.message-actions-menu button{text-align:left;color:#39434e;background:0 0;border:0;border-radius:7px;padding:9px 10px;font-size:13px}.message-actions-menu button:hover{background:#f3f5f8}.message.deleted{color:#7b8490;background:#f3f5f8;border:1px dashed #d7dce1}.message-row.own .message.deleted{color:#7b8490;background:#f3f5f8}.deleted-message{font-style:italic}.typing-indicator{color:#7b8490;min-height:24px;padding:0 28px 8px;font-size:12px;font-style:italic}@media (max-width:760px){.typing-indicator{padding:0 18px 8px}}.attachment-button{cursor:pointer;background:#fff;border:1px solid #d7dce1;border-radius:10px;place-items:center;padding:0 13px;display:inline-grid}.attachment-image-button{cursor:zoom-in;background:0 0;border:0;padding:0;display:block}.attachment-image{object-fit:contain;border-radius:10px;max-width:min(420px,100%);max-height:360px;display:block}.attachment-file{color:inherit;font-weight:700;text-decoration:none;display:inline-block}.attachment-loading{color:#7b8490;font-size:12px}.image-preview-backdrop{z-index:50;background:#000c;place-items:center;padding:30px;display:grid;position:fixed;inset:0}.image-preview{object-fit:contain;max-width:95vw;max-height:90vh}.image-preview-close{color:#fff;background:0 0;border:0;font-size:36px;position:fixed;top:16px;right:20px}.settings-link{color:#39434e;background:#fff;border:1px solid #d7dce1;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:700}.settings-link:hover{background:#f3f5f8}.settings-page{background:#f3f5f8;min-height:100vh;padding:30px}.settings-card{background:#fff;border:1px solid #e1e5e9;border-radius:18px;width:min(720px,100%);margin:0 auto;padding:28px;box-shadow:0 18px 50px #00000010}.settings-card h1{margin:18px 0 6px}.settings-card h2{margin:28px 0 12px}.settings-hint{color:#68727d;font-size:14px;line-height:1.5}.settings-back{color:#39434e;background:0 0;border:0;padding:4px 0;font-weight:700}.color-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.color-grid label{border:1px solid #e1e5e9;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px;font-weight:700;display:flex}.color-grid input{background:0 0;border:0;width:48px;height:36px;padding:0}.background-grid{grid-template-columns:repeat(5,1fr);gap:10px;display:grid}.background-option{color:#39434e;background:#fff;border:1px solid #d7dce1;border-radius:12px;padding:8px;font-weight:700}.background-option.active{outline:2px solid #17202a}.background-swatch{background:#f3f5f8;border-radius:8px;height:70px;margin-bottom:7px;display:block}.background-swatch.blue{background:linear-gradient(135deg,#24395f,#6284b9)}.background-swatch.purple{background:linear-gradient(135deg,#4b3268,#a77fc4)}.background-swatch.green{background:linear-gradient(135deg,#285c4d,#78ad92)}.background-swatch.dark{background:linear-gradient(135deg,#20232a,#555b66)}.settings-save{color:#fff;background:#17202a;border:0;border-radius:11px;margin-top:24px;padding:12px 18px;font-weight:700}.settings-success{color:#24734a;margin-top:12px;font-weight:700}@media (max-width:760px){.color-grid{grid-template-columns:1fr}.background-grid{grid-template-columns:repeat(2,1fr)}.settings-page{padding:14px}.chat-header{gap:10px}.settings-link{padding:8px;font-size:12px}}.upload-background{cursor:pointer;border:1px dashed #b9c0c8;border-radius:12px;align-items:center;gap:12px;padding:12px 14px;font-weight:700;display:inline-flex}.upload-background input{display:none}.conversation-settings{gap:8px;display:grid}.conversation-setting{border:1px solid #e1e5e9;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.conversation-setting select{background:#fff;border:1px solid #d7dce1;border-radius:8px;padding:8px}@media (max-width:760px){.conversation-setting{flex-direction:column;align-items:stretch}}.presence-settings{grid-template-columns:180px 1fr;gap:10px;display:grid}.presence-settings select,.presence-settings input{background:#fff;border:1px solid #d7dce1;border-radius:9px;padding:10px}.user-id{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.presence-dot{border-radius:50%;width:8px;height:8px;display:inline-block}.presence-dot.online{background:#35a66f}.presence-dot.away{background:#e4a72c}.presence-dot.dnd{background:#d94a4a}.presence-dot.offline{background:#8b949e}.user-status{color:#68727d;width:100%;font-size:11px}@media (max-width:760px){.presence-settings{grid-template-columns:1fr}}.message-edit-form{gap:8px;min-width:min(420px,70vw);display:grid}.message-edit-form textarea{resize:vertical;width:100%;min-height:90px;font:inherit;border:1px solid #d7dce1;border-radius:9px;padding:9px}.message-edit-form>div{justify-content:flex-end;gap:6px;display:flex}.message-edit-form button{background:#fff;border:1px solid #d7dce1;border-radius:8px;padding:7px 10px}.message-edit-form button:last-child{color:#fff;background:#17202a;border-color:#17202a}.reply-preview{text-align:left;width:100%;color:inherit;cursor:pointer;background:#00000012;border:0;border-left:3px solid;border-radius:6px;gap:3px;margin-bottom:7px;padding:6px 8px;display:grid}.reply-preview span{text-overflow:ellipsis;white-space:nowrap;opacity:.8;overflow:hidden}.reply-composer-preview{background:#f7f8fa;border-top:1px solid #e1e5e9;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;display:flex}.reply-composer-preview>div{gap:2px;min-width:0;display:grid}.reply-composer-preview span{text-overflow:ellipsis;white-space:nowrap;color:#66717d;overflow:hidden}.reply-composer-preview button{cursor:pointer;background:0 0;border:0;font-size:20px}.reaction-picker{flex-wrap:wrap;gap:2px;padding:4px;display:flex}.reaction-picker button,.message-reactions button{cursor:pointer;background:#00000012;border:0;border-radius:999px;padding:4px 7px;font-size:14px}.message-reactions{flex-wrap:wrap;gap:4px;margin-top:5px;display:flex}.message-reactions button{font-size:13px}.conversation-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.archive-toggle{color:inherit;opacity:.7;cursor:pointer;background:0 0;border:0;font-size:12px}.conversation{align-items:center;gap:4px;display:flex}.conversation-main{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:0;display:flex}.conversation-actions{opacity:.35;gap:2px;display:flex}.conversation:hover .conversation-actions,.conversation.active .conversation-actions{opacity:1}.conversation-actions button{cursor:pointer;background:0 0;border:0;padding:4px;font-size:15px}.message-author{width:100%;color:inherit;opacity:.7;text-align:left;background:0 0;border:0;align-items:center;gap:6px;padding:0 0 6px;font-size:11px;font-weight:700;display:flex}.message-author:hover{opacity:1}.profile-backdrop{z-index:60;background:#0005;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.profile-card{text-align:center;background:#fff;border:1px solid #e1e5e9;border-radius:20px;justify-items:center;gap:10px;width:min(360px,100%);padding:30px 26px 26px;display:grid;position:relative;box-shadow:0 22px 70px #00000025}.profile-close{color:#68727d;background:0 0;border:0;font-size:26px;line-height:1;position:absolute;top:10px;right:12px}.profile-avatar{color:#39434e;background:#dfe5eb;border-radius:50%;place-items:center;width:76px;height:76px;font-size:24px;font-weight:800;display:grid}.profile-card h2{margin:2px 0 0;font-size:22px}.profile-username{color:#7b8490;font-size:14px}.profile-presence{align-items:center;gap:7px;font-size:14px;font-weight:700;display:flex}.profile-status{color:#68727d;background:#f3f5f8;border-radius:10px;max-width:100%;padding:9px 12px;font-size:13px}.profile-own-label{color:#68727d;margin-top:5px;font-size:13px}.profile-message-button{color:#fff;background:#17202a;border:0;border-radius:11px;margin-top:7px;padding:11px 16px;font-weight:700}.message-link{text-decoration:underline}.message-code{white-space:pre-wrap;background:#0000000d;border-radius:6px;padding:5px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.upload-progress{background:#00000012;height:3px;position:absolute;bottom:100%;left:0;right:0;overflow:hidden}.upload-progress span{background:currentColor;height:100%;transition:width .2s;display:block}.toast{z-index:100;color:#fff;background:#17202a;border-radius:10px;padding:11px 15px;font-size:13px;font-weight:700;position:fixed;bottom:20px;right:20px;box-shadow:0 8px 30px #0003}.avatar,.profile-avatar{object-fit:cover;overflow:hidden}.older-loading{text-align:center;color:#7b8490;z-index:2;padding:8px;font-size:12px;position:sticky;top:0}.confirm-backdrop{z-index:80;background:#0005;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-card{background:#fff;border:1px solid #e1e5e9;border-radius:18px;gap:14px;width:min(430px,100%);padding:24px;display:grid;box-shadow:0 22px 70px #00000025}.confirm-icon{background:#f3f5f8;border-radius:12px;place-items:center;width:42px;height:42px;font-size:20px;display:grid}.confirm-card h2{margin:0 0 6px;font-size:19px}.confirm-card p{color:#68727d;margin:0;font-size:14px;line-height:1.5}.confirm-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.confirm-actions button{border-radius:10px;padding:10px 13px;font-weight:700}.confirm-cancel{color:#39434e;background:#fff;border:1px solid #d7dce1}.confirm-danger{color:#fff;background:#b83232;border:1px solid #b83232}.confirm-danger:disabled{opacity:.5;cursor:default}@media (max-width:760px){.confirm-actions{flex-direction:column-reverse}.confirm-actions button{width:100%}}.composer-wrap{position:relative}.upload-progress-panel{color:#68727d;background:#f7f8fa;border-top:1px solid #e5e7eb;align-items:center;gap:10px;padding:7px 20px;font-size:12px;display:flex}.upload-progress-track{background:#e1e5e9;border-radius:999px;flex:1;height:5px;overflow:hidden}.upload-progress-track span{background:#17202a;border-radius:999px;height:100%;transition:width .15s;display:block}@media (max-width:760px){.upload-progress-panel{padding:7px 12px}}.image-preview-content{justify-items:center;gap:10px;max-width:95vw;max-height:90vh;display:grid}.image-preview-counter{color:#fff;background:#00000080;border-radius:999px;padding:5px 9px;font-size:12px}.image-preview-nav{z-index:2;color:#fff;background:#fff2;border:0;border-radius:50%;width:44px;height:44px;font-size:36px;line-height:1;position:fixed;top:50%;transform:translateY(-50%)}.image-preview-nav:hover{background:#ffffff3d}.image-preview-prev{left:18px}.image-preview-next{right:18px}@media (max-width:760px){.image-preview-nav{width:38px;height:38px;font-size:30px}.image-preview-prev{left:8px}.image-preview-next{right:8px}}.header-actions{align-items:center;gap:8px;display:flex}.theme-toggle{color:#39434e;background:#fff;border:1px solid #d7dce1;border-radius:10px;padding:8px 10px;font-size:13px;font-weight:700}.settings-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}html.dark body{color:#e8edf2;background:#11161c}html.dark .chat-shell{background:#151b22}html.dark .sidebar{background:#121820;border-color:#2a333d}html.dark .user-button:hover,html.dark .conversation:hover,html.dark .conversation.active{background:#202934}html.dark .brand small,html.dark .conversation small,html.dark .chat-header small,html.dark .muted,html.dark .no-messages{color:#9ca8b4}html.dark .chat-header,html.dark .composer{background:#151b22;border-color:#2a333d}html.dark .message{color:#e8edf2;background:#252d36}html.dark .message-row.own .message{color:#151b22;background:#e8edf2}html.dark .message.deleted{color:#9ca8b4;background:#20262d;border-color:#3a444f}html.dark .composer input,html.dark .modal-input,html.dark .conversation-setting select,html.dark .attachment-button,html.dark .settings-link,html.dark .logout-button,html.dark .new-group-button,html.dark .message-actions-menu,html.dark .modal-card,html.dark .profile-card,html.dark .confirm-card{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .message-actions-menu button{color:#e8edf2}html.dark .message-actions-menu button:hover,html.dark .new-group-button:hover,html.dark .logout-button:hover{background:#252f39}html.dark .reply-composer-preview,html.dark .upload-progress-panel{background:#1b232c;border-color:#2f3944}html.dark .error-banner{color:#ffb8bd;background:#321f22;border-color:#63353a}html.dark .theme-toggle{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .settings-page,html.dark .auth-page{background:#11161c}html.dark .settings-card,html.dark .auth-card{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .settings-hint,html.dark .empty-state p{color:#9ca8b4}html.dark .settings-back,html.dark .background-option,html.dark .upload-background{color:#e8edf2}html.dark .background-option,html.dark .upload-background,html.dark .conversation-setting,html.dark .color-grid label{background:#1c242d;border-color:#3a444f}html.dark .presence-settings select,html.dark .presence-settings input{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .profile-status,html.dark .auth-status{color:#b8c2cc;background:#252f39}.mobile-menu-button{z-index:35;color:#17202a;background:#fff;border:1px solid #d7dce1;border-radius:10px;width:40px;height:40px;font-size:21px;display:none;position:fixed;top:12px;left:12px;box-shadow:0 4px 16px #0002}@media (max-width:760px){.mobile-menu-button{place-items:center;display:grid}.chat-shell{position:relative;overflow:hidden}.sidebar{z-index:30;border:0;max-height:none;transition:transform .22s;position:absolute;inset:0;transform:translate(-105%);box-shadow:12px 0 35px #0003}.chat-shell.mobile-sidebar-open .sidebar{transform:translate(0)}.chat-header{padding-left:64px}.chat-header>div,.chat-header>div>div{min-width:0}.chat-header strong,.chat-header small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header-actions{margin-left:auto}.theme-toggle{padding:7px 9px}.settings-link{padding:7px 8px}.messages{padding:14px}.message{max-width:88%}.composer{gap:6px;padding:10px}.composer input{padding:10px}.composer button{padding:0 14px}.attachment-button{padding:0 10px}.image-preview-backdrop{padding:12px}.image-preview{max-width:92vw;max-height:82vh}}.chat-header{position:relative}.search-toggle{color:#39434e;background:#fff;border:1px solid #d7dce1;border-radius:10px;padding:8px 10px;font-size:15px}.message-search-panel{z-index:25;background:#fff;border:1px solid #e1e5e9;border-radius:14px;width:min(430px,100vw - 36px);position:absolute;top:58px;right:18px;overflow:hidden;box-shadow:0 16px 45px #00000020}.message-search-form{border-bottom:1px solid #e1e5e9;gap:6px;padding:10px;display:flex}.message-search-form input{border:1px solid #d7dce1;border-radius:9px;outline:none;flex:1;min-width:0;padding:9px 10px}.message-search-form button{color:#fff;background:#17202a;border:0;border-radius:9px;padding:8px 10px;font-weight:700}.message-search-form button:disabled{opacity:.45}.message-search-results{max-height:360px;overflow:auto}.message-search-results button{text-align:left;width:100%;color:inherit;background:0 0;border:0;gap:2px;padding:10px 12px;display:grid}.message-search-results button:hover{background:#f3f5f8}.message-search-results span{text-overflow:ellipsis;white-space:nowrap;color:#68727d;overflow:hidden}.message-search-results small{color:#9aa4af}.message-search-empty{color:#7b8490;padding:14px;font-size:13px}html.dark .search-toggle,html.dark .message-search-panel{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .message-search-form{border-color:#3a444f}html.dark .message-search-form input{color:#e8edf2;background:#151b22;border-color:#3a444f}html.dark .message-search-results button:hover{background:#252f39}html.dark .message-search-results span,html.dark .message-search-results small{color:#9ca8b4}@media (max-width:760px){.message-search-panel{top:56px;right:8px}.search-toggle{padding:7px 9px}}.notification-toggle{color:#39434e;background:#fff;border:1px solid #d7dce1;border-radius:10px;padding:8px 10px;font-size:15px;font-weight:700}.notification-toggle:hover{background:#f3f5f8}.notification-settings{border:1px solid #e1e5e9;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;padding:14px;display:flex}.notification-settings .settings-hint{margin:5px 0 0}.notification-enabled,.notification-disabled{white-space:nowrap;border:1px solid #d7dce1;border-radius:10px;padding:9px 12px;font-weight:700}.notification-enabled{color:#fff;background:#17202a}.notification-disabled{color:#39434e;background:#fff}html.dark .notification-toggle,html.dark .notification-disabled{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .notification-settings{background:#1c242d;border-color:#3a444f}@media (max-width:760px){.notification-settings{flex-direction:column;align-items:stretch}.notification-toggle{padding:7px 9px}}.notification-settings+.notification-settings{margin-top:10px}.pinned-toggle{color:#39434e;background:#fff;border:1px solid #d7dce1;border-radius:10px;padding:8px 10px;font-size:14px;font-weight:700}.pinned-panel{z-index:25;background:#fff;border:1px solid #e1e5e9;border-radius:14px;width:min(430px,100vw - 36px);max-height:420px;position:absolute;top:58px;right:18px;overflow:auto;box-shadow:0 16px 45px #00000020}.pinned-panel-header{border-bottom:1px solid #e1e5e9;justify-content:space-between;align-items:center;padding:11px 12px;display:flex}.pinned-panel-header button{background:0 0;border:0;font-size:20px}.pinned-item{text-align:left;width:100%;color:inherit;background:0 0;border:0;gap:3px;padding:10px 12px;display:grid}.pinned-item:hover{background:#f3f5f8}.pinned-item span{text-overflow:ellipsis;white-space:nowrap;color:#68727d;overflow:hidden}.pinned-item small{color:#9aa4af}.pinned-empty{color:#7b8490;padding:14px;font-size:13px}html.dark .pinned-toggle,html.dark .pinned-panel{color:#e8edf2;background:#1c242d;border-color:#3a444f}html.dark .pinned-panel-header{border-color:#3a444f}html.dark .pinned-item:hover{background:#252f39}html.dark .pinned-item span,html.dark .pinned-item small{color:#9ca8b4}.draft-status{color:#7b8490;white-space:nowrap;align-self:center;font-size:11px}html.dark .draft-status{color:#9ca8b4}@media (max-width:760px){.draft-status{display:none}}.message-highlight{animation:1.4s message-highlight}@keyframes message-highlight{0%{box-shadow:0 0 0 3px #17202a55}to{box-shadow:0 0 #0000}}html.dark .message-highlight{animation:1.4s message-highlight-dark}@keyframes message-highlight-dark{0%{box-shadow:0 0 0 3px #fff5}to{box-shadow:0 0 #0000}}.scroll-to-latest{z-index:8;color:#17202a;cursor:pointer;background:#fff;border:1px solid #d7dce1;border-radius:999px;padding:9px 14px;font-size:12px;font-weight:700;position:absolute;bottom:88px;right:22px;box-shadow:0 8px 24px #0002}.scroll-to-latest:hover{background:#f3f5f8}html.dark .scroll-to-latest{color:#e8edf2;background:#1c242d;border-color:#3a444f}@media (max-width:760px){.scroll-to-latest{padding:8px 12px;bottom:82px;right:14px}}.message-edited{color:#8a949f;font-size:10px;font-style:italic;font-weight:500}html.dark .message-edited{color:#9ca8b4}.message-edit-form textarea:focus{outline:2px solid #17202a22}html.dark .message-edit-form textarea{color:#e8edf2;background:#151b22;border-color:#3a444f}html.dark .message-edit-form button{color:#e8edf2;background:#252f39;border-color:#3a444f}html.dark .message-edit-form button:last-child{color:#151b22;background:#e8edf2;border-color:#e8edf2}.forward-modal{max-width:520px}.forward-modal .modal-header small{color:var(--muted-text,#777);text-overflow:ellipsis;white-space:nowrap;max-width:430px;margin-top:6px;display:block;overflow:hidden}.forward-conversation-list{flex-direction:column;gap:6px;max-height:55vh;display:flex;overflow-y:auto}.forward-conversation{border:1px solid var(--border,#ddd);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border-radius:10px;align-items:center;gap:12px;padding:12px;display:flex}.forward-conversation:hover{background:#7f7f7f14}.forward-conversation:disabled{opacity:.55;cursor:wait}.forward-conversation .conversation-icon{text-align:center;width:32px;font-size:20px}.forward-conversation strong,.forward-conversation small{display:block}.forward-conversation small{opacity:.7;margin-top:2px}.forward-empty{text-align:center;opacity:.7;padding:20px}@media (max-width:640px){.forward-modal{width:calc(100vw - 24px);max-width:none}.forward-modal .modal-header small{max-width:70vw}}.mention-suggestions{border:1px solid var(--border,#ddd);background:var(--surface,#fff);z-index:30;border-radius:10px;flex-direction:column;gap:2px;max-height:280px;padding:6px;display:flex;position:absolute;bottom:calc(100% + 8px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #00000024}.mention-suggestion{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:7px 9px;display:flex}.mention-suggestion:hover{background:#7f7f7f1a}.mention-suggestion span:last-child{flex-direction:column;min-width:0;display:flex}.mention-suggestion small{opacity:.65}.message-mention{background:#7f7f7f24;border-radius:4px;padding:0 2px;font-weight:600}.message-mention.own{background:#ffc40047;font-weight:700}.dark .mention-suggestions{background:var(--surface-dark,#20242b);border-color:#3b414c}@media (max-width:640px){.mention-suggestions{max-height:220px}}.auth-form{text-align:left;gap:14px;display:grid}.auth-form label{color:#39434e;gap:6px;font-size:13px;font-weight:700;display:grid}.auth-form input{border:1px solid #d7dce1;border-radius:10px;outline:none;width:100%;padding:11px 12px}.auth-form input:focus{border-color:#9aa4af}.auth-form .auth-button{cursor:pointer;border:0}.auth-form .auth-button:disabled{opacity:.55;cursor:default}.auth-error{color:#a32929;background:#fff1f1;border:1px solid #f0caca;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.4}html.dark .auth-form label{color:#e8edf2}html.dark .auth-form input{color:#e8edf2;background:#151b22;border-color:#3a444f}html.dark .auth-error{color:#ffb8bd;background:#321f22;border-color:#63353a}.unread-badge{color:#fff;background:#2563eb;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;min-width:21px;height:21px;padding:0 6px;font-size:11px;font-weight:800;line-height:1;display:inline-flex}.conversation-main .unread-badge{margin-left:auto}:is(html:has(.chat-shell),body:has(.chat-shell)){height:100%;min-height:0;overflow:hidden}.chat-shell{height:100dvh;min-height:0;overflow:hidden}.sidebar{overscroll-behavior:contain;height:100%;min-height:0;overflow:hidden auto}.chat-panel{height:100%;min-height:0;position:relative;overflow:hidden}.chat-header,.typing-indicator,.reply-composer-preview,.composer-wrap{flex:none}.messages{overscroll-behavior:contain;scroll-behavior:smooth;flex:1 1 0;min-height:0;overflow:hidden auto}.composer-wrap{z-index:5;background:#fff;border-top:1px solid #e5e7eb;position:relative}.composer{border-top:0}html.dark .composer-wrap{background:#1c242d;border-color:#3a444f}@media (max-width:760px){:is(html:has(.chat-shell),body:has(.chat-shell)){height:100%;overflow:hidden}.chat-shell{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);height:100dvh;min-height:0}.sidebar{height:100%;min-height:0;max-height:none;overflow-y:auto}.chat-panel{height:100%;min-height:0}.messages{min-height:0;padding:14px}.composer-wrap{padding-bottom:env(safe-area-inset-bottom)}}
