:root{--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--accent: #3390ec;--accent-hover: #2b83da;--accent-soft: rgba(51, 144, 236, .12);--bg: #ffffff;--panel: #ffffff;--bg-secondary: #f4f4f5;--bg-tertiary: #e9edf0;--chat-bg: #e3e9ee;--text: #0f1418;--text-secondary: #707579;--text-tertiary: #a2acb4;--border: #e6e9ec;--hover: #f1f3f5;--active-chat: #3390ec;--active-chat-text: #ffffff;--in-bg: #ffffff;--out-bg: #eeffde;--out-text: #0f1418;--meta: #8b969e;--meta-out: #6a9b58;--danger: #e5484d;--green: #4fae4e;--shadow-sm: 0 1px 2px rgba(16, 35, 47, .12);--shadow-md: 0 6px 24px rgba(16, 35, 47, .14);--shadow-lg: 0 18px 60px rgba(16, 35, 47, .28);--radius: 12px;--msg-font-size: 15px;--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-top: env(safe-area-inset-top, 0px);--scrollbar: #c7ced3}[data-theme=dark]{--accent: #5aa7e8;--accent-hover: #6cb5f0;--accent-soft: rgba(90, 167, 232, .16);--bg: #17212b;--panel: #17212b;--bg-secondary: #232e3c;--bg-tertiary: #1d2834;--chat-bg: #0e1621;--text: #f2f5f7;--text-secondary: #8b9aa8;--text-tertiary: #647585;--border: #101921;--hover: #202b36;--active-chat: #2b5278;--active-chat-text: #ffffff;--in-bg: #182533;--out-bg: #2b5278;--out-text: #f2f5f7;--meta: #7f91a1;--meta-out: #9bbfd8;--danger: #ff6b6b;--green: #6fcf6f;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);--shadow-md: 0 8px 28px rgba(0, 0, 0, .45);--shadow-lg: 0 20px 70px rgba(0, 0, 0, .6);--scrollbar: #3a4a58}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}html{-webkit-text-size-adjust:100%}body{font-family:var(--font);font-size:15px;color:var(--text);background:var(--bg);overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button,input,textarea{font-family:inherit;color:inherit}button{border:0;background:none;cursor:pointer;padding:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}input,textarea{border:0;outline:0;background:transparent}::selection{background:#3390ec47}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:8px}::-webkit-scrollbar-track{background:transparent}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:none}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes pop{0%{transform:scale(.96);opacity:0}to{transform:scale(1);opacity:1}}.icon-btn{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--text-secondary);transition:background .15s,color .15s;flex:none}.icon-btn:hover{background:var(--hover);color:var(--text)}.icon-btn.small{width:32px;height:32px}.icon-btn.light{color:#fff}.icon-btn.light:hover{background:#ffffff24}.icon-btn.danger{color:var(--danger)}.btn-primary{height:46px;padding:0 20px;border-radius:10px;background:var(--accent);color:#fff;font-weight:600;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s,transform .1s}.btn-primary:hover{background:var(--accent-hover)}.btn-primary:active{transform:scale(.99)}.btn-primary:disabled{opacity:.5;cursor:default}.btn-ghost{height:46px;padding:0 20px;border-radius:10px;background:var(--bg-secondary);color:var(--text);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-ghost:hover{background:var(--bg-tertiary)}.btn-danger{height:42px;padding:0 18px;border-radius:10px;background:var(--danger);color:#fff;font-weight:600}.small-btn{height:36px;padding:0 14px;font-size:13px;border-radius:8px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text-secondary)}.field>span{padding-left:2px}.field input,.field textarea{width:100%;height:46px;background:var(--bg-secondary);border-radius:10px;padding:0 14px;font-size:15px;color:var(--text);border:1.5px solid transparent;transition:border-color .15s,background .15s}.field textarea{height:auto;padding:12px 14px;resize:vertical}.field input:focus,.field textarea:focus{border-color:var(--accent);background:var(--panel)}.field input:disabled{opacity:.6}.field small{align-self:flex-end;color:var(--text-tertiary);font-size:11px}.field-input{display:flex;align-items:center;background:var(--bg-secondary);border-radius:10px;border:1.5px solid transparent;padding-left:14px;transition:border-color .15s}.field-input:focus-within{border-color:var(--accent);background:var(--panel)}.field-input input{background:transparent!important;border:0!important;padding-left:4px}.field-prefix{color:var(--text-secondary);font-size:15px}.field-icon{color:var(--text-tertiary);flex:none}.field-action{font-size:12px;color:var(--accent);padding:0 12px;flex:none}.avatar{border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:600;overflow:hidden;flex:none;position:relative;user-select:none}.avatar img{width:100%;height:100%;object-fit:cover}.avatar span{line-height:1;letter-spacing:.2px}.avatar-online{position:absolute;right:-1px;bottom:-1px;background:var(--green);border:2px solid var(--panel);border-radius:50%}.splash{height:100%;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(1200px 700px at 50% 10%,#2f7bc4,#1a4d7d 45%,#0f2b46);color:#fff;position:relative;overflow:hidden}.splash-glow{position:absolute;width:560px;height:560px;border-radius:50%;background:radial-gradient(circle,rgba(77,198,255,.28),transparent 65%);filter:blur(10px);animation:pulse 3s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:.8}50%{transform:scale(1.08);opacity:1}}.splash-logo{position:relative;box-shadow:0 20px 60px #0006;border-radius:26px;animation:pop .5s ease both}.splash-logo img{display:block;border-radius:26px}.splash-title{font-size:26px;font-weight:700;letter-spacing:-.5px;margin-top:8px}.splash-sub{color:#ffffffad;font-size:14px}.splash-dots{display:flex;gap:6px;margin-top:10px}.splash-dots i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.35;animation:dot 1.2s ease-in-out infinite}.splash-dots i:nth-child(2){animation-delay:.15s}.splash-dots i:nth-child(3){animation-delay:.3s}@keyframes dot{0%,to{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.splash-slow{font-size:12px;color:#ffffff80;margin-top:18px}.auth{height:100%;height:100dvh;display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(420px,1fr);background:var(--bg);overflow:hidden}.auth-brand{position:relative;color:#fff;padding:34px 46px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(900px 500px at 10% 0%,rgba(93,217,255,.35),transparent 60%),radial-gradient(700px 600px at 90% 100%,rgba(74,222,173,.28),transparent 60%),linear-gradient(155deg,#1c4f82,#2468a9 46%,#168a8a);overflow:hidden}.auth-brand:before{content:"";position:absolute;width:560px;height:560px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-180px;top:-180px;box-shadow:0 0 0 80px #ffffff08,0 0 0 160px #ffffff05}.auth-brand:after{content:"";position:absolute;inset:auto -10% -40%;height:55%;background:radial-gradient(ellipse at 50% 0%,rgba(0,0,0,.24),transparent 70%)}.auth-brand-top{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;letter-spacing:-.2px;position:relative;z-index:2}.auth-brand-top img{border-radius:11px;box-shadow:0 6px 20px #00000040}.auth-brand-center{position:relative;z-index:2;max-width:540px;animation:slideUp .6s ease both}.auth-orb{position:relative;width:128px;height:128px;display:flex;align-items:center;justify-content:center;margin-bottom:30px}.auth-orb img{border-radius:24px;box-shadow:0 20px 50px #00000059;position:relative;z-index:1}.auth-orb-ring{position:absolute;inset:-18px;border-radius:50%;border:1px solid rgba(255,255,255,.22);animation:pulse 3.4s ease-in-out infinite}.auth-orb-ring:after{content:"";position:absolute;inset:-26px;border-radius:50%;border:1px solid rgba(255,255,255,.1)}.auth-brand h1{font-size:44px;line-height:1.06;letter-spacing:-1.6px;margin:0 0 18px;font-weight:700}.auth-brand p{font-size:17px;line-height:1.55;color:#ffffffd1;margin:0 0 30px;max-width:470px}.auth-features{display:flex;flex-direction:column;gap:11px}.auth-features>div{display:flex;align-items:center;gap:12px;font-size:14px;color:#ffffffe6;background:#ffffff1a;border:1px solid rgba(255,255,255,.14);padding:11px 14px;border-radius:12px;max-width:420px;backdrop-filter:blur(8px)}.auth-features svg{opacity:.9;flex:none}.auth-brand-footer{display:flex;align-items:center;gap:7px;font-size:12px;color:#ffffff9e;position:relative;z-index:2}.auth-dot{width:3px;height:3px;border-radius:50%;background:currentColor;margin:0 5px}.auth-main{display:flex;align-items:safe center;justify-content:center;padding:32px;background:var(--bg);overflow-y:auto}.auth-card{width:100%;max-width:430px;animation:slideUp .45s ease both}.auth-mobile-brand{display:none;align-items:center;gap:12px;font-size:20px;font-weight:700;margin-bottom:26px}.auth-mobile-brand img{border-radius:12px;box-shadow:var(--shadow-md)}.auth-form,.auth-server-setup{display:flex;flex-direction:column;gap:16px}.auth-step-icon{width:54px;height:54px;border-radius:16px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;margin-bottom:2px}.auth-form h2{font-size:30px;line-height:1.15;letter-spacing:-.9px;margin:-4px 0 -6px}.auth-sub{color:var(--text-secondary);font-size:14.5px;line-height:1.5;margin:0 0 6px}.auth-submit{width:100%;margin-top:2px}.auth-divider{display:flex;align-items:center;gap:12px;color:var(--text-tertiary);font-size:12px;text-transform:uppercase;letter-spacing:.6px;margin:2px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--border);flex:1}.auth-demo{width:100%}.auth-demo-hint{text-align:center;font-size:12.5px;color:var(--text-tertiary);margin:-8px 0 0}.auth-terms{font-size:11.5px;line-height:1.5;color:var(--text-tertiary);text-align:center;margin:8px 0 0}.auth-back{display:inline-flex;align-items:center;gap:6px;color:var(--text-secondary);font-size:13px;align-self:flex-start;padding:4px 0;margin-bottom:4px}.auth-back:hover{color:var(--text)}.auth-error{background:#e5484d1a;border:1px solid rgba(229,72,77,.25);color:var(--danger);border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.4}.auth-demo-code{background:var(--accent-soft);color:var(--accent);border-radius:10px;padding:9px 12px;font-size:13px;font-weight:600;text-align:center}.otp{display:flex;gap:9px;justify-content:space-between;margin:4px 0}.otp input{flex:1;min-width:0;height:58px;border-radius:12px;background:var(--bg-secondary);border:1.5px solid transparent;text-align:center;font-size:22px;font-weight:600;color:var(--text);transition:border-color .15s,background .15s}.otp input:focus{border-color:var(--accent);background:var(--panel)}.otp input.filled{background:var(--accent-soft);border-color:#3390ec40}.auth-resend{text-align:center;color:var(--accent);font-size:13.5px;padding:6px}.auth-resend.muted{color:var(--text-tertiary)}.auth-secure{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--text-tertiary);font-size:11.5px;line-height:1.45;margin-top:6px}.auth-footer{margin-top:30px;padding-top:18px;border-top:1px solid var(--border);font-size:10.5px;line-height:1.5;color:var(--text-tertiary);text-align:center}.auth-footer-sep{margin:0 6px}.app{display:flex;height:100%;height:100dvh;width:100%;overflow:hidden;background:var(--bg);position:relative}.sidebar{width:420px;flex:none;display:flex;flex-direction:column;height:100%;background:var(--panel);border-right:1px solid var(--border);position:relative;z-index:5}.sidebar-head{height:62px;padding:8px 12px;display:flex;align-items:center;gap:8px;flex:none}.sidebar-search{flex:1;display:flex;align-items:center;gap:8px;height:42px;background:var(--bg-secondary);border:1.5px solid transparent;border-radius:22px;padding:0 14px;color:var(--text-tertiary);transition:background .15s,border-color .15s}.sidebar-search:focus-within{background:var(--panel);border-color:var(--accent)}.sidebar-search input{flex:1;min-width:0;font-size:14.5px;color:var(--text)}.sidebar-search input::placeholder{color:var(--text-tertiary)}.search-clear{color:var(--text-tertiary);display:flex;padding:3px}.connection-banner{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:7px 10px;flex:none}.connection-banner.connecting{color:var(--accent);background:var(--accent-soft)}.connection-banner.offline{color:var(--danger);background:#e5484d14}.chat-filters{display:flex;flex:none;gap:4px;padding:0 8px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:thin}.chat-filters button{flex:1 0 auto;position:relative;padding:10px 7px 12px;color:var(--text-secondary);font-size:13px;font-weight:600;white-space:nowrap}.chat-filters button:hover{background:var(--hover)}.chat-filters button[aria-pressed=true]{color:var(--accent)}.chat-filters button[aria-pressed=true]:after{content:"";position:absolute;inset:auto 6px 0;height:3px;background:currentColor;border-radius:3px 3px 0 0}.archive-row{width:100%;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:10px;color:var(--text-secondary);font-weight:600}.archive-row:hover{background:var(--hover)}.archive-row small{margin-left:auto}.archive-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--bg-secondary)}.archive-head{height:48px;display:flex;align-items:center;gap:6px;padding:0 10px;font-weight:600;font-size:15px;flex:none}.chat-list{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 7px 86px}.loading-list,.empty-list{height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--text-tertiary);font-size:13px}.chat-item{width:100%;display:flex;align-items:center;gap:12px;height:72px;content-visibility:auto;contain-intrinsic-size:72px;padding:7px 9px;border-radius:11px;text-align:left;transition:background .12s;position:relative;color:var(--text);margin:1px 0}.chat-item:hover{background:var(--hover)}.chat-item.active{background:var(--active-chat);color:var(--active-chat-text)}.chat-item-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.chat-item-top,.chat-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.chat-item-title{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px;min-width:0}.verified{color:var(--accent);flex:none}.chat-item.active .verified{color:#bfe0ff}.chat-item-time{font-size:11.5px;color:var(--text-tertiary);flex:none;display:flex;align-items:center;gap:4px}.chat-item.active .chat-item-time{color:#ffffffb8}.chat-item-preview{font-size:13.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px;min-width:0}.chat-item.active .chat-item-preview{color:#ffffffc7}.chat-item-preview.typing{color:var(--accent)}.chat-item.active .chat-item-preview.typing{color:#d5ecff}.preview-channel{color:var(--text-tertiary);font-size:12px}.chat-item.active .preview-channel{color:#fff9}.preview-tick{color:var(--text-tertiary);flex:none}.preview-tick.read{color:var(--accent)}.chat-item.active .preview-tick{color:#ffffffb3}.chat-item-badges{display:flex;align-items:center;gap:5px;flex:none}.pin-icon,.muted-icon{color:var(--text-tertiary)}.chat-item.active .pin-icon,.chat-item.active .muted-icon{color:#ffffffb3}.unread-badge{min-width:21px;height:21px;padding:0 6px;border-radius:11px;background:var(--accent);color:#fff;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1}.unread-badge.muted{background:var(--text-tertiary)}.unread-badge.on-active{background:#fff;color:var(--active-chat)}.new-message-fab{position:absolute;right:20px;bottom:calc(22px + var(--safe-bottom));width:54px;height:54px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 22px #3390ec73;transition:transform .15s,background .15s;z-index:3}.new-message-fab:hover{background:var(--accent-hover);transform:translateY(-1px)}.drawer-backdrop{position:fixed;inset:0;background:#00000059;z-index:900;animation:fadeIn .15s ease}.drawer{width:320px;height:100%;background:var(--panel);display:flex;flex-direction:column;box-shadow:var(--shadow-lg);animation:drawerIn .2s ease}@keyframes drawerIn{0%{transform:translate(-24px);opacity:.6}to{transform:translate(0);opacity:1}}.drawer-profile{padding:26px 20px 20px;background:radial-gradient(220px 120px at 0% 0%,rgba(97,210,255,.4),transparent 70%),linear-gradient(150deg,#2b6cb0,#1b8f8f);color:#fff;display:flex;align-items:center;gap:14px;position:relative}.drawer-close{position:absolute;right:12px;top:12px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#fffc;border-radius:50%}.drawer-close:hover{background:#ffffff1f}.drawer-profile-info{display:flex;flex-direction:column;gap:3px;min-width:0}.drawer-profile-info strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer-profile-info span{font-size:12.5px;color:#ffffffb8}.drawer-nav{padding:8px;display:flex;flex-direction:column;gap:2px}.drawer-nav button{display:flex;align-items:center;gap:14px;padding:11px 14px;border-radius:9px;font-size:14.5px;color:var(--text);text-align:left}.drawer-nav button:hover{background:var(--hover)}.drawer-nav button svg{color:var(--text-secondary)}.drawer-nav button.danger,.drawer-nav button.danger svg{color:var(--danger)}.drawer-lang{width:20px;text-align:center;font-size:11px;font-weight:700;color:var(--text-secondary);border:1.5px solid var(--text-tertiary);border-radius:5px;padding:1px 0}.drawer-divider{height:1px;background:var(--border);margin:6px 14px}.drawer-footer{margin-top:auto;padding:18px 22px;display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--text-tertiary)}.drawer-server{display:flex;align-items:center;gap:5px}.chat-view{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden;background-color:var(--chat-bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%238fb3cc' stroke-width='1.3' opacity='.16'%3E%3Cpath d='M32 44l16 7-16 7-4-7z'/%3E%3Ccircle cx='150' cy='52' r='9'/%3E%3Cpath d='M196 96c9-9 18 0 9 9l-9 9-9-9c-9-9 0-18 9-9z'/%3E%3Cpath d='M74 166l20 9-20 9-5-9z'/%3E%3Ccircle cx='206' cy='196' r='6'/%3E%3Cpath d='M42 218c7-7 14 0 7 7l-7 7-7-7c-7-7 0-14 7-7z'/%3E%3Cpath d='M130 126l10 4-10 4-2-4z'/%3E%3C/g%3E%3C/svg%3E");background-size:260px 260px;position:relative;overflow:clip}[data-wallpaper=plain] .chat-view{background-image:none}[data-wallpaper=gradient] .chat-view{background-image:linear-gradient(150deg,#63b5eb2e,#6ccdad29 55%,#9abdff33)}[data-theme=dark][data-wallpaper=gradient] .chat-view{background-image:linear-gradient(150deg,#235c8c59,#145c4a4d 55%,#33407859)}.chat-head{height:60px;flex:none;display:flex;align-items:center;gap:6px;padding:7px 12px;background:var(--panel);background:color-mix(in srgb,var(--panel) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);position:relative;z-index:20}.chat-head-profile{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;padding:3px 4px;border-radius:9px}.chat-head-profile:hover{background:var(--hover)}.chat-head-info{display:flex;flex-direction:column;gap:2px;min-width:0}.chat-head-title{font-size:15px;font-weight:600;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-head-sub{font-size:12.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-head-sub.online,.chat-head-sub.typing{color:var(--accent)}.chat-head-actions{display:flex;align-items:center;flex:none}.mobile-back{display:none}.header-dropdown{position:absolute;right:12px;top:calc(100% - 6px);z-index:60}.dropdown{background:var(--panel);border-radius:12px;box-shadow:var(--shadow-md);border:1px solid var(--border);padding:6px;min-width:212px;animation:pop .12s ease}.message-menu{position:fixed;z-index:800}.dropdown button{width:100%;display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:8px;font-size:14px;text-align:left;color:var(--text)}.dropdown button:hover{background:var(--hover)}.dropdown button svg{color:var(--text-secondary);flex:none}.dropdown button.danger,.dropdown button.danger svg{color:var(--danger)}.dropdown-sep{height:1px;background:var(--border);margin:5px 8px}.chat-search-bar{flex:none;height:48px;display:flex;align-items:center;gap:9px;padding:0 14px;background:var(--panel);border-bottom:1px solid var(--border);color:var(--text-tertiary);z-index:10}.chat-search-bar input{flex:1;font-size:14px;color:var(--text)}.search-count{font-size:12px;background:var(--bg-secondary);border-radius:9px;padding:2px 7px}.messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:14px max(20px,calc((100% - 900px)/2)) 10px;display:flex;flex-direction:column;position:relative;z-index:1;scroll-behavior:auto;overscroll-behavior:contain;touch-action:pan-y;overflow-anchor:none;-webkit-overflow-scrolling:touch}.messages-loading,.older-loading{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--text-secondary);font-size:12.5px;padding:14px}.messages-spacer{flex:1 1 auto;min-height:0}.messages-content{display:flex;flex-direction:column;flex:none;min-height:0;width:100%}.messages-bottom{height:1px;flex:none}.date-separator{display:flex;justify-content:center;margin:12px 0 8px;pointer-events:none}.date-separator span{background:var(--panel);background:color-mix(in srgb,var(--panel) 62%,transparent);color:var(--text-secondary);font-size:12px;font-weight:500;padding:4px 11px;border-radius:12px;backdrop-filter:blur(8px)}.message-row{display:flex;align-items:flex-end;gap:8px;margin:1px 0;width:100%;animation:msgIn .14s ease}@keyframes msgIn{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.message-row.row-out{justify-content:flex-end}.message-avatar{flex:none;margin-bottom:2px}.bubble{max-width:min(520px,76%);background:var(--in-bg);color:var(--text);border-radius:12px;padding:6px 9px;position:relative;box-shadow:var(--shadow-sm);min-width:72px;animation:pop .12s ease}.bubble.outgoing{background:var(--out-bg);color:var(--out-text);border-bottom-right-radius:5px}.bubble.incoming,.message-row.with-avatar .bubble{border-bottom-left-radius:5px}.bubble-sender{font-size:13px;font-weight:600;margin:1px 0 3px}.forwarded-label{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--accent);margin-bottom:4px}.bubble.outgoing .forwarded-label{color:#4f8f3d}[data-theme=dark] .bubble.outgoing .forwarded-label{color:#9bc8f0}.forward-icon{transform:scaleX(-1)}.reply-block{display:flex;gap:8px;width:100%;text-align:left;background:#3390ec1a;border-radius:7px;padding:5px 8px 5px 0;margin:1px 0 5px;overflow:hidden;align-items:stretch}.bubble.outgoing .reply-block{background:#fff6}[data-theme=dark] .bubble.outgoing .reply-block{background:#ffffff14}.reply-bar{width:3px;border-radius:3px;background:var(--accent);margin-left:5px;flex:none}.reply-body{display:flex;flex-direction:column;gap:1px;min-width:0}.reply-body b{font-size:12.5px;color:var(--accent)}.reply-body span{font-size:12.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.bubble.outgoing .reply-body b{color:#3d7a2e}[data-theme=dark] .bubble.outgoing .reply-body b{color:#9bc8f0}.bubble.outgoing .reply-body span{color:var(--text-secondary)}.bubble-text{font-size:var(--msg-font-size);line-height:1.36;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.bubble-text a{color:var(--accent)}.bubble.outgoing .bubble-text a{color:#2b7a1f}[data-theme=dark] .bubble.outgoing .bubble-text a{color:#a5d5ff}.bubble-text mark{background:#ffd60073;color:inherit;border-radius:3px;padding:0 1px}.emoji-only{font-size:40px;line-height:1.15}.bubble.no-bubble{background:transparent;box-shadow:none;padding:0}.bubble.no-bubble .bubble-meta{background:#00000047;color:#fff;border-radius:10px;padding:1px 7px;margin-top:2px;width:fit-content;margin-left:auto}.bubble-meta{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:2px;float:right;padding-left:10px;height:15px}.bubble-time{font-size:11px;color:var(--meta);line-height:1}.bubble.outgoing .bubble-time{color:var(--meta-out)}.edited{font-size:10.5px;color:var(--meta)}.bubble.outgoing .edited,.tick{color:var(--meta-out)}.tick.read{color:#4fae4e}[data-theme=dark] .tick.read{color:#7ed67c}.tick.sending{color:var(--meta-out)}.tick.failed{color:var(--danger)}.msg-photo{display:block;width:100%;max-width:440px;margin:-3px -6px 3px;padding:0;border-radius:9px;overflow:hidden;position:relative;background:var(--bg-secondary)}.msg-photo img{display:block;width:100%;max-height:360px;object-fit:cover;transition:transform .25s}.msg-photo:hover img{transform:scale(1.012)}.photo-caption{display:block;padding:7px 9px 4px;font-size:var(--msg-font-size);line-height:1.35;text-align:left;color:var(--text);white-space:pre-wrap}.bubble.outgoing .photo-caption{color:var(--out-text)}.bubble.photo-only{padding:0;overflow:hidden}.bubble.photo-only .msg-photo{margin:0;border-radius:12px}.bubble.photo-only .bubble-meta{position:absolute;right:8px;bottom:6px;background:#0006;color:#fff;border-radius:10px;padding:1px 7px;margin:0;backdrop-filter:blur(4px);z-index:2}.bubble.photo-only .bubble-time,.bubble.photo-only .edited{color:#fff}.bubble.photo-only .tick{color:#cfe8ff}.bubble.photo-only .tick.read{color:#b9f5b6}.file-card{display:flex;align-items:center;gap:10px;padding:4px 2px 3px;color:inherit;min-width:220px}.file-card:hover{text-decoration:none}.file-icon{width:42px;height:42px;border-radius:50%;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none}.file-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.file-meta b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}.file-meta span{font-size:12px;color:var(--text-secondary)}.file-download{margin-left:auto;color:var(--text-secondary);flex:none}.voice{display:flex;align-items:center;gap:9px;padding:3px 2px;min-width:220px;color:inherit}.voice-play{width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}.voice-wave{display:flex;align-items:center;gap:2px;height:30px;flex:1;overflow:hidden}.voice-wave i{width:2.5px;border-radius:2px;background:var(--accent);opacity:.75;flex:none}.voice-duration{font-size:11.5px;color:var(--text-secondary);flex:none}.bubble.outgoing .voice-duration{color:var(--meta-out)}.service-message{align-self:center;background:color-mix(in srgb,var(--panel) 68%,transparent);color:var(--text-secondary);font-size:12.5px;padding:4px 11px;border-radius:12px;margin:8px auto;max-width:80%;text-align:center;backdrop-filter:blur(6px)}.typing-bubble{display:flex;align-items:center;gap:3px;width:54px;min-width:54px;height:34px;padding:0 12px}.typing-bubble span{width:6px;height:6px;border-radius:50%;background:var(--text-tertiary);animation:typingDot 1.2s infinite ease-in-out}.typing-bubble span:nth-child(2){animation-delay:.15s}.typing-bubble span:nth-child(3){animation-delay:.3s}@keyframes typingDot{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}.empty-chat{margin:auto;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--text-secondary);text-align:center;padding:40px 20px}.empty-chat-icon{width:64px;height:64px;border-radius:50%;background:color-mix(in srgb,var(--panel) 68%,transparent);display:flex;align-items:center;justify-content:center;margin-bottom:4px;color:var(--accent)}.empty-chat b{font-size:15px;color:var(--text)}.empty-chat span{font-size:13px;max-width:280px}.placeholder-view{align-items:center;justify-content:center}.chat-placeholder{position:relative;margin:16px;padding:6px 14px;border-radius:18px;background:color-mix(in srgb,var(--panel) 80%,transparent);color:var(--text);font-size:13px;font-weight:500;text-align:center}.scroll-down{position:absolute;right:22px;bottom:92px;width:44px;height:44px;border-radius:50%;background:var(--panel);color:var(--text-secondary);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);z-index:6;animation:pop .15s ease}.scroll-down:hover{color:var(--accent)}.flash-message{animation:flash 1.3s ease;border-radius:12px}@keyframes flash{0%,to{background:transparent}25%{background:#3390ec26}}.drop-overlay{position:absolute;inset:0;z-index:50;background:#13365759;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;pointer-events:none}.drop-overlay>div{background:var(--panel);border:2px dashed var(--accent);border-radius:18px;padding:32px 44px;display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--accent);font-size:14px}.composer{flex:none;padding:6px 16px calc(10px + var(--safe-bottom));background:var(--panel);border-top:1px solid var(--border);position:relative;z-index:15}.composer-context{display:flex;align-items:center;gap:10px;background:var(--bg-secondary);border-radius:10px;padding:7px 9px;margin-bottom:7px;border-left:3px solid var(--accent);animation:slideUp .15s ease}.context-icon{color:var(--accent);flex:none}.context-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.context-body b{font-size:12.5px;color:var(--accent)}.context-body span{font-size:12.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-preview{display:flex;align-items:center;gap:10px;background:var(--bg-secondary);border-radius:11px;padding:7px 9px;margin-bottom:7px;animation:slideUp .15s ease}.attachment-preview img{width:46px;height:46px;object-fit:cover;border-radius:8px;flex:none}.attachment-icon{width:46px;height:46px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}.attachment-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.attachment-info b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-info span{font-size:11.5px;color:var(--text-secondary)}.composer-row{display:flex;align-items:flex-end;gap:5px}.composer-icon{margin-bottom:3px;color:var(--text-secondary)}.composer-input{flex:1;min-width:0;display:flex;align-items:flex-end;gap:2px;background:var(--bg-secondary);border-radius:14px;border:1.5px solid transparent;padding:4px 4px 4px 8px;transition:border-color .15s,background .15s}.composer-input:focus-within{border-color:var(--accent);background:var(--panel)}.composer-input textarea{flex:1;min-width:0;resize:none;border:0;background:transparent;font-size:var(--msg-font-size);line-height:1.4;padding:9px 4px 8px;max-height:160px;overflow-y:auto;color:var(--text)}.composer-input textarea::placeholder{color:var(--text-tertiary)}.emoji-btn.active{color:var(--accent)}.send-btn{width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none;transition:background .15s,transform .1s;margin-bottom:0}.send-btn:hover{background:var(--accent-hover)}.send-btn:active{transform:scale(.95)}.send-btn:disabled{opacity:.6}.mic-btn{background:var(--accent)}.recording-bar{display:flex;align-items:center;gap:12px;height:54px;padding:0 4px;animation:fadeIn .15s ease}.record-dot{width:11px;height:11px;border-radius:50%;background:var(--danger);animation:blink 1s infinite;flex:none}@keyframes blink{50%{opacity:.35}}.record-time{font-variant-numeric:tabular-nums;font-size:15px;font-weight:600;color:var(--danger);width:52px}.record-hint{flex:1;font-size:13px;color:var(--text-secondary)}.recording-send{background:var(--accent)}.uploading-line{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--text-secondary);padding:6px 4px 0}.emoji-popover{position:absolute;right:70px;bottom:calc(100% + 8px);width:356px;max-width:calc(100vw - 24px);height:324px;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-md);display:flex;flex-direction:column;z-index:100;animation:pop .14s ease;overflow:hidden}.emoji-head{display:flex;align-items:center;justify-content:space-between;padding:9px 10px 6px 14px;font-size:13px;color:var(--text-secondary);flex:none}.emoji-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:1px;padding:4px 8px 10px}.emoji-grid button{font-size:23px;height:36px;border-radius:7px;display:flex;align-items:center;justify-content:center;transition:background .1s,transform .1s}.emoji-grid button:hover{background:var(--hover);transform:scale(1.12)}.modal-backdrop{position:fixed;inset:0;background:#08141e7a;backdrop-filter:blur(3px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;animation:fadeIn .15s ease}.modal{background:var(--panel);border-radius:16px;box-shadow:var(--shadow-lg);width:540px;max-width:100%;max-height:86vh;display:flex;flex-direction:column;overflow:hidden;animation:pop .16s ease}.small-modal{width:430px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 16px 12px 20px;flex:none}.modal-head h3{margin:0;font-size:19px;letter-spacing:-.3px;display:flex;align-items:center;gap:8px}.modal-sub{margin:4px 0 0;font-size:12.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:310px}.modal-search{margin:0 16px 8px;height:42px;background:var(--bg-secondary);border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 13px;color:var(--text-tertiary);flex:none}.modal-search input{flex:1;font-size:14px;color:var(--text)}.pick-list{overflow-y:auto;padding:4px 8px 10px}.pick-item{width:100%;display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;text-align:left}.pick-item:hover{background:var(--hover)}.pick-item>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.pick-item strong{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pick-item span{font-size:12px;color:var(--text-secondary)}.pick-forward{color:var(--text-tertiary)}.empty-inline{text-align:center;padding:24px;color:var(--text-tertiary);font-size:13px}.confirm-modal{width:360px;max-width:100%;background:var(--panel);border-radius:15px;padding:22px;box-shadow:var(--shadow-lg);animation:pop .15s ease}.confirm-modal h3{margin:0 0 8px;font-size:18px}.confirm-modal p{margin:0 0 20px;color:var(--text-secondary);font-size:13.5px;line-height:1.5}.confirm-actions{display:flex;justify-content:flex-end;gap:8px}.confirm-actions .btn-ghost{height:40px;font-size:13.5px}.image-viewer{position:fixed;inset:0;z-index:1200;background:#03080ced;display:flex;align-items:center;justify-content:center;animation:fadeIn .15s ease;padding:calc(54px + var(--safe-top)) 20px calc(20px + var(--safe-bottom))}.image-viewer img{max-width:94vw;max-height:86vh;object-fit:contain;border-radius:4px;box-shadow:0 30px 90px #00000080}.image-viewer-bar{position:absolute;top:0;left:0;right:0;height:calc(54px + var(--safe-top));display:flex;align-items:center;justify-content:space-between;padding:var(--safe-top) 14px 0 20px;color:#fff;font-size:13px}.image-viewer-bar>div{display:flex;align-items:center;gap:8px}.viewer-download{color:#fff;font-size:13px;border:1px solid rgba(255,255,255,.32);padding:6px 12px;border-radius:8px}.viewer-download:hover{background:#ffffff1a;text-decoration:none}.settings-modal{width:850px;height:640px;max-height:88vh;flex-direction:row}.settings-nav{width:236px;flex:none;background:var(--bg-secondary);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:14px 9px}.settings-profile-mini{display:flex;align-items:center;gap:10px;padding:8px 9px 14px;border-bottom:1px solid var(--border);margin-bottom:8px;min-width:0}.settings-profile-mini>div:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}.settings-profile-mini b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-profile-mini span{font-size:11.5px;color:var(--text-secondary)}.settings-nav nav{display:flex;flex-direction:column;gap:2px}.settings-nav nav button{display:flex;align-items:center;gap:11px;height:40px;padding:0 11px;border-radius:8px;font-size:13.5px;color:var(--text);text-align:left;position:relative}.settings-nav nav button svg{color:var(--text-secondary)}.settings-nav nav button:hover{background:var(--hover)}.settings-nav nav button.active{background:var(--accent);color:#fff}.settings-nav nav button.active svg{color:#fff}.nav-dot{position:absolute;right:12px;width:6px;height:6px;border-radius:50%;background:#fff}.settings-logout{margin-top:auto;display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:8px;color:var(--danger);font-size:13px}.settings-logout:hover{background:#e5484d14}.settings-content{flex:1;display:flex;flex-direction:column;min-width:0}.settings-head{min-height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 22px;border-bottom:1px solid var(--border)}.settings-head h2{margin:0;font-size:18px;letter-spacing:-.3px}.settings-scroll{flex:1;overflow-y:auto}.settings-pane{padding:20px 24px 28px}.profile-hero{display:flex;align-items:center;gap:18px;margin-bottom:24px}.profile-hero-info{display:flex;flex-direction:column;gap:3px;min-width:0}.profile-hero-info b{font-size:20px;letter-spacing:-.4px}.profile-hero-info>span{font-size:13px;color:var(--text-secondary)}.profile-hero-info .profile-phone{font-size:12.5px;color:var(--text-tertiary)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .span-2{grid-column:span 2}.settings-save{margin-top:18px;height:42px}.settings-section{border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:16px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px}.settings-row+.settings-row{border-top:1px solid var(--border)}.settings-row>div:first-child{display:flex;flex-direction:column;gap:3px}.settings-row b{font-size:13.5px;font-weight:600}.settings-row span{font-size:12px;color:var(--text-secondary);line-height:1.4}.switch{width:42px;height:24px;border-radius:12px;background:var(--bg-tertiary);position:relative;flex:none;transition:background .18s}.switch span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .18s}.switch.on{background:var(--accent)}.switch.on span{transform:translate(18px)}.push-card{display:flex;align-items:center;gap:13px;padding:14px;border-radius:12px;background:linear-gradient(120deg,var(--accent-soft),transparent);border:1px solid color-mix(in srgb,var(--accent) 25%,var(--border));margin-bottom:10px}.push-card-icon{width:42px;height:42px;border-radius:12px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}.push-card-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.push-card-info b{font-size:13.5px}.push-card-info span{font-size:11.5px;color:var(--text-secondary);line-height:1.4}.settings-link-btn{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-size:13px;padding:8px 2px}.quiet-row{display:flex;gap:12px;padding:0 16px 14px}.quiet-row .field{flex:1}.settings-subhead{font-size:13px;text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);margin:4px 0 12px}.theme-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:26px}.theme-card{border:2px solid var(--border);border-radius:12px;overflow:hidden;text-align:left;position:relative;transition:border-color .15s}.theme-card.active{border-color:var(--accent)}.theme-preview{height:76px;display:flex;gap:2px;padding:5px;background:#e9edf0}.theme-preview-side{width:37%;border-radius:5px 0 0 5px;background:#fff;box-shadow:inset -1px 0 #0000000f}.theme-preview-chat{flex:1;background:#e3e9ee;border-radius:0 5px 5px 0;padding:8px 6px;display:flex;flex-direction:column;gap:5px}.theme-preview-chat span{height:9px;width:70%;border-radius:5px;background:#fff}.theme-preview-chat span+span{width:52%;background:#eeffde;align-self:flex-end}.theme-dark .theme-preview{background:#101820}.theme-dark .theme-preview-side{background:#17212b}.theme-dark .theme-preview-chat{background:#0e1621}.theme-dark .theme-preview-chat span{background:#182533}.theme-dark .theme-preview-chat span+span{background:#2b5278}.theme-system .theme-preview{background:linear-gradient(105deg,#e9edf0 0 50%,#101820 50% 100%)}.theme-system .theme-preview-side{background:linear-gradient(105deg,#fff 0 50%,#17212b 50% 100%)}.theme-system .theme-preview-chat{background:linear-gradient(105deg,#e3e9ee 0 50%,#0e1621 50% 100%)}.theme-label{display:flex;align-items:center;gap:6px;padding:8px 10px;font-size:12.5px;font-weight:500;color:var(--text);background:var(--panel)}.theme-check{position:absolute;right:6px;bottom:6px;width:18px;height:18px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center}.wallpaper-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:26px}.wallpaper-card{height:62px;border-radius:10px;border:2px solid transparent;display:flex;align-items:flex-end;justify-content:space-between;padding:7px 9px;font-size:11.5px;color:#0f1418;background-size:cover;position:relative}.wallpaper-card.active{border-color:var(--accent)}.wallpaper-telegram{background-color:#e3e9ee;background-image:radial-gradient(rgba(80,130,170,.25) 1px,transparent 1px);background-size:12px 12px}.wallpaper-plain{background-color:#e3e9ee}.wallpaper-gradient{background-image:linear-gradient(135deg,#b8dcff,#c9f0dd)}.range-row{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--text-secondary)}.range-row input[type=range]{flex:1;accent-color:var(--accent)}.range-big{font-size:17px}.range-row em{font-style:normal;font-variant-numeric:tabular-nums;color:var(--text-tertiary);width:38px;text-align:right}.settings-hint{font-size:12.5px;color:var(--text-secondary);line-height:1.5;margin:0 0 16px}.language-list{display:flex;flex-direction:column;gap:8px}.language-card{display:flex;align-items:center;gap:14px;padding:13px 15px;border:1.5px solid var(--border);border-radius:12px;text-align:left}.language-card:hover{background:var(--hover)}.language-card.active{border-color:var(--accent);background:var(--accent-soft)}.language-card>div{flex:1;display:flex;flex-direction:column;gap:2px}.language-card b{font-size:14px}.language-card span{font-size:11.5px;color:var(--text-secondary)}.language-card>svg{color:var(--accent)}.language-flag{font-size:24px}.device-list{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}.device-card{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--border);border-radius:11px}.device-icon{width:38px;height:38px;border-radius:10px;background:var(--bg-secondary);display:flex;align-items:center;justify-content:center;color:var(--text-secondary);flex:none}.device-info{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.device-info b{font-size:13.5px}.device-info span{font-size:11.5px;color:var(--text-secondary)}.about-pane{display:flex;flex-direction:column;align-items:center;text-align:center}.about-pane>img{border-radius:17px;box-shadow:var(--shadow-md);margin:4px 0 12px}.about-pane h3{margin:0 0 8px;font-size:20px;letter-spacing:-.4px}.about-pane>p{color:var(--text-secondary);font-size:13px;line-height:1.55;max-width:420px;margin:0 0 18px}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-bottom:14px}.about-grid>div{background:var(--bg-secondary);border-radius:10px;padding:10px 13px;display:flex;flex-direction:column;gap:3px;text-align:left}.about-grid span{font-size:11px;color:var(--text-tertiary)}.about-grid b{font-size:13px}.about-tech{display:flex;flex-direction:column;gap:5px;width:100%;font-size:11.5px;color:var(--text-secondary);margin-bottom:18px}.about-tech span{display:flex;align-items:center;gap:7px}.about-logout{display:inline-flex;align-items:center;gap:8px;color:var(--danger);font-size:13px;padding:9px 14px;border:1px solid rgba(229,72,77,.3);border-radius:9px;margin-bottom:18px}.about-disclaimer{font-size:10.5px!important;color:var(--text-tertiary)!important;margin:0!important}.info-panel{width:360px;flex:none;background:var(--panel);border-left:1px solid var(--border);height:100%;display:flex;flex-direction:column;z-index:30;animation:slideInRight .18s ease}@keyframes slideInRight{0%{transform:translate(20px);opacity:.6}to{transform:translate(0);opacity:1}}.info-backdrop{display:none}.info-head{height:56px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-bottom:1px solid var(--border)}.info-head b{font-size:15px;font-weight:600}.info-head>span{width:40px}.info-scroll{flex:1;overflow-y:auto;padding-bottom:24px}.info-hero{display:flex;flex-direction:column;align-items:center;padding:24px 20px 18px;text-align:center}.info-hero h3{margin:12px 0 3px;font-size:19px;letter-spacing:-.3px}.info-status{font-size:12.5px;color:var(--text-secondary)}.info-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:0 16px 18px}.info-actions button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:10px;color:var(--text-secondary);font-size:11px}.info-actions button:hover{background:var(--hover);color:var(--text)}.info-actions button.active{color:var(--accent)}.info-card{margin:0 16px 18px;border:1px solid var(--border);border-radius:12px;overflow:hidden}.info-row{display:flex;align-items:flex-start;gap:12px;padding:11px 14px}.info-row+.info-row{border-top:1px solid var(--border)}.info-row>svg{color:var(--text-tertiary);margin-top:2px;flex:none}.info-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}.info-row span{font-size:11px;color:var(--text-tertiary)}.info-row b{font-size:13px;font-weight:500;overflow-wrap:anywhere}.info-section{margin:0 16px 20px}.info-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.info-section-head b{font-size:13px}.info-section-head span{font-size:11.5px;color:var(--text-tertiary)}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;border-radius:10px;overflow:hidden}.media-grid button{aspect-ratio:1;overflow:hidden;background:var(--bg-secondary)}.media-grid img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.media-grid button:hover img{transform:scale(1.05)}.info-empty{display:flex;align-items:center;justify-content:center;gap:8px;height:76px;border-radius:10px;background:var(--bg-secondary);color:var(--text-tertiary);font-size:12px}.info-files{display:flex;flex-direction:column;gap:4px}.info-files a{display:flex;align-items:center;gap:10px;padding:7px;border-radius:9px;color:var(--text)}.info-files a:hover{background:var(--hover);text-decoration:none}.info-files a>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0}.info-files b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}.info-files em{font-style:normal;font-size:11px;color:var(--text-tertiary)}.info-danger{margin:0 16px;color:var(--danger);font-size:13px;padding:10px;border-radius:9px;width:calc(100% - 32px);border:1px solid rgba(229,72,77,.25)}.info-note{font-size:10.5px;color:var(--text-tertiary);text-align:center;padding:14px 20px 0;margin:0;line-height:1.5}.toasts{position:fixed;left:50%;bottom:calc(24px + var(--safe-bottom));transform:translate(-50%);z-index:2000;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.toast{display:flex;align-items:center;gap:10px;background:#141e26f0;color:#fff;font-size:13px;padding:10px 12px 10px 14px;border-radius:11px;box-shadow:var(--shadow-md);animation:slideUp .2s ease;pointer-events:auto;max-width:min(440px,calc(100vw - 30px));backdrop-filter:blur(8px)}.toast-success svg:first-child{color:#6fdc8c}.toast-error svg:first-child{color:#ff8a8a}.toast-info svg:first-child{color:#7fc4ff}.toast span{flex:1;line-height:1.35}.toast-close{color:#ffffff80;display:flex;padding:3px;border-radius:50%}.toast-close:hover{background:#ffffff1f;color:#fff}[data-desktop] .sidebar-head,[data-desktop] .chat-head{-webkit-app-region:drag}[data-desktop] .sidebar-head button,[data-desktop] .sidebar-head input,[data-desktop] .chat-head button,[data-desktop] .chat-head-profile{-webkit-app-region:no-drag}.mac-chat-toolbar{-webkit-app-region:drag;display:flex;align-items:center;justify-content:space-between;height:46px;flex:none;padding:0 10px 0 86px}.mac-chat-toolbar strong{font-size:16px}.mac-chat-toolbar button{-webkit-app-region:no-drag;color:var(--accent)}[data-desktop=mac] .sidebar-head{height:42px;padding:2px 10px 6px}[data-desktop=mac] .sidebar-search{height:32px;border-radius:9px}[data-desktop=mac] .chat-list{padding:0 0 8px}[data-desktop=mac] .chat-item{height:66px;contain-intrinsic-size:66px;padding-inline:12px;margin:0;border-radius:0}@media(min-width:861px){[data-wallpaper=telegram] .app:not([data-phone]) .chat-view{background-image:linear-gradient(130deg,#dde7c8,#c8dfce 48%,#c2dbe1);background-size:cover}[data-theme=dark][data-wallpaper=telegram] .app:not([data-phone]) .chat-view{background-image:linear-gradient(130deg,#1e3132,#192b35 48%,#202638)}[data-wallpaper=telegram] .app:not([data-phone]) .chat-view:before{content:"";position:absolute;inset:0;pointer-events:none;mask:url(/phone-wallpaper.svg) repeat;background:var(--text-secondary);opacity:.17}html:not([data-desktop]) .composer{align-self:center;width:min(760px,calc(100% - 32px));margin-bottom:12px;padding:6px 10px;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-sm)}html:not([data-desktop]) .messages{padding-inline:max(16px,calc((100% - 760px)/2))}}[data-desktop=mac] .auth-brand{padding-top:56px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--bg-secondary);border-radius:12px;padding:4px;margin-bottom:22px}.auth-tabs button{height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13.5px;font-weight:500;color:var(--text-secondary);transition:background .15s,color .15s,box-shadow .15s}.auth-tabs button:hover{color:var(--text)}.auth-tabs button.active{background:var(--panel);color:var(--text);box-shadow:var(--shadow-sm)}.auth-tabs button.active svg{color:var(--accent)}.qr-form{align-items:stretch}.qr-frame{width:280px;height:280px;max-width:100%;margin:4px auto 10px;border-radius:18px;background:#fff;padding:8px;position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 38px #0f284129,0 0 0 1px #0f28410f}[data-theme=dark] .qr-frame{box-shadow:0 16px 44px #0000006b,0 0 0 1px #ffffff14}.qr-frame img{display:block;width:100%;height:100%;border-radius:10px}.qr-frame.empty{background:var(--bg-secondary)}.qr-placeholder,.qr-skeleton{display:flex;align-items:center;justify-content:center;color:var(--text-tertiary)}.qr-skeleton{width:280px;height:280px;max-width:100%;margin:4px auto 10px;border-radius:18px;background:var(--bg-secondary);animation:pulse 1.8s ease-in-out infinite}.qr-corners{position:absolute;inset:-7px;pointer-events:none}.qr-corners i{position:absolute;width:20px;height:20px;border:2px solid var(--accent);opacity:.55}.qr-corners i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-radius:8px 0 0}.qr-corners i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-radius:0 8px 0 0}.qr-corners i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-radius:0 0 0 8px}.qr-corners i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-radius:0 0 8px}.qr-status{display:flex;align-items:center;justify-content:center;gap:10px;min-height:26px;font-size:12.5px;color:var(--text-secondary);text-align:center;margin-bottom:8px}.qr-status em{font-style:normal;font-variant-numeric:tabular-nums;white-space:nowrap;background:var(--bg-secondary);border-radius:8px;padding:2px 7px;color:var(--text-tertiary);font-size:11.5px}.qr-demo{display:inline-flex;align-items:center;gap:6px;color:var(--accent);background:var(--accent-soft);border-radius:8px;padding:4px 9px;font-size:11.5px;line-height:1.35}.qr-actions{display:flex;flex-direction:column;gap:8px;margin-top:4px}.qr-actions .auth-submit{margin-top:0}.qr-copy{height:40px;font-size:13px}.qr-steps{display:flex;flex-direction:column;gap:1px;margin:18px 0 6px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--border)}.qr-steps>div{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--panel);color:var(--text-secondary);font-size:12.5px}.qr-steps>div>span{width:20px;height:20px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:none}.qr-steps>div>svg{color:var(--accent);flex:none}.qr-steps p{margin:0;line-height:1.4}.qr-success-icon{background:#4fae4e21!important;color:var(--green)!important}.qr-scanned-badge{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;background:#4fae4e1f;color:var(--green);border-radius:8px;padding:4px 9px;font-size:11.5px;font-weight:600}.auth-inline-hint{display:flex;align-items:flex-start;gap:6px;font-size:11.5px;line-height:1.45;color:var(--text-tertiary);margin:-6px 0 2px}.auth-inline-hint svg{flex:none;margin-top:1px}.auth-help-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--text-secondary);font-size:12.5px;padding:7px 4px}.auth-help-link:hover{color:var(--accent)}.auth-help-link.inline{padding:0;font-size:12px}.auth-resend-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.auth-refresh-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:var(--text-tertiary);font-size:11.5px;padding:3px}.auth-refresh-link:hover{color:var(--accent)}.auth-demo-banner{display:flex;gap:10px;align-items:flex-start;padding:11px 13px;border-radius:11px;background:#f29e3a1a;border:1px solid rgba(242,158,58,.25);color:#a9660c;margin-bottom:16px;font-size:11.5px;line-height:1.45}[data-theme=dark] .auth-demo-banner{color:#f3c27a;background:#f29e3a1f}.auth-demo-banner>svg{flex:none;margin-top:1px}.auth-demo-banner>div{display:flex;flex-direction:column;gap:2px}.auth-demo-banner b{font-size:12px}.auth-demo-banner span{color:var(--text-secondary)}.auth-unavailable{display:flex;gap:11px;align-items:flex-start;padding:13px;border-radius:11px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 25%,var(--border));color:var(--accent);margin:6px 0 10px}.auth-unavailable>svg{flex:none;margin-top:1px}.auth-unavailable>div{display:flex;flex-direction:column;gap:3px}.auth-unavailable b{font-size:13px;color:var(--text)}.auth-unavailable span{font-size:12px;line-height:1.45;color:var(--text-secondary)}.sticker-media{display:block;object-fit:contain;max-width:100%;user-select:none}.sticker-lottie{overflow:hidden}.sticker-lottie svg{width:100%!important;height:100%!important}.sticker-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--text-tertiary);background:var(--bg-secondary);border-radius:18px;font-size:24px}.bubble.sticker-bubble{background:transparent;box-shadow:none;padding:0;border-radius:0;min-width:0}.sticker-message{padding:1px 0}.sticker-message .sticker-media{max-width:190px;max-height:190px;filter:drop-shadow(0 3px 5px rgba(15,35,50,.12))}.bubble.sticker-bubble .bubble-meta{background:#00000059;color:#fff;border-radius:9px;padding:1px 6px;margin:2px 4px 0 auto;width:fit-content;backdrop-filter:blur(4px)}.bubble.sticker-bubble .bubble-time,.bubble.sticker-bubble .edited{color:#fff}.bubble.sticker-bubble .tick{color:#dff3ff}.bubble.sticker-bubble .tick.read{color:#b9f5b6}.msg-video{display:block;width:100%;max-width:440px;max-height:360px;border-radius:9px;margin:-3px -6px 2px;background:#000;object-fit:contain}.round-video{position:relative;width:min(240px,62vw);height:min(240px,62vw);margin:1px auto;border-radius:50%;overflow:hidden;isolation:isolate;cursor:pointer;line-height:0;outline:none;-webkit-tap-highlight-color:transparent}.round-video:focus-visible{box-shadow:0 0 0 3px var(--accent)}.msg-video-round{width:100%;height:100%;max-width:none;max-height:none;margin:0;border-radius:50%;object-fit:cover;background:#000;clip-path:circle(50%);-webkit-clip-path:circle(50%);-webkit-mask-image:-webkit-radial-gradient(white,black);mask-image:radial-gradient(circle,#fff 0% 100%);transform:translateZ(0);box-shadow:0 2px 14px #0000002e}.round-video-play{position:absolute;inset:0;margin:auto;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#00000073;color:#fff;backdrop-filter:blur(4px);pointer-events:none}.round-video-play svg{margin-left:3px}.bubble.round-video-bubble{background:transparent;box-shadow:none;padding:0;min-width:0;max-width:none;border-radius:50%;overflow:visible}.bubble.round-video-bubble .round-video{margin:0}.bubble.round-video-bubble .bubble-meta{position:absolute;right:12%;bottom:10%;margin:0;float:none;height:auto;padding:1px 7px;border-radius:10px;background:#00000073;backdrop-filter:blur(4px);z-index:3}.bubble.round-video-bubble .bubble-time,.bubble.round-video-bubble .edited{color:#fff}.bubble.round-video-bubble .tick{color:#dff3ff}.bubble.round-video-bubble .tick.read{color:#b9f5b6}.msg-audio{width:280px;max-width:100%;margin:3px 0}.sticker-popover{position:absolute;right:58px;bottom:calc(100% + 8px);width:356px;max-width:calc(100vw - 24px);height:330px;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-md);display:flex;flex-direction:column;z-index:100;animation:pop .14s ease;overflow:hidden}.sticker-tabs{display:flex;gap:2px;padding:7px 8px 4px;overflow-x:auto;flex:none;border-bottom:1px solid var(--border)}.sticker-tabs button{flex:none;height:30px;padding:0 9px;border-radius:8px;font-size:11.5px;color:var(--text-secondary);white-space:nowrap}.sticker-tabs button.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.sticker-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:7px;align-content:start}.sticker-grid button{aspect-ratio:1;border-radius:9px;padding:4px;display:flex;align-items:center;justify-content:center;transition:background .1s,transform .1s}.sticker-grid button:hover{background:var(--hover);transform:scale(1.06)}.sticker-grid .sticker-media{width:100%!important;height:100%!important;max-width:68px;max-height:68px}.sticker-empty{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;height:100%;padding:24px;color:var(--text-tertiary);font-size:12px;text-align:center}.sticker-empty b{color:var(--text-secondary);font-size:13px}.storage-card{border:1px solid var(--border);border-radius:14px;background:var(--panel);padding:16px;margin-bottom:16px}.storage-card-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}.storage-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}.storage-card-head>div{display:flex;flex-direction:column;gap:2px}.storage-card-head b{font-size:14px}.storage-card-head span{font-size:11.5px;color:var(--text-secondary)}.storage-usage-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--text-secondary);margin-bottom:7px}.storage-usage-row b{color:var(--text);font-weight:600}.storage-bar{height:7px;background:var(--bg-secondary);border-radius:99px;overflow:hidden}.storage-bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#47c9c4);border-radius:inherit;transition:width .3s ease}.storage-hint{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--text-secondary)}.storage-redeem{display:flex;align-items:flex-end;gap:10px}.storage-redeem .field{flex:1;margin-bottom:0}.storage-redeem .btn-primary{height:40px;padding:0 16px;white-space:nowrap}@media(max-width:640px){.storage-redeem{flex-direction:column;align-items:stretch}}.sync-banner{display:flex;align-items:center;gap:9px;margin:0 8px 7px;padding:8px 10px;border-radius:9px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));color:var(--accent);flex:none}.sync-banner.paused{background:#f29e3a1a;border-color:#f29e3a4d;color:#a9660c}.sync-banner-body{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.sync-banner-body b{font-size:11.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-banner-body span{font-size:10.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-spinner{width:13px;height:13px;border:2px solid color-mix(in srgb,var(--accent) 30%,transparent);border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite;flex:none}.sync-banner.paused .sync-spinner{display:none}.auth-help-backdrop{z-index:1500}.auth-help-modal{width:560px;max-height:82vh;border-radius:18px}.auth-help-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 18px 14px 24px;flex:none}.auth-help-head h3{margin:2px 0 0;font-size:21px;letter-spacing:-.5px}.auth-help-eyebrow{font-size:10.5px;letter-spacing:1.2px;text-transform:uppercase;color:var(--accent);font-weight:700}.auth-help-tabs{display:flex;gap:3px;padding:0 20px 12px;border-bottom:1px solid var(--border);flex:none}.auth-help-tabs button{padding:7px 11px;border-radius:8px;font-size:12.5px;color:var(--text-secondary)}.auth-help-tabs button:hover{background:var(--hover);color:var(--text)}.auth-help-tabs button.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.auth-help-body{overflow-y:auto;padding:18px 22px 24px}.auth-help-desktop-note{display:flex;gap:10px;align-items:flex-start;background:var(--accent-soft);border-radius:10px;padding:11px 13px;color:var(--text-secondary);font-size:12.5px;line-height:1.45;margin-bottom:14px}.auth-help-desktop-note svg{color:var(--accent);flex:none;margin-top:1px}.auth-help-steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.auth-help-steps li{display:flex;gap:13px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--border)}.auth-help-steps li:last-child{border-bottom:0}.auth-help-step-icon{width:38px;height:38px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}.auth-help-steps b{font-size:13.5px;display:block;margin-bottom:3px}.auth-help-steps p{margin:0;font-size:12.5px;color:var(--text-secondary);line-height:1.5}.auth-help-platforms{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.auth-help-platforms span{font-size:11px;color:var(--text-tertiary);background:var(--bg-secondary);border-radius:7px;padding:4px 8px}.auth-help-safety{text-align:center;padding:10px 4px 0}.auth-help-safety-icon{width:62px;height:62px;border-radius:50%;background:#4fae4e1f;color:var(--green);display:flex;align-items:center;justify-content:center;margin:0 auto 12px}.auth-help-safety h4{margin:0 0 8px;font-size:17px}.auth-help-safety p{font-size:13px;line-height:1.55;color:var(--text-secondary);max-width:440px;margin:0 auto 12px}.auth-help-note{display:flex;gap:8px;align-items:flex-start;text-align:left;background:#e5484d14;border:1px solid rgba(229,72,77,.2);border-radius:10px;padding:11px 13px;font-size:12px;line-height:1.45;color:var(--danger);margin-top:14px}.auth-help-note svg{flex:none;margin-top:1px}@media(max-width:1180px){.sidebar{width:360px}.info-panel{width:320px}}@media(max-width:980px){.sidebar{width:320px}.auth-brand{padding:30px 34px}.auth-brand h1{font-size:36px}.info-panel{position:fixed;right:0;top:0;bottom:0;width:min(360px,92vw);box-shadow:var(--shadow-lg)}.info-backdrop{display:block;position:fixed;inset:0;background:#00000059;z-index:29}}@media(max-width:860px){.auth{grid-template-columns:1fr}.auth-brand{display:none}.auth-main{padding:24px 20px;align-items:flex-start;padding-top:max(30px,calc(18px + var(--safe-top)))}.auth-card{max-width:440px;margin:0 auto}.auth-mobile-brand{display:flex}.auth-tabs{margin-bottom:18px}.qr-frame,.qr-skeleton{width:min(280px,76vw);height:min(280px,76vw)}.auth-help-modal{width:100%;max-height:88vh;border-radius:16px}.auth-help-head{padding:18px 14px 10px 18px}.auth-help-head h3{font-size:18px}.auth-help-body{padding:14px 16px 20px}.auth-help-tabs{padding:0 14px 10px}.app{position:relative}.sidebar{width:100%;border-right:0;position:absolute;inset:0;z-index:10;transition:transform .24s ease}.app.chat-active .sidebar{transform:translate(-14%);opacity:0;pointer-events:none}.chat-view{position:absolute;inset:0;width:100%;z-index:9}.app:not(.chat-active) .chat-view{display:none}.mobile-back{display:inline-flex}.messages{padding:10px 10px 6px}.bubble{max-width:84%}.composer{padding:6px 8px calc(8px + var(--safe-bottom))}.emoji-popover{right:8px;left:8px;width:auto}.settings-modal{width:100%;height:100%;max-height:100%;border-radius:0;flex-direction:column}.settings-nav{width:100%;border-right:0;border-bottom:1px solid var(--border);padding:8px;flex-direction:row;align-items:center;overflow-x:auto;flex:none}.settings-profile-mini,.settings-logout{display:none}.settings-nav nav{flex-direction:row;gap:4px}.settings-nav nav button{white-space:nowrap;height:36px;padding:0 12px;font-size:12.5px}.settings-nav nav button .nav-dot{display:none}.settings-content{flex:1;min-height:0}.settings-pane{padding:18px 16px 30px}.modal-backdrop{padding:0}.small-modal{width:100%;height:auto;align-self:flex-end;border-radius:18px 18px 0 0;max-height:min(86vh,100%);padding-bottom:var(--safe-bottom)}.modal-head h3{font-size:17px}.modal-backdrop:has(.small-modal){align-items:flex-end}.modal-backdrop:has(.confirm-modal){padding:20px}.settings-head{min-height:calc(52px + var(--safe-top));padding-top:var(--safe-top)}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:span 1}.theme-cards,.wallpaper-cards{grid-template-columns:repeat(3,1fr)}.about-grid{grid-template-columns:1fr 1fr}.profile-hero{margin-bottom:20px}.composer-context{margin-bottom:6px}.chat-head{height:56px;padding:6px}.chat-head-actions .icon-btn:nth-child(2){display:none}.chat-head-actions .icon-btn{width:36px;height:36px}.header-dropdown{top:calc(100% - 4px);right:6px}.scroll-down{bottom:82px;right:14px}.chat-search-bar{padding:0 8px}.info-panel{width:100%;border-left:0}.toasts{bottom:calc(88px + var(--safe-bottom))}.auth-footer{margin-top:22px}}@media(max-width:520px){.auth-form h2{font-size:25px}.auth-main{padding:20px 16px}.auth-mobile-brand{margin-bottom:20px}.otp{gap:6px}.otp input{height:52px;font-size:20px;border-radius:10px}.sidebar-head{height:56px;padding:7px 8px}.chat-list{padding:0 4px 80px}.chat-item{padding:6px 7px;height:70px;gap:10px}.new-message-fab{right:16px;width:50px;height:50px}.drawer{width:min(310px,86vw)}.bubble{max-width:88%}.messages{padding:8px 8px 4px}.composer-row{gap:3px}.composer-icon{width:36px;height:36px}.send-btn{width:43px;height:43px}.composer-input{padding-left:6px}.emoji-popover{height:280px}.emoji-grid{grid-template-columns:repeat(7,1fr)}.emoji-grid button{font-size:21px;height:33px}.theme-cards,.wallpaper-cards{gap:7px}.toasts{bottom:calc(80px + var(--safe-bottom))}.image-viewer{padding:calc(54px + var(--safe-top)) 0 calc(8px + var(--safe-bottom))}.image-viewer img{max-width:100vw;max-height:82vh}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}@media(max-width:860px){.sidebar-head,.chat-head{height:calc(56px + var(--safe-top));padding-top:calc(7px + var(--safe-top))}.archive-head{height:calc(52px + var(--safe-top));padding-top:calc(7px + var(--safe-top))}.settings-head{min-height:calc(52px + var(--safe-top));padding-top:var(--safe-top)}}@media(max-width:860px){html,body,#root{height:100%;overflow:hidden;overflow:clip;overscroll-behavior:none}.app{position:fixed;top:var(--app-top, 0px);right:0;bottom:auto;left:0;height:var(--app-height, 100%);width:100%}}html[data-native-ios]{--safe-top: max(env(safe-area-inset-top, 0px), 59px);--safe-bottom: max(env(safe-area-inset-bottom, 0px), 34px)}html{-webkit-tap-highlight-color:transparent}.chat-head,.sidebar-head,.chat-filters,.chat-item,.chat-head-actions,.composer-icon{-webkit-touch-callout:none}.chat-head,.sidebar-head,.chat-item{user-select:none}html[data-keyboard=open] .composer{padding-bottom:6px}[data-phone]{--phone-glass: color-mix(in srgb, var(--panel) 85%, transparent);--phone-rule: color-mix(in srgb, var(--text-secondary) 30%, transparent);--phone-bottom: calc(80px + var(--safe-bottom))}[data-phone=ios]{--accent: #007aff}[data-theme=dark] [data-phone=ios]{--accent: #5babff}[data-phone=android]{font-family:Roboto,var(--font)}.phone-header,.phone-page-title{flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:calc(48px + var(--safe-top));padding:var(--safe-top) 12px 0;margin:0}.phone-header>:first-child{justify-self:start}.phone-header>:last-child{justify-self:end}.phone-header h1,.phone-page-title,.phone-settings .settings-head h2{margin:0;font-size:17px;line-height:24px;font-weight:650}.phone-header button{color:var(--accent);min-height:44px}.phone-edit{font-size:16px}.phone-search{height:36px;flex:none;display:flex;align-items:center;gap:7px;border-radius:11px;margin:5px 14px 9px;padding:0 11px;background:var(--bg-secondary);color:var(--text-secondary)}.phone-search input{min-width:0;flex:1;font-size:16px}.phone-search input::-webkit-search-cancel-button{display:none}.phone-search button{display:grid;place-items:center;min-width:36px;height:36px}.phone-connection{color:var(--text-secondary);font-size:13px;text-align:center;padding:2px 0 6px}.phone-home .chat-list{padding:0 0 var(--phone-bottom)}.phone-chat-row{display:flex;align-items:stretch}.phone-chat-row .chat-item{flex:1;min-width:0;height:75px;padding:6px 14px 6px 10px;border-radius:0;margin:0;gap:11px}.phone-chat-row .chat-item:after,.phone-contact:after,.phone-archive:after{content:"";position:absolute;bottom:0;left:75px;right:0;height:1px;background:var(--phone-rule);transform:scaleY(.5)}.phone-chat-row .chat-item-title{font-size:17px;letter-spacing:-.25px}.phone-chat-row .chat-item-time{font-size:13px}.phone-chat-row .chat-item-preview{display:block;font-size:15px;line-height:20px;overflow:hidden}.phone-chat-row .preview-tick{vertical-align:-2px;margin-right:3px}.phone-chat-row .preview-channel{display:none}.phone-pin{flex:none;width:44px;color:var(--text-secondary)}.phone-pin[aria-pressed=true]{color:var(--accent)}.phone-section-caption{padding:6px 15px;background:var(--bg-secondary);font-size:13px;color:var(--text-secondary)}.phone-archive,.phone-contact{width:100%;display:flex;align-items:center;gap:12px;text-align:left;min-height:64px;padding:5px 14px 5px 10px;position:relative}.phone-archive>span{width:54px;height:54px;border-radius:50%;flex:none;background:var(--text-tertiary);color:#fff;display:grid;place-items:center}.phone-archive>div,.phone-contact>span{flex:1;display:grid;gap:3px;min-width:0}.phone-archive strong,.phone-contact strong{font-weight:600;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-archive small,.phone-contact small{color:var(--text-secondary);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phone-archive>svg{color:var(--text-tertiary)}.phone-empty{flex:1;display:grid;align-content:center;justify-items:center;padding:16px 30px var(--phone-bottom);text-align:center}.phone-empty svg,.phone-empty p{color:var(--text-secondary)}.phone-empty h2{font-size:19px;margin:12px 0 0}.phone-empty p{margin:6px 0}.phone-tabs{position:absolute;z-index:3;left:50%;bottom:max(8px,var(--safe-bottom));transform:translate(-50%);width:min(calc(100% - 32px),410px);display:flex;padding:4px;background:var(--phone-glass);border-radius:36px;border:1px solid color-mix(in srgb,var(--panel) 60%,var(--phone-rule));box-shadow:0 2px 14px #0002,inset 0 1px 1px #fff3;-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%)}.phone-tabs button{flex:1;min-width:0;height:50px;border-radius:27px;display:grid;justify-items:center;align-content:center;gap:2px;font-size:11px;font-weight:550}.phone-tabs button>span{position:relative;display:flex}.phone-tabs button[aria-current]{color:var(--accent);background:var(--accent-soft)}.phone-tabs b{position:absolute;left:70%;top:-3px;font-size:10px;color:#fff;background:#ed4946;border-radius:12px;min-width:16px;padding:1px 4px}[data-keyboard=open] .phone-tabs{display:none}.phone-home .new-message-fab{bottom:var(--phone-bottom)}[data-phone=android] .phone-header{display:flex;justify-content:space-between;min-height:calc(56px + var(--safe-top))}[data-phone=android] .phone-header>span:empty{display:none}[data-phone=android] .phone-header h1{font-size:22px;margin-inline:4px auto}[data-phone=android] .phone-header .icon-btn{color:var(--text-secondary)}[data-phone=android] .phone-search{border-radius:24px;height:42px}[data-phone=android] .phone-tabs{width:min(calc(100% - 40px),370px)}[data-phone=android] .phone-chat-row .chat-item-title{font-size:16px}[data-phone=android] .phone-chat-row .chat-item{height:72px}.phone-settings{flex:1;min-height:0}.phone-settings .modal{animation:none;box-shadow:none}.phone-settings .settings-nav,.phone-settings .show-index .settings-content{display:none}.phone-settings .show-index .settings-nav{display:flex;flex-flow:column nowrap;align-items:stretch;height:100%;border:0;overflow-y:auto;padding:0 16px var(--phone-bottom);background:var(--bg-secondary)}.phone-page-title{display:grid;grid-template-columns:1fr;text-align:center}.phone-settings .settings-profile-mini{display:flex;flex-direction:column;border:0;text-align:center;margin:12px 0 20px}.phone-settings .settings-profile-mini b{font-size:21px}.phone-settings .settings-profile-mini span{font-size:14px}.phone-settings .settings-profile-mini .avatar span{color:#fff}.phone-settings .settings-nav nav{flex-direction:column;background:var(--panel);border-radius:14px;padding:0 12px;gap:0}.phone-settings .settings-nav nav button{height:49px;border-radius:0;background:none;color:var(--text);font-size:16px;font-weight:400;padding:0 2px}.phone-settings .settings-nav nav button+button{border-top:1px solid var(--border)}.phone-settings .settings-nav nav svg:first-child{background:var(--accent);color:#fff;border-radius:7px;padding:4px;width:27px;height:27px}.phone-settings .settings-nav nav button:nth-child(2) svg:first-child{background:#ef5350}.phone-settings .settings-nav nav button:nth-child(3) svg:first-child{background:#9066db}.phone-settings .settings-nav nav button:nth-child(5) svg:first-child{background:#36a575}.phone-settings .settings-nav nav .settings-chevron{margin-left:auto;color:var(--text-tertiary)}.phone-settings .settings-logout{display:flex;margin:18px 0 0;min-height:48px;background:var(--panel);font-size:16px}.phone-settings .settings-head{position:relative;justify-content:center}.phone-settings .settings-head .icon-btn{position:absolute;left:4px;color:var(--accent)}.phone-settings .settings-pane{padding-bottom:var(--phone-bottom)}.phone-settings .settings-scroll{scroll-padding-bottom:var(--phone-bottom)}.phone-settings .settings-profile-mini,.phone-settings .settings-nav nav,.phone-settings .settings-logout{flex:none}[data-phone] .info-head{height:calc(50px + var(--safe-top));padding-top:var(--safe-top)}[data-phone] .info-scroll{padding-bottom:calc(24px + var(--safe-bottom))}[data-phone] .composer-input textarea{font-size:max(16px,var(--msg-font-size))}[data-phone] .composer-input{border-radius:23px}[data-phone] .messages{padding-inline:8px}[data-phone] .bubble:not(.no-bubble){border-radius:16px}[data-phone] .bubble.incoming:not(.no-bubble){border-bottom-left-radius:5px}[data-phone] .bubble.outgoing:not(.no-bubble){border-bottom-right-radius:5px}[data-phone=ios] .chat-head{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:none;padding-inline:8px;justify-content:space-between}[data-phone=ios] .chat-head-profile,[data-phone=ios] .chat-head .mobile-back,[data-phone=ios] .chat-head-actions,[data-phone=ios] .composer-row>.composer-icon,[data-phone=ios] .mic-btn,[data-phone=ios] .composer-input{background:var(--phone-glass);box-shadow:0 1px 5px #0002;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}[data-phone=ios] .chat-head-profile{flex:0 1 auto;max-width:calc(100% - 108px);padding:3px 13px 3px 5px;border-radius:26px}[data-phone=ios] .chat-head-profile .avatar{zoom:.84}[data-phone=ios] .chat-head-info{align-items:center}[data-phone=ios] .chat-head-title{display:block;max-width:100%;font-size:16px}[data-phone=ios] .chat-head-actions,[data-phone=ios] .mobile-back{border-radius:50%}[data-phone=ios] .chat-head-actions>button:first-child{display:none}[data-phone=ios] .chat-head-actions .icon-btn,[data-phone=ios] .mobile-back{width:44px;height:44px;color:var(--accent)}[data-phone=ios] .composer{border:0;background:transparent;padding-inline:6px}[data-phone=ios] .composer-row{gap:6px;align-items:flex-end}[data-phone=ios] .composer-row>.composer-icon,[data-phone=ios] .mic-btn{border-radius:50%;width:43px;height:43px;margin:0;color:var(--text-secondary)}[data-phone=ios] .composer-input{padding-block:2px}[data-phone=android] .composer{background:var(--panel)}[data-phone=android] .composer-input{background:transparent;border:none}[data-phone=ios] .phone-dock{position:absolute;z-index:3;inset-inline:16px;bottom:max(12px,calc(var(--safe-bottom) * .58));display:flex;align-items:stretch;justify-content:center;gap:8px}[data-phone=ios] .phone-tabs{position:static;transform:none;width:auto;flex:1;max-width:370px;padding:3px}[data-phone=ios] .phone-tabs button{height:54px}[data-phone=ios] .phone-tabs button[aria-current]{background:color-mix(in srgb,var(--text) 12%,transparent)}.phone-find,[data-phone=ios] .phone-header button,.phone-settings-title .phone-edit,[data-phone=ios] .info-head button{border-radius:28px;background:var(--phone-glass);border:1px solid var(--phone-rule);color:var(--text)}.phone-find{flex:none;width:61px;border-radius:50%;display:grid;place-items:center;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}[data-keyboard=open] [data-phone=ios] .phone-dock{display:none}.phone-header h1{display:flex;align-items:center;gap:6px}.phone-header h1 svg{color:var(--accent)}[data-phone=ios] .phone-header{padding-inline:16px;min-height:calc(51px + var(--safe-top))}.phone-edit{padding-inline:13px}.phone-segments{flex:none;display:flex;gap:2px;margin:5px 16px;padding:3px;border:1px solid var(--phone-rule);border-radius:22px;background:var(--bg-secondary)}.phone-segments button{flex:1;border-radius:19px;min-height:32px;font-size:14px}.phone-segments button[aria-pressed=true]{background:color-mix(in srgb,var(--text) 15%,var(--panel));font-weight:600}.phone-segments b{font-size:11px;padding:1px 5px;margin-left:4px;color:#fff;background:var(--accent);border-radius:10px}[data-phone=ios] .phone-chat-row .chat-item{height:76px;padding-inline:14px}[data-phone=ios] .chat-item .avatar{width:60px!important;height:60px!important;min-width:60px!important}[data-phone=ios] .phone-chat-row .chat-item-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;line-height:18px}[data-phone=ios] .phone-chat-row .chat-item:after{left:85px}[data-phone=ios] .chat-item-badges:empty{display:none}[data-phone=ios] .phone-contact{min-height:54px}[data-phone=ios] .phone-contact>.avatar{zoom:.9}[data-phone=ios] .phone-search{border-radius:22px;height:44px}[data-phone=ios] .phone-settings-title{display:flex;justify-content:flex-end;padding-top:var(--safe-top);height:0;position:relative;z-index:1}[data-phone=ios] .phone-settings-title h1{position:absolute;clip-path:inset(50%)}.phone-settings-title .phone-edit{height:44px}[data-phone=android] .phone-settings-title .phone-edit{display:none}[data-phone=ios] .settings-profile-mini{padding-top:12px;margin:0 0 32px;gap:10px}[data-phone=ios] .settings-profile-mini b{font-size:26px}[data-phone=ios] .settings-profile-mini>div:last-child>span{font-size:16px}[data-phone=ios] .phone-settings .settings-nav nav,[data-phone=ios] .info-card{border-radius:23px}[data-phone=ios] .info-panel{position:absolute;inset:0}[data-phone=ios] .info-head{position:absolute;top:var(--safe-top);left:16px;z-index:1;height:44px;border:0;padding:0}[data-phone=ios] .info-head b,[data-phone=ios] .info-head>span{display:none}[data-phone=ios] .info-hero{padding:calc(var(--safe-top) + 12px) 16px 30px}[data-phone=ios] .info-hero h3{font-size:26px}[data-phone=ios] .info-actions{gap:8px;margin:0 16px 28px;padding:0}[data-phone=ios] .info-actions button{background:var(--bg-secondary);border:none;border-radius:15px;min-height:58px;color:var(--accent)}[data-phone=ios] .info-card{margin-inline:16px;background:var(--bg-secondary)}[data-phone=ios] .info-section{margin:0;padding:0;background:transparent;border:0}[data-phone=ios] .profile-media-tabs{margin:16px}[data-phone=ios] .media-grid{gap:2px}[data-phone=ios] .media-grid button{border-radius:0}.media-grid video{width:100%;height:100%;object-fit:cover}[data-phone=ios] .chat-head{position:absolute;inset:0 0 auto;height:calc(var(--safe-top) + 50px);padding:var(--safe-top) 16px 0;pointer-events:none}[data-phone=ios] .chat-head>*{pointer-events:auto}[data-phone=ios] .chat-head .mobile-back{width:auto;min-width:44px;gap:0;padding:0 8px;border-radius:24px;color:var(--text)}.back-count{background:var(--text);color:var(--panel);font-size:12px;font-weight:600;line-height:18px;padding:0 6px;border-radius:10px}[data-phone=ios] .chat-head-profile{position:absolute;left:50%;transform:translate(-50%);justify-content:center;width:46%;max-width:calc(100% - 180px);height:44px;padding:3px 10px}[data-phone=ios] .chat-head-actions{display:none}.chat-head-avatar{margin-left:auto;padding:2px;background:var(--phone-glass);border-radius:50%}[data-phone=ios] .messages{padding-top:calc(var(--safe-top) + 53px)}[data-phone=ios] .chat-search-bar{margin-top:calc(var(--safe-top) + 52px)}[data-phone=ios] .chat-search-bar+.messages{padding-top:6px}[data-phone=ios] .bubble-text:not(.emoji-only){font-size:calc(var(--msg-font-size) + 2px);line-height:1.28}[data-phone=ios] .bubble:has(.bubble-text):not(.no-bubble){max-width:91%;box-shadow:none}[data-phone=ios] .bubble-text:not(.emoji-only):after{content:"";display:inline-block;width:44px}[data-phone=ios] .bubble-text:has(+.bubble-meta .edited):after{width:98px}[data-phone=ios] .bubble-text:not(.emoji-only)+.bubble-meta{position:absolute;bottom:6px;right:7px;padding:0;gap:2px}[data-phone=ios] .message-row{margin-block:1.5px}[data-phone=ios] .composer{padding:6px 8px max(8px,var(--safe-bottom))}[data-phone=ios] .composer-input{padding:0 3px 0 8px;align-items:center}[data-phone=ios] .composer .emoji-btn{margin:0}[data-phone=ios] .composer textarea{font-size:17px}[data-keyboard=open] [data-phone=ios] .composer{padding-bottom:7px}[data-phone=ios] .sticker-popover,[data-phone=ios] .emoji-popover{position:relative;inset:auto;margin:8px -8px 0;width:calc(100% + 16px);max-width:none;height:min(31dvh,280px);border-radius:18px 18px 0 0;background:var(--bg-secondary)}.phone-picker-tabs{display:flex;align-items:center;justify-content:center;padding:4px;gap:4px;background:var(--bg-secondary);margin-inline:-8px}.phone-picker-tabs button{min-height:38px;border-radius:20px;padding:0 14px}.phone-picker-tabs button[aria-pressed=true]{background:var(--bg-tertiary)}.attachment-sheet .small-modal{background:var(--bg-secondary)}.attachment-choices{display:flex;gap:10px;padding:14px}.attachment-choices button{flex:1;border-radius:15px;display:grid;gap:8px;justify-items:center;padding:16px;color:var(--accent);background:var(--panel)}[data-theme=dark] [data-phone=ios]{color-scheme:dark;--bg: #000;--panel: #000;--text: #fff;--text-secondary: #99999e;--text-tertiary: #8e8e93;--bg-secondary: #1c1c1e;--bg-tertiary: #363638;--border: #29292b;--accent: #408cff;--phone-glass: rgb(32 32 33 / 81%);--phone-rule: rgb(150 150 155 / 24%);--chat-bg: #08070b;--in-bg: #25232f;--out-bg: #9551db;--meta-out: #ead6fc;--out-text: white}[data-theme=dark] [data-phone=ios] .show-index .settings-nav{background:var(--bg)}[data-theme=dark] [data-phone=ios] .settings-nav nav,[data-theme=dark] [data-phone=ios] .settings-logout{background:var(--bg-secondary)}[data-theme=dark] [data-phone=ios] .composer-input,[data-theme=dark] [data-phone=ios] .composer-row>.composer-icon,[data-theme=dark] [data-phone=ios] .mic-btn,[data-theme=dark] [data-phone=ios] .chat-head-profile,[data-theme=dark] [data-phone=ios] .mobile-back{border:1px solid var(--phone-rule)}[data-theme=dark] [data-phone=ios] .bubble.outgoing:not(.no-bubble):not(.sticker-bubble):not(.round-video-bubble){background:linear-gradient(160deg,#a04ed3,#8251e4)}[data-theme=dark] [data-phone=ios] .bubble.incoming:not(.no-bubble):not(.sticker-bubble):not(.round-video-bubble){background:linear-gradient(110deg,#362830,#202332)}[data-theme=dark] [data-phone=ios] .tick.read{color:#eedafa}[data-theme=dark] [data-phone=ios] .incoming .reply-block{background:#85644829}[data-theme=dark] [data-phone=ios] .incoming .reply-bar{background:#db913b}[data-theme=dark] [data-phone=ios] .incoming .reply-body b{color:#e49f4f}[data-wallpaper=telegram] [data-phone] .chat-view{background-image:none}[data-wallpaper=telegram] [data-phone] .chat-view:before{content:"";position:absolute;inset:0;pointer-events:none;mask:url(/phone-wallpaper.svg) repeat;-webkit-mask:url(/phone-wallpaper.svg) repeat;background:linear-gradient(140deg,#755a34,#46886e,#537694);opacity:.16}[data-theme=dark][data-wallpaper=telegram] [data-phone] .chat-view:before{background:linear-gradient(115deg,#cb815c,#aa67a0,#627aa8);opacity:.25}[data-phone=ios] .chat-view>.composer{position:absolute;inset:auto 0 0;isolation:isolate;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}[data-phone=ios] .messages{padding-bottom:calc(var(--composer-height, 80px) + 4px)}[data-phone=ios] .chat-head:before,[data-phone=ios] .composer:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,rgb(0 0 0 / .42),transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);mask-image:linear-gradient(to bottom,black 25%,transparent);-webkit-mask-image:linear-gradient(to bottom,black 25%,transparent)}[data-phone=ios] .composer:before{background:linear-gradient(to top,rgb(0 0 0 / .45),transparent);mask-image:linear-gradient(to top,black,transparent 82%);-webkit-mask-image:linear-gradient(to top,black,transparent 82%)}[data-phone=ios] .scroll-down{bottom:calc(var(--composer-height, 80px) + 6px)}[data-phone=ios] .composer-input{background:color-mix(in srgb,var(--bg-secondary) 73%,transparent)}[data-phone=ios] .chat-head-title{display:flex}[data-phone=ios] .chat-head-profile{width:max-content;min-width:32%;max-width:53%}.phone-pages{display:flex;width:100%;height:100%;overflow:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}.phone-pages::-webkit-scrollbar{display:none}.chat-active .phone-pages{overflow-x:auto}.phone-pages>.phone-home,.phone-pages>.chat-view{position:relative;inset:auto;flex:0 0 100%;min-width:0;width:100%;scroll-snap-align:start;scroll-snap-stop:always}.app.chat-active .phone-pages>.phone-home{transform:none;opacity:1;transition:none}.chat-active .phone-pages:has(.image-viewer,.modal-backdrop,.dropdown,.sticker-popover,.emoji-popover){overflow-x:hidden}.phone-pages .messages{touch-action:auto;overscroll-behavior-y:contain}.phone-pages .composer,.phone-pages .chat-head{touch-action:pan-y}.phone-pages .messages{overscroll-behavior-x:auto}[data-phone=ios] .saved-head .chat-head-actions{display:flex;border-radius:24px}[data-phone=ios] .saved-head .chat-head-actions>button:first-child{display:inline-flex}[data-phone=ios] .saved-head .chat-head-profile{min-width:0;max-width:calc(100% - 182px)}.photo-album{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:min(78%,390px);margin:3px auto 3px 0;padding:2px;overflow:hidden;border-radius:16px;background:var(--in-bg)}.photo-album[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-album.own{margin-inline:auto 0;background:var(--out-bg)}.photo-album>div{min-width:0}.photo-album .message-row{margin:0;display:block}.photo-album .message-avatar,.photo-album .bubble-sender{display:none}.photo-album .message-row .bubble{display:block;min-width:0;width:100%;max-width:none;height:100%;padding:0;border-radius:0;overflow:hidden;box-shadow:none}.photo-album .bubble .msg-photo{display:block;width:100%;margin:0;border-radius:0}.photo-album .msg-photo img{width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:0}.photo-album>:not(:last-child) .bubble-meta{display:none}.photo-album .bubble-meta{background:#0007;border-radius:8px;color:#fff;position:absolute;right:3px;bottom:4px;padding:2px 4px}[data-phone] .photo-gallery{position:fixed;inset:0;z-index:1200;background:transparent;color:#fff;display:grid;place-items:center;padding:0;overflow:hidden}.gallery-backdrop{position:absolute;inset:0;background:#000;pointer-events:none}.photo-gallery[data-settling] .gallery-track{transition:transform .2s cubic-bezier(.2,.72,.25,1)}.photo-gallery[data-settling] :is(.gallery-backdrop,header,footer){transition:opacity .18s ease-out}@media(prefers-reduced-motion:reduce){.photo-gallery[data-settling] :is(.gallery-track,.gallery-backdrop,header,footer){transition:none}}.photo-gallery .gallery-image{position:absolute;inset:0;touch-action:none;user-select:none;-webkit-touch-callout:none;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:0;box-shadow:none}.photo-gallery header,.photo-gallery footer{position:absolute;left:16px;right:16px}.photo-gallery header,.gallery-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.photo-gallery header{top:calc(var(--safe-top) + 5px)}.photo-gallery footer{bottom:max(15px,var(--safe-bottom))}.photo-gallery header button,.gallery-actions button,.photo-gallery header>div{border-radius:30px;background:#252527db;color:#fff;border:1px solid #ffffff26;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.photo-gallery header button,.gallery-actions button{width:44px;height:44px;display:grid;place-items:center}.photo-gallery header>div{min-width:0;padding:4px 20px;text-align:center;display:grid}.photo-gallery header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}.photo-gallery header small{color:#aaa}.gallery-strip{position:relative;display:flex;width:max-content;max-width:100%;margin:0 auto 16px;overflow-x:auto;gap:2px;scrollbar-width:none}.gallery-strip button{flex:none;opacity:.65}.gallery-strip button[aria-current=true]{opacity:1}.photo-gallery .gallery-strip img{display:block;height:32px;width:30px;object-fit:cover;border-radius:0}.gallery-strip button[aria-current=true] img{width:48px}.gallery-dismiss{position:absolute;inset:0}.gallery-menu{position:absolute;top:calc(var(--safe-top) + 56px);right:16px;border-radius:22px;padding:7px;min-width:216px;background:#232225db;border:1px solid #ffffff26;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}.gallery-menu button{display:flex;align-items:center;width:100%;gap:14px;padding:0 14px;height:44px;font-size:16px}.gallery-menu svg{width:19px}.gallery-menu .danger{color:#ff453a}.msg-video-open{position:relative;width:min(64vw,320px);max-height:45vh;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#18212a;color:#fff}.msg-video-open img,.shared-video-preview img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.msg-video-open span,.video-transport button{display:grid;place-items:center;border-radius:50%;background:#1c1c1fc4;border:1px solid #ffffff36;color:#fff}.msg-video-open span{width:48px;height:48px;z-index:1}.msg-video-open small{position:absolute;left:8px;bottom:8px;padding:2px 5px;border-radius:5px;background:#0009}.shared-video-preview{position:relative;width:100%;height:100%;display:grid;place-items:center;background:#18212a;color:#fff}.shared-video-preview svg{position:relative}[data-phone] .video-viewer{background:#000}.video-viewer>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.video-viewer header>span{width:44px}.video-transport{position:relative;display:flex;align-items:center;gap:min(8vw,42px);color:#fff}.video-transport>button{position:relative;width:52px;height:52px}.video-transport>button:nth-child(2){width:78px;height:78px}.video-transport button:nth-child(2) svg{width:32px;height:32px}.video-transport button small{position:absolute;font-size:10px}.video-transport [role=status]{padding:14px;text-align:center}.video-transport [role=status] button{margin:10px auto;padding:8px 18px;border-radius:16px}.video-timeline,.video-options{background:#202022dc;border:1px solid #ffffff26;border-radius:24px;color:#fff}.video-timeline{padding:10px 15px;margin-bottom:10px;text-align:center;font-variant-numeric:tabular-nums}.video-timeline label,.video-options{display:flex;align-items:center;gap:10px}.video-timeline input{flex:1;min-width:0;accent-color:white}.video-timeline label span{font-size:13px}.video-options{padding:0 6px}.gallery-actions .video-options button{border:0;background:transparent;backdrop-filter:none}.gallery-track{--photo-gap: 40px;position:absolute;inset:0;column-gap:var(--photo-gap);touch-action:none}.gallery-track .gallery-image{pointer-events:none}.gallery-image[data-position="-1"]{transform:translate(calc(-100% - var(--photo-gap)))}.gallery-image[data-position="1"]{transform:translate(calc(100% + var(--photo-gap)))}.photo-gallery header .gallery-count{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);border:1px solid #ffffff26;padding:3px 10px;border-radius:14px;color:#fff;background:#202022cf;font-size:12px;font-variant-numeric:tabular-nums}.gallery-caption{max-height:14vh;overflow-y:auto;margin:0 0 12px;color:#fff;text-shadow:0 1px 4px black;white-space:pre-wrap;overflow-wrap:anywhere}.message-row .album-bubble{width:min(78%,450px);max-width:calc(100% - 46px);padding:3px;overflow:hidden}.album-bubble .bubble-sender,.album-bubble .forwarded-label,.album-bubble .photo-caption{padding:5px 8px}.album-mosaic{display:grid;gap:2px;overflow:hidden;border-radius:9px}.album-line{display:flex;gap:2px;min-height:0}.album-tile{padding:0;flex-basis:0;min-width:0;position:relative;overflow:hidden}.album-tile img,.album-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.album-mosaic[data-shape=stack]{grid-template-rows:repeat(2,1fr);aspect-ratio:1.12}.album-mosaic:is([data-shape=top],[data-shape=left]){aspect-ratio:1.22}.album-mosaic:not([data-shape=rows]) .album-line{display:contents}.album-mosaic[data-shape=top]{grid-template:1.55fr 1fr / repeat(2,1fr)}.album-mosaic[data-shape=top][data-size="4"]{grid-template-columns:repeat(3,1fr)}.album-mosaic[data-shape=top] .album-line:first-child>:first-child{grid-column:1 / -1}.album-mosaic[data-shape=left]{grid-template:repeat(2,1fr) / 1.2fr 1fr}.album-mosaic[data-shape=left][data-size="4"]{grid-template-rows:repeat(3,1fr)}.album-mosaic[data-shape=left] .album-line:first-child>:first-child{grid-row:1 / -1}.album-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);color:#fff;filter:drop-shadow(0 1px 3px black)}.album-bubble .bubble-meta{padding:0 6px 2px}.desktop-gallery[open]{position:fixed;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;margin:0;padding:0;width:100%;height:100%;max-width:none;max-height:none;border:0;overflow:hidden;background:#121316;color:#fff;animation:viewer-open .15s ease-out}.desktop-gallery::backdrop{background:#121316}.desktop-gallery[data-closing]{animation:viewer-close .14s ease-in forwards}.desktop-gallery header{display:flex;align-items:center;gap:12px;padding:10px 18px}[data-desktop=mac] .desktop-gallery header{padding-left:86px;-webkit-app-region:drag}.desktop-gallery header :is(button,a){-webkit-app-region:no-drag}.desktop-gallery header div{display:grid;gap:2px;margin-right:auto;min-width:0}.desktop-gallery strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.desktop-gallery small,.desktop-gallery header span{color:#c1c1c4;font-size:13px}.desktop-gallery :is(header button,header a,.gallery-prev,.gallery-next){width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff}.desktop-gallery :is(button,a):hover{background:#ffffff20}.desktop-gallery-stage{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden}.desktop-gallery-frame{position:absolute;inset:0 60px;display:grid;place-items:center;pointer-events:none}.desktop-gallery-frame img,.desktop-gallery-frame video{max-width:100%;max-height:100%;min-height:0;object-fit:contain;pointer-events:auto;user-select:none}.desktop-gallery-frame img{touch-action:none}.desktop-gallery-frame[data-direction="1"]{animation:viewer-page .19s ease-out;--shift: 48px}.desktop-gallery-frame[data-direction="-1"]{animation:viewer-page .19s ease-out;--shift: -48px}.gallery-prev,.gallery-next{position:absolute;top:50%;translate:0 -50%;background:#ffffff14}.gallery-prev{left:10px}.gallery-next{right:10px}.desktop-gallery :is(.gallery-next,.gallery-prev):disabled{visibility:hidden}.desktop-gallery header button:disabled{opacity:.35}.desktop-gallery footer{display:grid;justify-items:center;gap:10px;padding:10px 16px 16px}.desktop-gallery footer p{margin:0;max-width:70ch;max-height:16vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.desktop-filmstrip{display:flex;gap:5px;max-width:100%;overflow-x:auto}.desktop-filmstrip button{display:grid;place-items:center;flex:none;width:50px;height:46px;padding:2px;border:2px solid transparent;border-radius:6px;opacity:.66}.desktop-filmstrip button[aria-current=true]{border-color:#fff;opacity:1}.desktop-filmstrip img{width:100%;height:100%;object-fit:cover;border-radius:2px}@keyframes viewer-open{0%{opacity:0;transform:scale(.98)}}@keyframes viewer-close{to{opacity:0;transform:scale(.98)}}@keyframes viewer-page{0%{opacity:.2;transform:translate(var(--shift))}}@media(prefers-reduced-motion:reduce){.desktop-gallery[open],.desktop-gallery .desktop-gallery-frame{animation:none}}.attachment-tray{display:flex;gap:6px;overflow-x:auto}.attachment-tray .attachment-preview{flex:1 0 auto;max-width:100%}
