.chat-lock-panel{display:grid;place-items:center;min-width:0;height:100%;overflow:auto;padding:24px}.chat-lock-card{display:flex;flex-direction:column;gap:14px;width:min(100%,380px);padding:28px;border:1px solid var(--line, #ddd);border-radius:20px;background:var(--panel, #fff);color:var(--text, #202020)}.chat-lock-icon{font-size:32px;text-align:center}.chat-lock-card h2,.chat-lock-card p{margin:0}.chat-lock-card input{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--line, #aaa);background:var(--panel, #fff);color:var(--text, #202020);border-radius:8px;font:inherit;letter-spacing:5px}.chat-lock-card small{line-height:1.5;opacity:.75}.chat-lock-card [role=alert]{color:var(--theme-danger, #b42318)}.chat-lock-actions{display:flex;justify-content:flex-end;gap:12px}.message-request-card{flex-shrink:0;padding:1rem 1.25rem;text-align:center;border-top:1px solid var(--theme-line, #cbd5f5);background:var(--theme-glass, rgba(255, 255, 255, .95));color:var(--theme-text, #1f2937)}.message-request-card strong{font-size:1rem}.message-request-card p{max-width:36rem;margin:.4rem auto .8rem;font-size:.85rem;color:var(--theme-secondary, #64748b)}.message-request-actions{display:flex;justify-content:center;gap:.75rem;margin-bottom:.35rem}.message-request-actions .btn{min-width:7rem}.message-requests-empty{padding:1.5rem;text-align:center;color:var(--theme-secondary, #64748b)}.status-share-panel{position:absolute;top:100%;right:0;z-index:10;width:min(280px,85vw);padding:12px;border:1px solid #475569;border-radius:14px;background:#172333;color:#fff;box-shadow:0 12px 32px #0006}.status-share-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.status-share-panel button{border:0;border-radius:8px;background:#ffffff14;color:inherit;padding:10px 12px;cursor:pointer}.status-share-panel>button{display:block;width:100%;margin-top:8px;text-align:left}.status-share-panel button:hover{background:#ffffff26}.status-share-panel button:disabled{opacity:.5;cursor:default}.status-share-panel button:focus-visible{outline:2px solid #a5b4fc;outline-offset:2px}.status-share-panel p{font-size:13px;margin:10px 0 0;color:#cbd5e1}.status-share-panel p:empty{display:none}.status-viewer-text-content{min-width:0;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}.status-viewer-text-link{color:inherit;text-decoration:underline;text-underline-offset:.12em}.status-viewer-text-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px}.call-window{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;flex-direction:column;background:#111b21;color:#fff;overflow:hidden;font-family:Inter,SF Pro Text,Segoe UI,sans-serif}.call-window.minimized{width:400px;height:260px;top:auto;left:auto;right:20px;bottom:20px;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px #00000080}.call-window.minimized .call-header{height:56px;padding:0 16px}.call-window.minimized .call-header h2{font-size:14px}.call-window.minimized .call-avatar{width:36px;height:36px;font-size:14px}.call-window.minimized .call-controls{height:64px;gap:8px;padding:0 12px}.call-window.minimized .call-control-btn{width:42px;height:42px}.call-window.minimized .call-control-btn svg{width:18px;height:18px}.call-window.minimized .local-preview-container{width:100px;height:72px;right:10px;bottom:76px}.call-window.minimized .call-window-controls{top:8px;right:8px;gap:4px}.call-window.minimized .window-control-btn{width:24px;height:24px}.call-window.minimized .call-connecting-overlay{display:none}.call-window.maximized{top:0;right:0;bottom:0;left:0;border-radius:0}.call-window.maximized .call-stage{border-radius:0}.call-window-controls{position:absolute;top:12px;right:16px;display:flex;gap:6px;z-index:30}.window-control-btn{width:28px;height:28px;border:none;border-radius:50%;background:#ffffff1a;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.window-control-btn:hover{background:#fff3}.call-header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#202c33;border-bottom:1px solid #2a3942;flex-shrink:0;z-index:10}.call-user-info{display:flex;align-items:center;gap:12px}.call-avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;background:#00a884;color:#fff;flex-shrink:0}.call-header h2{margin:0;font-size:16px;font-weight:600;color:#e9edef;line-height:1.3}.call-status{margin:0;color:#8696a0;font-size:12px;display:flex;align-items:center;gap:6px}.call-timer{color:#8696a0;font-size:12px;font-variant-numeric:tabular-nums}.call-header-actions{display:flex;align-items:center;gap:8px}.call-connection-dot{width:8px;height:8px;border-radius:50%;background:#25d366;animation:call-pulse 2s infinite}.call-connection-dot.reconnecting{background:#ffb020;animation:call-pulse .5s infinite}.call-connection-dot.disconnected{background:#ef4444;animation:none}@keyframes call-pulse{0%{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}to{opacity:.4;transform:scale(.8)}}.call-stage{flex:1;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#0b141a}.participant-grid{width:100%;height:100%;display:grid;gap:4px;padding:8px}.participant-grid.single{grid-template-columns:1fr;grid-template-rows:1fr}.participant-grid.cols-2{grid-template-columns:1fr 1fr}.participant-grid.cols-3{grid-template-columns:1fr 1fr 1fr}.participant-grid.cols-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.participant-tile{position:relative;border-radius:8px;overflow:hidden;background:#1f2c33;display:flex;align-items:center;justify-content:center;min-height:120px}.participant-tile.speaking{outline:2px solid #25d366;outline-offset:-2px}.participant-tile.local{border:1px solid rgba(255,255,255,.1)}.participant-video{width:100%;height:100%;object-fit:cover}.participant-avatar-fallback{display:flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:#2a3942;color:#8696a0}.participant-avatar-initial{font-size:32px;font-weight:600;color:#e9edef}.participant-info-overlay{position:absolute;bottom:0;left:0;right:0;padding:8px 12px;background:linear-gradient(transparent,#0009);display:flex;align-items:center;gap:8px}.participant-name-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;color:#e9edef;text-shadow:0 1px 2px rgba(0,0,0,.5)}.participant-screen-share-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:#00a8844d;color:#00d4a3;font-size:10px;font-weight:600}.participant-hold-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#ffb0204d;color:#ffb020;font-size:10px;font-weight:600}.local-preview-container{position:absolute;right:20px;bottom:100px;width:180px;height:135px;border-radius:12px;overflow:hidden;background:#1f2c33;border:2px solid rgba(255,255,255,.15);box-shadow:0 8px 30px #0006;z-index:20;cursor:pointer;transition:all .3s ease}.local-preview-container.minimized{width:100px;height:72px;right:12px;bottom:78px;border-width:1px}.local-preview-container:hover{border-color:#ffffff4d}.local-preview-video{width:100%;height:100%;object-fit:cover}.local-preview-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#2a3942;color:#8696a0}.screen-share-view{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;background:#000}.screen-share-header{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#202c33f2;color:#e9edef;font-size:13px;font-weight:500;z-index:2}.screen-share-video{flex:1;width:100%;object-fit:contain;background:#000}.call-connecting-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#0b141ad9;z-index:15;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.call-connecting-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.1);border-top-color:#00a884;border-radius:50%;animation:call-spin .8s linear infinite}.call-connecting-text{font-size:16px;font-weight:500;color:#8696a0}@keyframes call-spin{to{transform:rotate(360deg)}}.call-controls{height:88px;display:flex;justify-content:center;align-items:center;gap:16px;padding:0 24px;background:#202c33;border-top:1px solid #2a3942;flex-shrink:0;position:relative;z-index:10}.call-control-btn{width:56px;height:56px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#2a3942;color:#e9edef;cursor:pointer;transition:all .2s ease;position:relative}.call-control-btn:hover{background:#374248;transform:translateY(-1px)}.call-control-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.call-control-btn.active{background:#00a884;color:#fff}.call-control-btn.active.danger{background:#ef4444;color:#fff}.call-control-btn.end-call{background:#dc2626;color:#fff;width:60px;height:60px}.call-control-btn.end-call:hover{background:#b91c1c;transform:scale(1.05)}.call-control-btn.end-call svg{width:24px;height:24px;stroke-width:2.5}.control-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#00a884;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}.more-controls-wrapper{position:relative}.more-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40}.more-menu{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:180px;background:#2a3942;border:1px solid #374248;border-radius:12px;padding:4px;display:flex;flex-direction:column;gap:2px;z-index:50;box-shadow:0 16px 40px #0006}.more-menu-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border:none;border-radius:8px;background:transparent;color:#e9edef;font-size:13px;font-weight:500;cursor:pointer;transition:background .2s;white-space:nowrap}.more-menu-item:hover{background:#374248}.more-menu-item svg{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.call-invite-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:16px;background:#0000008c}.call-invite-dialog{width:min(420px,100%);max-height:100%;overflow-y:auto;background:#202c33;color:#e9edef;padding:20px;border-radius:16px;box-shadow:0 16px 48px #00000059}.call-invite-dialog header,.call-invite-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.call-invite-dialog h3{margin:0}.call-invite-dialog p{margin:12px 0}.call-invite-dialog button{border:0;padding:10px 14px;border-radius:8px;color:#e9edef;background:#374248;cursor:pointer}.call-invite-dialog button:disabled{opacity:.5;cursor:default}.call-invite-dialog input[type=search]{width:100%;padding:10px 12px;border:1px solid #586970;border-radius:8px;background:#111b21;color:#e9edef}.call-invite-dialog :focus-visible{outline:2px solid #00a884;outline-offset:2px}.call-invite-members{max-height:280px;overflow-y:auto;margin:12px 0}.call-invite-member{display:flex;align-items:center;gap:12px;padding:12px 4px;cursor:pointer}.call-invite-member span{min-width:0}.call-invite-member strong,.call-invite-member small{display:block;overflow-wrap:anywhere}.call-invite-member small{color:#aebac1;margin-top:3px}.call-invite-member input{width:18px;height:18px;accent-color:#00a884;flex-shrink:0}.call-invite-dialog .call-invite-submit{background:#008f72}@media (max-width: 480px){.call-window.whatsapp-call footer.call-controls{gap:6px;padding-left:8px;padding-right:8px}.call-window.whatsapp-call footer.call-controls .call-control-btn{width:clamp(34px,10vw,46px);height:40px;flex-shrink:0}}.participant-sidebar-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:50;display:flex;justify-content:flex-end}.participant-sidebar{width:320px;max-width:90vw;height:100%;background:#202c33;border-left:1px solid #2a3942;display:flex;flex-direction:column;animation:slide-in-right .2s ease}@keyframes slide-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}.participant-sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #2a3942}.participant-sidebar-header h3{margin:0;font-size:16px;font-weight:600;color:#e9edef}.participant-sidebar-close{width:32px;height:32px;border:none;border-radius:50%;background:transparent;color:#8696a0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.participant-sidebar-close:hover{background:#ffffff1a}.participant-sidebar-list{flex:1;overflow-y:auto;padding:8px 0}.participant-sidebar-item{display:flex;align-items:center;gap:12px;padding:10px 20px;transition:background .2s}.participant-sidebar-item:hover{background:#ffffff0d}.participant-sidebar-avatar{width:40px;height:40px;border-radius:50%;background:#2a3942;color:#e9edef;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;flex-shrink:0;overflow:hidden}.participant-sidebar-avatar img{width:100%;height:100%;object-fit:cover;display:block}.participant-sidebar-info{display:flex;flex-direction:column;gap:2px;min-width:0}.participant-sidebar-name{font-size:14px;font-weight:500;color:#e9edef}.participant-sidebar-status{font-size:12px;color:#8696a0}@media (max-width: 900px){.call-controls{gap:12px;padding:0 16px}.call-control-btn{width:50px;height:50px}.call-control-btn svg{width:20px;height:20px}.call-control-btn.end-call{width:54px;height:54px}.local-preview-container{width:140px;height:105px;right:12px;bottom:92px}.participant-avatar-fallback{width:60px;height:60px}.participant-avatar-initial{font-size:24px}}@media (max-width: 600px){.call-header{height:56px;padding:0 12px}.call-avatar{width:36px;height:36px;font-size:14px}.call-header h2{font-size:14px}.call-controls{height:72px;gap:8px;padding:0 8px}.call-control-btn{width:44px;height:44px}.call-control-btn svg{width:18px;height:18px}.call-control-btn.end-call{width:48px;height:48px}.call-control-btn.end-call svg{width:20px;height:20px}.local-preview-container{width:100px;height:75px;right:8px;bottom:78px}.participant-grid{gap:2px;padding:4px}.participant-grid.cols-2,.participant-grid.cols-3,.participant-grid.cols-4{grid-template-columns:1fr 1fr}.participant-tile{min-height:80px;border-radius:6px}.participant-avatar-fallback{width:44px;height:44px}.participant-avatar-initial{font-size:18px}.call-window.minimized{width:280px;height:200px;right:10px;bottom:10px;border-radius:12px}}.participant-sidebar-list::-webkit-scrollbar,.call-participants::-webkit-scrollbar{width:6px}.participant-sidebar-list::-webkit-scrollbar-track,.call-participants::-webkit-scrollbar-track{background:transparent}.participant-sidebar-list::-webkit-scrollbar-thumb,.call-participants::-webkit-scrollbar-thumb{background:#374248;border-radius:20px}.participant-sidebar-list::-webkit-scrollbar-thumb:hover,.call-participants::-webkit-scrollbar-thumb:hover{background:#4a5a64}.call-window.whatsapp-call{background:#0b141a}.call-window.waiting{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#111b21;color:#fff;font-family:Inter,SF Pro Text,Segoe UI,sans-serif}.call-waiting-box{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:24px}.call-waiting-spinner{width:52px;height:52px;border:4px solid rgba(255,255,255,.1);border-top-color:#00a884;border-radius:50%;animation:call-spin .8s linear infinite}.call-waiting-box h2{margin:0;font-size:20px;font-weight:600;color:#e9edef}.call-waiting-box p{margin:0;font-size:14px;color:#8696a0}.wa-voice-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;width:100%;height:100%}.wa-voice-avatar{width:200px;height:200px;border-radius:50%;background:#202c33;border:3px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 24px 60px #00000073}.wa-voice-avatar-image{width:100%;height:100%;object-fit:cover}.wa-voice-avatar-initial{font-size:84px;font-weight:600;color:#e9edef}.wa-voice-name{margin:4px 0 0;font-size:28px;font-weight:600;color:#e9edef}.wa-voice-status{margin:0;font-size:15px;color:#8696a0}.wa-video-single{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#000}.wa-video-single .participant-tile{width:100%;height:100%;border-radius:0;min-height:0;background:#000}.wa-video-single .participant-video{object-fit:cover}.wa-video-single .participant-avatar-fallback{width:120px;height:120px}.wa-video-single .participant-avatar-initial{font-size:48px}.wa-video-single-footer{position:absolute;bottom:108px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;color:#fff;text-align:center;z-index:6;pointer-events:none}.wa-video-single-name{font-size:17px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.8)}.wa-video-single-status{font-size:13px;color:#ffffffbf;text-shadow:0 1px 4px rgba(0,0,0,.8);font-variant-numeric:tabular-nums}.call-avatar-image,.participant-avatar-image{width:100%;height:100%;border-radius:50%;object-fit:cover}.participant-grid{grid-auto-rows:1fr}.participant-grid.cols-2x2{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.participant-grid.cols-3x3{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.participant-tile .participant-video{background:#000}.call-window.whatsapp-call .call-controls{position:absolute;left:0;right:0;bottom:0;height:auto;display:flex;justify-content:center;align-items:center;gap:18px;padding:20px 24px 30px;background:linear-gradient(to top,#0b141ad9,#0b141a00);border:none;flex-shrink:0;z-index:20}.call-window.whatsapp-call .call-control-btn{width:52px;height:52px;background:#202c33cc;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.08)}.call-window.whatsapp-call .call-control-btn:hover{background:#374248eb;transform:none}.call-window.whatsapp-call .call-control-btn.active.danger{background:#dc2626d9;border-color:transparent}.call-window.whatsapp-call .call-control-btn.end-call{width:58px;height:58px;background:#ef5350;border:none}.call-window.whatsapp-call .call-control-btn.end-call:hover{background:#e0483f;transform:scale(1.05)}.call-window.whatsapp-call.call-voice .call-connecting-overlay{display:none}.call-window.whatsapp-call .local-preview-container{right:18px;bottom:112px}.call-window.whatsapp-call .local-preview-container.minimized{bottom:96px}@media (max-width: 600px){.wa-voice-avatar{width:140px;height:140px}.wa-voice-avatar-initial{font-size:56px}.wa-voice-name{font-size:22px}.wa-video-single .participant-avatar-fallback{width:88px;height:88px}.wa-video-single .participant-avatar-initial{font-size:36px}.wa-video-single-footer{bottom:96px}.call-window.whatsapp-call .call-controls{gap:12px;padding:14px 16px 20px}.call-window.whatsapp-call .call-control-btn{width:46px;height:46px}.call-window.whatsapp-call .call-control-btn.end-call{width:50px;height:50px}.call-window.whatsapp-call .local-preview-container{width:96px;height:72px;right:10px;bottom:100px}}:root{color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--bg: linear-gradient(180deg, #0d1322 0%, #111827 100%);--panel: #182132;--surface: #182132ed;--text: #edf1fa;--muted: #a7b3ca;--line: #34415a;--brand: #aa9fff;--brand-soft: #302c52;--bubble-in: #253149;--thread-bg: #101827;--composer-bg: rgba(24, 33, 50, .96);--glass: rgba(24, 33, 50, .94);--glass-border: rgba(167, 155, 255, .22);--shadow-soft: 0 10px 30px rgba(0, 0, 0, .25);--glow: 0 0 28px rgba(139, 123, 255, .2);--theme-panel: var(--panel);--theme-surface: #253149;--theme-glass: rgba(30, 41, 61, .96);--theme-text: var(--text);--theme-secondary: var(--muted);--theme-line: var(--line);--theme-accent: #b4baff;--theme-danger: #ff9caa;--theme-success: #76dfb4}:root[data-theme=dark] input,:root[data-theme=dark] textarea,:root[data-theme=dark] select{color:var(--text)}:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:var(--muted)}:root[data-theme=dark] .settings-menu-panel button.is-active:hover{background:var(--brand-gradient-hover)}:root[data-theme=dark] .preview-row>.chat-unread-count,:root[data-theme=dark] .key-modal-btn{background:var(--primary-purple)}:root[data-theme=dark] .qr-panel{--muted: #6b7493;color:#0f1733}.appearance-card{padding:1.2rem}.theme-options{min-width:0;padding:0;margin:0;border:0;display:grid;gap:.75rem}.theme-options legend{padding:0;margin-bottom:1rem;font-weight:600}.theme-option{display:flex;gap:.85rem;align-items:center;padding:1rem;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:var(--panel)}.theme-option:hover,.theme-option.is-selected{border-color:var(--brand);background:var(--brand-soft)}.theme-option:focus-within{outline:2px solid var(--brand);outline-offset:3px}.theme-option input{flex-shrink:0;width:18px;height:18px;margin:0;accent-color:var(--brand)}.theme-option strong,.theme-option small{display:block}.theme-option small{margin-top:.3rem;color:var(--muted);line-height:1.5}.appearance-note{margin:1rem 0 0;color:var(--muted);font-size:.82rem;line-height:1.5}:root{--bg: linear-gradient(180deg, #e8ecff 0%, #f4f6ff 55%, #ffffff 100%);--panel: #ffffff;--surface: #ffffffcc;--text: #0f1733;--muted: #6b7493;--line: #e3e7f5;--brand: #5b4bff;--brand-soft: #ece9ff;--brand-gradient: linear-gradient(135deg, #6b5bff 0%, #5b4bff 55%, #8b7bff 100%);--brand-gradient-hover: linear-gradient(135deg, #7a6cff 0%, #6b5bff 55%, #9c8dff 100%);--brand-gradient-dark: linear-gradient(135deg, #4a3ce0 0%, #5b4bff 60%, #7a6cff 100%);--primary-pink: #8b7bff;--primary-purple: #5b4bff;--accent-blue: #8b7bff;--bubble-in: #f1f3fb;--thread-bg: #f4f6ff;--composer-bg: rgba(255, 255, 255, .75);--glass: rgba(255, 255, 255, .7);--glass-border: rgba(91, 75, 255, .12);--shadow-soft: 0 10px 30px rgba(15, 23, 51, .08);--glow: 0 0 28px rgba(91, 75, 255, .35);font-family:Inter,SF Pro Text,SF Pro Display,Segoe UI,sans-serif}body{background:var(--bg)!important;color:var(--text)}*{box-sizing:border-box}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#64748b4d;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#64748b80}html,body,#root{height:100%}body{margin:0;color:var(--text);background:radial-gradient(circle at 8% 12%,rgba(255,90,158,.22),transparent 42%),radial-gradient(circle at 92% 18%,rgba(78,197,241,.18),transparent 40%),radial-gradient(circle at 50% 90%,rgba(138,92,255,.18),transparent 42%),var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-root{min-height:100%}.screen{min-height:100dvh;display:flex}.btn{border:0;border-radius:10px;padding:.7rem 1rem;font-weight:600}.btn-primary{background:var(--brand-gradient);color:#fff;box-shadow:var(--shadow-soft)}.btn-primary:hover{background:var(--brand-gradient-hover)}.btn-ghost{border:1px solid transparent;background:linear-gradient(var(--theme-panel, #ffffff),var(--theme-panel, #ffffff)) padding-box,var(--brand-gradient) border-box;color:var(--text);box-shadow:var(--shadow-soft)}.btn-danger{background:#dc2626;color:#fff}.auth-screen{align-items:center;justify-content:center;padding:2rem;gap:2rem}.auth-login-layout{flex-direction:column;gap:1.05rem;background:radial-gradient(circle at 15% 20%,rgba(255,90,158,.18),transparent 45%),radial-gradient(circle at 85% 10%,rgba(78,197,241,.16),transparent 42%),radial-gradient(circle at 50% 90%,rgba(138,92,255,.18),transparent 45%),var(--bg)}.auth-logo-wrap{display:grid;place-items:center}.auth-login-logo{border-radius:20px;filter:drop-shadow(0 12px 26px rgba(138,92,255,.35))}.auth-art{position:relative;width:min(42vw,480px);height:min(54vh,460px);display:grid;place-items:center}.auth-art-logo{position:relative;z-index:2}.shape{position:absolute;border-radius:22px;background:linear-gradient(160deg,#9ec6ff,#4f96ff);box-shadow:0 22px 40px #2481ff33}.shape-a{top:8%;right:28%;bottom:38%;left:0}.shape-b{top:35%;right:0;bottom:0;left:20%;opacity:.85}.shape-c{top:14%;right:0;bottom:55%;left:44%;opacity:.72}.auth-card{width:min(100%,460px);background:var(--surface);border-radius:18px;border:1px solid var(--line);padding:1.5rem;box-shadow:0 18px 35px #11182714}.auth-header{text-align:center}.auth-header h1{margin:.75rem 0 .4rem;font-size:1.35rem}.auth-header p{margin:0;color:var(--muted);font-size:.95rem}.brand-badge{display:block;border-radius:14px}.auth-switch{margin-top:1.25rem;padding:4px;border-radius:10px;background:var(--theme-glass, rgba(255, 255, 255, .6));border:1px solid var(--glass-border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:grid;grid-template-columns:1fr 1fr;gap:4px}.auth-switch button{border:0;border-radius:8px;background:transparent;padding:.6rem;color:var(--theme-secondary, #475569)}.auth-switch .is-active{background:var(--brand-gradient);color:#fff;font-weight:600}.auth-panel{margin-top:1rem;border:1px solid var(--glass-border);border-radius:12px;padding:1rem;display:grid;gap:.7rem;background:var(--glass);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--shadow-soft)}.auth-panel ul{margin:0;padding-left:1.1rem;color:var(--muted)}.auth-panel input,.auth-panel select{border:1px solid var(--line);border-radius:8px;padding:.65rem;background:var(--theme-glass, rgba(255, 255, 255, .85))}.qr-box{margin-inline:auto;border-radius:14px;display:grid;place-items:center}.qr-panel{width:min(68%,220px);aspect-ratio:1;padding:10px;border:1px solid var(--theme-line, #dbe4ef);background:#fff}.qr-loading{width:min(68%,220px);aspect-ratio:1;border-radius:14px;background:linear-gradient(90deg,var(--theme-surface, #eef2f7) 25%,var(--theme-surface, #dde3eb) 50%,var(--theme-surface, #eef2f7) 75%);background-size:200% 100%;animation:qr-shimmer 1.4s infinite}@keyframes qr-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.qr-image{width:100%;height:auto;display:block}.qr-expired{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem 0;color:var(--muted)}.qr-expiry{margin:0;font-size:.75rem;color:var(--muted);text-align:center}.error-text{margin:0;color:var(--theme-danger, #be123c);font-size:.9rem}.auth-actions{margin-top:1rem;display:flex;justify-content:flex-end;gap:.7rem}.sync-screen{justify-content:center;align-items:center;padding:1.2rem}.sync-card{width:min(100%,480px);border-radius:18px;border:1px solid var(--line);background:var(--surface);padding:1.6rem;box-shadow:0 12px 30px #1118271a}.sync-loader{width:56px;height:56px;border:4px solid var(--theme-line, #dbeafe);border-top-color:var(--brand);border-radius:50%;animation:spin 1s linear infinite}.sync-card h1{margin:1rem 0 .5rem;font-size:1.3rem}.sync-card p,.sync-card li{color:var(--muted)}.sync-actions{display:flex;justify-content:flex-end;gap:.7rem}@keyframes spin{to{transform:rotate(360deg)}}.chats-loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top left,var(--theme-surface, #f0f4f8) 0%,var(--bg) 45%,var(--theme-surface, #dce5eb) 100%);opacity:1;transition:opacity .4s ease}.chats-loading-fade-out{opacity:0;pointer-events:none}.chats-loading-card{display:flex;flex-direction:column;align-items:center;gap:.9rem;padding:2.5rem 2rem;background:var(--surface);border-radius:20px;border:1px solid var(--line);box-shadow:0 16px 40px #1118271a;width:min(calc(100% - 2rem),380px);text-align:center}.chats-loading-title{font-size:1.25rem;font-weight:700;color:var(--text);margin:0}.chats-loading-bar-track{width:100%;height:6px;background:var(--brand-soft);border-radius:999px;overflow:hidden}.chats-loading-bar-fill{height:100%;background:var(--brand);border-radius:999px;transition:width .5s cubic-bezier(.4,0,.2,1)}.chats-loading-label{font-size:.875rem;color:var(--text);margin:0;font-weight:500}.chats-loading-subtitle{font-size:.8125rem;color:var(--muted);margin:0}.chats-privacy-lock-card{gap:1rem}.chats-privacy-lock-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;width:100%}.chats-privacy-lock-actions .btn{min-width:128px}.chat-screen{height:100dvh;padding:1rem;gap:1rem;overflow:hidden}.chat-screen-no-rail{padding-left:.7rem;padding-right:.7rem}.left-rail{width:86px;border-radius:16px;background:var(--theme-surface, #f2f5f8);border:1px solid var(--line);padding:.65rem;display:flex;flex-direction:column;gap:.45rem;flex-shrink:0}.left-rail .logo{width:42px;height:42px;border-radius:12px;display:block;margin-bottom:.2rem}.left-rail button,.left-rail a{border:0;border-radius:10px;padding:.45rem .35rem;font-size:.74rem;background:transparent;color:var(--theme-secondary, #475569);text-decoration:none}.left-rail .is-active{background:var(--brand-soft);color:var(--brand);font-weight:600}.chat-nav-rail-logo{display:flex;justify-content:center;margin-bottom:.15rem}.chat-nav-rail-link{display:flex;flex-direction:column;align-items:center;gap:.32rem;text-align:center}.chat-nav-rail-slot{display:grid;gap:.45rem}.chat-nav-rail-divider{height:1px;margin:0 .2rem;background:linear-gradient(90deg,transparent,rgba(91,75,255,.22),transparent)}.chat-nav-rail-icon{width:1.2rem;height:1.2rem;display:inline-flex}.chat-nav-rail-icon svg{width:100%;height:100%}.chat-nav-rail-label{line-height:1.1}.chat-workspace{position:relative;flex:1;height:100%;min-width:0;min-height:0;border:1px solid var(--glass-border);border-radius:16px;overflow:hidden;background:var(--theme-glass, rgba(255, 255, 255, .45));-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);display:grid;--chat-sidebar-size: min(var(--chat-sidebar-width, 420px), 42%);grid-template-columns:var(--chat-sidebar-size) minmax(0,1fr)}.chat-workspace.profile-open{--chat-sidebar-size: min(var(--chat-sidebar-width, 420px), 32%);grid-template-columns:var(--chat-sidebar-size) minmax(0,1fr) minmax(260px,28%)}.chat-workspace.status-mode{display:block}.chat-sidebar,.chat-thread,.chat-details{min-width:0;min-height:0;height:100%}.chat-empty-state{display:grid;place-items:center;align-content:center;gap:.9rem;padding:2rem;text-align:center;background:linear-gradient(180deg,var(--theme-surface, #f8fbff) 0%,var(--theme-surface, #eef4ff) 100%);border-left:1px solid var(--theme-line, #e5eefc)}.chat-empty-state h2{margin:0;color:var(--theme-text, #0f172a)}.chat-empty-state p{max-width:420px;margin:0;color:var(--theme-secondary, #475569)}.archived-chat-list{border-radius:16px;overflow:hidden;background:var(--theme-glass, rgba(255, 255, 255, .6));border:1px solid rgba(148,163,184,.14)}.archived-chat-list-item{background:var(--theme-glass, rgba(255, 255, 255, .74))}.chat-sidebar{position:relative;z-index:8;isolation:isolate;background:var(--theme-glass, rgba(255, 255, 255, .7));border-right:1px solid var(--glass-border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);display:flex;flex-direction:column}.chat-resize-handle{position:absolute;top:0;bottom:0;left:calc(var(--chat-sidebar-size) - 4px);width:8px;cursor:col-resize;background:transparent;z-index:20}.chat-resize-handle:before{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;background:#94a3b840;transition:background-color .12s ease}.chat-resize-handle:hover:after,.chat-resize-handle:active:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0}.chat-resize-handle:hover:before,.chat-resize-handle:active:before{background:#8a5cff99}.chat-workspace:has(.chat-list-context-menu) .chat-resize-handle:before{display:none}.chat-screen:has(.modal-backdrop) .chat-resize-handle{display:none}.chat-sidebar-header{padding:.85rem 1rem;display:flex;justify-content:space-between;align-items:center;background:var(--theme-glass, rgba(255, 255, 255, .85));border-bottom:1px solid var(--glass-border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.chat-sidebar-title{display:flex;align-items:center;gap:.55rem}.chat-sidebar-logo-button{border:0;background:transparent;padding:0;margin:0;line-height:0;cursor:pointer;border-radius:12px}.chat-sidebar-logo-button:focus-visible{outline:2px solid rgba(91,75,255,.28);outline-offset:4px}.chat-sidebar-header h2{margin:0;font-size:1.05rem;font-weight:700;color:var(--theme-text, #111827)}.chat-sidebar-new-chat-button{border:none;background:var(--brand-gradient);color:#fff;border-radius:8px;padding:.4rem .72rem;font-size:.82rem;font-weight:600;transition:background .15s;box-shadow:var(--shadow-soft)}.chat-sidebar-new-chat-button:hover{background:var(--brand-gradient-hover)}.chat-search{padding:.6rem .85rem;background:var(--theme-glass, rgba(255, 255, 255, .85));border-bottom:1px solid var(--glass-border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.chat-search-input-wrap{position:relative}.chat-search input{width:100%;border:none;border-radius:24px;padding:.58rem 2.6rem .58rem 1rem;color:var(--theme-text, #374151);background:var(--theme-glass, rgba(255, 255, 255, .9));font-size:.88rem;outline:none;transition:background .15s}.chat-search input::placeholder{color:var(--theme-secondary, #94a3b8)}.chat-search input:focus{background:var(--theme-panel, #ffffff);box-shadow:0 0 0 2px #8a5cff33}.chat-search-clear{position:absolute;top:50%;right:.55rem;transform:translateY(-50%);width:1.7rem;height:1.7rem;border:none;border-radius:999px;background:#5b4bff1f;color:var(--theme-accent, #5b4bff);font-size:.9rem;font-weight:700;cursor:pointer}.chat-search-clear:hover{background:#5b4bff33}.chat-filters{padding:0 .85rem .72rem;margin-top:.35rem;display:flex;gap:.4rem;overflow-x:auto;scrollbar-width:none}.chat-filters::-webkit-scrollbar{display:none}.chat-filters button{border:1px solid var(--glass-border);background:var(--theme-glass, rgba(255, 255, 255, .7));color:var(--theme-secondary, #475569);border-radius:999px;padding:.3rem .72rem;font-weight:600;font-size:.8rem;white-space:nowrap;flex-shrink:0;transition:all .15s}.chat-filters button.is-active{border-color:transparent;background:var(--brand-gradient);color:#fff;box-shadow:var(--shadow-soft)}.chat-list{display:flex;flex-direction:column;overflow-y:auto;flex:1}.chat-sidebar-status-divider{height:1px;margin:.5rem .9rem .75rem;background:linear-gradient(90deg,transparent,rgba(91,75,255,.18),transparent)}.status-section{padding:0 .85rem .95rem;background:var(--theme-glass, rgba(255, 255, 255, .42))}.status-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.status-section-header h3{margin:0;font-size:.95rem;color:var(--theme-text, #0f1733)}.status-section-header p{margin:.15rem 0 0;color:var(--muted);font-size:.74rem}.status-section-add-button{width:2rem;height:2rem;border:0;border-radius:999px;background:var(--brand-gradient);color:#fff;font-size:1.15rem;line-height:1;box-shadow:var(--shadow-soft)}.status-list{display:grid;gap:.4rem}.status-list-item{width:100%;border:1px solid rgba(91,75,255,.08);border-radius:16px;background:var(--theme-glass, rgba(255, 255, 255, .78));display:grid;grid-template-columns:56px minmax(0,1fr);gap:.75rem;align-items:center;padding:.65rem .8rem;text-align:left;box-shadow:0 10px 24px #0f172a0d}.status-list-item:hover{background:var(--theme-glass, rgba(255, 255, 255, .94))}.status-avatar-shell{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#94a3b82e;position:relative}.status-avatar-shell.has-story{background:linear-gradient(135deg,#25d366,#5b4bff)}.status-avatar-shell.is-viewed{background:linear-gradient(135deg,var(--theme-surface, #d2d6e8),var(--theme-surface, #c9d4ea))}.status-avatar{width:42px;height:42px;border-radius:50%;background:var(--theme-surface, #eef2ff);color:var(--theme-accent, #5b4bff);display:grid;place-items:center;font-weight:700;overflow:hidden;border:2px solid #fff}.status-avatar.has-image img{width:100%;aspect-ratio:1 / 1;object-fit:cover}.status-avatar-add-badge{position:absolute;right:-1px;bottom:-1px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#25d366;color:#fff;border:2px solid #fff;font-size:.8rem;font-weight:700}.status-copy{min-width:0;display:grid;gap:.15rem}.status-copy strong{color:var(--theme-text, #111827);font-size:.88rem}.status-copy span{color:var(--theme-secondary, #64748b);font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-route-panel{min-width:0;display:flex;flex:1;height:100%}.status-route-layout{width:100%;display:grid;grid-template-columns:minmax(320px,420px) 1fr;min-height:100%}.status-route-sidebar{padding:1rem .2rem 1rem .8rem;overflow-y:auto}.status-route-main{min-width:0;display:flex;flex-direction:column;padding:1rem 1.1rem;overflow-y:auto}.my-status-panel{display:grid;align-content:start;gap:1rem;min-height:100%}.my-status-panel-header h2{margin:0;color:var(--theme-text, #0f1733);font-size:1.15rem}.my-status-card{border:1px solid rgba(91,75,255,.08);border-radius:20px;background:var(--theme-glass, rgba(255, 255, 255, .82));box-shadow:0 14px 32px #0f172a0f;padding:1rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center}.my-status-card-main{border:0;background:transparent;padding:0;display:grid;grid-template-columns:56px minmax(0,1fr);gap:.85rem;align-items:center;text-align:left}.my-status-card-actions{display:flex;align-items:center;gap:.6rem}.my-status-action-button{width:2.85rem;height:2.85rem;border:0;border-radius:999px;background:#5b4bff1a;color:var(--brand);display:inline-grid;place-items:center;box-shadow:inset 0 0 0 1px #5b4bff14}.my-status-action-button svg{width:1.1rem;height:1.1rem;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.my-status-panel-note{flex:1;display:grid;place-items:center;text-align:center;color:var(--muted);padding:1rem 2rem 3rem}.my-status-panel-note p{margin:0;max-width:32rem}.chat-list-context-menu{position:fixed;z-index:10020;min-width:188px;max-width:188px;padding:.32rem;border-radius:14px;border:1px solid rgba(91,75,255,.12);background:var(--theme-panel, #fff);box-shadow:0 22px 50px #5b4bff29;display:grid;gap:.08rem}.chat-list-context-menu button{border:none;border-radius:10px;background:transparent;color:var(--theme-text, #1e293b);text-align:left;padding:.56rem .62rem;font-size:.84rem;font-weight:500;cursor:pointer}.chat-list-context-menu button:hover,.chat-list-context-menu button:focus-visible{background:#5b4bff14;color:var(--theme-text, #0f172a);outline:none}.chat-list-context-menu-item{display:flex;align-items:center;justify-content:flex-start;gap:.56rem}.chat-list-context-menu-icon{width:1rem;display:inline-flex;align-items:center;justify-content:center;color:var(--theme-secondary, #64748b);font-size:.9rem;flex:0 0 1rem}.chat-list-context-menu-divider{height:1px;margin:.18rem .24rem;background:#94a3b83d}.chat-list-context-menu button.is-danger,.chat-list-context-menu button.is-danger .chat-list-context-menu-icon{color:var(--theme-danger, #dc2626)}.chat-list-context-menu button.is-danger:hover,.chat-list-context-menu button.is-danger:focus-visible{background:#dc262614;color:var(--theme-danger, #b91c1c)}.chat-list-item{background:transparent;border-bottom:1px solid var(--theme-line, #f3f4f6);display:block;position:relative;transition:background .12s}.chat-list-item:hover{background:var(--theme-glass, rgba(255, 255, 255, .7))}.chat-list-item.is-selected{background:var(--theme-glass, rgba(255, 255, 255, .85));border-left:3px solid var(--primary-pink)}.chat-list-item-main{width:100%;border:0;text-align:left;background:transparent;padding:.72rem 2.9rem .72rem 1rem;display:grid;grid-template-columns:46px 1fr;gap:.72rem;align-items:center}.chat-list-item-menu-trigger{position:absolute;top:50%;right:.88rem;width:30px;height:30px;border:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--theme-secondary, #64748b);box-shadow:none;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease,background-color .14s ease;transform:translateY(-50%)}.chat-list-item:hover .chat-list-item-menu-trigger,.chat-list-item:focus-within .chat-list-item-menu-trigger,.chat-list-item-menu-trigger:focus-visible{opacity:1;pointer-events:auto;transform:translateY(-50%)}.chat-list-item-menu-trigger:hover,.chat-list-item-menu-trigger:focus-visible{background:transparent;color:var(--theme-text, #1f2937);outline:none}.chat-list-item-menu-trigger svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.starred-message-item{grid-template-columns:18px 1fr;gap:.5rem;padding:.55rem .7rem}.chat-search-result-item{width:100%;border:0;text-align:left;background:transparent;padding:.88rem 1rem;display:grid;grid-template-columns:20px minmax(0,1fr);gap:.7rem;align-items:start}.chat-search-result-item:hover{background:var(--theme-glass, rgba(255, 255, 255, .72))}.chat-search-result-mark{color:#f59e0b;font-size:.82rem;line-height:1.2;margin-top:.24rem;display:inline-flex;align-items:center;justify-content:center}.chat-search-result-copy{min-width:0;display:grid;gap:.18rem}.chat-search-result-header strong{font-size:1.02rem;font-weight:700;color:var(--theme-text, #0f172a)}.chat-search-result-time{font-size:.9rem;color:var(--theme-secondary, #667085)}.chat-search-result-preview{align-items:flex-start}.chat-search-result-message{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;text-overflow:unset;font-size:.98rem!important;line-height:1.34;color:var(--theme-secondary, #64748b)}.starred-message-mark{color:#f59e0b;font-size:.78rem;line-height:1.2;align-self:start;margin-top:.12rem}.starred-message-item .preview-row span{font-size:.74rem}.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--theme-panel, #fff);color:#fff;font-size:.88rem;font-weight:700;overflow:hidden;position:relative;flex-shrink:0}.avatar.is-online:after{content:"";position:absolute;right:2px;bottom:2px;width:9px;height:9px;border-radius:50%;background:#22c55e;border:0}.avatar.has-image{background:var(--theme-panel, #fff)!important}.avatar.has-saved-fallback{background:linear-gradient(140deg,#3b82f6,#1d4ed8)!important}.avatar.has-image>img,.avatar.has-image img{width:100%;aspect-ratio:1 / 1;object-fit:cover;object-position:center}.avatar.large{width:76px;height:76px;font-size:1.15rem;box-shadow:none}.avatar img,.chat-list-avatar-button img,.message-sender-avatar img,.member-avatar img,.picker-avatar img,.profile-photo-avatar img,.settings-user-avatar img,.contact-modal-avatar img,.message-info-recipient-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border:0;outline:0;box-shadow:none}.member-profile-body .avatar.large>span{color:#fff}.member-profile-avatar-img{width:100%;height:100%;object-fit:cover;object-position:center}.status-composer-modal,.status-viewers-modal,.status-delete-dialog{background:var(--theme-panel, #fff);border:1px solid rgba(91,75,255,.12);border-radius:24px;box-shadow:0 28px 60px #0f172a29}.status-composer-modal{width:min(92vw,760px);max-height:min(90vh,820px);overflow:auto;padding:1.2rem}.status-composer-header,.status-viewers-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.status-composer-header h3,.status-viewers-header h3,.status-delete-dialog h3{margin:0;font-size:1.5rem;color:var(--theme-text, #0f1733)}.status-composer-header p,.status-delete-dialog p{margin:.3rem 0 0;color:var(--muted)}.status-composer-close,.status-viewers-close{border:0;background:#5b4bff1a;color:var(--brand);width:2rem;height:2rem;border-radius:999px}.status-composer-body{margin-top:1rem;display:grid;gap:1rem}.status-composer-mode-switch{display:inline-flex;gap:.45rem;background:#5b4bff14;border-radius:999px;padding:.25rem}.status-composer-mode-switch button{border:0;background:transparent;color:var(--theme-secondary, #64748b);padding:.45rem .8rem;border-radius:999px;font-weight:600}.status-composer-mode-switch button.is-active{background:var(--theme-panel, #fff);color:var(--brand);box-shadow:var(--shadow-soft)}.status-text-composer,.status-media-composer{display:grid;gap:.9rem}.status-text-preview,.status-media-preview{min-height:320px;border-radius:24px;display:grid;place-items:center;padding:1.5rem;box-shadow:inset 0 0 0 1px #fff3}.status-text-preview p{margin:0;font-size:clamp(1.75rem,2.5vw,2.5rem);text-align:center;line-height:1.18}.status-font-serif{font-family:Georgia,serif}.status-font-mono{font-family:SFMono-Regular,Menlo,monospace}.status-font-bold{font-weight:700}.status-font-italic{font-style:italic}.status-text-composer textarea,.status-media-composer input[type=text]{width:100%;border:1px solid var(--line);border-radius:18px;padding:.9rem 1rem;background:var(--theme-glass, rgba(255, 255, 255, .9));outline:none}.status-text-composer textarea{min-height:120px;resize:vertical}.status-text-controls{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}.status-color-row{display:flex;gap:.55rem}.status-color-swatch{width:28px;height:28px;border-radius:50%;border:2px solid transparent;box-shadow:0 0 0 1px #0f172a14}.status-color-swatch.is-active{border-color:#fff;box-shadow:0 0 0 2px var(--brand)}.status-file-picker{display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1rem;border-radius:16px;background:#5b4bff1a;color:var(--brand);font-weight:600}.status-file-picker input{display:none}.status-media-preview{background:linear-gradient(180deg,var(--theme-surface, #edf2ff),var(--theme-surface, #f8fbff))}.status-media-preview img,.status-media-preview video{max-width:100%;max-height:420px;border-radius:20px;object-fit:contain}.status-composer-error{margin:0;color:var(--theme-danger, #dc2626);font-size:.86rem}.status-composer-footer,.status-delete-actions{display:flex;justify-content:flex-end;gap:.75rem}.status-viewer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10030;background:#040810eb;display:grid;place-items:center;padding:1rem}.status-viewer-shell{width:min(92vw,880px);height:min(calc(100dvh - 2rem),760px);max-width:100%;max-height:calc(100dvh - 2rem);margin:0 auto;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:.9rem}.status-viewer-progress{display:grid;grid-auto-flow:column;gap:.35rem}.status-viewer-progress-track{height:4px;border-radius:999px;background:#ffffff2e;overflow:hidden}.status-viewer-progress-bar{display:block;width:100%;height:100%;background:#fff;transform-origin:left center;transform:scaleX(0);will-change:transform}.status-viewer-progress-bar.is-complete{transform:scaleX(1)}.status-viewer-progress-bar.is-animated{animation:status-viewer-progress-fill 5s linear forwards}.status-viewer-progress-bar.is-paused{animation-play-state:paused}@keyframes status-viewer-progress-fill{0%{transform:scaleX(0)}to{transform:scaleX(1)}}.status-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#fff}.status-viewer-owner,.status-viewer-actions{display:flex;align-items:center;gap:.75rem}.status-viewer-owner strong,.status-viewer-owner span{display:block}.status-viewer-owner span{color:#ffffffb8;font-size:.84rem}.status-viewer-chip,.status-viewer-icon-button{border:0;background:#ffffff24;color:#fff;border-radius:999px;padding:.6rem .9rem}.status-viewer-chip{display:inline-flex;align-items:center;gap:.45rem}.status-viewer-viewers-wrap{position:relative;display:inline-flex}.status-viewer-chip svg,.status-viewer-icon-button svg{width:1rem;height:1rem;display:block}.status-viewer-icon-button{width:2.6rem;height:2.6rem;padding:0;display:inline-grid;place-items:center}.status-viewer-stage{position:relative;overflow:hidden;border-radius:28px;background:#000;display:grid;place-items:center;min-width:0;min-height:0;padding:.85rem}.status-viewer-image-wrap,.status-viewer-video-wrap{width:100%;height:100%;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.status-viewer-image,.status-viewer-video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;display:block}.status-viewer-text-card{width:100%;height:100%;display:grid;place-items:center;padding:2rem;font-size:clamp(2rem,3vw,3.25rem);text-align:center;line-height:1.15}.status-viewer-image-fallback{width:100%;height:100%;display:grid;place-items:center;color:#ffffffc7;font-size:.95rem}.status-viewer-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:2rem 1.3rem 1.1rem;color:#fff;background:linear-gradient(180deg,transparent,rgba(0,0,0,.8));font-size:.95rem}.status-viewer-reply-bar{display:grid;grid-template-columns:1fr auto;gap:.75rem}.status-viewer-reply-bar textarea{resize:vertical;font:inherit;border:1px solid rgba(255,255,255,.25);border-radius:18px;padding:.95rem 1rem;background:#080c14c7;color:#fff;outline:none}.status-viewer-send{border:0;border-radius:18px;min-width:88px;background:var(--brand-gradient);color:#fff;font-weight:700}.status-viewers-popup{position:absolute;top:calc(100% + .6rem);right:0;width:min(36vw,150px);min-width:110px;max-height:min(28vh,150px);padding:.45rem;overflow:auto;z-index:6;background:var(--theme-glass, rgba(255, 255, 255, .96));border:1px solid rgba(91,75,255,.12);border-radius:14px;box-shadow:0 16px 28px #0f172a38;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--theme-text, #111827)}.status-viewers-list{display:grid;gap:.45rem;margin-top:.45rem}.status-viewer-row{display:grid;grid-template-columns:22px 1fr;gap:.4rem;align-items:center}.status-viewer-avatar{width:22px;height:22px;font-size:.58rem}.status-viewer-copy strong,.status-viewer-copy span{display:block;color:var(--theme-text, #111827)}.status-viewers-header h3{font-size:.82rem;color:var(--theme-text, #111827)}.status-viewer-copy span,.status-viewers-empty,.status-viewers-loading{color:var(--theme-text, #111827);font-size:.6rem;line-height:1.2}.status-viewer-copy strong{font-size:.66rem;line-height:1.1;margin-bottom:.08rem}.status-viewers-close{width:1.65rem;height:1.65rem;color:var(--theme-text, #111827)}@media (max-width: 720px){.status-viewers-popup{right:-.75rem;width:min(46vw,140px);min-width:100px;max-height:min(24vh,140px);padding:.4rem}}.status-delete-dialog{width:min(90vw,420px);padding:1.4rem}.chat-meta{min-width:0}.name-row,.preview-row,.tag-row{display:flex;justify-content:space-between;align-items:baseline;gap:.4rem}.name-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;color:var(--theme-text, #111827)}.preview-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.preview-row-main{min-width:0;display:flex;align-items:center;gap:.34rem;flex:1}.preview-row .chat-preview-status{flex:0 0 auto;overflow:visible}.preview-row-main .preview-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.chat-preview-status{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:.8rem}.chat-preview-status .message-ticks svg{width:.86rem;height:.58rem}.chat-preview-status .pending-clock-icon{font-size:.7rem}.name-row span{color:var(--muted);font-size:.74rem;white-space:nowrap;flex-shrink:0}.preview-row,.tag-row{color:var(--theme-secondary, #7d8fa0);font-size:.8rem}.preview-row>.chat-unread-count{min-width:20px;height:20px;border-radius:999px;display:inline-grid;place-items:center;font-style:normal;font-size:.72rem;font-weight:700;color:#fff;background:var(--brand);flex-shrink:0;padding:0 5px}.preview-text code,.chat-search-result-message code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.94em}.tag-row{margin-top:.2rem;gap:.35rem}.tag-row:empty{display:none}.tag-row small{background:var(--theme-surface, #edf2f9);border-radius:999px;padding:.1rem .45rem}.tag-row .tag-icon-chip{min-width:1.55rem;text-align:center;padding:.1rem .3rem;font-size:.8rem;line-height:1.1}.archived-chat-list{display:flex;flex-direction:column;gap:0;border-radius:0;overflow-y:auto;overflow-x:hidden;background:transparent;border:0;padding:0}.archived-chat-list-item{width:100%;border:0;border-bottom:1px solid var(--theme-line, #f3f4f6);border-radius:0;background:transparent;box-shadow:none;padding:0;display:block;position:relative;text-align:left;cursor:pointer}.archived-chat-list-item:hover,.archived-chat-list-item:focus-visible{background:var(--theme-glass, rgba(255, 255, 255, .72))}.archived-chat-list-item.is-selected{background:var(--theme-glass, rgba(255, 255, 255, .92));border-left:3px solid var(--primary-pink)}.archived-chat-list-item .chat-list-item-main{width:100%;border:0;text-align:left;background:transparent;padding:.72rem 3rem .72rem .9rem;display:grid;grid-template-columns:46px 1fr;gap:.72rem;align-items:center}.archived-chat-list-item .chat-list-item-menu-trigger{top:50%;right:.7rem;transform:translateY(-50%);opacity:0;pointer-events:none}.archived-chat-list-item:hover .chat-list-item-menu-trigger,.archived-chat-list-item:focus-within .chat-list-item-menu-trigger{opacity:1;pointer-events:auto}.archived-chat-list-item .avatar{flex-shrink:0}.archived-chat-list-item .chat-meta{min-width:0;flex:1}.archived-chat-list-item .name-row{display:flex;justify-content:space-between;align-items:center;gap:.45rem}.archived-chat-list-item .name-row strong{color:var(--theme-text, #0f172a);font-size:.95rem}.archived-chat-list-item .name-row span{color:var(--theme-secondary, #64748b);font-size:.74rem;white-space:nowrap}.archived-chat-list-item .preview-row{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin-top:.15rem}.archived-chat-list-item .preview-row-main{min-width:0;display:flex;align-items:center;gap:.32rem}.archived-chat-list-item .preview-text{color:var(--theme-secondary, #64748b);font-size:.84rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archived-chat-list-item .tag-row{margin-top:.23rem}.chat-thread{display:flex;flex-direction:column;background:radial-gradient(circle at 10% 12%,rgba(255,90,158,.12),transparent 40%),radial-gradient(circle at 92% 80%,rgba(78,197,241,.12),transparent 45%),var(--thread-bg)}.thread-header{padding:.7rem 1rem;border-bottom:1px solid var(--glass-border);display:flex;justify-content:space-between;align-items:center;gap:.8rem;background:var(--theme-glass, rgba(255, 255, 255, .85));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow-soft);z-index:0;flex-shrink:0}.thread-profile{display:flex;align-items:center;gap:.6rem}.thread-profile-trigger{border:0;background:transparent;padding:0;text-align:left}.thread-profile strong{display:block;font-size:.95rem;color:var(--theme-text, #111827)}.thread-profile p{margin:0;color:#22c55e;font-size:.78rem;font-weight:500}.thread-profile p:not(.online){color:var(--muted)}.pinned-message-banner{position:relative;width:100%;min-width:0;border-bottom:1px solid rgba(59,130,246,.16);background:var(--theme-surface, #ebf5ff);color:var(--theme-accent, #2563eb);display:flex;align-items:center;flex-shrink:0}.pinned-message-main{min-width:0;flex:1;border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:.7rem;padding:.55rem .5rem .55rem 1rem;text-align:left;cursor:pointer}.pinned-message-main:hover,.pinned-message-menu-trigger:hover{background:var(--theme-surface, #e1f0ff)}.pinned-message-icon{width:1.5rem;height:1.5rem;border-radius:50%;background:#2563eb1f;display:grid;place-items:center;flex:0 0 auto}.pinned-message-icon svg{width:.95rem;height:.95rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.pinned-message-copy{min-width:0;display:flex;align-items:baseline;gap:.35rem;font-size:.86rem}.pinned-message-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pinned-message-copy .pinned-message-by{color:#2563ebb8;font-size:.76rem}.pinned-message-menu-trigger{width:2.8rem;align-self:stretch;border:0;background:transparent;color:var(--theme-secondary, #526174);display:grid;place-items:center;cursor:pointer}.pinned-message-menu-trigger svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pinned-message-menu{position:absolute;z-index:20;top:calc(100% - .2rem);right:.65rem;min-width:13rem;padding:.4rem;border:1px solid rgba(255,255,255,.24);border-radius:1rem;background:#191b1dfa;box-shadow:0 14px 36px #00000057}.pinned-message-menu button{width:100%;border:0;border-radius:.7rem;background:transparent;color:#f3f4f6;display:flex;align-items:center;gap:.75rem;padding:.65rem .75rem;font-size:.92rem;text-align:left;cursor:pointer}.pinned-message-menu button:hover{background:#ffffff17}.pinned-message-menu button svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.pinned-message-title{display:inline-flex;align-items:center;gap:.4rem}.pinned-message-count{min-width:1.25rem;height:1.25rem;padding:0 .35rem;border-radius:999px;background:#2563eb;color:#fff;font-size:.72rem;font-weight:700;line-height:1.25rem;text-align:center}.pinned-message-list{min-width:min(320px,86vw);max-width:360px;max-height:min(60vh,380px);overflow-y:auto;background:var(--theme-panel, #ffffff);border:1px solid var(--theme-line, #dbe4ef);box-shadow:0 14px 36px #0f172a2e;padding:.35rem}.pinned-message-list-item{display:flex;align-items:stretch;border-radius:.7rem}.pinned-message-list-item:hover{background:var(--theme-surface, #f1f5f9)}.pinned-message-list .pinned-message-list-jump{flex:1;min-width:0;border:0;background:transparent;color:var(--theme-text, #111827);display:flex;align-items:center;gap:.7rem;padding:.6rem .6rem .6rem .75rem;text-align:left;font-size:.92rem;cursor:pointer}.pinned-message-list .pinned-message-list-jump .pinned-message-icon{background:#2563eb1a;color:var(--theme-accent, #2563eb)}.pinned-message-list .pinned-message-list-jump .pinned-message-copy{min-width:0;flex:1;display:grid;gap:.15rem}.pinned-message-list .pinned-message-list-jump .pinned-message-copy strong{color:var(--theme-text, #334155);font-size:.85rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pinned-message-list .pinned-message-list-jump .pinned-message-copy span{color:var(--theme-secondary, #64748b);font-size:.82rem}.pinned-message-list .pinned-message-list-jump .pinned-message-copy span.pinned-message-by{color:var(--theme-secondary, #94a3b8);font-size:.74rem}.pinned-message-list .pinned-message-list-unpin{flex:0 0 auto;align-self:center;width:2rem;height:2rem;margin-right:.4rem;border:0;border-radius:50%;background:transparent;color:var(--theme-secondary, #64748b);display:grid;place-items:center;padding:0;cursor:pointer}.pinned-message-list .pinned-message-list-unpin:hover{background:#ef44441a;color:#ef4444}.pinned-message-list .pinned-message-list-unpin svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.thread-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9rem;color:var(--muted);-webkit-user-select:none;user-select:none}.thread-empty-state .empty-icon{width:72px;height:72px;border-radius:50%;background:var(--brand-soft);display:grid;place-items:center;color:var(--brand);opacity:.7}.thread-empty-state p{margin:0;font-size:.88rem;color:var(--theme-secondary, #94a3b8);text-align:center}.thread-tools{display:flex;gap:.35rem}.thread-tools button,.mobile-back{border:none;background:transparent;border-radius:50%;padding:0;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:var(--theme-secondary, #54656f);transition:background .15s}.thread-tools button:hover,.mobile-back:hover{background:#0000000f}.icon-btn{display:inline-grid;place-items:center;color:var(--theme-secondary, #54656f);border-radius:12px;transition:background .15s ease,color .15s ease,transform .15s ease}.icon-btn:hover{background:#5b4bff1f;color:var(--theme-accent, #4338ca);transform:translateY(-1px)}.chat-nav-rail-link{display:flex;flex-direction:column;align-items:center;gap:.32rem;text-align:center;padding:.5rem 0;border-radius:14px;transition:background .15s ease,color .15s ease}.chat-nav-rail-link:hover{background:#5b4bff1a;color:var(--theme-accent, #4338ca)}.chat-nav-rail-link:hover .chat-nav-rail-icon svg{stroke:currentColor}.chat-nav-rail-link{position:relative}.chat-nav-rail-link[title]:hover:after{content:attr(title);position:absolute;bottom:-2.6rem;left:50%;transform:translate(-50%);background:#0f172af2;color:#fff;padding:.35rem .65rem;border-radius:999px;font-size:.72rem;white-space:nowrap;z-index:20;pointer-events:none}.thread-inline-search input{width:100%;border:1px solid var(--line);border-radius:9px;padding:.55rem 2.3rem .55rem .62rem;background:var(--theme-panel, #fff)}.thread-inline-search-clear{position:absolute;top:50%;right:.45rem;transform:translateY(-50%);width:1.55rem;height:1.55rem;border:none;border-radius:999px;background:#5b4bff24;color:var(--theme-accent, #5b4bff);font-size:.88rem;font-weight:700;cursor:pointer}.thread-inline-search-clear:hover{background:#5b4bff38}.bulk-selection-bar{padding:.5rem .9rem;border-bottom:1px solid var(--line);background:var(--theme-surface, #eef4ff);display:flex;align-items:center;justify-content:space-between;gap:.6rem}.bulk-selection-bar span{color:var(--theme-accent, #1e3a8a);font-size:.82rem;font-weight:700}.bulk-selection-actions{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}.bulk-selection-actions button{border:1px solid var(--theme-line, #bfdbfe);background:var(--theme-panel, #ffffff);color:var(--theme-accent, #1e3a8a);border-radius:8px;padding:.3rem .5rem;font-size:.74rem;font-weight:600}.message-list{flex:1;min-height:0;overflow-y:auto;overflow-anchor:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:.9rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.45rem;scroll-behavior:auto}.message-row-shell{display:flex;align-items:stretch;gap:.35rem;width:100%;box-sizing:border-box;padding-inline:1.75rem}.message-row-shell.is-me{justify-content:flex-end}.message-row-shell.is-other{justify-content:flex-start}.message-row-shell.is-me .message-row-hitzone{order:1}.message-row-shell.is-me .message-bubble{order:2}.message-row-shell.is-other .message-bubble{order:1}.message-row-shell.is-other .message-row-hitzone{order:2}.message-row-hitzone{flex:1 1 0;min-width:24px;border:0;background:transparent;border-radius:12px;padding:0;margin:0;outline:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.message-row-hitzone:hover{background:transparent}.message-row-hitzone:focus,.message-row-hitzone:focus-visible,.message-row-hitzone:active{outline:none;box-shadow:none;background:transparent}.message-list>.message-row-shell+.message-row-shell .message-bubble.is-me,.message-list>.message-row-shell+.message-row-shell .message-bubble.is-other{margin-top:0}.message-bubble{max-width:min(72%,560px);flex:0 1 auto;padding:.5rem .72rem .42rem;box-shadow:var(--shadow-soft);position:relative;overflow:visible;word-break:break-word;line-height:1.45;font-size:.92rem}.message-menu-trigger{position:absolute;top:.38rem;right:.42rem;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:999px;background:var(--theme-glass, rgba(255, 255, 255, .76));color:var(--theme-text, #334155);box-shadow:0 6px 16px #0f172a1f;opacity:0;pointer-events:none;transform:translateY(-2px);transition:opacity .14s ease,transform .14s ease,background-color .14s ease,box-shadow .14s ease;z-index:3}.message-bubble:hover .message-menu-trigger,.message-bubble:focus-within .message-menu-trigger,.message-menu-trigger.is-open{opacity:1;pointer-events:auto;transform:translateY(0)}.message-menu-trigger:hover,.message-menu-trigger:focus-visible,.message-menu-trigger.is-open{background:var(--theme-glass, rgba(255, 255, 255, .94));box-shadow:0 8px 18px #0f172a29;outline:none}.message-bubble.is-me .message-menu-trigger{background:#ffffff3d;color:#fff}.message-bubble.is-me .message-menu-trigger:hover,.message-bubble.is-me .message-menu-trigger:focus-visible,.message-bubble.is-me .message-menu-trigger.is-open{background:#ffffff57}.message-menu-trigger svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.message-select-toggle{position:absolute;top:50%;left:-24px;transform:translateY(-50%);width:18px;height:18px;border:1px solid var(--theme-line, #b9c7dc);border-radius:50%;background:var(--theme-panel, #fff);color:#fff;font-size:.68rem;line-height:1;display:grid;place-items:center;padding:0}.message-select-toggle.is-selected{background:#2563eb;border-color:#2563eb}.message-bubble p{margin:0;white-space:pre-wrap}.message-media-caption{margin:.42rem 0 .08rem;color:var(--theme-text, #334155);font-size:.84rem;line-height:1.35;overflow-wrap:anywhere}.media-viewer-caption{max-width:min(760px,90vw);margin:.75rem auto 0;color:#fff;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}.media-cluster-captions{display:grid;gap:.15rem}.message-link{color:var(--theme-accent, #2563eb);text-decoration:underline;text-underline-offset:2px;word-break:break-all}.message-mention-button{display:inline;padding:0;border:none;background:transparent;color:var(--theme-accent, #5b4bff);font:inherit;font-weight:700;cursor:pointer}.message-mention-button:hover{text-decoration:underline}.message-edit-inline{display:grid;gap:.45rem}.message-deleted-note{color:var(--theme-secondary, #64748b);font-style:italic;font-size:.84rem}.message-decrypt-failed{color:var(--theme-danger, #dc2626);font-size:.84rem}.message-decrypt-failed-row{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.message-media-loading{display:inline-flex;align-items:center;gap:.5rem;min-height:2.5rem;color:var(--theme-secondary, #64748b);font-size:.84rem}.media-loading-spinner{width:1rem;height:1rem;border:2px solid rgba(100,116,139,.28);border-top-color:#64748b;border-radius:50%;animation:media-loading-spin .8s linear infinite}@keyframes media-loading-spin{to{transform:rotate(360deg)}}.message-decrypt-retry{border:0;background:#dc26261f;color:var(--theme-danger, #dc2626);border-radius:999px;padding:.2rem .55rem;font-size:.72rem;font-weight:600}.message-decrypt-retry:hover{background:#dc262633}.message-edit-inline textarea,.message-edit-inline input{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--theme-panel, #fff);color:var(--theme-text, #0f172a);padding:.5rem .55rem}.message-edit-inline textarea{min-height:74px;resize:vertical}.message-edit-actions{display:flex;justify-content:flex-end;gap:.4rem}.message-edit-actions .btn{min-width:74px;padding:.38rem .58rem;border-radius:8px}.group-event-banner{align-self:center;max-width:min(78%,560px);border:none;background:var(--theme-glass, rgba(255, 255, 255, .85));border-radius:999px;padding:.3rem .85rem;color:var(--theme-secondary, #5a6d7e);font-size:.73rem;display:flex;align-items:center;gap:.5rem;box-shadow:0 1px 2px #0000001a;margin:.35rem 0}.group-event-banner.is-call-log{background:#25d3661f;color:var(--theme-success, #1f6f46)}.group-event-banner-text{line-height:1.35}.group-event-banner-icon{width:1rem;height:1rem;flex:0 0 1rem;display:inline-flex;align-items:center;justify-content:center;color:inherit}.group-event-banner-icon svg{width:1rem;height:1rem;fill:currentColor}.group-event-banner time{font-size:.7rem;color:var(--theme-secondary, #64748b)}.group-event-banner.is-call-log time{color:inherit;opacity:.78}.message-date-separator{align-self:center;display:flex;justify-content:center;margin:.3rem 0 .15rem}.message-date-separator span{display:inline-flex;align-items:center;justify-content:center;min-height:1.9rem;padding:.24rem .82rem;border-radius:999px;background:var(--theme-glass, rgba(255, 255, 255, .92));color:var(--theme-secondary, #64748b);font-size:.72rem;font-weight:600;box-shadow:0 1px 2px #0f172a1a}.message-bubble.is-other{align-self:flex-start;background:var(--bubble-in);border-radius:0 14px 14px}.message-bubble.is-me{align-self:flex-end;background:var(--brand-gradient);color:#fff;border-radius:14px 14px 0;box-shadow:var(--shadow-soft),var(--glow)}.message-bubble.is-me.message-bubble-has-attachment-club{background:transparent;color:inherit;border-radius:0;box-shadow:none;padding:0}.message-bubble.message-bubble-standalone-video{background:transparent;color:inherit;box-shadow:none;padding:0;width:280px;max-width:72%}.message-bubble.is-me.message-bubble-standalone-video{border-radius:0}.message-bubble.message-bubble-has-attachment-club .message-meta{margin-top:.45rem}.message-bubble.is-me.message-bubble-has-attachment-club .message-meta{color:var(--theme-secondary, #64748b)}.message-bubble.message-bubble-standalone-video .message-meta{margin-top:.45rem;width:auto}.message-bubble.is-me.message-bubble-standalone-video .message-meta{color:var(--theme-secondary, #64748b)}.forwarded-message-content{display:grid;gap:.2rem}.forwarded-message-label{display:inline-flex;align-items:center;gap:.22rem;font-size:.74rem;font-style:italic;font-weight:600;color:var(--theme-secondary, #5f6f83)}.forwarded-message-label svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.message-meta{margin-top:.18rem;display:flex;justify-content:flex-end;align-items:center;gap:.28rem;color:var(--theme-secondary, #8a9ab0);font-size:.69rem}.message-reaction-row{position:absolute;bottom:-41px;right:-20px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px;z-index:10}.message-content-wrapper{position:relative;display:inline-block;width:100%}.message-reaction-chip{border:1px solid var(--theme-line, #dbe4ef);border-radius:999px;background:var(--theme-glass, rgba(255, 255, 255, .92));color:var(--theme-text, #334155);font-size:.75rem;padding:.12rem .42rem;display:inline-flex;align-items:center;gap:.22rem}.message-reaction-remove-inline{margin-top:2px;align-self:flex-start;background:transparent;border:none;color:#00a884;font-size:13px;font-weight:500;cursor:pointer;padding:0}.message-reaction-remove-inline:hover{text-decoration:underline}.message-reaction-chip.is-filled{border-color:var(--theme-line, #bfd7ff);background:var(--theme-surface, #eef4ff)}.is-me .message-meta,.is-me .message-media-caption,.is-me .message-edited-label,.is-me .forwarded-message-label{color:#ffffffd1}.message-bubble.is-me.message-bubble-has-attachment-club .message-media-caption{margin:.42rem 0 0;padding:.42rem .58rem;border-radius:9px;background:var(--theme-panel, #ffffff);color:var(--theme-text, #1e293b);font-weight:500}.message-row-shell.is-other .message-document-card+.message-media-caption{color:var(--theme-text, #334155)}.message-row-shell.is-me .message-document-card{border-color:#ffffff4d;background:#ffffff24;color:#fff}.message-row-shell.is-me .message-document-card-meta{color:#ffffffc7}.is-me .message-link{color:#fff;text-decoration-color:#fffc}.is-me .message-mention-button{color:#fff}.message-bubble code,.message-media-caption code,.reply-bar-text code,.reply-quote-text code{font-family:ui-monospace,SFMono-Regular,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;background:#0f172a14;border-radius:6px;padding:.08rem .32rem;font-size:.92em}.message-bubble.is-me code{background:#fff3}.message-edited-label{color:var(--theme-secondary, #64748b);font-size:.7rem;font-weight:600}.status.read{color:var(--accent-blue)}.composer{border-top:1px solid var(--glass-border);background:var(--composer-bg);padding:.6rem .75rem;display:flex;align-items:center;gap:.42rem;position:relative;flex-shrink:0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.composer-input-stack{position:relative;display:flex;align-items:center;flex:1 1 auto;min-width:0}.composer-mention-suggestions{position:absolute;left:.7rem;right:auto;bottom:calc(100% + .42rem);display:grid;gap:0;width:min(320px,calc(100vw - 4.25rem));max-height:220px;overflow-y:auto;overflow-x:hidden;padding:.3rem;border:1px solid rgba(226,232,240,.98);border-radius:16px;background:var(--theme-glass, rgba(255, 255, 255, .99));box-shadow:0 16px 32px #0f172a1f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:8}.composer-mention-suggestions button{display:flex;width:100%;height:auto;min-height:56px;border-radius:12px;padding:.52rem .62rem;justify-content:flex-start;text-align:left;align-items:center;gap:.72rem;color:var(--theme-text, #0f172a);background:transparent;position:relative;overflow:hidden}.composer-mention-suggestions button+button:before{content:"";position:absolute;left:3.45rem;right:.62rem;top:0;height:1px;background:var(--theme-glass, rgba(226, 232, 240, .9))}.composer-mention-suggestions button.is-active,.composer-mention-suggestions button:hover{background:#6366f11a}.composer-mention-avatar{width:40px;height:40px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#4f46e5);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;font-size:.9rem;font-weight:700;color:#fff;flex-shrink:0;line-height:0}.composer-mention-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.composer-mention-avatar-fallback{width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center}.composer-mention-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.12rem;flex:1;color:var(--theme-text, #0f172a)}.composer-mention-name,.composer-mention-subtitle{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-mention-name{font-size:.94rem;font-weight:600;color:var(--theme-text, #000);line-height:1.2}.composer-mention-subtitle{font-size:.76rem;color:var(--theme-text, #000);opacity:.76;line-height:1.2}.composer-mention-suggestions button.is-active .composer-mention-name,.composer-mention-suggestions button:hover .composer-mention-name,.composer-mention-suggestions button.is-active .composer-mention-subtitle,.composer-mention-suggestions button:hover .composer-mention-subtitle{color:var(--theme-text, #000)}.scroll-to-latest-btn{position:absolute;right:1rem;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:42px;height:42px;border:0;border-radius:999px;background:linear-gradient(135deg,#6d5efc,#7c3aed);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 12px 28px #4c1d9547;z-index:4}.scroll-to-latest-btn:hover{filter:brightness(1.04)}.scroll-to-latest-btn svg{width:22px;height:22px;fill:currentColor}.composer input,.composer textarea{width:100%;display:block;border:none;border-radius:24px;padding:.62rem 1rem;background:var(--theme-glass, rgba(255, 255, 255, .92));font-family:Inter,SF Pro Text,SF Pro Display,Segoe UI,sans-serif;font-weight:400;font-size:.9rem;box-shadow:0 1px 3px #00000014;outline:none}.composer textarea{min-height:40px;max-height:132px;resize:none;line-height:1.4;overflow-y:auto}.composer input:focus,.composer textarea:focus{box-shadow:0 1px 3px #00000014}.composer button{border:none;border-radius:-1%;background:transparent;padding:0;width:auto;height:38px;display:inline-flex;align-items:center;justify-content:center;color:var(--text);flex-shrink:0;transition:background .15s}.composer button:hover{background:#0000000f}.composer button.is-recording{background:var(--theme-surface, #fee2e2);color:var(--theme-danger, #b91c1c)}.emoji-tray{position:absolute;bottom:calc(100% + .35rem);left:.6rem;border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);padding:.35rem;display:grid;grid-template-columns:repeat(6,1fr);gap:.3rem;box-shadow:0 8px 24px #0f172a29;z-index:6}.emoji-tray button{border:1px solid var(--theme-line, #e2e8f0);border-radius:7px;background:var(--theme-surface, #f8fafc);padding:.25rem}.hidden-file-input{display:none!important}.chat-details{border-left:1px solid var(--glass-border);background:linear-gradient(180deg,var(--theme-glass, rgba(255, 255, 255, .9)) 0%,var(--theme-glass, rgba(231, 239, 255, .65)) 100%);padding:.8rem;display:flex;flex-direction:column;gap:.65rem;overflow:auto;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.chat-details h3{margin:0;font-size:.95rem;font-weight:700;color:var(--theme-text, #0f172a)}.details-card{border:1px solid var(--glass-border);border-radius:12px;background:var(--glass);padding:.72rem;display:grid;gap:.4rem;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--shadow-soft)}.details-card h4{margin:0;font-size:.9rem;font-weight:700;color:var(--theme-text, #0f172a)}.details-card.details-hero{display:flex;align-items:center;gap:.75rem}.details-hero-body{display:flex;flex-direction:column;gap:.25rem;min-width:0}.details-hero-subtitle{font-size:.68rem;font-weight:600;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}.details-hero-body p{font-size:.75rem;white-space:nowrap}.contact-field-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.contact-field{display:flex;align-items:center;justify-content:space-between;gap:.6rem;border:1px solid var(--glass-border);border-radius:10px;padding:.4rem .6rem;background:var(--theme-glass, rgba(255, 255, 255, .75));min-height:36px}.details-field-label{font-size:.74rem;font-weight:600;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.details-field-value{font-size:.82rem;color:var(--text);text-align:right;white-space:normal;overflow:visible;text-overflow:initial;max-width:58%;word-break:break-word}.group-overview-card p{margin:0;color:var(--muted);font-size:.84rem}.group-stats{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.35rem}.group-stats div{border:1px solid var(--theme-line, #e2e8f0);border-radius:999px;padding:.28rem .58rem;background:var(--theme-glass, rgba(248, 250, 252, .85));display:inline-flex;align-items:center;gap:.35rem}.group-stats strong{font-size:.95rem}.group-stats span{font-size:.72rem;color:var(--muted)}.permissions-list{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}.permissions-list li{border:1px solid var(--theme-line, #e2e8f0);border-radius:10px;padding:.35rem .6rem;display:flex;justify-content:space-between;align-items:center;gap:.6rem;font-size:.78rem;background:var(--theme-glass, rgba(255, 255, 255, .7))}.permissions-list li span:last-child{font-weight:600;color:var(--theme-danger, #dc2626)}.permissions-list li.is-enabled span:last-child{color:var(--theme-success, #047857)}.details-card .avatar{justify-self:flex-start}.details-card strong,.details-card p{margin:0}.details-card:not(.details-hero) strong,.details-card:not(.details-hero) p{text-align:left}.details-card p,.details-card li{color:var(--muted)}.details-card button{text-align:left;border:1px solid var(--theme-line, #e2e8f0);background:var(--theme-panel, #fff);border-radius:8px;padding:.46rem .62rem;font-size:.8rem}.details-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:.42rem}.details-card button.btn-primary{border:0;background:var(--brand-gradient);color:#fff;box-shadow:var(--shadow-soft)}.details-card button.btn-primary:hover{background:var(--brand-gradient-hover)}.details-card ul{margin:0;padding-left:1rem}.member-list-with-menu{list-style:none;margin:0;padding:0;display:grid;gap:.28rem}.member-list-with-menu li{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.2rem 0}.member-name-row{display:inline-flex;align-items:center;gap:.6rem;min-width:0;flex:1}.member-avatar{width:38px;height:38px;border-radius:50%;background:var(--theme-surface, #e2e8f0);color:var(--theme-secondary, #475569);display:inline-flex;align-items:center;justify-content:center;font-size:.88rem;font-weight:700;overflow:hidden;flex-shrink:0;padding:0}.member-avatar-button{border:none;padding:0!important;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;line-height:0}.member-avatar img{width:100%;height:100%;object-fit:cover;display:block}.member-name{display:flex;flex-direction:column;align-items:flex-start;gap:.16rem;width:100%;min-width:0;font-size:.85rem;font-weight:600;color:var(--theme-text, #0f172a)}.member-primary{display:flex;align-items:center;gap:.45rem;width:100%;min-width:0}.member-primary-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-primary-tags{display:inline-flex;align-items:center;gap:.28rem;flex-shrink:0}.member-subtitle{font-size:.74rem;font-weight:500;color:var(--muted)}.member-admin-badge{font-size:.68rem;font-weight:700;color:var(--theme-accent, #2563eb);border:1px solid var(--theme-line, #bfdbfe);border-radius:999px;padding:.1rem .42rem;background:var(--theme-surface, #eff6ff)}.member-you-badge{font-size:.66rem;font-weight:700;color:var(--theme-success, #0f766e);border:1px solid #99f6e4;border-radius:999px;padding:.08rem .4rem;background:var(--theme-surface, #f0fdfa)}.participants-header-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.participants-add-btn{border:1px solid var(--theme-line, #cbd5e1);border-radius:999px;background:var(--theme-panel, #fff);color:var(--theme-text, #0f172a);font-size:.74rem;font-weight:700;padding:.34rem .68rem;white-space:nowrap}.participants-add-btn:disabled{opacity:.55;cursor:not-allowed}.participant-skeleton-list{display:grid;gap:.42rem}.participant-skeleton-row{display:flex;align-items:center;gap:.5rem}.participant-skeleton-avatar{width:26px;height:26px;border-radius:50%;background:linear-gradient(90deg,var(--theme-surface, #e2e8f0) 25%,var(--theme-surface, #f1f5f9) 50%,var(--theme-surface, #e2e8f0) 75%);background-size:200% 100%;animation:participantShimmer 1.2s infinite linear}.participant-skeleton-lines{display:grid;gap:.2rem;width:100%}.participant-skeleton-line{height:7px;border-radius:999px;background:linear-gradient(90deg,var(--theme-surface, #e2e8f0) 25%,var(--theme-surface, #f1f5f9) 50%,var(--theme-surface, #e2e8f0) 75%);background-size:200% 100%;animation:participantShimmer 1.2s infinite linear}.participant-skeleton-line.long{width:58%}.participant-skeleton-line.short{width:36%}@keyframes participantShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.leave-group-footer-btn{margin-top:auto;border:1px solid #ef4444;border-radius:10px;padding:.72rem .8rem;text-align:center;font-weight:700}.member-menu-wrap{position:relative}.member-menu-trigger{width:28px;height:28px;padding:0;border-radius:8px;border:1px solid var(--theme-line, #dbe4ef);background:var(--theme-panel, #fff);color:var(--theme-text, #334155);display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:18px;text-align:center}.member-menu-trigger:hover{background:var(--theme-surface, #eef4ff)}.member-menu-pop{position:absolute;right:0;top:calc(100% + 4px);min-width:140px;border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);box-shadow:0 12px 26px #0f172a29;padding:.2rem;display:grid;gap:.15rem;z-index:5}.member-menu-pop button{border:0;border-radius:8px;background:transparent;text-align:left;color:var(--theme-text, #334155);padding:.38rem .48rem;font-size:.8rem}.member-menu-pop button:hover{background:var(--theme-surface, #eef4ff);color:var(--theme-accent, #1e40af)}.member-menu-pop button.is-danger{color:var(--theme-danger, #dc2626)}.member-menu-pop button.is-danger:hover{background:#dc262614;color:var(--theme-danger, #b91c1c)}.related-groups-list{display:grid;gap:.4rem}.related-groups-list p{margin:0}.related-groups-list button{text-align:left;border:1px solid var(--theme-line, #e2e8f0);background:var(--theme-surface, #f8fafc);border-radius:8px;padding:.5rem .55rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;padding:1rem;z-index:30}.media-viewer-backdrop{z-index:1000;padding:0;display:block;overflow:hidden;background:#020617f5}.call-modal-backdrop{pointer-events:none}.incoming-call-modal{pointer-events:all;width:min(420px,calc(100% - 2rem));border-radius:24px;background:var(--theme-glass, rgba(255, 255, 255, .98));border:1px solid rgba(91,75,255,.16);box-shadow:0 28px 58px #0f173329;padding:1.5rem;text-align:center;animation:pop-in .18s ease-out}.incoming-call-header{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1rem}.incoming-call-icon{width:46px;height:46px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#5b4bff,#8b7bff);color:#fff;font-size:1.35rem}.incoming-call-description{margin:0 0 1.25rem;color:var(--theme-secondary, #475569)}.incoming-call-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.call-modal-dismiss{margin-top:1rem;border:0;background:transparent;color:var(--theme-secondary, #64748b);font-weight:600}.active-call-banner{position:fixed;left:50%;bottom:1rem;transform:translate(-50%);width:min(92vw,760px);background:var(--theme-glass, rgba(255, 255, 255, .96));border:1px solid rgba(91,75,255,.16);box-shadow:0 24px 50px #0f173324;border-radius:18px;padding:.95rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;z-index:25}.message-send-error{display:grid;gap:6px;margin-top:8px;font-size:.78rem}.message-send-error button{justify-self:start;color:inherit;background:transparent;border:1px solid currentColor;border-radius:6px;padding:4px 8px;font:inherit;cursor:pointer}.remote-call-banner{position:fixed;right:24px;bottom:96px;z-index:81;display:flex;align-items:center;gap:12px;width:min(360px,calc(100vw - 32px));padding:14px 16px;border:1px solid var(--theme-line, #b7e4d5);border-radius:14px;background:var(--theme-surface, #effbf5);color:var(--theme-success, #14543f);box-shadow:0 8px 30px #0f173324;pointer-events:none}.remote-call-icon{display:flex;flex-shrink:0}.remote-call-copy{min-width:0}.remote-call-copy strong{font-size:.88rem}.remote-call-copy p{margin:4px 0 0;font-size:.82rem;overflow-wrap:anywhere}.call-remote-video{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;width:100vw;height:100vh;background:#111;object-fit:contain}.call-remote-audio{display:none}.active-call-banner{z-index:81;position:fixed;right:24px;bottom:24px;width:min(560px,calc(100vw - 32px));min-height:132px;padding:20px 24px;border-radius:18px;box-shadow:0 20px 60px #00000059}.call-local-video{width:144px;height:108px;border-radius:10px;object-fit:cover;background:#111}.active-call-info{display:grid;gap:.2rem}.active-call-badge{display:inline-flex;align-items:center;justify-content:center;padding:.25rem .65rem;border-radius:999px;background:#5b4bff1f;color:var(--theme-accent, #4f46e5);font-size:.82rem;font-weight:700}.active-call-actions{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.icon-btn{display:inline-grid;place-items:center;color:var(--theme-secondary, #54656f)}.icon-btn svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}@keyframes pop-in{0%{opacity:0;transform:translate(-50%,1rem) scale(.98)}to{opacity:1;transform:translate(-50%) scale(1)}}.settings-fab{position:fixed;left:calc(1rem + 18px);bottom:.9rem;width:50px;height:50px;border-radius:12px;border:1px solid rgba(255,255,255,.45);background:var(--brand-gradient);color:#fff;font-size:1.55rem;font-weight:700;line-height:1;box-shadow:var(--shadow-soft),var(--glow);z-index:15}.settings-fab>svg{width:1.65rem;height:1.65rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.settings-fab-menu{position:fixed;left:.9rem;bottom:4.35rem;width:190px;border:1px solid var(--glass-border);border-radius:12px;background:var(--glass);box-shadow:var(--shadow-soft);padding:.35rem;display:grid;gap:.25rem;z-index:16;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.settings-fab-menu button{border:0;border-radius:8px;background:transparent;color:var(--theme-text, #334155);text-align:left;padding:.5rem .55rem}.settings-fab-menu button:hover{background:var(--brand-soft);color:var(--primary-purple)}.settings-back-chat-btn{position:fixed;left:.9rem;bottom:.9rem;border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);color:var(--theme-text, #334155);padding:.58rem .75rem;font-weight:600;box-shadow:0 10px 24px #0f172a29;z-index:14}.new-chat-modal{width:min(100%,420px);background:var(--theme-panel, #fff);border:1px solid var(--line);border-radius:18px;padding:1rem 1rem .95rem;display:grid;gap:.7rem;box-shadow:0 24px 60px #0f172a38}.new-chat-modal h3{margin:0;font-size:1.4rem;font-weight:700}.new-chat-types{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.new-chat-types button{border:1px solid var(--line);background:var(--theme-surface, #f8fafc);border-radius:8px;padding:.45rem}.new-chat-types .is-active{background:var(--brand-soft);color:var(--brand);border-color:var(--theme-line, #b8d2ff)}.new-chat-modal input{border:1px solid var(--line);border-radius:8px;padding:.65rem}.new-group-photo-preview{width:48px;height:48px;border-radius:50%;border:1px solid var(--theme-line, #dbe4ef);background:var(--theme-surface, #f8fbff);overflow:hidden;display:grid;place-items:center;color:var(--theme-accent, #174891);font-weight:700;font-size:.78rem}.new-group-photo-preview img{width:100%;height:100%;object-fit:cover}.new-group-photo-preview-btn{border:0;background:transparent;width:fit-content;padding:0}.new-chat-modal textarea{border:1px solid var(--line);border-radius:8px;padding:.65rem;min-height:78px;resize:vertical}.new-chat-choice-list{border:1px solid var(--line);border-radius:12px;background:var(--theme-surface, #f8fbff);display:grid;gap:.3rem;padding:.4rem}.new-chat-choice-list button{border:1px solid var(--theme-line, #dbe4ef);border-radius:10px;background:var(--theme-panel, #fff);color:var(--theme-text, #1f2937);padding:.58rem .6rem;display:flex;align-items:center;gap:.55rem;font-weight:600;text-align:left}.new-chat-choice-list button span{width:22px;display:grid;place-items:center;color:var(--theme-text, #111111)}.new-chat-choice-list button span svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.helper-text{color:var(--muted);font-size:.8rem}.member-pick-list{max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:.6rem;display:grid;gap:.45rem}.member-pick-list label{display:flex;align-items:center;gap:.45rem}.member-pick-list-group{padding:.5rem .55rem;gap:.2rem}.member-choice-row{position:relative;display:flex;align-items:center;gap:.65rem;padding:.5rem .3rem;border-radius:8px}.member-choice-row:hover{background:var(--theme-surface, #f8fafc)}.member-choice-row input{position:absolute;opacity:0;pointer-events:none}.member-choice-indicator{width:16px;height:16px;border-radius:999px;border:2px solid #7b8799;background:var(--theme-panel, #fff);flex:0 0 16px}.member-choice-indicator.is-selected{border-color:#16a34a;background:radial-gradient(circle at center,#16a34a 0 48%,transparent 52%)}.picker-avatar{width:42px;height:42px;border-radius:999px;background:var(--theme-surface, #e8f1ff);color:var(--theme-accent, #174891);display:grid;place-items:center;flex:0 0 42px;font-size:.82rem;font-weight:700;overflow:hidden}.picker-avatar.has-image img{width:100%;height:100%;object-fit:cover}.member-choice-copy{min-width:0;display:grid;gap:.08rem}.member-choice-name{color:var(--theme-text, #111827);font-weight:600}.member-choice-subtext{color:var(--theme-secondary, #64748b);font-size:.78rem}.member-choice-indicator.is-selected{border-color:#2481ff;box-shadow:inset 0 0 0 4px #2481ff}.member-choice-name{color:var(--theme-text, #111827)}.new-chat-modal footer{display:flex;justify-content:flex-end;gap:.6rem}.composer-send-btn{background:transparent!important;color:var(--theme-text, #111827)!important;box-shadow:none}.composer-send-btn:hover{background:transparent!important;box-shadow:none}.composer-send-btn:disabled{background:transparent!important;color:var(--theme-secondary, #9ca3af)!important;box-shadow:none;cursor:not-allowed}.thread-tools button:disabled{opacity:.5;cursor:not-allowed}.chat-workspace.search-workspace{grid-template-columns:minmax(0,1fr)}.chat-search-page{height:100%;min-height:0;padding:1rem;display:flex;flex-direction:column;gap:.8rem;background:linear-gradient(180deg,var(--theme-surface, #f6f8fc),var(--theme-surface, #eff5fb))}.search-header{display:flex;flex-direction:column;gap:.75rem}.archive-header{padding:.2rem 0 .15rem}.archive-header-main{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}.archive-header .chat-sidebar-title{gap:.6rem;justify-content:center}.archive-header .chat-sidebar-title>div{display:flex;flex-direction:column;align-items:center;text-align:center}.archive-header .chat-sidebar-title h2{margin:0;font-size:1.05rem;text-align:center}.archive-header .chat-sidebar-title p{margin:.1rem 0 0;color:var(--muted);font-size:.82rem;text-align:center}.archive-search{padding:0;background:transparent;border:0}.archive-search .chat-search-input-wrap input{border:1px solid var(--line);box-shadow:0 6px 14px #0f172a0a}.archive-tabs{display:inline-flex;align-items:center;gap:.3rem;padding:.26rem;border:1px solid rgba(91,75,255,.14);border-radius:999px;background:var(--theme-glass, rgba(255, 255, 255, .85));box-shadow:0 6px 16px #0f172a0f}.archive-tab{border:0;background:transparent;color:var(--theme-secondary, #64748b);padding:.36rem .8rem;border-radius:999px;font-weight:700;font-size:.8rem}.archive-tab.is-active{background:var(--brand-gradient);color:#fff}.search-controls{border:1px solid var(--line);border-radius:12px;padding:.7rem;background:var(--theme-panel, #fff);display:grid;gap:.6rem}.search-controls input{border:1px solid var(--line);border-radius:10px;padding:.68rem}.search-filters{display:flex;flex-wrap:wrap;gap:.45rem}.search-filters button{border:1px solid var(--line);border-radius:999px;background:var(--theme-surface, #f8fafc);padding:.35rem .65rem;color:var(--theme-secondary, #475569)}.search-filters .is-active{border-color:var(--theme-line, #b8d2ff);background:var(--brand-soft);color:var(--brand)}.search-results{min-height:0;border:1px solid var(--line);border-radius:12px;background:var(--theme-panel, #fff);display:grid;grid-template-rows:auto 1fr}.archive-layout{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:.8rem;min-height:0;flex:1 1 auto}.archive-list-panel{display:grid;grid-template-rows:auto 1fr;overflow:hidden;min-height:0}.archive-thread-panel{overflow:hidden;background:var(--theme-panel, #fff);min-height:0;display:flex;flex-direction:column}.archive-thread-panel .chat-thread{height:100%;border-radius:12px}.archive-thread-panel .chat-empty-state{flex:1;min-height:100%;padding:1.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.archive-thread-panel .chat-empty-state h2,.archive-thread-panel .chat-empty-state p{text-align:center}.search-results-header{padding:.7rem;border-bottom:1px solid var(--theme-line, #e5eaf0);display:flex;align-items:center;justify-content:space-between;gap:.6rem}.search-results-list{overflow:auto;padding:.7rem;display:grid;gap:.6rem}.search-result-item{border:1px solid var(--theme-line, #e5eaf0);border-radius:10px;padding:.68rem;display:grid;gap:.5rem}.search-result-item header{display:flex;justify-content:space-between;gap:.5rem;color:var(--muted);font-size:.78rem}.search-result-item p{margin:0}.search-result-item footer{display:flex;justify-content:flex-end}.starred-result-item footer{gap:.55rem}.starred-unstar-button{display:inline-flex;align-items:center;gap:.38rem;border:1px solid var(--theme-line, #ddd8ff);color:var(--theme-accent, #5546c9);background:var(--theme-panel, #fff)}.starred-unstar-button:hover,.starred-unstar-button:focus-visible{border-color:#7665ff;color:var(--theme-accent, #4338a8);background:var(--theme-surface, #f5f3ff)}.starred-unstar-button span{font-size:1.15em;line-height:1}.starred-result-item .quick-media-preview,.starred-result-item .quick-media-video,.starred-result-item .quick-media-fallback{width:100%;max-width:100%}.starred-result-item .quick-media-preview{max-height:280px;object-fit:contain}.starred-result-item .quick-media-video{width:100%}.starred-result-item .quick-media-video .quick-media-preview{width:100%;max-width:100%;max-height:280px;object-fit:contain}.starred-result-item .quick-media-fallback{min-height:200px}.search-empty{margin:auto;text-align:center;color:var(--muted)}.search-empty strong{display:block;color:var(--text)}.call-log-item{border-radius:14px;padding:1rem;background:var(--surface);box-shadow:var(--shadow-soft)}.call-log-item header{display:flex;justify-content:space-between;gap:.75rem;align-items:center;margin-bottom:.75rem}.call-log-label{font-weight:600}.call-log-meta{display:flex;flex-wrap:wrap;gap:.5rem;color:var(--muted);font-size:.82rem}.call-log-chip{padding:.3rem .6rem;border-radius:999px;border:1px solid rgba(0,0,0,.08);background:#00000008}.call-log-item footer{display:flex;justify-content:space-between;gap:1rem;align-items:center}.btn-text{color:var(--brand);background:transparent;border:none;padding:0;cursor:pointer;font-weight:600}.btn-text:hover{text-decoration:underline}.quick-action-modal{width:min(100%,920px);max-height:min(84dvh,760px);border:1px solid var(--glass-border);border-radius:16px;background:var(--theme-glass, rgba(255, 255, 255, .8));box-shadow:var(--shadow-soft);display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}.quick-action-nav{border-right:1px solid var(--glass-border);padding:.8rem .7rem;display:flex;flex-direction:column;gap:.28rem;background:var(--theme-glass, rgba(255, 255, 255, .7))}.quick-action-nav h3{margin:0 0 .38rem;padding:0 .45rem;color:var(--theme-text, #0f172a);font-size:1.5rem}.quick-action-nav button{border:0;border-radius:10px;padding:.52rem .68rem;text-align:left;color:var(--theme-text, #334155);background:transparent;font-size:.95rem;line-height:1.25}.quick-action-nav button:hover{background:var(--brand-soft)}.quick-action-nav button.is-active{background:var(--brand-gradient);color:#fff;box-shadow:var(--shadow-soft)}.quick-action-content{padding:.72rem .82rem;min-height:0;display:grid;grid-template-rows:auto 1fr auto;gap:.48rem;overflow:hidden}.quick-action-content>:not(.quick-action-modal-header):not(.quick-action-footer){min-height:0;overflow:auto}.quick-action-modal-header{display:flex;align-items:center;gap:.6rem}.quick-action-modal-header h3{margin:0;color:var(--text);font-size:1.08rem}.quick-action-modal-header p{margin:.12rem 0 0;color:var(--muted);font-size:.75rem}.quick-config-card{max-width:none;background:var(--glass);border-color:var(--glass-border);gap:.35rem;padding:.68rem}.quick-config-card h4,.quick-config-card p{margin:0;text-align:left;color:var(--text)}.quick-config-card .btn{justify-self:start;min-width:160px;text-align:center}.quick-config-card .btn.btn-danger{background:#dc2626;color:#fff;border:0}.quick-config-card .btn.btn-ghost{background:var(--theme-panel, #fff);border:1px solid var(--line);color:var(--text)}.quick-action-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem}.quick-action-options button{border:1px solid var(--glass-border);border-radius:12px;background:var(--theme-glass, rgba(255, 255, 255, .85));color:var(--theme-text, #334155);padding:.56rem .72rem;min-width:0;width:100%;transition:all .12s ease}.quick-action-options .is-active{border-color:transparent;background:var(--brand-gradient);color:#fff;box-shadow:var(--shadow-soft),var(--glow)}.quick-selection-note{color:var(--muted);font-size:.85rem}.quick-action-modal .search-results-list{border:1px solid var(--line);border-radius:12px;background:var(--theme-panel, #fff)}.quick-action-scroll-panel{min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:.1rem;display:grid;align-content:start}.quick-action-modal .search-results-list.media-grid-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.45rem;padding:.45rem}.quick-action-modal .search-results-list.media-grid-results .search-result-item{padding:.42rem;gap:.35rem}.quick-action-modal .search-results-list.media-grid-results .search-result-item p{font-size:.78rem}.quick-action-modal .search-result-item{border-color:var(--theme-line, #e5eaf0);background:var(--theme-surface, #f9fbff)}.quick-action-modal .quick-media-preview{max-width:156px;max-height:96px;border-radius:7px}.quick-action-modal .search-result-item header,.quick-action-modal .search-result-item p,.quick-action-modal .search-empty{color:var(--text)}.quick-action-modal .search-empty strong{color:var(--text)}.quick-links-section{margin-top:.9rem;display:grid;gap:.4rem}.quick-links-section h4{margin:0;font-size:.9rem;font-weight:700;color:var(--text)}.quick-links-list{display:grid;gap:.45rem}.quick-link-item{border:1px solid var(--theme-line, #e5eaf0);border-radius:12px;background:var(--theme-surface, #f9fbff);padding:.5rem .6rem;display:flex;align-items:center;justify-content:space-between;gap:.6rem}.quick-link-item-main{display:flex;align-items:center;gap:.65rem;min-width:0;flex:1}.quick-link-copy{min-width:0;display:grid;gap:.16rem}.quick-link-copy span,.quick-link-item a{color:var(--theme-accent, #2563eb);font-size:.85rem;font-weight:600;text-decoration:underline;word-break:break-all}.quick-link-copy p{margin:0;color:var(--muted);font-size:.74rem;line-height:1.25;word-break:break-word}.quick-link-item time{font-size:.72rem;color:var(--muted);white-space:nowrap}.quick-link-thumb,.quick-link-thumb-fallback{width:56px;height:56px;border-radius:10px;border:1px solid var(--theme-line, #d9e3f0);background:var(--theme-surface, #eef4ff);flex-shrink:0;overflow:hidden}.quick-link-thumb{position:relative;display:block}.quick-link-thumb-media{width:100%;height:100%;object-fit:cover;display:block;background:#0f172a}.quick-link-thumb-fallback{display:grid;place-items:center;color:var(--theme-secondary, #475569);font-size:.68rem;font-weight:700}.quick-link-thumb-fallback-video{background:linear-gradient(140deg,#0f172a,#1e293b);color:#e2e8f0;text-transform:uppercase;letter-spacing:.08em}.quick-link-thumb-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:999px;background:#0f172ab8;color:#fff;display:grid;place-items:center;font-size:.62rem}.quick-action-footer{display:flex;justify-content:flex-end;padding-top:.2rem}.quick-action-footer .btn{min-width:92px}.compact-starred-item{padding:.36rem;gap:.24rem;cursor:pointer}.compact-starred-item p{font-size:.78rem;line-height:1.18}.starred-preview-row{display:flex;align-items:center;gap:.45rem}.starred-kind-chip{border:1px solid var(--theme-line, #e2e8f0);border-radius:999px;padding:.12rem .5rem;font-size:.65rem;font-weight:700;letter-spacing:.04em;color:var(--theme-secondary, #475569);background:var(--theme-surface, #f8fafc);white-space:nowrap}.starred-preview-row p{margin:0;font-size:.78rem;line-height:1.2;color:var(--text)}.starred-result-item header span{font-weight:600}.message-jump-highlight{outline:2px solid #8dbbff;box-shadow:0 0 0 3px #2481ff33}.settings-list{display:grid;gap:.7rem}.settings-list label{display:flex;justify-content:space-between;gap:1rem;align-items:center}.settings-page{background:linear-gradient(180deg,var(--theme-surface, #f8fbff),var(--theme-surface, #edf4fc))}.settings-header{margin-bottom:.15rem}.settings-shell{grid-template-rows:1fr auto;overflow:hidden}.settings-grid{padding:.9rem;gap:.75rem}.settings-card{background:var(--theme-panel, #ffffff);border:1px solid var(--theme-line, #dbe4ee);box-shadow:0 8px 18px #0f172a0a}.settings-card header span{color:var(--theme-text, #334155);font-size:.8rem;text-transform:uppercase;letter-spacing:.02em;font-weight:700}.settings-row{padding:.42rem .2rem;border-bottom:1px solid var(--theme-line, #edf2f7);color:var(--theme-text, #1f2937)}.settings-row:last-child{border-bottom:0;padding-bottom:.1rem}.settings-row input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand)}.settings-row select{min-width:140px;border:1px solid var(--theme-line, #d1dae6);border-radius:8px;background:var(--theme-surface, #f8fbff);color:var(--theme-text, #334155);padding:.35rem .5rem}.settings-toggle-row{display:flex;align-items:center;justify-content:space-between}.toggle-switch{width:44px;height:24px;border:1px solid var(--theme-line, #c6d2e2);border-radius:999px;background:var(--theme-surface, #e2e8f0);padding:2px;display:inline-flex;align-items:center;transition:background .2s ease}.toggle-switch span{width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a40;transform:translate(0);transition:transform .2s ease}.toggle-switch.is-on{background:#3b82f6;border-color:#3b82f6}.toggle-switch.is-on span{transform:translate(20px)}.settings-actions{border-top:1px solid var(--theme-line, #e5eaf0);background:var(--theme-surface, #f7fbff);padding:.75rem .9rem;display:flex;justify-content:flex-end;gap:.6rem}.btn-linklike{border:0;background:transparent;color:var(--theme-secondary, #64748b);font-weight:600}.settings-v2{height:100%;min-height:0;background:var(--panel);display:grid;grid-template-rows:auto 1fr}.settings-v2-embedded{height:100%}.settings-overlay-panel{width:min(94vw,1080px);height:min(84dvh,760px);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel)}.settings-topbar{padding:.8rem .9rem;border-bottom:1px solid var(--line);background:var(--theme-surface, #f6f8fb);display:grid;grid-template-columns:auto auto;justify-content:space-between;align-items:center;gap:.8rem}.settings-top-left{display:flex;align-items:center;gap:.6rem}.settings-brand{display:flex;align-items:center;gap:.5rem;color:var(--theme-text, #1f2937);font-size:1rem}.settings-brand .brand-badge{border-radius:8px}.settings-topbar input{width:100%;border:1px solid var(--line);border-radius:10px;padding:.65rem;font-size:.95rem;background:var(--theme-panel, #fff)}.settings-user-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,var(--theme-surface, #d4e5ff),#8cb7ff);color:var(--theme-accent, #174891);font-weight:700;display:grid;place-items:center;font-size:.88rem}.settings-layout{padding:.85rem;display:grid;gap:.85rem;grid-template-columns:220px minmax(0,1fr);align-items:start}.settings-menu-panel{border:1px solid var(--glass-border);border-radius:16px;background:var(--glass);padding:.8rem;display:grid;align-content:start;gap:.35rem;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--shadow-soft)}.settings-menu-panel p{margin:0 0 .2rem;font-size:.74rem;color:var(--theme-secondary, #6b7280);letter-spacing:.04em}.settings-menu-panel button{border:1px solid transparent;border-radius:10px;background:transparent;color:var(--theme-secondary, #475569);padding:.56rem .62rem;text-align:left;font-size:.88rem}.settings-menu-panel button.is-active{background:var(--brand-gradient);border-color:transparent;color:#fff;font-weight:600;box-shadow:var(--shadow-soft)}.settings-menu-panel button:hover{background:var(--brand-soft)}.settings-menu-panel hr{border:0;border-top:1px solid var(--glass-border);width:100%;margin:.45rem 0}.settings-menu-panel .danger{color:var(--theme-danger, #dc2626);margin-top:auto}.settings-main-panel{display:grid;gap:.7rem;align-content:start;max-width:760px}.settings-main-header h1{margin:0;font-size:1.22rem}.settings-main-header p{margin:.24rem 0 0;color:var(--muted);font-size:.88rem}.profile-settings-card{border:1px solid var(--line);border-radius:12px;background:var(--theme-panel, #fff);overflow:hidden;max-width:760px}.profile-photo-row{padding:.85rem .9rem;display:grid;grid-template-columns:auto 1fr;gap:.75rem;border-bottom:1px solid var(--theme-line, #e6ebf1)}.profile-photo-avatar{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--theme-surface, #d4e5ff),#8cb7ff);color:var(--theme-accent, #174891);font-weight:700;font-size:1.1rem;overflow:hidden}.profile-photo-avatar.has-image{color:transparent;background:var(--theme-surface, #dbe7f8)}.profile-photo-avatar.has-image img{width:100%;height:100%;object-fit:cover}.profile-photo-meta h3{margin:0;font-size:1rem}.profile-photo-meta p{margin:.18rem 0 .45rem;color:var(--muted);max-width:480px;font-size:.85rem}.profile-photo-meta div{display:flex;gap:.45rem}.profile-notice{display:block;margin-top:.4rem;color:var(--muted);font-size:.8rem}.profile-form-grid{padding:.9rem;display:grid;grid-template-columns:150px 1fr;gap:.65rem .85rem;align-items:start}.profile-form-grid label span{display:block;font-weight:600;font-size:.95rem}.profile-form-grid label small{color:var(--muted);font-size:.78rem}.profile-form-grid input{border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);padding:.56rem .68rem;font-size:.92rem}.readonly-profile-field{min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface, #f8faff);padding:.65rem .72rem;display:flex;align-items:center;color:var(--theme-text, #0f172a)}.readonly-profile-field strong{font-size:.92rem;font-weight:600;word-break:break-word}.profile-readonly-notice{margin:0;padding:.8rem .9rem;border-top:1px solid var(--theme-line, #e6ebf1);color:var(--muted);font-size:.84rem}.readonly-input-block p{margin:.35rem 0 0;color:var(--muted);font-size:.85rem}.readonly-input-block a{color:var(--theme-accent, #2563eb);text-decoration:none;font-weight:600}.profile-settings-card footer{border-top:1px solid var(--theme-line, #e6ebf1);padding:.7rem .9rem;display:flex;justify-content:flex-end;gap:.6rem}.settings-section-card{max-width:760px}.settings-info-panel{display:grid;gap:.8rem;align-content:start}.settings-section-card{padding:.55rem}.settings-help-links{display:grid;gap:.5rem}.settings-help-links .btn{justify-self:start}.help-action-btn{border:1px solid var(--theme-line, #cfd8e3);border-radius:10px;background:var(--theme-surface, #f7fbff);color:var(--theme-text, #0f172a);padding:.52rem .75rem;text-align:left;font-weight:600}.help-action-btn:hover{background:var(--theme-surface, #eaf3ff)}.settings-info-panel article{border:1px solid var(--line);border-radius:12px;background:var(--theme-surface, #fbfdff);padding:.9rem;display:grid;gap:.55rem}.settings-info-panel h4{margin:0;font-size:1rem}.settings-info-panel p{margin:0;color:var(--muted);font-size:.9rem}.settings-info-panel a{color:var(--theme-accent, #2563eb);text-decoration:none;font-weight:600;font-size:.88rem}.settings-link-btn{border:0;background:transparent;color:var(--theme-accent, #2563eb);font-weight:600;font-size:.86rem;padding:0;text-align:left}.notification-permission-note{margin:.2rem 0 0;color:var(--theme-secondary, #64748b);font-size:.82rem}.notification-permission-popup{max-width:520px}.settings-popup{width:min(100%,620px);border:1px solid var(--line);border-radius:12px;background:var(--theme-panel, #fff);display:grid;gap:.75rem;padding:1rem}.settings-popup header{display:flex;justify-content:center;align-items:center;gap:.6rem}.settings-popup header h3{margin:0;font-size:1.15rem;text-align:center}.settings-popup-body p{margin:0;color:var(--muted);text-align:center}.settings-popup-body ul{margin:.6rem auto 0;padding-left:1.1rem;color:var(--muted);width:fit-content;max-width:100%}.settings-popup-body li+li{margin-top:.25rem}.message-info-popup{width:min(560px,calc(100vw - 2rem));max-height:min(80vh,760px);display:flex;flex-direction:column;overflow:hidden}.message-info-body{flex:1;min-height:0;display:grid;gap:.85rem;overflow-y:auto;padding-right:.15rem}.message-info-hero{background:linear-gradient(135deg,#2563eb14,#0ea5e914);border-color:#2563eb24}.message-info-hero-copy{display:grid;gap:.2rem}.message-info-kicker{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--theme-accent, #2563eb)}.message-info-hero strong{color:var(--theme-text, #0f172a);font-size:.98rem;line-height:1.35;word-break:break-word}.message-info-hero p{color:var(--muted);font-size:.8rem}.message-info-section{border:1px solid var(--glass-border);border-radius:16px;background:var(--theme-glass, rgba(255, 255, 255, .88));padding:.85rem;display:grid;gap:.7rem;box-shadow:var(--shadow-soft)}.message-info-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.message-info-section-header h4{margin:0;font-size:.92rem;font-weight:700;color:var(--theme-text, #0f172a)}.message-info-section-header p{margin:.12rem 0 0;color:var(--muted);font-size:.78rem}.message-info-section-badge{min-width:1.9rem;height:1.9rem;padding:0 .45rem;border-radius:999px;display:inline-grid;place-items:center;background:#2563eb14;color:var(--theme-accent, #1d4ed8);font-size:.78rem;font-weight:700}.message-info-section.is-delivered .message-info-section-badge{background:#0ea5e91a;color:#0284c7}.message-info-section.is-seen .message-info-section-badge{background:#10b9811f;color:var(--theme-success, #059669)}.message-info-recipient-list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}.message-info-recipient{display:grid;grid-template-columns:2.55rem minmax(0,1fr);gap:.7rem;align-items:center;padding:.65rem .7rem;border-radius:14px;background:linear-gradient(180deg,var(--theme-glass, rgba(248, 250, 252, .98)),var(--theme-glass, rgba(255, 255, 255, .94)));border:1px solid rgba(226,232,240,.9)}.message-info-recipient-avatar{width:2.55rem;height:2.55rem;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#38bdf8);color:#fff;font-weight:700;letter-spacing:-.03em;box-shadow:0 6px 14px #2563eb2e}.message-info-recipient-avatar.has-image{background:transparent}.message-info-recipient-avatar img{width:100%;height:100%;object-fit:cover;display:block}.message-info-recipient-copy{min-width:0;display:grid;gap:.1rem}.message-info-recipient-copy strong{color:var(--theme-text, #0f172a);font-size:.9rem;font-weight:700;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-info-recipient-copy span{color:var(--muted);font-size:.78rem}.message-info-section.is-seen .message-info-recipient{border-color:#10b98129}.message-info-section.is-delivered .message-info-recipient{border-color:#0ea5e929}.message-info-section.is-sent .message-info-recipient{border-color:#2563eb29}.settings-device-list{margin-top:.65rem;display:grid;gap:.5rem}.settings-device-list article{border:1px solid var(--theme-line, #e2e8f0);border-radius:10px;background:var(--theme-surface, #f8fbff);padding:.55rem .65rem;display:grid;gap:.2rem;text-align:center}.settings-device-list span{color:var(--muted);font-size:.85rem}.settings-popup footer{display:flex;justify-content:center;gap:.55rem}@media (max-width: 1279px){.chat-workspace,.chat-workspace.profile-open{--chat-sidebar-size: min(var(--chat-sidebar-width, 420px), 42%);grid-template-columns:var(--chat-sidebar-size) minmax(0,1fr)}.chat-details{position:absolute;inset:0 0 0 auto;width:min(380px,100%);z-index:25;background:var(--panel);box-shadow:-8px 0 28px #0f172a29}}@media (max-width: 840px){.auth-screen{padding:1rem}.auth-art{display:none}.chat-screen{padding:0;gap:0}.settings-fab{left:.6rem;bottom:.7rem}.settings-fab-menu{left:.6rem;bottom:4.05rem}.settings-back-chat-btn{left:.6rem;bottom:.7rem}.chat-workspace,.chat-workspace.profile-open{border:0;border-radius:0;height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.left-rail{display:none}.chat-sidebar,.chat-thread{min-height:0}.chat-search-page{min-height:0;padding:.8rem}.search-header{align-items:flex-start;flex-direction:column}.quick-action-modal{grid-template-columns:1fr;max-height:100%;border-radius:12px}.quick-action-nav{border-right:0;border-bottom:1px solid rgba(148,163,184,.2);display:grid;grid-template-columns:1fr 1fr}.quick-action-nav h3{grid-column:1 / -1;font-size:1.2rem}.settings-layout,.settings-topbar{grid-template-columns:1fr}.settings-top-left{justify-content:space-between}.profile-form-grid{grid-template-columns:1fr}.chat-workspace:not(.mobile-thread)>:is(.chat-thread,.chat-empty-state,.chat-lock-panel){display:none}.chat-workspace.mobile-thread .chat-sidebar{display:none}.chat-workspace.mobile-thread .chat-thread{display:flex}.chat-resize-handle{display:none}}.load-older-btn{align-self:center;border:1px solid var(--line);border-radius:999px;background:var(--theme-panel, #fff);color:var(--theme-text, #334155);padding:.3rem .65rem;font-size:.76rem}.load-older-btn:disabled{opacity:.65;cursor:wait}.linked-history-status{align-self:center;max-width:min(34rem,85%);border-radius:999px;background:var(--theme-glass, rgba(255, 255, 255, .72));color:var(--theme-secondary, #64748b);padding:.22rem .65rem;font-size:.76rem;text-align:center}.status-pill{border-radius:999px;border:1px solid var(--theme-line, #bfd2ea);background:var(--theme-surface, #eff5ff);color:var(--theme-accent, #1d4ed8);padding:.06rem .42rem;font-size:.66rem;font-weight:700;text-transform:uppercase}.status-pill.sent{color:var(--theme-secondary, #64748b);border-color:var(--theme-line, #d1dae5);background:var(--theme-surface, #f8fafc)}.status-pill.delivered{color:var(--theme-success, #0f766e);border-color:#99e2d6;background:var(--theme-surface, #ecfdf5)}.status-pill.playing{color:var(--theme-accent, #6d28d9);border-color:var(--theme-line, #d8b4fe);background:var(--theme-surface, #f5f3ff)}.message-ticks{display:inline-flex;align-items:center;justify-content:center;line-height:1}.message-ticks svg{width:16px;height:10px;display:block;overflow:visible}.message-ticks path{fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.message-ticks.is-sent path{stroke:#8f9baa}.message-ticks.is-delivered path{stroke:#8f9baa}.message-ticks.is-read path{stroke:#53bdeb}.pending-clock-icon{color:var(--theme-secondary, #64748b);font-size:.75rem;line-height:1}.message-meta-star{color:#f59e0b;font-size:.78rem;line-height:1}.message-actions{margin-top:.32rem;display:flex;flex-wrap:wrap;gap:.28rem}.message-actions button{border:1px solid var(--theme-line, #d7e0ec);border-radius:999px;background:var(--theme-surface, #f8fbff);color:var(--theme-text, #334155);padding:.14rem .5rem;font-size:.72rem}.message-action-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;line-height:0;vertical-align:middle}.message-action-icon-btn svg{width:16px;height:16px;display:block;stroke:var(--theme-text, #111111);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.message-long-press-menu{position:fixed;border:1px solid var(--line);border-radius:14px;background:var(--theme-panel, #fff);box-shadow:0 12px 28px #0f172a2e;display:grid;padding:.32rem;gap:.08rem;min-width:148px;max-height:min(70vh,420px);overflow-y:auto;overscroll-behavior:contain;z-index:10030}.message-long-press-menu.has-reaction-emoji-picker{width:min(390px,calc(100vw - 20px));max-height:min(78vh,520px)}.message-long-press-menu button{border:0;border-radius:10px;background:transparent;text-align:left;color:var(--theme-text, #334155);font-size:.82rem;padding:.5rem .58rem}.message-long-press-menu button:hover{background:var(--theme-surface, #eef4ff);color:var(--theme-accent, #1e40af)}.message-reaction-picker-inline{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.22rem;padding:.2rem .1rem .3rem;border-bottom:1px solid var(--theme-line, #eef2f7);margin-bottom:.16rem}.message-reaction-picker-inline button{text-align:center;font-size:1rem;padding:.34rem .15rem}.message-reaction-picker-inline .message-reaction-more-button{color:var(--theme-secondary, #475569);font-size:1.35rem;font-weight:400;line-height:1}.message-reaction-picker-inline .message-reaction-more-button.is-active{background:var(--brand-soft);color:var(--brand)}.message-reaction-emoji-picker{display:grid;gap:.42rem;padding:.36rem .12rem .12rem}.message-reaction-emoji-picker .composer-emoji-search{width:100%;min-width:0;border:1px solid var(--theme-line, #cbd5e1);border-radius:8px;padding:.5rem .58rem;color:var(--theme-text, #1e293b);background:var(--theme-panel, #fff);font:inherit}.message-reaction-emoji-picker .composer-emoji-search:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1f;outline:none}.message-reaction-emoji-picker .emoji-grid{grid-template-columns:repeat(9,minmax(0,1fr))}.message-reaction-emoji-picker .emoji-grid button{text-align:center}.message-upload-progress{display:grid;gap:.2rem;margin-top:.35rem}.message-upload-progress small{color:var(--theme-secondary, #64748b);font-size:.72rem}.message-upload-progress-bar{width:100%;height:6px;border-radius:999px;background:#94a3b847;overflow:hidden}.message-upload-progress-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#38bdf8)}.details-back-btn{border:1px solid var(--line);border-radius:8px;background:var(--theme-panel, #fff);color:var(--theme-text, #334155);padding:.4rem .55rem;justify-self:start}.media-thumb{border:1px solid var(--theme-line, #dbe4ef);border-radius:10px;background:var(--theme-panel, #fff);padding:0;overflow:hidden;width:min(280px,100%);display:grid}.media-thumb.is-image{width:fit-content;max-width:min(320px,100%);background:linear-gradient(160deg,var(--theme-surface, #f8fbff),var(--theme-surface, #e8f0ff));box-sizing:border-box}.media-thumb img{width:100%;height:180px;object-fit:cover;display:block}.media-thumb.is-image img{width:auto;height:auto;max-width:100%;max-height:420px;object-fit:contain;min-height:0}.media-thumb.is-image .media-thumb-loading,.media-thumb.is-image .media-thumb-fallback{width:240px;max-width:100%;height:180px;min-height:0}.message-bubble.message-bubble-media-image{width:fit-content;max-width:min(72%,320px);padding:.38rem}.message-bubble.message-bubble-media-image .media-thumb.is-image{width:fit-content;max-width:min(320px,100%)}.sticker-picker{position:absolute;z-index:30;bottom:58px;left:0;width:min(340px,calc(100vw - 32px));max-height:390px;padding:12px;overflow:auto;border:1px solid var(--border-color, var(--theme-line, #ddd));border-radius:16px;background:var(--surface, var(--theme-panel, #fff));box-shadow:0 12px 34px #0000002e}.sticker-picker-header,.sticker-picker-tabs{display:flex;align-items:center;gap:8px}.emoji-picker-sections{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--border-color, var(--theme-line, #eee))}.emoji-picker-sections button{border:0;border-radius:8px;padding:6px 9px;background:transparent;cursor:pointer}.emoji-picker-sections button.is-active{color:var(--primary, var(--theme-accent, #6c4cff));background:#6c4cff1a;font-weight:700}.sticker-picker-header{justify-content:space-between;margin-bottom:10px}.sticker-picker-header button,.sticker-picker-tabs button{border:0;background:transparent;cursor:pointer}.sticker-picker-tabs{padding-bottom:10px;border-bottom:1px solid var(--border-color, var(--theme-line, #eee))}.sticker-picker-tabs button.active{color:var(--primary, var(--theme-accent, #6c4cff));font-weight:700}.sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-top:10px}.sticker-tile{position:relative;min-width:0}.sticker-tile>button:first-child{width:100%;padding:4px;border:0;border-radius:10px;background:transparent;cursor:pointer}.sticker-tile img{display:block;width:100%;aspect-ratio:1;object-fit:contain}.sticker-favorite{position:absolute;right:0;bottom:0;border:0;background:var(--theme-glass, rgb(255 255 255 / 80%));border-radius:50%;cursor:pointer}.message-bubble.message-bubble-sticker{padding:0;background:transparent;border:0;box-shadow:none}.message-bubble.message-bubble-sticker .media-thumb.is-image{border:0;background:transparent;box-shadow:none}.message-bubble.message-bubble-sticker .media-thumb.is-image img{border:0;border-radius:0}.media-thumb-fallback{min-height:180px;width:100%;display:grid;place-items:center;padding:1rem;background:linear-gradient(140deg,#0f172a,#1e293b);color:#e2e8f0;font-size:.85rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.media-thumb-loading{min-height:180px;width:100%;display:grid;place-items:center;padding:1rem;background:#64748b14}.media-thumb-loading .media-loading-spinner{width:1.5rem;height:1.5rem;border-width:2.5px}.media-thumb.is-video{position:relative}.media-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;background:#0f172a99;color:#fff;display:grid;place-items:center;font-size:1rem}.media-duration{position:absolute;right:8px;bottom:8px;border-radius:999px;background:#0f172ab8;color:#fff;font-size:.68rem;padding:.14rem .38rem}.message-document-card{display:flex;align-items:center;gap:.72rem;min-width:0;max-width:100%;padding:.58rem;border:1px solid var(--theme-line, #dbe4ef);border-radius:14px;background:var(--theme-surface, #f8fafc);width:min(72vw,340px);box-sizing:border-box;text-align:left;font:inherit;color:inherit;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}button.message-document-card{transition:box-shadow .16s ease,background-color .16s ease}.message-document-card:hover,.message-document-card:focus-visible{background:var(--theme-surface, #f8fbff);box-shadow:0 4px 14px #0f172a1a;outline:none}.message-document-card-icon{position:relative;flex:0 0 auto;width:5rem;height:5rem;border-radius:14px;background:linear-gradient(180deg,var(--theme-surface, #eef2fb) 0%,var(--theme-surface, #e2e9f7) 100%);color:var(--theme-accent, #4f6fae);display:grid;place-items:center}.message-document-card-icon svg{width:2.5rem;height:2.5rem}.message-document-card-ext{position:absolute;bottom:.3rem;left:0;right:0;text-align:center;font-size:.62rem;font-weight:700;letter-spacing:.04em;color:var(--theme-accent, #3b5a99);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 .2rem}.message-document-card-thumb{position:relative;flex:0 0 auto;width:5rem;height:5rem;border-radius:14px;overflow:hidden;border:1px solid rgba(219,228,239,.9);background:var(--theme-surface, #f1f4fa);display:grid;place-items:center}.message-document-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}.message-document-card-thumb .message-document-card-ext{color:#fff;background:linear-gradient(180deg,#0f172a6b,#0f172ac7);padding-top:.16rem}.message-document-card-body{display:grid;gap:.22rem;min-width:0;flex:1}.message-document-card-name{font-size:.98rem;font-weight:600;color:inherit;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.message-document-card-meta{color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-location-card{border:1px solid var(--theme-line, #dbe4ef);border-radius:14px;background:linear-gradient(180deg,var(--theme-panel, #ffffff) 0%,var(--theme-surface, #f8fbff) 100%);overflow:hidden;display:grid;min-width:0;max-width:min(100%,320px);box-shadow:0 8px 24px #0f172a14}.message-location-card-loading{min-height:240px;background:linear-gradient(135deg,var(--theme-glass, rgba(226, 232, 240, .92)),var(--theme-glass, rgba(241, 245, 249, .96)))}.message-location-card-unavailable{max-width:min(100%,280px)}.message-render-fallback-row{display:flex;width:100%}.message-render-fallback-row.is-me{justify-content:flex-end}.message-render-fallback-row.is-other{justify-content:flex-start}.message-render-fallback-card{display:grid;gap:.32rem;max-width:min(100%,320px);padding:.8rem .95rem;border-radius:18px;background:#94a3b824;border:1px solid rgba(148,163,184,.22);color:var(--theme-secondary, #475569)}.message-render-fallback-card time{font-size:.76rem;color:var(--theme-secondary, #64748b)}.google-map-preview-map{width:100%;height:220px;display:block}.google-map-preview-fallback,.message-location-map-fallback{min-height:240px;width:100%;display:grid;place-items:center;padding:1rem;background:linear-gradient(140deg,#0f172a,#1e293b);color:#e2e8f0;font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.google-map-preview-fallback span,.message-location-map-fallback span{max-width:100%;text-align:center}.message-location-meta{display:grid;gap:.16rem;padding:.62rem .72rem .1rem;min-width:0}.message-location-actions{display:flex;align-items:center;padding:.1rem .72rem .72rem}.message-location-meta strong,.message-location-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-location-meta strong{font-size:.94rem}.message-location-meta span{color:var(--muted);font-size:.78rem}.message-location-open-link{display:inline-flex;justify-self:start;margin:.1rem .72rem .7rem;border:1px solid var(--theme-line, #dbe4ef);border-radius:999px;padding:.3rem .72rem;color:var(--theme-accent, #1d4ed8);background:var(--theme-surface, #eff6ff);font-size:.76rem;font-weight:600;text-decoration:none}.message-contact-card{border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,var(--panel) 0%,var(--bubble-in) 100%);padding:.62rem .68rem;display:grid;gap:.55rem;min-width:0}.message-contact-card-header{display:flex;align-items:center;gap:.62rem;min-width:0}.message-contact-avatar{width:38px;height:38px;border-radius:999px;background:linear-gradient(135deg,var(--brand-soft),var(--theme-surface, #dbeafe));color:var(--text);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.78rem;flex:0 0 38px}.message-contact-avatar.has-image{overflow:hidden;background:var(--panel)}.message-contact-avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block}.contact-avatar-no-profile-icon{width:100%;height:100%;object-fit:fill;display:block}.message-contact-meta{display:grid;gap:.12rem;min-width:0}.message-contact-meta strong,.message-contact-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-contact-meta strong{font-size:.92rem}.message-contact-meta span{color:var(--muted);font-size:.78rem}.message-contact-actions{display:flex;justify-content:flex-end}.message-contact-open-btn{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:.32rem .72rem;font-size:.76rem;font-weight:600}.message-contact-note{color:var(--muted);font-size:.75rem}.message-contact-skeleton,.message-contact-error{border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,var(--panel) 0%,var(--bubble-in) 100%);padding:.7rem;display:grid;gap:.5rem;min-width:0}.message-contact-skeleton-header{display:flex;align-items:center;gap:.65rem}.message-contact-skeleton-avatar{width:38px;height:38px;border-radius:999px;background:linear-gradient(90deg,var(--brand-soft) 25%,var(--theme-surface, #eff6ff) 37%,var(--brand-soft) 63%);background-size:400% 100%;animation:message-contact-shimmer 1.35s ease infinite;flex:0 0 38px}.message-contact-skeleton-lines{display:grid;gap:.35rem;min-width:0;flex:1}.message-contact-skeleton-lines span,.message-contact-skeleton-actions span{display:block;height:10px;border-radius:999px;background:linear-gradient(90deg,var(--brand-soft) 25%,var(--theme-surface, #eff6ff) 37%,var(--brand-soft) 63%);background-size:400% 100%;animation:message-contact-shimmer 1.35s ease infinite}.message-contact-skeleton-lines span:first-child{width:70%;height:12px}.message-contact-skeleton-lines span:last-child{width:52%}.message-contact-skeleton-actions{display:flex;justify-content:flex-end}.message-contact-skeleton-actions span{width:76px}.message-contact-error strong{font-size:.9rem}.message-contact-error span{color:var(--muted);font-size:.78rem}.contact-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:85;background:#0f172a6b;display:flex;align-items:flex-end;justify-content:center;padding:1rem}.contact-modal{width:min(560px,100%);max-height:min(80vh,760px);overflow:hidden;border-radius:24px 24px 18px 18px;border:1px solid var(--line);background:linear-gradient(180deg,var(--panel) 0%,var(--surface) 100%);box-shadow:var(--shadow-soft);display:grid;grid-template-rows:auto 1fr}.contact-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1rem .8rem;border-bottom:1px solid var(--line)}.contact-modal-header h3{margin:0;font-size:1.02rem}.contact-modal-header p{margin:.22rem 0 0;color:var(--muted);font-size:.8rem}.contact-modal-close{width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:1.2rem;line-height:1;display:inline-flex;align-items:center;justify-content:center}.contact-modal-list{overflow:auto;padding:.8rem 1rem 1rem;display:grid;gap:.65rem}.contact-modal-item{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:.75rem;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem}.contact-modal-avatar{width:42px;height:42px;border-radius:999px;background:linear-gradient(135deg,var(--brand-soft),var(--theme-surface, #dbeafe));display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:var(--text)}.contact-modal-avatar.has-image{overflow:hidden;background:var(--panel)}.contact-modal-avatar.has-image img{width:100%;height:100%;object-fit:cover;display:block}.contact-modal-meta{display:grid;gap:.1rem;min-width:0}.contact-modal-meta strong,.contact-modal-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-modal-meta strong{font-size:.92rem}.contact-modal-meta span{color:var(--muted);font-size:.76rem}.contact-modal-actions{display:flex;align-items:center}.contact-modal-message-btn{border:1px solid var(--line);border-radius:999px;background:var(--bubble-in);color:var(--text);padding:.34rem .8rem;font-weight:600;font-size:.76rem}@keyframes message-contact-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.message-document-card.is-me,.message-row-shell.is-me .message-document-card{border-color:#ffffff47;background:var(--theme-panel, #ffffff);color:var(--text)}.message-document-card.is-me .message-document-card-meta,.message-row-shell.is-me .message-document-card-meta{color:var(--muted)}.message-audio{border:1px solid var(--theme-line, #dbe4ef);border-radius:10px;background:var(--theme-surface, #f8fbff);padding:.45rem .5rem;display:grid;gap:.28rem;min-width:0;width:clamp(260px,68vw,360px);max-width:100%}.audio-waveform-box{border:1px solid var(--theme-line, #dbe4ef);border-radius:10px;background:var(--theme-panel, #ffffff);padding:.32rem .4rem;display:flex;align-items:center;gap:.42rem;width:100%;min-width:0;overflow:hidden}.audio-waveform-toggle-btn{width:30px;height:30px;border-radius:999px;border:1px solid var(--theme-line, #cfd9e6);background:var(--theme-surface, #f8fbff);display:inline-flex;align-items:center;justify-content:center;padding:0;flex:0 0 30px}.audio-waveform-toggle-btn svg{width:14px;height:14px;display:block;stroke:var(--theme-text, #111827);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.audio-waveform{height:34px;display:flex;align-items:center;gap:2px;cursor:pointer;touch-action:none;flex:1;min-width:0;overflow:hidden;width:100%}.audio-waveform span{width:4px;flex-shrink:0;border-radius:999px;background:#4f8de7;opacity:.35;transition:opacity .12s ease,background-color .12s ease}.audio-waveform span.is-active{opacity:1;background:#2563eb}.audio-meta-row{display:flex;align-items:center;gap:.45rem;color:var(--muted);font-size:.74rem;line-height:1}.message-audio .message-media-caption,.is-me .message-audio .message-media-caption{color:var(--theme-text, #111827)}.emoji-picker-panel{position:absolute;bottom:calc(100% + .35rem);left:.6rem;width:min(440px,96vw);border:1px solid var(--line);border-radius:12px;background:var(--theme-panel, #fff);box-shadow:0 10px 24px #0f172a29;padding:.5rem;display:grid;gap:.42rem;z-index:7}.emoji-picker-panel input{border:1px solid var(--line);border-radius:8px;padding:.45rem .5rem;font-size:.84rem}.emoji-category-tabs{display:flex;overflow:auto;gap:.28rem;padding-bottom:.12rem}.emoji-category-tabs button{border:1px solid var(--line);border-radius:999px;background:var(--theme-surface, #f8fafc);color:var(--theme-secondary, #475569);width:34px;height:34px;padding:0;display:grid;place-items:center;flex:0 0 auto;font-size:1.05rem;white-space:nowrap}.emoji-category-tabs button span{line-height:1}.emoji-category-tabs button.is-active{border-color:var(--theme-line, #b8d2ff);background:var(--brand-soft);color:var(--brand)}.emoji-grid{max-height:320px;overflow:auto;display:grid;grid-template-columns:repeat(10,1fr);gap:.24rem}.emoji-grid button{border:1px solid var(--theme-line, #e2e8f0);border-radius:7px;background:var(--theme-surface, #f8fafc);padding:.24rem;min-height:32px;font-size:1.06rem}.emoji-empty{margin:.4rem 0;grid-column:1 / -1;color:var(--muted);font-size:.78rem;text-align:center}.attachment-trigger{position:relative;display:inline-flex;flex-shrink:0}.attachment-menu{position:absolute;bottom:calc(100% + .35rem);right:0;width:max-content;max-width:min(320px,calc(100vw - 24px));border:1px solid rgba(226,232,240,.96);border-radius:18px;background:var(--theme-glass, rgba(255, 255, 255, .98));box-shadow:0 18px 34px #0f172a24;padding:4px;display:grid;gap:2px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:8}.attachment-menu button{width:100%;border:0;border-radius:14px;background:transparent;color:var(--theme-text, #334155);text-align:left;font-size:.95rem;font-weight:600;cursor:pointer}.attachment-menu button:hover,.attachment-menu button:focus-visible{background:var(--theme-surface, #eef4ff);color:var(--theme-accent, #1e40af);outline:none}.attachment-menu-option{display:grid;grid-template-columns:36px auto;align-items:center;column-gap:12px;min-height:52px;width:100%;box-sizing:border-box;padding:10px 14px}.attachment-menu-label{display:block;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-menu-icon{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.attachment-menu-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.attachment-menu-icon-photo{background:#3b82f61f;color:var(--theme-accent, #2563eb)}.attachment-menu-icon-video{background:#7c3aed1f;color:var(--theme-accent, #7c3aed)}.attachment-menu-icon-gallery{background:#3b82f61f;color:var(--theme-accent, #2563eb)}.attachment-menu-icon-audio{background:#10b9811f;color:var(--theme-success, #059669)}.attachment-menu-icon-document{margin-left:2rem;background:#f973161f;color:#ea580c}.recording-panel{border:1px solid var(--theme-line, #fbcfe8);border-radius:8px;background:var(--theme-surface, #fff1f2);color:var(--theme-danger, #881337);padding:.3rem .55rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex:1;min-width:0;overflow:hidden}.composer-disabled-note{grid-column:1 / -1;margin:0;font-size:.77rem;color:var(--theme-danger, #b91c1c)}.recording-waveform-whatsapp{height:34px;flex:1;min-width:0;overflow:hidden;display:flex;align-items:center;gap:1.5px;padding:0 2px}.recording-waveform-whatsapp span{width:4px;border-radius:999px;background:#2563eb;display:block;transition:height .06s linear}.recording-panel strong{font-size:.8rem}.voice-note-composer{flex:1;min-width:0;display:flex;align-items:center;gap:.65rem}.voice-note-delete-btn,.voice-note-control-btn,.voice-note-playback-btn{border:0!important;background:transparent!important;color:var(--theme-secondary, #475569)!important;padding:0!important;width:28px!important;height:28px!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto}.voice-note-delete-btn svg,.voice-note-control-btn svg,.voice-note-playback-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.voice-note-track{flex:1;min-width:0;display:flex;align-items:center;gap:.8rem;padding:.65rem 1rem;border-radius:999px;background:var(--theme-glass, rgba(255, 255, 255, .96));border:1px solid rgba(91,75,255,.18);box-shadow:0 10px 26px #5b4bff14;width:clamp(260px,68vw,360px);max-width:100%}.voice-note-meta{display:inline-flex;align-items:center;gap:.65rem;color:var(--theme-text, #111827);flex:0 0 auto}.voice-note-meta strong{font-size:.86rem;font-weight:500;letter-spacing:.01em}.voice-note-live-dot{width:14px;height:14px;border-radius:999px;background:#ef4444;box-shadow:0 0 0 4px #ef44441f}.voice-note-waveform{flex:1;min-width:0;height:32px;display:flex;align-items:center;gap:2px;overflow:hidden;touch-action:none}.voice-note-waveform span{width:4px;flex-shrink:0;border-radius:999px;background:#6366f138;transition:background-color .14s ease,opacity .14s ease}.voice-note-waveform span.is-active{background:#6366f1}.voice-note-composer-preview .voice-note-track{cursor:default}.voice-note-composer-preview .voice-note-playback-btn,.voice-note-control-btn.is-active,.voice-note-playback-btn:hover,.voice-note-control-btn:hover,.voice-note-delete-btn:hover{color:var(--theme-accent, #5b4bff)!important}.voice-note-playback-placeholder{width:30px;height:30px;display:inline-block;flex:0 0 auto}.voice-note-playback-btn{width:30px!important;height:30px!important;border-radius:999px!important;background:#5b4bff1a!important}.voice-note-control-btn{width:36px!important;height:36px!important;border-radius:999px!important;background:#5b4bff14!important}.voice-note-delete-btn{width:32px!important;height:32px!important}.voice-note-playback-btn svg,.voice-note-control-btn svg{stroke:currentColor}.voice-note-send-btn{width:54px!important;height:54px!important;border-radius:999px!important;background:var(--brand-gradient)!important;color:#fff!important;display:inline-flex!important;align-items:center;justify-content:center;box-shadow:0 14px 28px #5b4bff3d}.voice-note-send-btn:hover{background:var(--brand-gradient)!important;color:#fff!important;box-shadow:0 14px 28px #5b4bff3d!important;filter:brightness(1.03)}.voice-note-send-btn-paused:hover{background:var(--brand-gradient)!important;color:#fff!important;box-shadow:0 14px 28px #5b4bff3d!important;filter:none}.voice-note-send-btn svg{width:24px;height:24px;stroke:currentColor;fill:currentColor}.media-viewer-modal{width:min(90vw,860px);max-height:84dvh;border:1px solid var(--line);border-radius:14px;background:var(--theme-panel, #fff);padding:.75rem;display:grid;gap:.6rem;justify-items:center;position:relative}.media-viewer-modal img,.media-viewer-modal video{width:100%;max-height:70dvh;object-fit:contain;border-radius:10px;border:1px solid var(--theme-line, #dbe4ef);background:#0f172a}.gallery-viewer-modal{width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border-radius:0;background:#0b1220;border-color:#94a3b83d;padding:0;gap:0;overflow:hidden;display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;left:0}.gallery-viewer-stage{width:100%;min-height:0;flex:1;padding:.5rem 3.5rem 3.5rem;box-sizing:border-box;display:grid;place-items:center;position:relative;overflow:hidden}.gallery-viewer-stage img,.gallery-viewer-stage video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;min-width:0;min-height:0;border-color:#94a3b838;background:#020617}.gallery-viewer-stage .preview-caret-btn{z-index:20;pointer-events:auto}.gallery-thumbnail-strip{width:100%;max-width:100%;padding:.2rem 0 .1rem}.gallery-thumbnail-column{display:flex;flex-direction:row;align-items:center;overflow-x:auto;overflow-y:hidden;gap:.45rem}.gallery-thumb-btn{background:#0f172aeb;border-color:#94a3b838}.gallery-thumb-btn.is-active{border-color:#38bdf8;box-shadow:0 0 0 2px #38bdf838}.gallery-thumb-btn img,.gallery-thumb-btn video{width:100%;height:100%;object-fit:cover;border-radius:10px;border:0}.attachment-preview-modal h4{margin:0;font-size:1rem}.whatsapp-preview-modal{background:var(--theme-surface, #f8fbff);color:var(--theme-text, #111827);width:min(84vw,760px);max-height:calc(100dvh - 2rem);overflow-y:auto;justify-items:center}.whatsapp-preview-top{width:100%;display:flex;justify-content:space-between;align-items:center}.attachment-limit-text{color:var(--theme-secondary, #64748b);font-size:.78rem;font-weight:600}.modal-close-icon-inline{border:1px solid var(--theme-line, #d1dae7);border-radius:999px;width:34px;height:34px;background:var(--theme-panel, #ffffff);color:var(--theme-text, #334155);font-size:1.2rem;line-height:1}.attachment-preview-modal audio{width:min(640px,80vw)}.attachment-preview-primary{width:min(92%,640px);min-height:280px;border:1px solid var(--theme-line, #dbe4ef);border-radius:14px;background:var(--theme-panel, #ffffff);padding:.4rem;display:grid;place-items:center;position:relative;overflow:hidden}.attachment-preview-primary.is-document{min-height:0;padding:1rem}.attachment-pdf-preview-frame{position:relative;width:auto;max-width:min(100%,480px);max-height:340px;border-radius:10px;overflow:hidden;border:1px solid var(--theme-line, #dbe4ef);background:var(--theme-panel, #ffffff);display:inline-grid;place-items:center}.attachment-pdf-preview-frame img{width:auto;height:auto;max-width:100%;max-height:340px;object-fit:contain;display:block;border-radius:0;border:none;background:var(--theme-panel, #ffffff)}.attachment-pdf-preview-badge{position:absolute;top:.6rem;left:.6rem;padding:.24rem .6rem;border-radius:999px;background:#0f172a9e;color:#fff;font-size:.68rem;font-weight:700;letter-spacing:.05em}.attachment-preview-primary img,.attachment-preview-primary video{width:100%;max-height:340px;object-fit:contain;border-radius:10px;border:1px solid var(--theme-line, #dbe4ef);background:#0f172a}.attachment-thumbnail-strip{width:100%;display:flex;gap:.4rem;overflow-x:auto;overflow-y:hidden;padding-bottom:.15rem;scrollbar-width:none}.attachment-thumbnail-strip::-webkit-scrollbar{width:0;height:0}.attachment-thumbnail-row{width:min(92%,640px);display:grid;grid-template-columns:1fr auto;gap:.45rem;align-items:center}.attachment-thumb-btn{position:relative;width:64px;height:64px;border:1px solid var(--theme-line, #dbe4ef);border-radius:10px;background:var(--theme-panel, #fff);padding:0;flex:0 0 64px;display:grid;place-items:center;color:var(--theme-secondary, #475569);font-size:.72rem;font-weight:600}.attachment-thumb-remove{position:absolute;right:3px;top:3px;width:16px;height:16px;border-radius:999px;background:#0f172ac7;color:#fff;font-size:.72rem;display:inline-flex;align-items:center;justify-content:center;line-height:1;z-index:2}.attachment-thumb-btn img{width:100%;height:100%;object-fit:cover;border-radius:9px}.attachment-thumb-caption{position:absolute;left:4px;right:4px;bottom:4px;padding:3px 6px;background:linear-gradient(180deg,#0000,#0000009e);color:#fff;font-size:.65rem;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom-left-radius:7px;border-bottom-right-radius:7px;z-index:1;text-align:left}.attachment-thumb-btn.is-dragging{opacity:.45}.attachment-thumb-btn.is-drop-target{outline:2px dashed var(--brand);outline-offset:2px}.attachment-thumb-btn.is-active{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f638}.add-more-thumb-btn{font-size:1.4rem;line-height:1}.fixed-add-more-btn{position:sticky;right:0}.fixed-add-more-btn:disabled{opacity:.45;cursor:not-allowed}.attachment-limit-error{width:min(92%,640px);margin:0;color:var(--theme-danger, #dc2626);font-size:.78rem}.preview-caret-btn{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:76px;padding:0;border-radius:999px;border:1px solid rgba(226,232,240,.24);background:#0f172ab8;color:#f8fafc;font-size:2.6rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;z-index:2}.preview-caret-left{left:.75rem}.preview-caret-right{right:.75rem}.attachment-preview-item p{margin:0;color:var(--theme-secondary, #64748b);font-size:.82rem}.attachment-preview-item img,.attachment-preview-item video{width:100%;height:120px;object-fit:contain;border-radius:8px;border:1px solid var(--theme-line, #dbe4ef);background:#0f172a}.attachment-enlarge-btn{position:absolute;right:8px;top:8px;width:24px;height:24px;border-radius:999px;border:1px solid var(--theme-line, #dbe4ef);background:var(--theme-glass, rgba(255, 255, 255, .92));color:var(--theme-text, #334155);display:grid;place-items:center;line-height:1;padding:0}.attachment-preview-modal footer{width:100%;display:flex;justify-content:flex-end;gap:.5rem}.whatsapp-preview-footer{position:relative;width:min(92%,640px);display:grid;grid-template-columns:1fr auto;gap:.22rem}.whatsapp-preview-footer textarea{resize:vertical;font:inherit;border:1px solid var(--theme-line, #dbe4ef);border-radius:999px;background:var(--theme-panel, #ffffff);color:var(--theme-text, #111827);padding:.55rem .75rem;width:min(68vw,564px);justify-self:start}.preview-send-icon-btn{width:46px;height:46px;border-radius:999px;padding:0;display:inline-flex;align-items:center;justify-content:center}.preview-send-icon-btn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.modal-close-icon{position:absolute;right:.6rem;top:.45rem;border:1px solid var(--line);width:30px;height:30px;border-radius:8px;background:var(--theme-panel, #fff);color:var(--theme-text, #334155);font-size:1.1rem;line-height:1}.search-input-row{display:flex;gap:.45rem}.search-input-row input{flex:1}.search-clear-btn{border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);color:var(--theme-text, #334155);width:38px;height:38px;font-size:1.1rem;line-height:1}.quick-media-preview{width:100%;max-width:280px;border-radius:8px;border:1px solid var(--theme-line, #e2e8f0);object-fit:cover;max-height:160px;display:block;background:#0f172a}.quick-media-preview-loading{min-height:96px;display:grid;place-items:center;color:#cbd5e1;font-size:.72rem;font-weight:600}.quick-media-video{position:relative;width:fit-content}.quick-media-fallback{width:100%;max-width:280px;height:160px;border-radius:8px;border:1px solid var(--theme-line, #e2e8f0);background:#0f172a;color:#e2e8f0;display:grid;place-items:center;font-size:.9rem;font-weight:600}.quick-media-fallback-video{background:linear-gradient(140deg,#0f172a,#1e293b);text-transform:uppercase;letter-spacing:.08em}.quick-media-video span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#0f172ab3;color:#fff;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.75rem}.blocked-thread-card{margin:1.2rem auto;max-width:360px;border:1px dashed var(--theme-line, #cbd5f5);border-radius:16px;padding:1.1rem 1.2rem;text-align:center;background:var(--theme-glass, rgba(255, 255, 255, .82));color:var(--theme-text, #1f2937);box-shadow:0 10px 30px #0f172a14}.blocked-thread-card strong{display:block;font-size:1rem;margin-bottom:.3rem}.blocked-thread-card p{margin:0;font-size:.85rem;color:var(--theme-secondary, #64748b)}.blocked-thread-cta{margin-top:.85rem;border:1px solid #7c3aed;border-radius:999px;padding:.55rem 1rem;font-size:.88rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#7c3aed,#4f46e5);box-shadow:0 10px 24px #4f46e538;cursor:pointer}.blocked-thread-cta:hover{filter:brightness(1.04)}.block-config-card .btn{width:auto;min-width:96px;padding:.45rem .85rem;font-size:.86rem}.attachment-file-preview{width:min(440px,80vw);border:1px solid var(--theme-line, #dbe4ef);border-radius:10px;background:var(--theme-surface, #f8fbff);padding:.85rem 1rem;display:flex;align-items:center;gap:.8rem}.attachment-file-preview-icon{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--theme-surface, #eef4ff);color:var(--theme-accent, #2f6fed)}.attachment-file-preview-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.attachment-file-preview-meta{min-width:0;display:grid;gap:.1rem}.attachment-file-preview-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;color:var(--theme-text, #111827)}.attachment-file-preview-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-secondary, #64748b);font-size:.78rem}.attachment-file-preview p{margin:0;color:var(--theme-secondary, #64748b)}.forward-popup{max-width:470px}.forward-search-input{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);color:var(--theme-text, #1f2937);padding:.55rem .68rem;margin-top:.25rem}.forward-chat-list{margin-top:.45rem;max-height:260px;overflow:auto;border:1px solid var(--theme-line, #e2e8f0);border-radius:10px;background:var(--theme-surface, #f8fbff);padding:.35rem;display:grid;gap:.22rem}.forward-chat-list label{display:flex;align-items:center;gap:.45rem;border-radius:8px;padding:.36rem .42rem}.forward-chat-list label:hover{background:var(--theme-surface, #eaf3ff)}.forward-chat-list input[type=radio],.forward-chat-list input[type=checkbox]{accent-color:#2563eb}.forward-empty{margin:0;color:var(--theme-secondary, #64748b);padding:.5rem;font-size:.88rem}.group-edit-card label{font-weight:600;color:var(--theme-text, #334155);font-size:.8rem}.group-edit-photo-trigger{width:fit-content;border:0;background:transparent;padding:0;position:relative}.group-edit-photo-wrap{display:flex;justify-content:center}.group-edit-card .group-edit-photo-trigger{border:0;background:transparent;padding:0}.group-edit-photo-avatar{width:64px;height:64px;border:1px solid var(--theme-line, #cfd8e6);background:linear-gradient(145deg,var(--theme-surface, #d4e5ff),#8cb7ff);color:var(--theme-accent, #174891)}.group-edit-photo-pencil{position:absolute;right:-2px;bottom:-2px;width:24px;height:24px;border-radius:999px;border:1px solid var(--theme-line, #c6d3e6);background:var(--theme-panel, #ffffff);color:var(--theme-text, #1e293b);display:grid;place-items:center;font-size:.8rem;line-height:1}.group-edit-member-search{width:100%}.group-edit-card{display:grid;gap:.48rem}.group-readd-cooldown{display:grid;gap:.4rem;padding:.75rem;border:1px solid var(--glass-border);border-radius:10px;background:var(--glass);font-size:.88rem;line-height:1.5;overflow-wrap:anywhere}.group-edit-card input,.group-edit-card textarea{border:1px solid var(--line);border-radius:10px;background:var(--theme-panel, #fff);padding:.5rem .6rem;font-size:.88rem}.group-edit-card input[type=file],.group-edit-card .hidden-file-input{display:none!important}.group-edit-card textarea{min-height:64px;resize:vertical}.group-edit-card .btn{min-width:0}.message-attachment-club{display:grid;grid-template-columns:minmax(112px,128px) minmax(0,1fr);gap:.65rem;align-items:start}.message-attachment-club.is-media-only{grid-template-columns:minmax(0,1fr)}.attachment-club-tile{width:min(240px,55vw);height:auto;aspect-ratio:1 / 1;max-width:none;position:relative;overflow:hidden;padding:0;display:block}.attachment-club-tile img,.attachment-club-tile video{width:100%;height:100%;object-fit:cover}.attachment-club-fallback{min-height:128px;font-size:.72rem}.attachment-club-count-badge{position:absolute;left:.5rem;bottom:.5rem;padding:.18rem .46rem;border-radius:999px;background:#0f172ad1;color:#fff;font-size:.68rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.attachment-cluster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:0;width:100%;height:100%;background:#0f172a}.attachment-cluster-tile{display:block;background:#0f172a}.attachment-cluster-grid[data-count="2"]{grid-template-rows:minmax(0,1fr)}.attachment-cluster-grid[data-count="3"]>.attachment-cluster-cell:last-child{grid-column:1 / -1}.attachment-cluster-cell{position:relative;min-width:0;min-height:0;overflow:hidden;background:#0f172a}.attachment-cluster-cell img,.attachment-cluster-cell video,.attachment-cluster-cell .media-thumb-fallback{width:100%;height:100%;object-fit:cover}.attachment-cluster-cell .attachment-club-fallback{min-height:0;display:grid;place-items:center;padding:.5rem}.attachment-cluster-cell img,.attachment-cluster-cell video,.media-thumb img,.media-thumb video,.chat-thread img,.chat-thread video{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;touch-action:manipulation}.attachment-cluster-more-badge{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0f172a8a;color:#fff;font-size:1.1rem;font-weight:800}.attachment-club-file-list{display:grid;gap:.35rem}.attachment-club-file-row{display:flex;align-items:center;gap:.55rem;width:100%;min-width:0;padding:.5rem .65rem;border-radius:12px;border:1px solid var(--theme-line, #dbe4ef);background:var(--theme-surface, #f8fbff);text-align:left}.attachment-club-file-kind{flex:0 0 auto;min-width:2.3rem;text-align:center;padding:.18rem .3rem;border-radius:8px;background:var(--theme-surface, #e9eef8);font-size:.62rem;font-weight:700;color:var(--theme-accent, #3b5a99);text-transform:uppercase;letter-spacing:.03em}.attachment-club-file-body{display:grid;gap:.1rem;min-width:0}.attachment-club-file{font-size:.76rem;color:var(--theme-secondary, #475569);word-break:break-word;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-club-file-size{font-size:.68rem;color:var(--theme-secondary, #94a3b8)}.attachment-club-audio{display:grid;gap:.3rem;width:100%;padding:.35rem}.attachment-club-audio audio{width:100%}@media (max-width: 768px){.message-attachment-club{grid-template-columns:1fr}.attachment-club-tile{width:min(100%,164px);height:164px}.gallery-thumbnail-column{max-height:none;flex-direction:row;overflow-x:auto;overflow-y:hidden}}.toaster{position:fixed;bottom:1.25rem;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:.5rem;z-index:10000;pointer-events:none;align-items:center}.toast{display:flex;align-items:flex-start;gap:.75rem;box-sizing:border-box;width:min(var(--toast-width, 320px),calc(100vw - 2rem));padding:.65rem 1rem .65rem 1.1rem;border-radius:10px;font-size:.875rem;font-weight:500;box-shadow:0 4px 16px #0000002e;pointer-events:all;animation:toast-in .2s ease}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.toast-info{background:#1e293b;color:#f1f5f9}.toast-success{background:#166534;color:#dcfce7}.toast-warning{background:#78350f;color:#fef3c7}.toast-error{background:#7f1d1d;color:#fee2e2}.toast-message{flex:1;min-width:0;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.toast-close{background:none;border:none;color:inherit;opacity:.7;font-size:1.1rem;line-height:1;cursor:pointer;padding:.05rem 0;flex-shrink:0}.toast-close:hover{opacity:1}.key-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9999}.key-modal{background:var(--theme-panel, #ffffff);border-radius:18px;padding:2rem 2.25rem;width:min(420px,90vw);box-shadow:0 24px 64px #00000038;display:flex;flex-direction:column;gap:.85rem}.key-modal-icon{font-size:2.4rem;text-align:center}.key-modal-title{font-size:1.25rem;font-weight:700;color:var(--text);text-align:center;margin:0}.key-modal-desc{font-size:.875rem;color:var(--muted);text-align:center;line-height:1.5;margin:0}.key-modal-input{width:100%;padding:.65rem 1rem;border:1.5px solid var(--line);border-radius:10px;font-size:.95rem;outline:none;box-sizing:border-box;transition:border-color .15s}.key-modal-input:focus{border-color:var(--brand)}.key-modal-error{font-size:.82rem;color:#ef4444;text-align:center;margin:0}.key-modal-btn{width:100%;padding:.72rem;background:var(--brand);color:#fff;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:opacity .15s}.key-modal-btn:disabled{opacity:.55;cursor:not-allowed}.reply-bar{display:flex;align-items:center;gap:.5rem;padding:.45rem .75rem;background:linear-gradient(180deg,var(--theme-surface, #eef2ff) 0%,var(--theme-surface, #e5edff) 100%);border-left:3px solid var(--brand);border-radius:10px;box-shadow:inset 0 0 0 1px #6366f11f;margin:.25rem .5rem 0}.reply-bar-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1rem}.reply-bar-sender{font-size:.72rem;font-weight:600;color:var(--theme-accent, #4338ca)}.reply-bar-text{font-size:.78rem;color:var(--theme-text, #1e293b);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reply-bar-cancel{background:none;border:none;color:var(--muted);font-size:1.1rem;cursor:pointer;padding:0 .2rem;line-height:1;flex-shrink:0}.message-reply-quote{display:flex;flex-direction:column;gap:.1rem;width:100%;border:none;text-align:left;padding:.35rem .55rem;margin-bottom:.3rem;background:#0f172a1a;border-left:3px solid var(--brand);border-radius:8px;cursor:pointer}.message-reply-quote:hover{background:#0f172a24}.reply-quote-sender{font-size:.7rem;font-weight:600;color:var(--theme-accent, #3730a3)}.reply-quote-text{font-size:.78rem;color:var(--theme-text, #0f172a);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:240px}.message-bubble.is-me .message-reply-quote{background:#ffffff38;box-shadow:inset 0 0 0 1px #ffffff24}.message-bubble.is-me .reply-quote-sender,.message-bubble.is-me .reply-quote-text{color:#f8fafc}.media-viewer-toolbar{position:relative;flex-shrink:0;padding:.9rem 1rem;z-index:10}.media-viewer-toolbar-main{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.media-viewer-toolbar-meta{display:flex;min-width:0;flex-direction:column;gap:.15rem;padding:.6rem .8rem;border-radius:14px;background:#0f172ac7;box-shadow:0 20px 40px #02061747;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.media-viewer-toolbar-kind{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#e2e8f0b8}.media-viewer-toolbar-name{max-width:min(48vw,420px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:600;color:#f8fafc}.media-viewer-toolbar-actions{display:flex;align-items:center;gap:.45rem}.media-viewer-action-btn{display:flex;align-items:center;justify-content:center;min-width:2.4rem;height:2.4rem;padding:0 .7rem;border:1px solid rgba(148,163,184,.24);background:#0f172ad1;color:#f8fafc;border-radius:999px;font-size:1rem;line-height:1;text-decoration:none;cursor:pointer;box-shadow:0 18px 32px #02061747;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.media-viewer-action-btn:hover,.media-viewer-action-btn.is-active{background:#1e293bf5;border-color:#bfdbfe47}.media-viewer-menu-wrap{position:relative}.media-viewer-action-menu{position:absolute;top:calc(100% + .55rem);right:0;min-width:210px;padding:.45rem;border-radius:16px;border:1px solid rgba(148,163,184,.18);background:#0f172af5;box-shadow:0 28px 60px #02061773;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.media-viewer-action-menu.media-viewer-context-menu{position:fixed;z-index:20;right:auto;margin:0}.media-viewer-action-menu button{width:100%;border:0;background:transparent;color:#e2e8f0;text-align:left;padding:.72rem .8rem;border-radius:12px;font-size:.95rem}.media-viewer-action-menu button:hover{background:#1e293be0}.media-viewer-close-btn{position:static;width:2.5rem;height:2.5rem;border-radius:999px;background:var(--theme-surface, #f8fafc)}.media-thumb.is-video{position:relative;overflow:hidden;width:100%;aspect-ratio:4 / 3;box-sizing:border-box;background:#0f172a}.video-frame-preview,.media-thumb.is-video .video-thumb-preview{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}.video-preview-status{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:end center;padding:1rem 1rem 2.5rem;background:#0f172a;color:#cbd5e1;font-size:.8rem}.video-thumb-preview{width:100%;height:100%;object-fit:cover;pointer-events:none}.message-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:8px}.group-message-bubble{background:var(--theme-panel, #ffffff);border-radius:8px 8px 8px 0;padding:6px 10px;max-width:75%}.group-sender-info{display:flex;flex-direction:column;margin-bottom:4px}.group-sender-name{font-size:13px;font-weight:600;color:#25d366;line-height:1.2}.group-sender-phone{font-size:11px;color:var(--theme-secondary, #8696a0);line-height:1.2;margin-top:1px}.message-sender-inline{display:flex;align-items:center;gap:8px;margin-bottom:4px}.message-sender-avatar{width:24px;height:24px;min-width:24px;border-radius:50%;overflow:hidden}.message-sender-avatar-button{border:none;padding:0;background:transparent;cursor:pointer}.message-sender-avatar img{width:100%;height:100%;object-fit:cover}.message-sender-avatar-fallback{width:100%;height:100%;background:#8696a0;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;overflow:hidden}.message-sender-avatar-fallback img{width:100%;height:100%;object-fit:fill;display:block}.sender-name{font-size:12px;font-weight:600;color:#25d366}.member-profile-popup{width:min(360px,calc(100vw - 2rem))}.member-profile-body{display:grid;gap:1rem}.member-profile-hero{display:flex;align-items:center;gap:.9rem}.member-profile-copy{display:grid;gap:.2rem}.member-profile-copy strong{color:var(--theme-text, #0f172a)}.member-profile-copy span{color:var(--theme-secondary, #475569)}.member-profile-copy small{color:var(--theme-accent, #4338ca);font-weight:700}.chat-sidebar-title-button{border:none;background:transparent;padding:0;cursor:pointer;text-align:left}.message-reaction-chip-wrap{position:relative}.message-reaction-details-popover{position:fixed;z-index:10020;width:min(320px,calc(100vw - 20px));border:1px solid var(--theme-line, #e2e8f0);border-radius:16px;background:var(--theme-glass, rgba(255, 255, 255, .99));box-shadow:0 18px 46px #0f172a2e,0 2px 8px #0f172a14;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:var(--theme-text, #0f172a);overflow:hidden;overscroll-behavior:contain}.message-reaction-details-header{display:flex;align-items:center;justify-content:space-between;gap:.45rem;min-height:62px;padding:.55rem .65rem;border-bottom:1px solid var(--theme-line, #e8edf3)}.message-reaction-details-tabs{min-width:0;display:flex;align-items:center;gap:.25rem;overflow-x:auto;scrollbar-width:none}.message-reaction-details-tabs::-webkit-scrollbar{display:none}.message-reaction-details-tabs button{border:0;border-radius:12px;background:transparent;color:var(--theme-secondary, #475569);min-width:50px;height:42px;padding:0 .65rem;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;font-size:.9rem;font-weight:700;cursor:pointer;flex:0 0 auto}.message-reaction-details-tabs button.is-active,.message-reaction-details-tabs button:hover,.message-reaction-details-tabs button:focus-visible{background:var(--theme-surface, #eef2f7);color:var(--theme-text, #0f172a);outline:none}.message-reaction-details-count{color:var(--theme-secondary, #64748b);font-size:.78rem;font-weight:700;flex:0 0 auto}.message-reaction-details-users{display:grid;padding:.35rem .65rem .55rem;max-height:min(280px,46vh);overflow-y:auto}.message-reaction-details-user{display:flex;align-items:center;gap:12px;min-height:58px;padding:.55rem .25rem;border-bottom:1px solid var(--theme-line, #edf1f5)}.message-reaction-details-user:last-child{border-bottom:0}.message-reaction-details-user-content{display:flex;flex-direction:column;flex:1}.message-reaction-details-avatar{width:38px;height:38px;border-radius:999px;background:var(--theme-surface, #eef2ff);border:1px solid var(--theme-line, #dbe3ff);display:grid;place-items:center;color:var(--theme-accent, #4f46e5);font-weight:800;font-size:.82rem;flex:0 0 38px;overflow:hidden}.message-reaction-details-avatar img{width:100%;height:100%;object-fit:cover}.message-reaction-details-user-name{font-size:14px;font-weight:600;color:var(--theme-text, #111827)}.message-reaction-details-you{color:#00a884;font-weight:800;font-size:.74rem;margin-left:.2rem}.message-reaction-details-empty{color:var(--theme-secondary, #64748b);font-size:.82rem;font-weight:600;padding:1rem .5rem}.message-reaction-details-footer{display:flex;justify-content:flex-end;padding-top:.35rem}.message-reaction-details-remove-btn{border:1px solid rgba(99,102,241,.25);background:#6366f10f;color:var(--theme-accent, #4f46e5)!important;padding:.32rem .55rem;border-radius:999px;font-size:.78rem;font-weight:800}.message-reaction-details-remove-btn:hover,.message-reaction-details-remove-btn:focus-visible{background:#6366f11f;outline:none}.call-window{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;flex-direction:column;background:#111b21;color:#fff}.call-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#202c33;border-bottom:1px solid #2a3942}.call-user-info{display:flex;align-items:center;gap:14px}.call-avatar{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;background:#00a884;color:#fff}.call-header h2{margin:0;font-size:18px;font-weight:600}.call-status{margin-top:4px;color:var(--theme-secondary, #8696a0);font-size:13px}.call-stage{position:relative;flex:1;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#0b141a}.remote-video-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.remote-video-container video{width:100%;height:100%;object-fit:cover;background:#000}.remote-video-container audio{display:none}.waiting-message{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:18px 28px;border-radius:16px;background:#202c33eb;color:#fff;font-size:18px;font-weight:500;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.local-preview{position:absolute;right:24px;bottom:110px;width:240px;height:170px;object-fit:cover;border-radius:16px;background:#000;border:3px solid rgba(255,255,255,.12);box-shadow:0 10px 35px #00000073;z-index:20}.call-participants{max-height:180px;overflow-y:auto;background:#202c33;border-top:1px solid #2a3942;border-bottom:1px solid #2a3942;padding:12px 18px}.call-participant-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06)}.call-participant-row:last-child{border-bottom:none}.participant-left{display:flex;align-items:center;gap:12px}.participant-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#00a884;color:#fff;font-weight:700;font-size:15px}.participant-name{font-size:15px;font-weight:600}.participant-status{margin-top:3px;font-size:12px;color:#9aa8b3}.participant-icons{display:flex;align-items:center;gap:10px}.participant-chip{padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600}.participant-chip.hold{background:#ffb02022;color:#ffb020}.participant-chip.share{background:#00a88422;color:#00d4a3}.call-controls{height:90px;display:flex;justify-content:center;align-items:center;gap:18px;background:#202c33;border-top:1px solid #2a3942}.call-control-btn{width:60px;height:60px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#2a3942;color:#fff;cursor:pointer;transition:background .25s,transform .25s,box-shadow .25s}.call-control-btn:hover{background:#374248;transform:translateY(-2px);box-shadow:0 8px 20px #00000059}.call-control-btn:active{transform:scale(.95)}.call-control-btn svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.call-control-btn.active{background:#00a884}.call-control-btn.disabled{background:#54656f}.call-control-btn.end-call{background:#ea4335}.call-control-btn.end-call:hover{background:#d93025}.call-control-btn:after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:transparent}.call-control-btn.active:after{background:#34d399}.call-window.fullscreen{top:0;right:0;bottom:0;left:0}.call-window.minimized{width:420px;height:280px;right:20px;bottom:20px;left:auto;top:auto;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px #00000073}.call-window.minimized .call-participants{display:none}.call-window.minimized .local-preview{width:110px;height:80px;bottom:90px;right:12px}.call-window.minimized .call-controls{height:72px}.call-window.minimized .call-control-btn{width:46px;height:46px}.call-window.minimized .call-control-btn svg{width:20px;height:20px}.call-participants::-webkit-scrollbar{width:6px}.call-participants::-webkit-scrollbar-track{background:transparent}.call-participants::-webkit-scrollbar-thumb{background:#3a4a52;border-radius:20px}.call-participants::-webkit-scrollbar-thumb:hover{background:#54656f}.call-remote-video,.remote-video-container video{background:#000;object-fit:cover}@media (max-width:900px){.local-preview{width:170px;height:120px}.call-controls{gap:12px}.call-control-btn{width:54px;height:54px}}@media (max-width:600px){.call-header{padding:0 14px}.call-avatar{width:42px;height:42px;font-size:16px}.call-header h2{font-size:16px}.call-status{font-size:12px}.local-preview{width:120px;height:90px;right:10px;bottom:95px}.call-controls{height:82px;gap:8px}.call-control-btn{width:48px;height:48px}.call-control-btn svg{width:20px;height:20px}}.chat-list-avatar-button{border:0;padding:0;margin:0;cursor:pointer;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;overflow:hidden;outline:none;box-shadow:none}.chat-list-avatar-button:focus:not(:focus-visible){outline:none;box-shadow:none}.chat-list-avatar-button:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}.chat-list-avatar-button img{width:100%;height:100%;object-fit:cover;display:block}.chat-list-avatar-button>span{width:100%;height:100%;display:grid;place-items:center;color:inherit}.chat-list-avatar-button>span,.avatar>span{font-size:.88rem;font-weight:700;line-height:1;text-transform:none;background:transparent}.profile-full-image{width:100%;max-width:360px;aspect-ratio:1/1;background:linear-gradient(140deg,#3b82f6,#1d4ed8);color:#fff;display:grid;place-items:center;overflow:hidden;border-radius:4px}.profile-full-image .profile-full-img{width:100%;height:100%;object-fit:cover;display:block}.profile-full-fallback{width:300px;height:100%;display:grid;place-items:center;font-size:clamp(3rem,12vw,6rem);font-weight:700;line-height:1;text-transform:none;letter-spacing:-.02em}.member-profile-popup .member-profile-hero{display:flex;flex-direction:column;align-items:center;gap:1rem}.member-profile-popup{max-width:92vw;box-sizing:border-box}.member-profile-popup .settings-popup-body{display:flex;flex-direction:column;align-items:center}.chat-draft-label{color:var(--theme-success, #168b59);font-weight:600}.media-image-viewport{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;cursor:zoom-in}.media-image-viewport.is-zoomed{cursor:grab}.media-image-viewport.is-zoomed:active{cursor:grabbing}.media-image-transform{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:center}.media-image-transform img{border:0;border-radius:0;background:transparent}.media-zoom-controls{position:absolute;bottom:.5rem;left:50%;transform:translate(-50%);display:flex;gap:.4rem}.media-viewer-action-btn:disabled{opacity:.4;cursor:default}.gallery-viewer-modal>.media-viewer-caption{flex-shrink:0;max-height:18dvh;overflow-y:auto;margin:0 auto;padding:.5rem 1rem}.gallery-viewer-modal>.gallery-thumbnail-strip{flex-shrink:0}.media-fullscreen-error{position:absolute;top:100%;right:1rem;color:#fff;background:#0f172a;padding:.5rem}.captioned-attachment-list{display:grid;gap:.8rem}.captioned-attachment{margin:0;min-width:0}.captioned-attachment-thumb{display:block;width:100%}.captioned-attachment-thumb .attachment-cluster-cell{display:block;width:100%;height:220px}.attachment-file-caption{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400}@media (max-width: 600px){.media-viewer-toolbar-main{flex-wrap:wrap;gap:.5rem}.media-viewer-toolbar-name{max-width:calc(100vw - 5rem)}.media-viewer-toolbar-actions{flex-wrap:wrap;gap:.3rem}.gallery-viewer-stage{padding-left:.5rem;padding-right:.5rem}}.chat-list-item-menu-trigger{opacity:1;pointer-events:auto}.chat-list-item .name-row{padding-right:34px}.emoji-picker-panel .composer-emoji-search{width:100%;min-width:0;border:1px solid var(--theme-line, #cbd5e1);border-radius:8px;padding:8px 10px}.emoji-picker-panel .composer-emoji-search:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1f}.attachment-reorder-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px}.attachment-reorder-controls button{padding:6px 10px;border-radius:8px;border:1px solid var(--theme-line, #cbd5e1);background:var(--theme-panel, #fff);color:var(--theme-text, #334155)}.attachment-reorder-controls button:disabled{opacity:.4;cursor:default}.attachment-copy-image-btn{padding:6px 10px;border-radius:8px;border:1px solid var(--theme-line, #cbd5e1);background:var(--theme-panel, #fff);color:var(--theme-text, #334155)}.attachment-reorder-hint{margin:6px 0 0;text-align:center;color:var(--theme-secondary, #64748b);font-size:.75rem}.attachment-thumb-position{position:absolute;left:3px;top:3px;z-index:2;min-width:18px;padding:2px 4px;border-radius:5px;background:#0f172ac7;color:#fff;pointer-events:none}button.profile-photo-trigger{padding:0;border:0;font:inherit;color:inherit;cursor:zoom-in}.profile-photo-trigger:focus-visible{outline:3px solid #6366f1;outline-offset:3px}.profile-photo-dialog{width:min(960px,96vw);height:min(900px,92dvh);max-width:96vw;max-height:92dvh;padding:1rem;border:0;border-radius:1rem;background:#020617;color:#fff}.profile-photo-dialog[open]{display:flex;flex-direction:column}.profile-photo-dialog::backdrop{background:#000c}.profile-photo-close{align-self:flex-end;flex-shrink:0}.thread-overflow-menu{position:fixed;z-index:1200;width:min(270px,calc(100vw - 16px));overflow-y:auto;overscroll-behavior:contain;padding:6px 0;border:1px solid var(--glass-border);border-radius:10px;background:var(--surface, var(--theme-panel, #fff));box-shadow:0 8px 30px #0003}.thread-overflow-menu button{display:flex;flex-direction:column;width:100%;padding:9px 18px;border:0;background:transparent;color:var(--text, var(--theme-text, #1f2937));text-align:left;font:inherit;font-size:14px;cursor:pointer}.thread-overflow-menu button:hover,.thread-overflow-menu button:focus-visible{background:var(--theme-surface, #f0f2f5);outline:2px solid #2563eb;outline-offset:-2px}.thread-overflow-menu button.is-danger{color:var(--theme-danger, #c62828)}.thread-overflow-menu button[aria-disabled=true]{color:var(--theme-secondary, #727782);cursor:default}.thread-overflow-menu button.has-separator{border-top:1px solid var(--theme-line, #e5e7eb);margin-top:5px;padding-top:12px}.chat-list,.message-list{min-height:0}.chat-empty-state,.thread-profile,.thread-profile-trigger{min-width:0}.thread-profile{flex:1}.thread-profile strong,.thread-profile p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-profile .avatar,.thread-tools,.mobile-back{flex-shrink:0}.mobile-back{display:none}.chat-details-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.chat-details-heading button{flex-shrink:0;width:36px;height:36px;border:0;background:transparent;font-size:1.5rem}.left-rail{overflow-y:auto}@media (max-width: 840px){.chat-screen{flex-direction:column}.chat-nav-rail{display:flex;flex-direction:row;width:100%;border-radius:0;padding:.25rem;gap:.15rem;overflow-x:auto}.chat-nav-rail-logo,.chat-nav-rail-divider{display:none}.chat-nav-rail-slot{flex:1;min-width:0}.chat-nav-rail-link{gap:.15rem}.chat-workspace.mobile-thread .mobile-back{display:inline-flex}.chat-screen:has(.mobile-thread) .settings-fab{display:none}.chat-workspace:not(.mobile-thread) .chat-list{padding-bottom:4rem}.status-route-layout{display:flex;flex-direction:column;height:100%;min-height:0;overflow-y:auto}.status-route-sidebar,.status-route-main{flex-shrink:0;overflow:visible}}@media (max-width: 480px){.thread-header{padding:.5rem;gap:.25rem;flex-wrap:wrap}.thread-profile{gap:.35rem;flex-basis:calc(100% - 44px)}.thread-tools{margin-left:auto}.composer{padding:.5rem;gap:.25rem}}
