:root{--bg: #0a1330;--sidebar: #0d1b3e;--chat: #0a1330;--surface: #142a5c;--hover: #17316b;--active: #1d3f82;--line: #223768;--text: #f8fafc;--muted: #93a5c9;--nav-muted: #93a5c9;--primary: #2563eb;--primary-rgb: 37, 99, 235;--primary-hover: #3b82f6;--accent: #22d3ee;--accent-rgb: 34, 211, 238;--brand-gradient-start: #1d4ed8;--brand-gradient-end: #06b6d4;--bubble-out: #2563eb;--bubble-out-text: #ffffff;--bubble-in: #142a5c;--bubble-in-text: #f8fafc;--chat-head-tint: rgba(8, 15, 38, .32);--topbar-chip: rgba(255, 255, 255, .08);--topbar-chip-border: rgba(255, 255, 255, .12);--topbar-bg: linear-gradient(90deg, var(--brand-gradient-start) 0%, var(--sidebar) 55%, var(--sidebar) 100%);--danger: #ef4444;--success: #22c55e;--warning: #f59e0b;--auth-text: #0f172a;--auth-muted: #64748b;--auth-faint: #94a3b8;--auth-border: #e2e8f0;--auth-surface: #ffffff;--auth-soft: #f8fafc;--sans: "Segoe UI", "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali", "Helvetica Neue", system-ui, sans-serif;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--kb: 0px;--app-height: 100dvh}html{color-scheme:dark}html.theme-light{color-scheme:light}*{box-sizing:border-box}html,body{height:100%;max-height:none;margin:0;overflow:hidden}body{font-family:var(--sans);background:radial-gradient(1200px 700px at 100% 100%,rgba(var(--primary-rgb),.28),transparent 60%),radial-gradient(900px 600px at 0% 0%,rgba(var(--accent-rgb),.1),transparent 55%),var(--bg);color:var(--text)}#app{height:var(--app-height, 100%);max-height:100%;min-height:0;display:grid;grid-template-rows:56px minmax(0,1fr);overflow:hidden}html.native-shell #app{height:100%}#app:has(.auth-wrap){grid-template-rows:minmax(0,1fr)}html.native-shell:not(.app-chrome){--safe-bottom: max(env(safe-area-inset-bottom, 0px), 48px)}html.native-shell .tg-topbar,html.native-shell #new-tab,html.native-shell a[href$=admin]{display:none!important}html.native-shell #app,html.native-shell #app:has(.workspace){grid-template-rows:1fr}html.app-chrome .mobile-tabs{display:none!important}html.app-chrome .pane{grid-template-rows:minmax(0,1fr)!important}input,textarea,select{scroll-margin-top:16px;scroll-margin-bottom:28px}.tg-topbar{display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--topbar-bg);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand>div{min-width:0}.logo{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);color:#fff;display:grid;place-items:center;flex:none;box-shadow:0 4px 14px rgba(var(--primary-rgb),.4)}.logo img{width:70%;height:70%;object-fit:contain;display:block}.brand h1{margin:0;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand p{margin:0;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-topbar{min-height:56px;flex-wrap:wrap;row-gap:6px}.top-actions,.chat-tools,.who,.me-row{display:flex;align-items:center;gap:8px}.top-actions .ghost{display:inline-flex;align-items:center;gap:6px}.top-actions .ghost svg{width:15px;height:15px}.lang-switch{display:inline-flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:2px;gap:2px}.lang-switch button{background:transparent;color:var(--muted);min-width:36px;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.lang-switch button.on{background:var(--primary);color:#fff}.settings-card .lang-switch{justify-self:start;margin-top:4px}.search .assistant-btn,.topbar-search .assistant-btn{flex:0 0 auto;width:30px;height:30px;border-radius:999px;color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}.search .assistant-btn.on,.topbar-search .assistant-btn.on{color:#fff;background:var(--primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 24%,transparent)}.quote-sheet{position:fixed;inset:auto 16px 24px auto;z-index:110;width:min(440px,calc(100% - 32px));pointer-events:none}.quote-card{pointer-events:auto;padding:16px 16px 12px;border-radius:18px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 48px #00000047;text-align:start}.quote-card strong{display:block;margin-bottom:8px}.quote-card pre{margin:0 0 12px;max-height:min(46vh,360px);overflow:auto;white-space:pre-wrap;font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--text)}.assistant-overlay{position:fixed;inset:auto 16px 24px;z-index:120;display:grid;place-items:center;pointer-events:none}.assistant-card{pointer-events:auto;width:min(420px,100%);padding:18px 18px 14px;border-radius:18px;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 48px #00000047;text-align:center}.assistant-card strong{display:block;margin-top:8px;font-size:15px}.assistant-card p{margin:10px 0 14px;color:var(--muted);font-size:13px;line-height:1.45}.assistant-card p.interim,.assistant-card p:not(.hint){color:var(--text)}.assistant-pulse{width:54px;height:54px;margin:0 auto;border-radius:999px;display:grid;place-items:center;color:var(--primary);background:color-mix(in srgb,var(--primary) 14%,transparent);animation:assistantPulse 1.6s ease-in-out infinite}.assistant-pulse svg{width:28px;height:28px}.assistant-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}.assistant-actions .primary{min-width:8.5rem;padding:8px 14px;font-size:13px}@keyframes assistantPulse{0%,to{transform:scale(1);box-shadow:0 0 color-mix(in srgb,var(--primary) 35%,transparent)}50%{transform:scale(1.04);box-shadow:0 0 0 10px transparent}}html.lang-ar .assistant-overlay{inset-inline:16px}html.lang-bn .brand h1,html.lang-bn .conv-head h2{letter-spacing:0}html.lang-bn .nav-item,html.lang-bn .folders button{font-weight:600}html.lang-ar .brand h1,html.lang-ar .conv-head h2{letter-spacing:0}html.lang-ar .nav-item,html.lang-ar .folders button{font-weight:600}html.lang-ar .msg.out,html.lang-ar .msg.in{flex-direction:row-reverse}html.lang-ar .composer{direction:rtl}html.lang-ar .composer input,html.lang-ar .composer textarea,html.lang-ar .settings-card p{text-align:start}html.lang-ar .settings-card p>strong{display:inline-block;min-width:7rem}.theme-switch{display:inline-flex;align-items:center;gap:8px;background:transparent;padding:0}.theme-switch-track{position:relative;width:46px;height:25px;flex:none;border-radius:999px;padding:0 5px;display:flex;align-items:center;background:linear-gradient(135deg,#1d4ed8,#0b1330);box-shadow:inset 0 1px 3px #00000059;transition:background .25s ease}.theme-switch[aria-checked=true] .theme-switch-track{background:linear-gradient(135deg,#7dd3fc,#2563eb)}.theme-switch-icon{position:relative;z-index:1;width:13px;height:13px;display:grid;place-items:center;color:#ffffff8c;transition:color .25s ease}.theme-switch-icon svg{width:100%;height:100%}.theme-switch-icon.sun{margin-right:auto}.theme-switch-icon.moon{margin-left:auto;color:#ffffffd9}.theme-switch[aria-checked=true] .theme-switch-icon.sun{color:#f59e0b}.theme-switch[aria-checked=true] .theme-switch-icon.moon{color:#0f172a73}.theme-switch-thumb{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #0006;transition:transform .25s cubic-bezier(.4,0,.2,1)}.theme-switch[aria-checked=true] .theme-switch-thumb{transform:translate(21px)}.theme-switch-label{font-size:13px;font-weight:600;color:var(--text)}.theme-switch.compact{flex:none}.settings-card .theme-switch{justify-self:start;margin-top:4px}.top-actions .theme-switch{margin-right:2px}button,a.ghost,a.primary{font:inherit;border:0;cursor:pointer;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.ghost,a.ghost{background:transparent;color:var(--accent);padding:7px 10px;border-radius:8px;text-decoration:none}.primary{background:linear-gradient(90deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);color:#fff;padding:7px 12px;border-radius:8px;font-weight:600}button:disabled{opacity:.4;cursor:default}.workspace{min-width:0;min-height:0;height:100%;display:grid;grid-template-columns:1fr}.pane{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(240px,280px) minmax(260px,340px) minmax(0,1fr)}html:not(.compact-ui) .pane.stories-tab .sidebar{display:none}html:not(.compact-ui) .pane.stories-tab .stage{grid-column:2 / -1}.pane.stories-tab .stage>.chat-head,.pane.stories-tab .stage>.composer,.pane.stories-tab .stage>.drop-hint,.pane.stories-tab .stage>.thread{display:none!important}.nav-rail{position:relative;background:radial-gradient(ellipse 70% 34% at 6% 118%,rgba(var(--accent-rgb),.1) 0%,transparent 60%),linear-gradient(180deg,var(--sidebar) 0%,var(--bg) 100%);border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0;min-height:0;padding:4px 0 12px}html.theme-light .nav-rail{background:radial-gradient(ellipse 75% 38% at 4% 120%,rgba(var(--accent-rgb),.32) 0%,transparent 62%),linear-gradient(180deg,var(--sidebar) 0%,var(--bg) 100%)}.nav-collapse-toggle{position:absolute;top:20px;right:-14px;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);border:2px solid var(--sidebar);color:#fff;display:grid;place-items:center;z-index:6;box-shadow:0 2px 10px rgba(var(--primary-rgb),.5)}.nav-collapse-toggle svg{width:14px;height:14px;transition:transform .18s ease}.nav-collapse-toggle:hover{filter:brightness(1.1);box-shadow:0 2px 14px rgba(var(--primary-rgb),.7)}html.nav-collapsed .nav-collapse-toggle svg{transform:rotate(180deg)}.sidebar-collapse-toggle{right:14px}html.sidebar-collapsed .sidebar-collapse-toggle svg{transform:rotate(180deg)}html:not(.native-shell) .nav-rail .search{display:none}.nav-list{display:flex;flex-direction:column;gap:3px;padding:6px 10px;overflow:auto;min-height:0;flex:1}.nav-item{display:flex;align-items:center;gap:12px;width:100%;background:transparent;color:var(--nav-muted);text-align:left;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600}.nav-item svg{width:20px;height:20px;color:inherit;flex:none}.nav-item span{flex:1}.nav-item b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary);color:#fff;font-size:11px;display:grid;place-items:center}.nav-item:hover{background:var(--hover);color:var(--text)}.nav-item.on{background:linear-gradient(90deg,var(--brand-gradient-start) 0%,var(--primary) 100%);color:#fff;box-shadow:0 4px 14px rgba(var(--primary-rgb),.4)}.nav-item.on svg{color:#fff}.nav-item.on b{background:#fff;color:var(--primary)}html.nav-collapsed:not(.compact-ui) .pane{grid-template-columns:72px minmax(260px,340px) minmax(0,1fr)}html.sidebar-collapsed:not(.compact-ui) .pane{grid-template-columns:minmax(240px,280px) 76px minmax(0,1fr)}html.nav-collapsed.sidebar-collapsed:not(.compact-ui) .pane{grid-template-columns:72px 76px minmax(0,1fr)}html.nav-collapsed:not(.compact-ui) .nav-rail .me-row{justify-content:center;padding:12px 8px 8px}html.nav-collapsed:not(.compact-ui) .nav-rail .me-row>div{display:none}html.nav-collapsed:not(.compact-ui) .nav-list{align-items:center;padding:6px 8px;overflow:visible}html.nav-collapsed:not(.compact-ui) .nav-item{position:relative;width:48px;justify-content:center;padding:12px 0}html.nav-collapsed:not(.compact-ui) .nav-item b{position:absolute;top:4px;right:4px;min-width:15px;height:15px;font-size:9px;padding:0 3px}html.nav-collapsed:not(.compact-ui) .nav-item.on b{background:#fff;color:var(--primary)}html.nav-collapsed:not(.compact-ui) .e2ee-card,html.nav-collapsed:not(.compact-ui) .storage-card{display:none}html.nav-collapsed:not(.compact-ui) .nav-item span{position:absolute;left:calc(100% + 12px);top:50%;transform:translate(-6px,-50%);background:var(--surface);border:1px solid var(--line);color:var(--text);padding:6px 12px;border-radius:8px;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 10px 24px #0006;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:30}html.nav-collapsed:not(.compact-ui) .nav-item:hover span,html.nav-collapsed:not(.compact-ui) .nav-item:focus-visible span{opacity:1;visibility:visible;transform:translateY(-50%)}html.sidebar-collapsed:not(.compact-ui) .conv-head{justify-content:center;padding:16px 0 8px}html.sidebar-collapsed:not(.compact-ui) .conv-head h2,html.sidebar-collapsed:not(.compact-ui) .conv-actions,html.sidebar-collapsed:not(.compact-ui) .folders,html.sidebar-collapsed:not(.compact-ui) .stories-tray,html.sidebar-collapsed:not(.compact-ui) .chat-row .row-body,html.sidebar-collapsed:not(.compact-ui) .chat-row .pick{display:none}html.sidebar-collapsed:not(.compact-ui) .rail{padding:0 6px}html.sidebar-collapsed:not(.compact-ui) .chat-row{position:relative;justify-content:center;padding:10px 0}html.sidebar-collapsed:not(.compact-ui) .chat-row.on{width:calc(100% - 8px);margin:0 4px}html.sidebar-collapsed:not(.compact-ui) .chat-row .avatar-wrap~*{display:none}#chat-row-tooltip{position:fixed;background:var(--surface);border:1px solid var(--line);color:var(--text);padding:6px 12px;border-radius:8px;font-size:13px;font-weight:600;white-space:nowrap;box-shadow:0 10px 24px #0006;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .15s ease,transform .15s ease,visibility .15s;transform:translate(-6px,-50%);z-index:1000}#chat-row-tooltip.show{opacity:1;visibility:visible;transform:translateY(-50%)}.e2ee-card,.storage-card{margin:10px 12px 0;padding:12px;border-radius:12px;background:rgba(var(--primary-rgb),.14);border:1px solid rgba(var(--primary-rgb),.3);display:flex;gap:10px;color:var(--muted)}.e2ee-card svg,.storage-card svg{width:18px;height:18px;flex:none;color:var(--accent)}.e2ee-card strong,.storage-card strong{display:block;color:var(--text);font-size:13px}.e2ee-card p,.storage-card p{margin:4px 0 0;font-size:11px;line-height:1.4}.e2ee-card a{color:var(--accent);font-size:12px;text-decoration:none}.storage-card .bar{display:block;height:4px;margin-top:8px;border-radius:4px;background:var(--line);overflow:hidden}.storage-card .bar i{display:block;height:100%;background:var(--primary)}.search kbd{font:11px/1 var(--sans);color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:3px 5px;background:var(--surface)}.sidebar{position:relative;background:radial-gradient(ellipse 100% 55% at 0% 118%,rgba(var(--accent-rgb),.2) 0%,transparent 62%),radial-gradient(ellipse 80% 45% at 100% 105%,rgba(var(--primary-rgb),.22) 0%,transparent 58%),linear-gradient(180deg,var(--sidebar) 0%,var(--bg) 100%);display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--line)}html.theme-light .sidebar{background:radial-gradient(ellipse 105% 58% at 0% 120%,rgba(var(--accent-rgb),.4) 0%,transparent 64%),radial-gradient(ellipse 85% 48% at 100% 108%,rgba(var(--primary-rgb),.34) 0%,transparent 60%),linear-gradient(180deg,var(--sidebar) 0%,var(--bg) 100%)}.conv-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px;gap:8px}.conv-head h2{margin:0;font-size:18px;flex:1}.sidebar.no-chat-tools .sidebar-search,.sidebar.no-chat-tools .folders{display:none}.sidebar.no-chat-tools .rail{padding-top:4px}.me-row{padding:12px 14px 8px}.me-row strong,.who strong{display:block;font-size:14px}.me-row em,.who em,.row-body em{font-style:normal;color:var(--muted);font-size:12px}.search{margin:0 12px 10px;display:flex;align-items:center;gap:8px;background:var(--line);border-radius:20px;padding:8px 12px;color:var(--muted)}.search svg{width:16px;height:16px;flex:none}.search input{flex:1;border:0;background:transparent;color:var(--text);outline:none;font:inherit}.search input::placeholder{color:var(--muted);opacity:1}.topbar-search{flex:1 1 360px;min-width:0;max-width:720px;margin:0 20px;background:var(--topbar-chip);border:1px solid var(--topbar-chip-border)}.topbar-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.18)}.topbar-search svg{color:var(--muted)}.topbar-search input{color:var(--text)}.topbar-search input::placeholder{color:var(--muted)}.topbar-search kbd{font:11px/1 var(--sans);color:var(--muted);border:1px solid var(--topbar-chip-border);border-radius:6px;padding:3px 6px;flex:none}#app:has(.auth-wrap) .topbar-search{display:none}@media(max-width:900px){.topbar-search{display:none}}html.compact-ui .topbar-search{display:none}.folders{display:flex;gap:4px;padding:0 10px 10px;overflow:auto}.folders button{background:#ffffff0a;border:1px solid rgba(255,255,255,.08);color:var(--muted);padding:6px 12px;border-radius:16px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease}.folders button:hover{color:var(--text);border-color:#ffffff29}.folders button:active{transform:scale(.97)}.folders button svg{width:14px;height:14px}.folders button b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:rgba(var(--primary-rgb),.3);color:var(--text);font-size:11px;display:grid;place-items:center}.folders button.on{border-color:transparent;background:linear-gradient(90deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);color:#fff;box-shadow:0 4px 12px rgba(var(--primary-rgb),.35)}.folders button.on b{background:#fff;color:var(--primary)}.rail{overflow:auto;min-height:0;flex:1;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.chat-row{position:relative;width:100%;display:flex;gap:12px;align-items:center;padding:10px 14px;background:transparent;color:var(--text);text-align:left}.requests-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--panel-2, rgba(255, 255, 255, .06));color:var(--accent)}.requests-icon svg{width:22px;height:22px}.requests-count{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:#06121f;font-size:11px;font-weight:800;display:grid;place-items:center}.gate-bar{display:grid;gap:4px;justify-items:center;text-align:center;padding:14px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.gate-bar em{color:var(--muted, var(--text));font-style:normal;font-size:13px;opacity:.8}.gate-actions{display:flex;gap:8px;margin-top:8px;width:min(420px,100%)}.gate-actions button{flex:1}.gate-actions .danger{color:var(--danger, #ef4444)}.row-typing,.chat-live{color:var(--accent)!important;font-style:italic}.chat-row:after{content:"";position:absolute;left:72px;right:14px;bottom:0;height:1px;background:var(--line)}.chat-row:last-child:after,.chat-row.on:after{display:none}.chat-row:hover{background:var(--hover)}.chat-row.on{width:calc(100% - 12px);margin:0 6px;border-radius:14px;background:linear-gradient(90deg,rgba(var(--primary-rgb),.4),rgba(var(--accent-rgb),.28));box-shadow:0 4px 16px rgba(var(--primary-rgb),.25),inset 0 0 0 1px rgba(var(--accent-rgb),.4)}.row-top strong{display:inline-flex;align-items:center;gap:4px;min-width:0}.row-top strong svg,.row-body em svg{width:12px;height:12px;flex:none}.row-body{min-width:0;flex:1}.row-top{display:flex;justify-content:space-between;gap:8px}.row-top span,.bubble .meta{color:var(--muted);font-size:11px}.msg.me .bubble .meta,.msg.me .ticks,.msg.me .ticks .ack,.msg.me .bubble.call.done p,.msg.me .file-copy em,.msg.me .file-dl,.msg.me .voice-clock,.msg.me .img-missing{color:#ffffffbf}.msg.me .ticks.read .ack{color:#7cf3ff}.msg.me .bubble.call p,.msg.me .bubble.call .call-dur{color:var(--bubble-out-text)}.row-body em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-bottom{display:flex;align-items:center;gap:8px;min-width:0}.row-bottom em{flex:1;min-width:0}.unread-badge{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--primary);color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center;font-variant-numeric:tabular-nums}.unread-badge.muted{background:color-mix(in srgb,var(--muted) 55%,transparent)}[data-unread-tab][hidden],.unread-badge[hidden]{display:none!important}.chat-row.unread:not(.on){background:rgba(var(--primary-rgb),.07)}.chat-row.unread:not(.on):hover{background:rgba(var(--primary-rgb),.12)}.chat-row.unread .row-top strong{font-weight:800}.chat-row.unread .row-bottom em{color:var(--text);font-weight:500}.chat-row.unread .row-time{color:var(--primary);font-weight:700}.chat-row.on .unread-badge{background:#fff;color:var(--primary)}.mobile-tabs button{position:relative}.mobile-tabs button [data-unread-tab]{position:absolute;top:2px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--danger, #ef4444);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}html.sidebar-collapsed:not(.compact-ui) .chat-row.unread .avatar-wrap:after{content:"";position:absolute;top:0;right:0;width:11px;height:11px;border-radius:50%;background:var(--primary);border:2px solid var(--sidebar)}.avatar-wrap{position:relative;flex:none;width:46px;height:46px}.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:700;color:#fff;background:hsl(var(--h) 58% 46%);box-shadow:0 3px 8px #0000004d,inset 0 0 0 1px #ffffff1a;flex:none}.avatar.ghost{background:var(--line);color:var(--muted)}.avatar.photo{background-size:cover;background-position:center;color:transparent;font-size:0}.online,.dot{position:absolute;right:1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:var(--success);border:2px solid var(--sidebar)}.who em .dot{position:static;width:8px;height:8px;border:0}.avatar.ghost svg,.icon-btn svg,.send svg{width:20px;height:20px}.stage{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background-color:var(--sidebar);position:relative;isolation:isolate;overflow:hidden;background-image:radial-gradient(ellipse 90% 48% at 92% 112%,rgba(var(--accent-rgb),.22) 0%,transparent 62%),radial-gradient(ellipse 80% 42% at 18% 108%,rgba(var(--accent-rgb),.14) 0%,transparent 58%),radial-gradient(ellipse 70% 38% at 52% 118%,rgba(var(--primary-rgb),.18) 0%,transparent 60%),radial-gradient(ellipse 60% 34% at 88% 12%,rgba(var(--primary-rgb),.14) 0%,transparent 55%),linear-gradient(180deg,var(--surface) 0%,var(--sidebar) 46%,var(--bg) 100%)}html.theme-light .stage{background-image:radial-gradient(ellipse 95% 52% at 92% 114%,rgba(var(--accent-rgb),.4) 0%,transparent 64%),radial-gradient(ellipse 84% 46% at 16% 110%,rgba(var(--accent-rgb),.28) 0%,transparent 60%),radial-gradient(ellipse 74% 42% at 50% 120%,rgba(var(--primary-rgb),.32) 0%,transparent 62%),radial-gradient(ellipse 62% 36% at 88% 10%,rgba(var(--primary-rgb),.22) 0%,transparent 56%),linear-gradient(180deg,var(--surface) 0%,var(--sidebar) 46%,var(--bg) 100%)}.stage>*{position:relative;z-index:1}.chat-head{display:flex;flex-direction:column;background:var(--chat-head-tint);border-bottom:1px solid var(--line);position:relative;z-index:4}.drop-hint{display:none;position:absolute;inset:0;z-index:8;place-content:center;text-align:center;padding:24px;font-size:16px;font-weight:600;color:var(--text);background:#0f172ab8;border:2px dashed rgba(45,212,191,.7);pointer-events:none}.stage.drop-on .drop-hint{display:grid}.chat-head-row{display:flex;align-items:center;min-height:56px}.chat-head-row>.back-btn{flex:none}.chat-head-row>.who{flex:1 1 auto;min-width:0}.chat-head-row>.chat-tools{flex:none}.chat-head .who{padding:8px 12px;min-width:0;overflow:hidden}.chat-head button.who{appearance:none;background:transparent;color:inherit;border:0;font:inherit;border-radius:12px;width:100%;text-align:left;cursor:pointer;display:flex;align-items:center;gap:8px}.chat-head button.who:hover{background:var(--hover)}.conv-actions{display:flex;align-items:center;flex:none;gap:6px}.conv-actions #new-msg{background:rgba(var(--primary-rgb),.28);color:var(--accent)}.conv-actions #new-msg:hover{background:rgba(var(--primary-rgb),.42);color:var(--accent)}.chat-head .who>div{min-width:0;overflow:hidden}.chat-head .who strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-head .chat-tools{padding-right:10px;position:relative;z-index:2;flex:none}.chat-head .chat-tools .icon-btn{background:rgba(var(--primary-rgb),.16);color:var(--text)}.chat-head .chat-tools .icon-btn:hover{background:rgba(var(--primary-rgb),.3)}.chat-head .chat-tools .icon-btn.on{background:#f59e0b29;color:var(--warning)}.back-btn,.menu-btn,.sidebar-search,.mobile-tabs,.mobile-drawer,.drawer-backdrop{display:none}.chat-head .avatar,.chat-head .avatar-wrap{width:38px;height:38px}.chat-head .avatar{font-size:13px}.who em{display:flex;align-items:center;gap:4px}.who em svg{width:12px;height:12px;flex:none}.icon-btn{width:38px;height:38px;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center}.icon-btn:hover{background:var(--hover);color:var(--text)}.icon-btn.danger{color:#fca5a5}.icon-btn.danger:hover{background:#ef444429}.chat-row.picked{background:var(--surface)}.chat-row .pick{width:22px;height:22px;border:2px solid var(--line);border-radius:50%;flex:none;display:grid;place-items:center;color:#fff}.chat-row .pick.on{background:var(--primary);border-color:var(--primary)}.chat-row .pick svg{width:12px;height:12px}.tg-menu{position:relative}.tg-menu-list{position:absolute;right:0;top:42px;width:240px;background:var(--sidebar);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #00000059;padding:6px;z-index:6;display:none;grid-template-columns:1fr}.tg-menu.open .tg-menu-list{display:grid}.tg-menu-list button{background:transparent;color:var(--text);text-align:left;padding:9px 10px;border-radius:8px;display:flex;align-items:center;gap:10px;font-size:14px}.tg-menu-list button:hover{background:var(--hover)}.tg-menu-list button.danger{color:#fca5a5}.tg-menu-list svg{width:16px;height:16px;color:var(--muted)}.menu-label{padding:8px 10px 2px;color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.menu-note{margin:0;padding:4px 10px 8px;color:var(--muted);font-size:11px;line-height:1.4;word-break:break-all}.thread-search{display:flex;align-items:center;gap:6px;margin:0 10px 8px;padding:4px 6px 4px 10px;background:var(--sidebar);border:1px solid var(--line);border-radius:12px}.thread-search svg{width:16px;height:16px;color:var(--muted);flex:none}.thread-search input{flex:1;min-width:0;background:transparent;border:0;color:var(--text);font:inherit;padding:8px 4px;outline:none}.thread-search .icon-btn{width:34px;height:34px;min-width:34px;min-height:34px}.chat-error{margin:0 10px 8px;padding:8px 10px;border-radius:10px;background:#ef444429;color:#fca5a5;font-size:13px}.chat-error-go{margin-left:8px;border:0;border-radius:8px;padding:4px 10px;background:var(--primary);color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.msg.search-miss{display:none}.msg.search-hit .bubble{outline:1px solid rgba(45,212,191,.55)}.msg.jump-hit .bubble{outline:2px solid var(--accent)}.thread{grid-row:2;overflow:auto;padding:18px 16px 10px;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-padding-bottom:24px}.thread:before{content:"";margin-top:auto}.msg.rich{max-width:min(92%,360px)}.bubble .chat-link{color:var(--accent);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.msg.me .bubble .chat-link{color:var(--text)}.yt-embed{position:relative;width:100%;aspect-ratio:16 / 9;margin:8px 0 6px;border-radius:10px;overflow:hidden;background:#0b0b0b}.yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.yt-play{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#111 center / cover no-repeat;cursor:pointer;display:grid;place-items:center}.yt-play .yt-btn{width:58px;height:40px;border-radius:12px;background:var(--danger);color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px #00000073}.yt-play .yt-btn svg{width:22px;height:22px}.msg{position:relative;max-width:min(70%,480px)}.msg.me{align-self:flex-end}.msg.them{align-self:flex-start}.msg-stack{position:relative;min-width:0;display:flex;flex-direction:column;gap:2px}.msg.group-msg{display:flex;align-items:flex-end;gap:8px;max-width:min(86%,560px)}.msg.group-msg.me{flex-direction:row-reverse}.msg.group-msg.clustered{margin-top:-4px}.msg-avatar,.msg-avatar.spacer{flex:none;width:28px;height:28px}.msg-avatar .avatar-wrap,.msg-avatar .avatar{width:28px;height:28px}.msg-avatar .avatar{font-size:11px}.msg-who{display:flex;align-items:baseline;gap:6px;padding:0 4px 1px;line-height:1.2;min-width:0}.msg-who strong{color:hsl(var(--h, 200) 72% 68%);font-size:12.5px;font-weight:700}html.theme-light .msg-who strong{color:hsl(var(--h, 200) 62% 38%)}.msg-who em{color:var(--muted);font-size:11px;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg.me .msg-who{justify-content:flex-end}.msg.me .msg-who strong{color:var(--muted)}.bubble{position:relative;padding:7px 10px 4px;border-radius:12px 12px 12px 4px;font-size:14.5px;line-height:1.4;background:var(--bubble-in);color:var(--bubble-in-text);border:1px solid var(--line);box-shadow:0 1px 2px #0000000d}.msg.me .bubble{background:linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--bubble-out) 100%);color:var(--bubble-out-text);border-radius:12px 12px 4px;border-color:transparent;box-shadow:0 2px 6px rgba(var(--primary-rgb),.25)}.bubble .meta{display:flex;justify-content:flex-end;gap:5px;margin-top:2px}.ticks{display:inline-flex;align-items:center;gap:3px;color:var(--muted)}.ticks svg{width:11px;height:11px}.ticks .ack{width:12px;height:11px;color:var(--muted)}.ticks .ack.double{width:17px}.ticks.sent .ack{color:var(--muted)}.ticks.read .ack{color:var(--primary)}.bubble.muted{color:var(--muted)}.bubble.call{min-width:180px}.bubble.call strong{display:block;font-size:13px}.bubble.call p{margin:4px 0 8px;color:var(--text);font-size:13px}.bubble.call.done p{margin:4px 0 2px;color:var(--muted)}.bubble.call .call-dur{display:block;font-size:13px;font-variant-numeric:tabular-nums;color:var(--text);font-weight:700;margin:0 0 6px}.join{background:var(--primary);color:#fff;border-radius:16px;padding:6px 12px;font-weight:600}.join svg{width:16px;height:16px}.service{align-self:center;background:var(--hover);color:var(--muted);border-radius:12px;padding:6px 10px;font-size:12px;text-align:center}.service strong{color:var(--text);display:block}html.in-call,html.in-call body{overflow:hidden}.call-overlay{position:fixed;inset:0;z-index:60;background:#0a1330;color:#fff;display:flex;flex-direction:column}.call-screen{position:relative;flex:1;min-height:0;overflow:hidden}.call-grid{position:absolute;inset:0;z-index:2;display:grid;gap:8px;padding:calc(64px + var(--safe-top)) 10px 10px;background:#0a1330;grid-template-columns:repeat(var(--cols, 2),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-content:center}.call-grid[data-count="1"]{--cols: 1}.call-grid[data-count="2"],.call-grid[data-count="3"],.call-grid[data-count="4"]{--cols: 2}.call-grid[data-count="5"],.call-grid[data-count="6"],.call-grid[data-count="7"],.call-grid[data-count="8"],.call-grid[data-count="9"]{--cols: 3}.call-grid[data-count="10"],.call-grid[data-count="11"],.call-grid[data-count="12"],.call-grid[data-count="13"]{--cols: 4}@media(max-width:640px)and (orientation:portrait){.call-grid[data-count="2"]{--cols: 1}.call-grid[data-count="5"],.call-grid[data-count="6"]{--cols: 2}.call-grid[data-count="10"],.call-grid[data-count="11"],.call-grid[data-count="12"],.call-grid[data-count="13"]{--cols: 3}}.call-grid[data-count="3"] .call-tile:last-child:nth-child(odd){grid-column:1 / -1;justify-self:center;width:calc(50% - 4px)}.call-tile{position:relative;min-height:0;min-width:0;border-radius:14px;overflow:hidden;background:linear-gradient(160deg,#1b2743,#111a30);box-shadow:inset 0 0 0 1px #ffffff0f;transition:box-shadow .15s ease}.call-tile-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0b1224;opacity:0;transition:opacity .2s ease}.call-tile.self .call-tile-video{transform:scaleX(-1)}.call-tile.screen .call-tile-video{object-fit:contain;transform:none}.call-tile.video-on .call-tile-video{opacity:1}.call-tile-ph{position:absolute;inset:0;display:grid;place-items:center}.call-tile.video-on .call-tile-ph{visibility:hidden}.call-tile-ph .avatar-wrap{width:clamp(48px,28%,112px);height:auto;aspect-ratio:1}.call-tile-ph .avatar{width:100%;height:100%;font-size:clamp(18px,3vw,38px)}.call-tile-ph .online{display:none}.call-tile.speaking .call-tile-ph .avatar{box-shadow:0 0 0 4px var(--primary),0 0 28px #3b82f673}.call-tile-meta{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:#00000080;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:12px;pointer-events:none}.call-tile-meta strong{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-tile-mic{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#ef4444;flex:none}.call-tile-mic svg{width:11px;height:11px}.call-tile-hand{flex:none}.call-tile.speaking{box-shadow:inset 0 0 0 3px var(--primary)}.call-overlay.group-call .remote,.call-overlay.group-call .remote-ph,.call-overlay.group-call .local,.call-overlay.group-call .local-ph{display:none}.call-overlay.min .call-grid{padding:4px;gap:4px;--cols: 1}.call-overlay.min .call-tile:not(:first-child){display:none}.call-overlay.min .call-tile-meta{display:none}.call-add-search{width:100%;margin:4px 0 8px;padding:9px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:#ffffff0f;color:inherit;font:inherit}.call-add-list{max-height:38vh;overflow-y:auto}.call-add-list .call-member[hidden]{display:none}.call-overlay .remote{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent}.call-overlay .remote.cam-off{visibility:hidden}.call-overlay .local{position:absolute;top:calc(12px + var(--safe-top));right:12px;width:min(28vw,140px);min-width:92px;aspect-ratio:3 / 4;object-fit:cover;background:#111;border-radius:14px;border:1px solid rgba(255,255,255,.22);box-shadow:0 10px 28px #00000073;transform:scaleX(-1);z-index:3}.call-overlay .local.cam-off{visibility:hidden}.call-overlay .local-ph{position:absolute;top:calc(12px + var(--safe-top));right:12px;width:min(28vw,140px);min-width:92px;aspect-ratio:3 / 4;border-radius:14px;border:1px solid rgba(255,255,255,.22);box-shadow:0 10px 28px #00000073;background:radial-gradient(circle at 50% 36%,var(--primary),#0a1330 70%);display:grid;place-items:center;z-index:3}.call-overlay .local-ph .avatar,.call-overlay .local-ph .avatar-wrap{width:56px;height:56px;font-size:20px}.call-overlay .local-ph.hide{visibility:hidden}.call-overlay.swapped .remote{inset:auto;top:calc(12px + var(--safe-top));right:12px;width:min(28vw,140px);min-width:92px;height:auto;aspect-ratio:3 / 4;object-fit:cover;border-radius:14px;z-index:3}.call-overlay.swapped .local{inset:0;width:100%;height:100%;min-width:0;object-fit:contain;border:0;border-radius:0;box-shadow:none;z-index:1;visibility:visible}.call-overlay.swapped .local.cam-off{visibility:hidden}.call-overlay.swapped .local-ph{inset:0;width:100%;height:100%;min-width:0;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;z-index:1}.call-overlay.swapped .local-ph .avatar,.call-overlay.swapped .local-ph .avatar-wrap{width:108px;height:108px;font-size:36px}.call-overlay.swapped .local-ph.hide{visibility:hidden}.call-overlay audio{position:absolute;width:0;height:0;opacity:0}#remote-audio{position:fixed;left:0;bottom:0;width:2px;height:2px;opacity:.02;pointer-events:none;z-index:0}.call-overlay .remote-ph{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;padding:16px;text-align:center;color:#fff;background:radial-gradient(circle at 50% 34%,var(--primary),#0a1330 68%);pointer-events:none;z-index:1}.call-overlay .remote-ph .avatar,.call-overlay .remote-ph .avatar-wrap{width:108px;height:108px;font-size:36px}.call-people{display:flex;flex-wrap:wrap;justify-content:center;gap:18px 22px;max-width:min(92vw,520px)}.call-person{display:grid;justify-items:center;gap:8px;width:96px}.call-person strong{font-size:13px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-people:has(.call-person:only-child) .call-person{width:auto}.call-people:has(.call-person:only-child) .avatar-wrap,.call-people:has(.call-person:only-child) .avatar{width:108px;height:108px;font-size:36px}.call-person.speaking .avatar-wrap{box-shadow:0 0 0 4px var(--primary),0 0 28px #3b82f666}.call-person.speaking strong{color:var(--accent)}.call-overlay .remote-ph strong{font-size:22px}.call-overlay .remote-ph em{font-style:normal;color:#93a5c9;font-size:13px;max-width:28ch}.call-overlay .remote-ph[hidden]{display:none}.call-top{position:absolute;top:0;left:0;right:0;z-index:4;display:flex;align-items:center;gap:8px;padding:calc(10px + var(--safe-top)) 12px 48px;background:linear-gradient(180deg,rgba(0,0,0,.62),transparent)}.call-who{min-width:0;flex:1}.call-who strong{display:block;font-size:16px}.call-who em{display:flex;align-items:center;gap:8px;font-style:normal;color:#93a5c9;font-size:12px;min-width:0}.call-who em span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.e2ee-lock{flex:none;width:28px;height:28px;border-radius:50%;padding:0;display:grid;place-items:center;background:#22c55e38;color:#86efac}.e2ee-lock svg{width:14px;height:14px}.e2ee-lock.warn{background:#f59e0b38;color:#fcd34d}.cert-hero{display:flex;align-items:center;gap:12px;margin:4px 8px 16px}.cert-hero .face{width:48px;height:48px;border-radius:50%;background:#22c55e38;color:#86efac;display:grid;place-items:center;flex:none}.cert-hero .face svg{width:22px;height:22px}.cert-hero.warn .face{background:#f59e0b38;color:#fcd34d}.cert-hero strong{display:block;font-size:16px}.cert-hero em{display:block;font-style:normal;color:var(--muted);font-size:12px}.cert-row{display:grid;gap:2px;margin:0;padding:10px 8px;border-top:1px solid rgba(255,255,255,.06)}.cert-row span{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.cert-row b{font-weight:600;font-size:13px;color:var(--text);overflow-wrap:anywhere}.call-controls{position:relative;z-index:5;flex:none;display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:14px 12px;padding:14px 12px calc(16px + var(--safe-bottom));background:#0a1330;pointer-events:auto}.call-ctrl{width:auto;height:auto;min-width:64px;border-radius:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;pointer-events:auto;touch-action:manipulation}.call-ctrl .face{width:58px;height:58px;border-radius:50%;background:#ffffff29;color:#fff;display:grid;place-items:center}.call-ctrl .lbl{font-size:11px;font-weight:600;color:#fff}.call-ctrl svg{width:24px;height:24px}.call-ctrl.ghost{background:transparent;width:auto;min-width:0}.call-ctrl.ghost .face{width:40px;height:40px;background:#0006}.call-ctrl.off .face{background:#ef44443d;color:#fff}.call-ctrl.off .lbl{color:#fca5a5}.call-ctrl.active .face{background:var(--primary);color:#fff}.call-ctrl.hang .face{width:58px;height:58px;background:var(--danger)}.call-ctrl.hang .lbl{color:#fecaca}.call-ctrl.accept .face{width:68px;height:68px;background:var(--success)}.call-ctrl.accept .lbl{color:#86efac}.call-overlay.incoming{background:radial-gradient(circle at 50% 28%,rgba(59,130,246,.22),transparent 42%),var(--bg)}.call-overlay.incoming .ring-label{color:var(--accent);font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:12px}.call-overlay.incoming .ring-kind{color:#93a5c9;font-size:15px}.call-overlay.incoming .remote-ph .avatar,.call-overlay.incoming .remote-ph .avatar-wrap{width:112px;height:112px;font-size:40px;animation:incoming-pulse 1.6s ease-in-out infinite}@keyframes incoming-pulse{0%,to{box-shadow:0 0 #3b82f673}50%{box-shadow:0 0 0 18px #3b82f600}}.incoming-actions{justify-content:center;gap:48px;padding-bottom:48px}.tap-hear{display:none;position:absolute;left:50%;bottom:24px;z-index:6;transform:translate(-50%);align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:#0f172ae0;color:#fff;font:inherit;font-weight:700;border:1px solid rgba(255,255,255,.16)}.tap-hear.show{display:inline-flex}.tap-hear svg{width:18px;height:18px}.call-sheet{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;justify-content:flex-end;pointer-events:auto}.call-sheet-scrim{position:absolute;inset:0;background:#00000073;border:0}.call-sheet-card{position:relative;max-height:min(72%,560px);overflow:auto;background:var(--surface);border-radius:22px 22px 0 0;padding:8px 12px calc(18px + var(--safe-bottom));color:var(--text);pointer-events:auto;z-index:1;animation:call-sheet-up .2s ease-out}@keyframes call-sheet-up{0%{transform:translateY(28px);opacity:.55}to{transform:none;opacity:1}}.call-sheet-handle{width:42px;height:4px;border-radius:99px;background:var(--line);margin:8px auto 12px}.call-sheet-card h3{margin:0 8px 8px;font-size:18px}.call-sheet-card .sheet-label{color:var(--muted)}.call-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}.call-sheet-head h3{margin:0 8px}.call-sheet-close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.call-sheet-close:hover{background:var(--hover);color:var(--text)}.call-sheet-close svg{width:18px;height:18px}.call-sheet.panel .call-sheet-card{max-height:62%}@media(min-width:760px){.call-sheet-handle{display:none}.call-sheet.compact,#call-sheet,#call-e2ee-sheet{justify-content:center;align-items:center}.call-sheet.compact .call-sheet-card,#call-sheet .call-sheet-card,#call-e2ee-sheet .call-sheet-card{width:min(420px,calc(100% - 32px));border-radius:18px;padding:14px 14px 16px;box-shadow:0 18px 48px #00000073}.call-overlay.panel-open:not(.min){padding-right:384px}.call-sheet.panel{inset:12px 12px 12px auto;width:360px;justify-content:stretch}.call-sheet.panel .call-sheet-scrim{display:none}.call-sheet.panel .call-sheet-card{flex:1;max-height:none;display:flex;flex-direction:column;border-radius:18px;padding:12px 10px;box-shadow:0 18px 48px #00000073;animation:call-panel-in .18s ease-out}.call-sheet.panel .call-chat-list{flex:1;max-height:none}.call-sheet.panel .call-add-list{max-height:none}}@keyframes call-panel-in{0%{transform:translate(24px);opacity:.4}to{transform:none;opacity:1}}.call-btn{border:0;border-radius:999px;padding:10px 18px;font:inherit;font-weight:700;background:var(--primary);color:#fff;cursor:pointer}.call-btn.small{padding:6px 12px;font-size:12px}.call-btn.danger{background:var(--danger)}.call-btn.ghost{background:transparent;color:var(--primary);border:1px solid var(--primary)}.call-btn:disabled{opacity:.55;cursor:default}.call-sheet-actions{display:flex;gap:10px;justify-content:flex-end;padding:8px;flex-wrap:wrap}.call-member{display:flex;align-items:center;gap:12px;padding:8px}.call-member .avatar-wrap,.call-member .avatar{width:36px;height:36px;flex:0 0 36px;font-size:14px}.call-member strong{flex:1;min-width:0;font-weight:600;display:flex;flex-direction:column}.call-member strong em{font-style:normal;font-weight:500;font-size:12px;color:var(--muted)}.call-member-head{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.call-react-row{display:flex;justify-content:space-around;padding:8px 4px 12px}.call-react{width:52px;height:52px;border-radius:50%;border:0;background:var(--line);font-size:26px;cursor:pointer}.call-chat-list{display:flex;flex-direction:column;gap:8px;min-height:180px;max-height:320px;overflow:auto;padding:4px 8px}.call-chat-line{align-self:flex-start;max-width:82%;background:var(--line);border-radius:16px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;word-break:break-word}.call-chat-line b{font-size:12px;color:var(--accent)}.call-chat-line.mine{align-self:flex-end;background:var(--primary);color:#fff}.call-chat-form{display:flex;gap:8px;align-items:flex-end;padding:8px}.call-chat-form textarea{flex:1;resize:none;max-height:110px;border-radius:18px;border:1px solid var(--line);background:transparent;color:var(--text);font:inherit;padding:9px 14px}.call-ctrl{position:relative}.call-ctrl .face{font-size:22px}.ctrl-badge{position:absolute;top:-2px;right:6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--danger);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center}.ctrl-badge[hidden]{display:none}.call-float{position:absolute;bottom:140px;z-index:7;display:flex;flex-direction:column;align-items:center;pointer-events:none;animation:call-float-up 2.6s ease-out forwards}.call-float b{font-size:36px}.call-float span{font-size:10px;font-weight:600;color:#fff;background:#00000073;border-radius:8px;padding:0 5px}@keyframes call-float-up{0%{transform:translateY(0);opacity:1}70%{opacity:1}to{transform:translateY(-240px);opacity:0}}.call-toast{position:absolute;left:16px;right:16px;bottom:24px;z-index:7;background:#0f172aeb;color:#fff;border-radius:14px;padding:10px 14px;pointer-events:none;max-width:520px;margin:0 auto}.toast-host{position:fixed;top:calc(14px + var(--safe-top, 0px));left:50%;transform:translate(-50%);z-index:2000;display:flex;flex-direction:column;align-items:center;gap:8px;width:min(440px,calc(100vw - 24px));pointer-events:none}.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;width:100%;padding:10px 8px 10px 12px;border-radius:14px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-left:4px solid var(--toast-accent, var(--primary));box-shadow:0 14px 36px #00000047;font-size:13.5px;line-height:1.4;animation:toast-in .2s ease-out}.toast.error{--toast-accent: var(--danger)}.toast.warning{--toast-accent: var(--warning, #f59e0b)}.toast.success{--toast-accent: var(--success, #22c55e)}.toast.info{--toast-accent: var(--primary)}.toast.leaving{animation:toast-out .18s ease-in forwards}.toast-icon{flex:none;display:grid;place-items:center;width:20px;height:20px;color:var(--toast-accent, var(--primary))}.toast-icon svg{width:20px;height:20px}.toast-text{flex:1;min-width:0;padding-top:1px;word-break:break-word}.toast-close{flex:none;width:24px;height:24px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:18px;line-height:1;cursor:pointer}.toast-close:hover{background:var(--hover);color:var(--text)}@keyframes toast-in{0%{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}@keyframes toast-out{to{transform:translateY(-8px);opacity:0}}.call-join-banner{display:flex;align-items:center;gap:10px;margin:6px 12px;padding:6px 6px 6px 14px;border-radius:999px;background:#22c55ee6;color:#fff}.call-join-banner svg{width:16px;height:16px}.call-join-banner strong{flex:1;font-size:13px}.call-join-banner .call-btn{background:#fff;color:#15803d}.device-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 10px;border-radius:14px;background:transparent;color:inherit;text-align:left;font:inherit}.device-row .face{width:40px;height:40px;border-radius:50%;background:var(--hover);display:grid;place-items:center;flex:none}.device-row .face svg{width:20px;height:20px}.device-row span:nth-child(2){flex:1;min-width:0}.device-row .tick{color:var(--primary);display:grid}.device-row .tick svg{width:22px;height:22px}.device-row.on{background:rgba(var(--primary-rgb),.14)}.call-overlay.voice .local,.call-overlay.voice .remote,.call-overlay.voice .local-ph{display:none}.call-overlay.min{inset:auto 12px auto auto;bottom:calc(76px + var(--safe-bottom));width:112px;height:168px;border-radius:18px;overflow:hidden;box-shadow:0 14px 40px #00000080;display:block}.call-overlay.min .call-screen{position:absolute;inset:0;flex:none}.call-overlay.min .call-top,.call-overlay.min .call-controls,.call-overlay.min .call-sheet,.call-overlay.min .tap-hear,.call-overlay.min .local,.call-overlay.min .local-ph{display:none}.call-overlay.min .remote,.call-overlay.min .remote-ph{border-radius:18px}.call-overlay.min .remote-ph .avatar,.call-overlay.min .remote-ph .avatar-wrap{width:56px;height:56px;font-size:20px}.call-overlay.min .call-people{gap:6px;max-width:100%}.call-overlay.min .call-person{width:56px}.call-overlay.min .call-person strong{display:none}.call-overlay.min .remote-ph strong{font-size:13px}.call-overlay.min .remote-ph em{display:none}.icon-btn.on{color:var(--warning);background:#f59e0b1f}.history-more{text-align:center;color:var(--muted);font-size:12px;padding:10px 8px 4px}.msg-hover-bar{position:absolute;top:-14px;display:flex;align-items:center;gap:1px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:2px;box-shadow:0 6px 18px #0006;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:5}.msg:hover .msg-hover-bar,.msg:focus-within .msg-hover-bar,.msg.show-actions .msg-hover-bar{opacity:1;visibility:visible;transform:translateY(0)}.msg.them .msg-hover-bar{left:2px}.msg.me .msg-hover-bar{right:2px}.msg-hover-bar .icon-btn{width:24px;height:24px;flex:none}.msg-hover-bar .icon-btn svg{width:13px;height:13px}.msg-hover-reacts{display:flex;align-items:center;padding-right:1px;border-right:1px solid var(--line);margin-right:1px}.react-quick{width:22px;height:22px;flex:none;padding:0;border:0;display:grid;place-items:center;border-radius:50%;background:transparent;font-size:13px;line-height:1;overflow:hidden;transition:transform .1s ease,background .1s ease}.react-quick:hover{background:var(--hover);transform:scale(1.2)}.react-quick.mine{background:rgba(var(--primary-rgb),.35)}.react-bar{position:relative;display:flex;flex-wrap:wrap;gap:4px;margin-top:-10px;padding:0 6px;max-width:100%;z-index:2}.msg.me .react-bar{justify-content:flex-end}.react-chip{display:inline-flex;align-items:center;gap:4px;min-height:22px;padding:1px 6px;border-radius:12px;background:var(--surface);border:2px solid var(--bg);box-shadow:0 2px 6px #0000004d;color:var(--text);font-size:13px;line-height:1}.react-chip em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted)}.react-chip.mine{background:var(--primary);color:#fff}.react-chip.mine em{color:#ffffffd9}.react-chip{cursor:pointer;transition:transform .1s ease}.react-chip:active{transform:scale(.94)}#chip-menu-portal{position:fixed;top:0;left:0;right:auto;width:max-content;min-width:200px;max-width:280px;z-index:1000}.msg-translation{margin-top:8px;padding-top:6px;border-top:1px solid color-mix(in srgb,currentColor 28%,transparent)}.msg-translation em{display:block;margin-bottom:2px;font-style:normal;font-size:11px;letter-spacing:.04em;text-transform:uppercase;opacity:.75}.msg-translation p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}#chip-menu-portal.show{display:grid}#dictate-lang-portal{position:fixed;top:0;left:0;right:auto;width:170px;z-index:1000}#dictate-lang-portal.show{display:grid}#react-picker-portal.react-picker-grid{position:fixed;top:0;left:0;display:none;grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;width:208px;background:var(--sidebar);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #00000059;padding:8px;z-index:1000}#react-picker-portal.show{display:grid}.sticker-sheet{background:var(--sidebar);border-top:1px solid var(--line);padding:8px 10px 10px;max-height:min(280px,42vh);display:grid;gap:8px;min-height:0}.sticker-search{display:flex;gap:6px;align-items:center}.sticker-search input{flex:1;min-width:0;background:var(--line);border:0;border-radius:18px;color:var(--text);font:inherit;padding:8px 12px;outline:none}.sticker-file{flex:none;background:var(--line);color:var(--text);border:0;border-radius:16px;padding:10px 12px;font-size:13px;font-weight:600;width:100%}.emoji-grid,.gif-grid{display:grid;gap:6px;overflow:auto;min-height:0;max-height:min(220px,34vh);padding-bottom:4px}.emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.gif-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.emoji-grid button,.gif-grid button{background:transparent;border:0;padding:4px;border-radius:10px;font-size:22px;line-height:1}.emoji-grid button:hover,.gif-grid button:hover,.react-chip:hover{background:var(--hover)}.gif-grid button{padding:0;overflow:hidden;background:var(--bg);aspect-ratio:1}.gif-grid img{display:block;width:100%;height:100%;object-fit:cover}.sticker-empty{color:var(--muted);font-size:13px;text-align:center;padding:18px 8px}.compose .gif-btn{color:var(--muted);width:36px;min-width:36px}.compose #attach-btn{background:rgba(var(--primary-rgb),.18);color:var(--accent)}.compose #attach-btn:hover{background:rgba(var(--primary-rgb),.3);color:var(--accent)}.gif-label{font-size:10px;font-weight:800;letter-spacing:.06em}.bubble.img-msg.anim-msg img{object-fit:contain;background:var(--bg)}.composer{min-width:0}.compose{display:grid;grid-template-columns:auto 1fr auto auto auto;gap:6px;align-items:center;padding:8px 10px 10px;background:linear-gradient(180deg,transparent 0%,rgba(var(--primary-rgb),.08) 100%),var(--sidebar);border-top:1px solid var(--line)}.compose.attaching,.compose.recording{grid-template-columns:auto 1fr auto}.compose.recording.has-speech{grid-template-columns:auto 1fr auto auto}.voice-rec{display:flex;align-items:center;gap:10px;min-width:0;background:var(--line);border-radius:22px;padding:8px 14px;color:var(--text);flex-wrap:wrap}.voice-rec #voice-transcript{flex:1 1 100%;min-width:0;color:var(--muted);font-style:normal;font-size:13px;line-height:1.35;max-height:4.2em;overflow:hidden}.voice-rec #voice-transcript:lang(bn-BD),.voice-rec #voice-transcript:lang(bn){font-size:14px}.compose .speech-text{color:var(--accent)}.compose .speech-text svg{width:20px;height:20px}#voice-btn{touch-action:none;-webkit-user-select:none;user-select:none}.image-draft{display:flex;align-items:center;gap:10px;min-width:0;background:var(--line);border-radius:22px;padding:6px 10px 6px 6px}.image-draft img,.image-draft video{width:44px;height:44px;object-fit:cover;border-radius:12px;flex:none;background:var(--bg)}.audio-draft{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--bg);color:var(--accent);flex:none}.audio-draft svg{width:20px;height:20px}.video-play-badge{display:flex;align-items:center;justify-content:center;gap:8px;min-height:140px;width:100%;color:#fff;background:#0b1220;font-weight:700}.video-play-badge svg{width:28px;height:28px}.img-lightbox video{max-width:100%;max-height:100%;background:#000}.image-draft input{flex:1;min-width:0;border:0;background:transparent;color:var(--text);font:inherit;outline:none}.voice-rec em{color:var(--muted);font-style:normal;font-size:13px}.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--danger);animation:rec-pulse 1s ease-in-out infinite}@keyframes rec-pulse{50%{opacity:.35}}.bubble.voice-msg{display:grid;grid-template-columns:auto 1fr auto;gap:8px 10px;align-items:center;min-width:196px}.bubble.voice-msg p{grid-column:1 / -1;margin:0;font-size:13px}.bubble.story-reply-msg{min-width:180px}.story-reply-quote{display:flex;flex-direction:column;gap:2px;padding:6px 10px;margin-bottom:6px;border-left:2px solid var(--accent);border-radius:6px;background:rgba(var(--accent-rgb),.1)}.story-reply-quote-label{font-size:11px;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.02em}.story-reply-quote-text{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bubble.story-reply-msg p{margin:0}.msg-forwarded{display:flex;align-items:center;gap:4px;margin-bottom:4px;font-size:12px;font-style:italic;opacity:.75}.msg-forwarded svg{width:13px;height:13px}.msg-quote{display:flex;flex-direction:column;gap:1px;width:100%;min-width:0;margin-bottom:6px;padding:5px 9px;border:0;border-left:3px solid var(--accent);border-radius:6px;background:rgba(var(--accent-rgb),.1);color:inherit;font:inherit;text-align:start;cursor:pointer}.msg-quote strong{font-size:12px;color:var(--accent)}.msg-quote span{font-size:12.5px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.msg.me .msg-quote{border-left-color:#ffffffd9;background:#ffffff29}.msg.me .msg-quote strong{color:var(--bubble-out-text)}.bubble.voice-msg>.msg-quote,.bubble.voice-msg>.msg-forwarded{grid-column:1 / -1}.bubble.img-msg>.msg-quote,.bubble.img-msg>.msg-forwarded{margin:4px 4px 6px;width:auto}.msg-edited{font-style:italic;opacity:.85}.msg-star{display:inline-flex;align-items:center}.msg-star svg{width:11px;height:11px}.saved-list{display:grid;gap:8px;padding:10px 12px 20px}.saved-card{display:flex;align-items:flex-start;gap:6px;padding:10px 8px 10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}.saved-open{flex:1;min-width:0;display:grid;gap:4px;padding:0;border:0;background:transparent;color:var(--text);font:inherit;text-align:start;cursor:pointer}.saved-open:disabled{cursor:default;opacity:.7}.saved-head{display:flex;gap:8px;align-items:baseline;min-width:0}.saved-head strong{color:var(--accent);font-size:13px;white-space:nowrap}.saved-head em{color:var(--muted);font-size:12px;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-text{font-size:14px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}.saved-time{color:var(--muted);font-size:11px}.saved-unstar{color:var(--accent);flex:none}.saved-unstar svg{width:18px;height:18px}.msg.msg-flash .bubble{animation:msg-flash 1.4s ease-out}@keyframes msg-flash{0%,30%{box-shadow:0 0 0 3px rgba(var(--accent-rgb),.55)}to{box-shadow:0 0 rgba(var(--accent-rgb),0)}}.compose-context{display:flex;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid var(--line);border-left:3px solid var(--accent);background:var(--sidebar)}.compose-context-icon{display:grid;color:var(--accent)}.compose-context-icon svg{width:18px;height:18px}.compose-context-text{display:grid;min-width:0;flex:1;gap:1px}.compose-context-text strong{font-size:13px;color:var(--accent)}.compose-context-text em{font-size:12.5px;font-style:normal;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forward-preview{display:flex;align-items:center;gap:6px;margin:0 16px 8px;padding:0}.forward-preview svg{width:14px;height:14px;flex:none}.sheet-foot .primary:disabled{opacity:.5;cursor:default}.voice-play{width:36px;height:36px;border-radius:50%;background:#ffffff1f;color:inherit;display:grid;place-items:center}.voice-play svg{width:18px;height:18px}.voice-play.on{background:var(--success);color:#fff}.bubble.img-msg{padding:4px 4px 8px;max-width:min(280px,72vw);overflow:hidden}.bubble.img-msg .img-open{display:block;padding:0;border:0;background:var(--bg);border-radius:12px;overflow:hidden;cursor:zoom-in}.bubble.img-msg img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}.bubble.img-msg p{margin:8px 8px 0;font-size:15px;line-height:1.35;word-break:break-word}.bubble.img-msg .meta{padding:6px 8px 0}.img-missing{min-height:120px;display:grid;place-items:center;color:var(--muted);font-size:13px}.file-draft{display:flex;align-items:center;gap:10px;min-width:0}.file-draft span:last-child{min-width:0;display:grid}.file-draft strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-draft em{color:var(--muted);font-size:12px;font-style:normal}.bubble.file-msg{min-width:min(260px,78vw);max-width:min(340px,86vw)}.file-card{width:100%;display:flex;align-items:center;gap:10px;padding:8px 6px 4px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.file-copy{min-width:0;flex:1;display:grid;gap:2px}.file-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-copy em{color:var(--muted);font-size:12px;font-style:normal}.msg.me .file-copy em{color:var(--muted)}.file-dl{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--muted);flex:none}.file-dl svg{width:20px;height:20px}.file-badge{width:44px;height:52px;border-radius:8px;display:grid;place-items:end center;padding-bottom:6px;font-size:10px;font-weight:800;letter-spacing:.04em;color:#fff;flex:none;background:#546e7a;box-shadow:inset 0 -18px #0000002e}.file-badge.pdf{background:var(--danger)}.file-badge.doc{background:#1e88e5}.file-badge.xls{background:#43a047}.file-badge.ppt{background:#fb8c00}.file-badge.zip{background:#8d6e63}.file-badge.apk{background:#607d8b}.file-badge.txt{background:#5c6bc0}.file-badge.audio{background:#00897b}.shared-sheet{width:min(560px,100%);background:var(--bg)}.shared-head{display:flex;align-items:center;gap:4px;padding:10px 8px 0;border-bottom:1px solid var(--line)}.shared-tabs{display:flex;flex:1;justify-content:space-around}.shared-tab{appearance:none;background:transparent;border:0;border-bottom:3px solid transparent;color:var(--muted);font:inherit;font-weight:700;padding:14px 10px 12px;cursor:pointer}.shared-tab.on{color:var(--accent);border-bottom-color:var(--accent)}.shared-body{flex:1;min-height:0;overflow:auto;padding:12px}.shared-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.shared-cell{position:relative;aspect-ratio:1;padding:0;border:0;background:var(--surface);overflow:hidden;cursor:pointer}.shared-cell img{width:100%;height:100%;object-fit:cover;display:block}.shared-cell.video{display:grid;place-items:center;background:var(--line)}.shared-docs{display:grid;gap:10px;justify-items:stretch}.shared-docs .msg{max-width:100%}.shared-links{display:grid;gap:8px}.shared-link{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:var(--sidebar);color:inherit;text-decoration:none;border:1px solid var(--line)}.shared-link strong{font-size:15px}.shared-link em{color:var(--accent);font-style:normal;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-link span{color:var(--muted);font-size:12px}@media(max-width:900px){.shared-sheet{width:100%;border-left:0}}.img-lightbox{position:fixed;inset:0;z-index:55;background:#030712f0;color:#fff;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;grid-template-rows:calc(56px + var(--safe-top)) minmax(0,1fr);padding-bottom:calc(16px + var(--safe-bottom));animation:story-fade-in .16s ease-out}.lightbox-bar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:var(--safe-top) 12px 0 20px;background:linear-gradient(180deg,rgba(0,0,0,.55),transparent)}.lightbox-count{font-size:14px;font-weight:600;color:#ffffffd9;font-variant-numeric:tabular-nums}.lightbox-btn{width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;color:#fff;background:#ffffff24;cursor:pointer;transition:background .15s ease}.lightbox-btn:hover{background:#ffffff42}.lightbox-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}.lightbox-btn svg{width:22px;height:22px}.lightbox-btn[hidden]{display:none}.lightbox-nav{align-self:center;justify-self:center;grid-row:2}.lightbox-nav.prev{grid-column:1}.lightbox-nav.next{grid-column:3}.lightbox-nav.next svg,[dir=rtl] .lightbox-nav.prev svg{transform:scaleX(-1)}[dir=rtl] .lightbox-nav.next svg{transform:none}.lightbox-media{grid-column:2;grid-row:2;min-width:0;min-height:0;display:grid;place-items:center}.img-lightbox img,.img-lightbox video{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}.img-lightbox img{pointer-events:none}.image-draft img,.image-draft video{user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none;pointer-events:none}@media(max-width:640px){.img-lightbox{grid-template-columns:0 minmax(0,1fr) 0}.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:1;width:40px;height:40px;background:#00000073}.lightbox-nav.prev{left:8px}.lightbox-nav.next{right:8px}[dir=rtl] .lightbox-nav.prev{left:auto;right:8px}[dir=rtl] .lightbox-nav.next{right:auto;left:8px}}.voice-wave{--voice-progress: 0%;container-type:inline-size;position:relative;display:block;height:28px;min-width:108px;cursor:pointer}.voice-wave>.voice-bars,.voice-played .voice-bars{position:absolute;inset:0;display:flex;align-items:center;gap:1.5px;width:100cqw;height:100%}.voice-bars i{display:block;flex:1 1 2px;min-width:2px;height:30%;border-radius:99px;background:#94a3b87a}.msg.me .voice-bars i{background:#ffffff4d}.voice-played{position:absolute;inset:0 auto 0 0;width:var(--voice-progress);overflow:hidden;pointer-events:none}.voice-played .voice-bars i{background:var(--success)}.msg.me .voice-played .voice-bars i{background:#86efac}.voice-head{position:absolute;top:50%;left:var(--voice-progress);width:11px;height:11px;border-radius:50%;background:var(--success);transform:translate(-50%,-50%) scale(.4);opacity:0;pointer-events:none;box-shadow:0 0 0 4px #22c55e2e;transition:transform .15s ease,opacity .15s ease}.msg.me .voice-head{background:#fff;box-shadow:0 0 0 4px #fff3}.voice-wave.on .voice-head,.voice-wave.held .voice-head{opacity:1;transform:translate(-50%,-50%) scale(1)}.voice-clock{font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted);min-width:2.4em}.compose-field{display:flex;align-items:center;min-width:0;background:rgba(var(--primary-rgb),.22);border:1px solid rgba(var(--primary-rgb),.35);border-radius:22px;padding:0 4px 0 14px}.compose-field:focus-within{border-color:rgba(var(--accent-rgb),.5)}.compose input{border:0;background:transparent;color:var(--text);font:inherit;padding:10px 8px;outline:none;flex:1;min-width:0}.compose input::placeholder{color:var(--muted)}.compose .smile{color:var(--muted)}.send{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);color:#fff;display:grid;place-items:center;box-shadow:0 4px 12px rgba(var(--primary-rgb),.35)}.e2ee-chip{align-self:center;display:flex;align-items:center;gap:8px;max-width:100%;margin:8px auto 12px;padding:8px 12px;border-radius:12px;background:var(--hover);color:var(--muted);font-size:12px;line-height:1.4;text-align:left}.e2ee-chip svg{width:14px;height:14px;flex:none;color:var(--accent)}.day-sep{align-self:center;background:var(--hover);color:var(--muted);border-radius:12px;padding:4px 10px;font-size:12px;font-weight:600}.settings-card{margin:0;padding:16px 14px 40px;background:transparent;border:0}.settings-card h3{margin:4px 0 16px;display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800;letter-spacing:-.01em}.settings-card h3 svg{width:30px;height:30px;padding:7px;box-sizing:border-box;border-radius:11px;background:rgba(var(--accent-rgb),.16);color:var(--accent)}.settings-card p{margin:0 0 10px;display:grid;gap:2px;color:var(--muted);font-size:13px}.settings-card span{color:var(--text);word-break:break-all}.settings-card>p{margin:0 0 10px;padding:14px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 4px 14px #0000002e}.settings-card>p strong{color:var(--text);font-size:14px;font-weight:700}.settings-card>p span{font-size:13px;text-align:right}.profile-box{margin:0 0 14px;padding:18px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px #00000038;overflow:hidden}.profile-box h3{margin:0 0 14px}.profile-hero{display:flex;align-items:center;gap:14px;margin:0 -18px 16px;padding:20px 18px;background:linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%)}.profile-hero .avatar-wrap,.profile-hero .avatar{width:72px;height:72px;font-size:24px;border:3px solid rgba(255,255,255,.35);box-shadow:0 6px 16px #0000004d}.profile-hero strong{color:#fff;font-size:17px}.profile-hero em{display:block;color:#ffffffd9;font-size:13px;font-style:normal}.profile-photo-actions,.profile-icon-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.profile-icon-row{margin-top:12px}.profile-name-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.profile-name-row label{flex:1 1 220px;margin:0}.profile-search-row .profile-icon-static{flex:none;margin-bottom:2px}.profile-icon-btn,.profile-photo-btn{position:relative;width:46px;height:46px;border-radius:50%;border:1px solid rgba(var(--accent-rgb),.35);background:rgba(var(--accent-rgb),.12);color:var(--accent);display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px #0003;transition:transform .12s ease,background .15s ease,box-shadow .15s ease;padding:0}.profile-icon-btn.primary{background:var(--accent);color:#fff;border-color:transparent}.profile-icon-btn.danger{color:#f87171;border-color:#f8717173;background:#f871711f}.profile-icon-btn svg,.profile-photo-btn svg{width:20px;height:20px}.profile-icon-btn:hover,.profile-photo-btn:hover{background:rgba(var(--accent-rgb),.22)}.profile-icon-btn.primary:hover{filter:brightness(1.06)}.profile-icon-btn.danger:hover{background:#f8717138}.profile-icon-btn:active,.profile-photo-btn:active{transform:scale(.93)}.profile-icon-btn:disabled,.profile-photo-btn:disabled{opacity:.45;cursor:not-allowed}.profile-icon-static{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:var(--bg);border:1px solid var(--line)}.profile-icon-static svg{width:20px;height:20px}.profile-tip{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%) translateY(4px);padding:6px 10px;border-radius:10px;background:#0a1020f5;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;z-index:5;box-shadow:0 8px 24px #00000059;transition:opacity .15s ease,transform .15s ease}.profile-icon-btn:hover .profile-tip,.profile-icon-btn:focus-visible .profile-tip{opacity:1;transform:translate(-50%) translateY(0)}.profile-meta-grid{display:grid;gap:10px;margin:0 0 14px}.profile-meta-row{position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}.profile-meta-row .profile-meta-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:12px;background:rgba(var(--accent-rgb),.12);color:var(--accent)}.profile-meta-row .profile-meta-icon svg{width:20px;height:20px}.profile-meta-row .profile-meta-body{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.profile-meta-value{font-size:13px;color:var(--text);word-break:break-all;text-align:right}.profile-meta-copy .profile-meta-value{font-size:11px}.profile-meta-tip{position:absolute;left:14px;top:-8px;padding:3px 8px;border-radius:8px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.02em;opacity:0;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease;pointer-events:none}.profile-meta-row:hover .profile-meta-tip,.profile-meta-row:focus-within .profile-meta-tip{opacity:1;transform:translateY(0)}.profile-box-hint{margin:0 0 4px;color:var(--muted);font-size:13px;line-height:1.45}.qr-actions{justify-content:flex-start}.profile-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.profile-action-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:104px;flex:1 1 104px;max-width:160px;padding:14px 10px;border-radius:16px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-weight:600;cursor:pointer;transition:transform .12s ease,filter .15s ease,background .15s ease}.profile-action-btn.primary{background:linear-gradient(90deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);color:#fff;border-color:transparent}.profile-action-btn.danger{color:#f87171;border-color:#f8717173;background:#f871711a}.profile-action-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:rgba(var(--accent-rgb),.12);color:var(--accent)}.profile-action-btn.primary .profile-action-icon{background:#ffffff2e;color:#fff}.profile-action-btn.danger .profile-action-icon{background:#f8717126;color:#f87171}.profile-action-icon svg{width:24px;height:24px;display:block}.profile-action-text{font-size:11px;line-height:1.25;text-align:center;max-width:100%}.profile-action-btn:hover{filter:brightness(1.04)}.profile-action-btn:active{transform:scale(.97)}.profile-action-btn:disabled{opacity:.45;cursor:not-allowed}.call-row{cursor:pointer}.call-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.call-row .row-body{flex:1;min-width:0}.call-row-back{flex:none;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--primary);cursor:pointer}.call-row-back svg{width:20px;height:20px}.call-row-back:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 14%,transparent)}.call-row-join{flex:none;border:0;border-radius:999px;padding:6px 14px;background:var(--success, #22c55e);color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.call-row-back:disabled,.call-row-join:disabled{opacity:.4;cursor:default}.call-row .row-body em{display:flex;align-items:center;gap:6px;font-style:normal;color:var(--muted);font-size:12px}.call-meta{display:inline-flex;align-items:center;gap:6px;min-width:0}.call-meta em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-dir,.call-kind{display:inline-grid;place-items:center;width:16px;height:16px;flex:none;color:var(--muted)}.call-dir svg,.call-kind svg{width:14px;height:14px}.call-meta.missed .call-dir,.call-meta.missed em{color:#f87171}.call-history-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);cursor:pointer;transition:background .15s ease}.call-history-card:hover{background:var(--hover)}.call-history-card:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.call-history-card:last-child{border-bottom:0}.call-history-card .row-body{flex:1;min-width:0}.device-list,.activity-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}.device-list li,.activity-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}.device-list li.current{border-color:rgba(var(--accent-rgb),.5);background:rgba(var(--accent-rgb),.08)}.device-list strong,.activity-list strong{display:block;font-size:13px}.device-list em,.activity-list em{display:block;color:var(--muted);font-size:12px;font-style:normal}#profile-name,#activity-search{display:grid;gap:8px}.totp-box{margin:0 0 14px;padding:18px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px #00000038}.totp-box h3{margin:0 0 12px}.totp-setup{display:grid;gap:10px;margin-top:10px}.totp-setup .qr{width:196px;height:196px;padding:8px;border-radius:12px;background:#fff}.totp-setup .qr svg{width:100%;height:100%;display:block}.totp-setup .secret,.backup-codes li{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}.totp-box form,.totp-setup form{display:grid;gap:8px}.totp-box label{display:grid;gap:6px;color:var(--muted);font-size:13px}.totp-box input{border:0;border-radius:10px;background:var(--line);color:var(--text);font:inherit;padding:10px 12px;outline:none}.totp-box .primary:not(.profile-icon-btn):not(.profile-action-btn){width:100%;padding:10px}.totp-box .danger{color:#fca5a5;justify-self:start;padding-left:0}.password-box>p{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.45}.pw-meter{display:flex;align-items:center;gap:6px;min-height:16px}.pw-meter span{flex:1;height:4px;border-radius:2px;background:var(--line);transition:background .2s}.pw-meter em{min-width:56px;text-align:right;font-style:normal;font-size:12px;font-weight:700}.pw-meter[data-level="0"]{display:none}.pw-meter[data-level="1"] span:nth-child(-n+1){background:#e53935}.pw-meter[data-level="2"] span:nth-child(-n+2){background:#f5a524}.pw-meter[data-level="3"] span:nth-child(-n+3){background:#31b545}.pw-meter[data-level="1"] em{color:#e53935}.pw-meter[data-level="2"] em{color:#f5a524}.pw-meter[data-level="3"] em{color:#31b545}.pw-rules{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:12px;color:var(--muted)}.pw-rules li:before{content:"○";display:inline-block;width:16px}.pw-rules li.ok{color:var(--text)}.pw-rules li.ok:before{content:"✓";color:#31b545;font-weight:700}.pw-mismatch{margin:0;color:#e53935;font-size:12px}.totp-box label.pw-check{display:flex;align-items:center;gap:8px;color:var(--text);cursor:pointer}.totp-box label.pw-check input{width:16px;height:16px;padding:0;accent-color:var(--accent, #2d8cff)}.backup-codes{background:var(--sidebar);border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0}.backup-codes ul{margin:8px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px}#totp-form input[name=code]{letter-spacing:.28em;font-size:22px;text-align:center}.empty{margin:auto;text-align:center;color:var(--muted);max-width:28ch;line-height:1.5;display:grid;justify-items:center;gap:8px;padding:24px 12px}.empty svg{width:28px;height:28px;color:var(--accent)}.empty strong{display:block;color:var(--text)}.welcome-stage{margin:auto;text-align:center;display:grid;justify-items:center;gap:6px;padding:24px 12px;max-width:360px}.welcome-art{position:relative;width:140px;height:100px;margin-bottom:8px}.welcome-bubble{position:absolute;width:84px;height:84px;border-radius:28px;display:grid;place-items:center;box-shadow:0 16px 32px rgba(var(--primary-rgb),.35)}.welcome-bubble svg{width:34px;height:34px;color:#fff}.welcome-bubble-a{left:0;top:6px;background:linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--primary) 100%);transform:rotate(-6deg)}.welcome-bubble-b{right:0;bottom:0;background:linear-gradient(135deg,var(--primary) 0%,var(--brand-gradient-end) 100%);opacity:.92;transform:rotate(6deg)}.welcome-stage h2{margin:4px 0 0;font-size:22px;color:var(--text)}.welcome-stage p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;max-width:32ch}.welcome-peer-name{color:var(--primary);font-weight:700}.welcome-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.welcome-feature{display:grid;justify-items:center;gap:6px;font-size:11px;color:var(--muted);line-height:1.3}.welcome-feature-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(var(--primary-rgb),.16);color:var(--accent)}.welcome-feature-icon svg{width:18px;height:18px}@media(max-width:420px){.welcome-features{grid-template-columns:repeat(2,minmax(0,1fr))}}.error{color:#fca5a5;font-size:12px;padding:0 14px 8px}.auth-wrap{min-height:0;height:100%;display:flex;flex-direction:column;justify-content:center;justify-content:safe center;align-items:center;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px 16px calc(24px + var(--safe-bottom));position:relative;isolation:isolate;background:var(--auth-soft)}.auth-brand{display:flex;justify-content:center;margin-bottom:16px;flex:none;width:100%}.auth-brand-mark{display:block;width:100%;max-width:200px;height:auto}.auth-card-lang{position:absolute;top:14px;right:14px}.auth-card-lang .lang-switch{background:var(--auth-soft);border:1px solid var(--auth-border)}.auth-card-lang .lang-switch button{color:var(--auth-muted)}.auth-card-lang .lang-switch button.on{background:var(--primary);color:#fff}.auth-wrap:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(900px 480px at 88% 6%,rgba(var(--primary-rgb),.1),transparent 60%),radial-gradient(700px 420px at 6% 96%,rgba(var(--accent-rgb),.12),transparent 60%),linear-gradient(180deg,#eef4ff,#eaf6f5 55%,#eef4ff)}.auth-wrap:after{content:"";position:absolute;inset:0;z-index:-1;opacity:.5;background-repeat:no-repeat;background-size:140% auto;background-position:-10% 20%,110% 85%;background-image:radial-gradient(ellipse 60% 45% at 50% 50%,rgba(var(--primary-rgb),.14),transparent 70%),radial-gradient(ellipse 55% 40% at 50% 50%,rgba(var(--accent-rgb),.14),transparent 70%)}.auth-card{position:relative;width:min(420px,100%);background:var(--auth-surface);border:1px solid var(--auth-border);border-radius:20px;padding:30px 26px;display:grid;gap:12px;box-shadow:0 24px 48px #0f172a1a,0 4px 12px #0f172a0d}.auth-card h2{margin:0;font-size:22px;color:var(--auth-text);text-align:center}.auth-card p{margin:0;color:var(--auth-muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere;text-align:center}.auth-card label{display:grid;gap:6px;font-size:13px;font-weight:600;color:var(--auth-text);text-align:left}.auth-card input{border:1px solid var(--auth-border);border-radius:10px;background:var(--auth-surface);color:var(--auth-text);font:inherit;padding:12px;outline:none;scroll-margin-top:24px;scroll-margin-bottom:32px;transition:border-color .15s ease,box-shadow .15s ease}.auth-card input::placeholder{color:var(--auth-faint)}.auth-card input:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.15)}.auth-card .primary{width:100%;padding:13px;background:linear-gradient(90deg,var(--brand-gradient-start) 0%,var(--brand-gradient-end) 100%);border:0;box-shadow:0 12px 24px rgba(var(--primary-rgb),.28)}.auth-card .primary:hover{filter:brightness(1.05)}.auth-card .primary svg{width:16px;height:16px}.auth-card .ghost{justify-self:center}.field-icon{position:relative;display:flex;align-items:center}.field-icon svg{width:17px;height:17px;flex:none}.field-icon>svg:first-child{position:absolute;left:12px;color:var(--primary);pointer-events:none}.field-icon input{width:100%;padding-left:38px}.field-icon.pw-field input{padding-right:38px}.pw-toggle{position:absolute;right:8px;width:28px;height:28px;display:grid;place-items:center;background:transparent;border:0;border-radius:8px;color:var(--auth-muted)}.pw-toggle:hover{background:var(--auth-soft);color:var(--auth-text)}.auth-or{display:flex;align-items:center;gap:10px;color:var(--auth-faint);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:2px 0}.auth-or:before,.auth-or:after{content:"";height:1px;flex:1 1 auto;background:var(--auth-border)}.auth-link-plain{display:inline-flex;align-items:center;justify-content:center;justify-self:center;gap:6px;background:transparent;border:0;color:var(--primary);font-weight:600;font-size:13px;padding:2px}.auth-link-plain svg{width:14px;height:14px}.auth-link-plain:hover{color:var(--primary-hover);text-decoration:underline}.auth-serverlink{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px;border:1px solid var(--auth-border);border-radius:10px;background:var(--auth-soft);color:var(--auth-muted);font-size:13px;font-weight:600;text-decoration:none}.auth-serverlink svg{width:15px;height:15px}.auth-serverlink:hover{background:var(--auth-border);color:var(--auth-text)}.auth-login{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch;justify-items:stretch;width:min(420px,100%)}.auth-login .auth-card{width:auto;min-width:0}@media(min-width:901px){html:not(.compact-ui) .auth-login:has(.auth-qr){grid-template-columns:minmax(0,1fr) auto minmax(0,1.08fr);gap:8px 16px;width:min(820px,100%)}}.auth-qr{min-width:0;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(150deg,var(--primary) 0%,var(--brand-gradient-start) 42%,var(--brand-gradient-end) 100%);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:26px 22px;display:grid;gap:8px;justify-items:center;text-align:center;align-content:center;color:#fff;box-shadow:0 24px 48px #1d4ed847}.auth-qr:before{content:"";position:absolute;z-index:-1;inset:-20% -20% auto auto;width:60%;aspect-ratio:1;border-radius:50%;background:#ffffff1a}.auth-qr:after{content:"";position:absolute;z-index:-1;inset:auto auto -25% -15%;width:55%;aspect-ratio:1;border-radius:50%;background:#ffffff14}.auth-qr h2{margin:0;font-size:20px;color:#fff}.auth-qr p{margin:0;color:#ffffffd9;font-size:13px;line-height:1.5}.auth-qr .qr-box{width:min(200px,100%);aspect-ratio:1;height:auto;background:#fff;border-radius:14px;padding:10px;box-sizing:border-box;box-shadow:0 16px 32px #0f172a2e}.auth-qr .qr-box svg{width:100%;height:100%;display:block}.auth-qr .qr-fp{font-variant-numeric:tabular-nums;letter-spacing:.18em;font-weight:800;color:#fff;font-size:16px;padding:6px 16px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:#ffffff14}.auth-qr .qr-ttl-row{display:flex;align-items:center;gap:6px;color:#ffffffd9;font-size:12px}.qr-ttl-icon svg{width:13px;height:13px;display:block}.auth-qr .qr-ttl{font-size:12px;color:#ffffffd9}.auth-qr .qr-foot{display:flex;align-items:center;gap:6px;color:#ffffffbf;font-size:12px}.qr-foot svg{width:15px;height:15px;flex:none}.auth-split{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:28px;color:var(--auth-faint);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.auth-split:before,.auth-split:after{content:"";width:1px;flex:1 1 auto;background:var(--auth-border)}html.native-shell .auth-qr,html.native-shell .auth-split,html.compact-ui .auth-qr,html.compact-ui .auth-split{display:none}.qr-scan-overlay{position:fixed;inset:0;z-index:80;background:#0f172aeb;display:grid;align-content:center;justify-items:center;padding:20px 16px calc(20px + var(--safe-bottom));gap:14px}.qr-scan-overlay video{width:min(420px,100%);aspect-ratio:1;object-fit:cover;border-radius:16px;background:var(--bg)}.qr-scan-card{width:min(420px,100%);background:var(--sidebar);border:1px solid var(--line);border-radius:16px;padding:22px 18px;display:grid;gap:10px}.qr-scan-card h2{margin:0;font-size:20px}.qr-scan-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.qr-scan-card .qr-fp{font-variant-numeric:tabular-nums;letter-spacing:.18em;font-weight:800;font-size:22px;text-align:center}.qr-scan-card label{display:grid;gap:6px;font-size:13px;font-weight:600;color:var(--text);text-align:left}.qr-scan-card input{border:1px solid var(--auth-border);border-radius:10px;background:var(--auth-surface);color:var(--auth-text);font:inherit;padding:12px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.qr-scan-card input::placeholder{color:var(--auth-faint)}.qr-scan-card input:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.15)}.qr-scan-card .primary{width:100%;padding:12px}.qr-scan-frame{position:relative;width:min(420px,100%)}.qr-scan-frame:after{content:"";position:absolute;inset:18%;border:2px solid rgba(59,130,246,.85);border-radius:12px;pointer-events:none}.qr-box-settings{margin:0 0 14px;padding:18px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px #00000038;display:grid;gap:8px}.qr-box-settings h3{margin:0 0 2px}.qr-box-settings p{margin:0}#dash{height:100%;display:grid;grid-template-rows:56px 1fr}.lock-chip,.lock-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgba(var(--primary-rgb),.12);color:var(--accent);font-size:12px;font-weight:600}.lock-chip svg,.lock-badge svg{width:13px;height:13px}.lock-badge{width:34px;height:34px;padding:0;justify-content:center;font-size:16px;background:var(--surface);border:1px solid var(--line)}.lock-badge.on{background:#22c55e2e}.verified{display:inline-flex;width:15px;height:15px;margin-left:4px;color:var(--accent);vertical-align:-2px}.verified svg{width:15px;height:15px}.row-top strong{display:inline-flex;align-items:center}.stories-tray{display:flex;gap:12px;overflow-x:auto;padding:10px 14px 6px;border-bottom:1px solid var(--line)}.story-chip{flex:0 0 auto;width:72px;border:0;background:transparent;color:inherit;display:grid;justify-items:center;gap:6px;cursor:pointer}.story-chip .avatar-wrap{position:relative;width:52px;height:52px}.story-chip .avatar{width:52px;height:52px;border-radius:50%;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--line)}.story-chip.fresh .avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}.story-chip.mine .story-add{position:absolute;right:-2px;bottom:-2px;width:18px;height:18px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center}.story-chip.mine .story-add svg{width:12px;height:12px}.story-chip span{font-size:11px;color:var(--muted);max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-overlay,.friend-qr-overlay{position:fixed;inset:0;z-index:40;background:#060a1ab8;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:grid;place-items:center;padding:24px;animation:story-fade-in .18s ease-out}@keyframes story-fade-in{0%{opacity:0}to{opacity:1}}.story-pane{position:absolute;inset:0;z-index:20;display:flex;background:var(--sidebar);animation:story-fade-in .16s ease-out}.story-pane .story-view-card{width:100%;height:100%;border:0;border-radius:0;box-shadow:none;max-height:none;animation:none;display:grid;grid-template-rows:auto auto 1fr auto}.story-pane .story-view-card .story-progress{grid-row:1}.story-pane .story-view-card .story-view-head{grid-row:2}.story-pane .story-view-card .story-view-stage{grid-row:3}.story-pane .story-view-card .story-view-foot{grid-row:4}.story-pane .story-view-card .story-view-stage,.story-pane .story-view-card .story-view-content{min-height:0;height:100%}.story-pane .story-view-card .story-view-content img,.story-pane .story-view-card .story-view-content video{max-height:none;height:100%}.story-card,.friend-qr-card{width:min(420px,100%);background:var(--sidebar);border:1px solid var(--line);border-radius:20px;padding:18px;display:grid;gap:12px;box-shadow:0 24px 64px #00000073,0 0 0 1px rgba(var(--accent-rgb),.06);animation:story-pop-in .22s cubic-bezier(.2,.9,.3,1.2);max-height:min(88vh,720px);overflow:auto}@keyframes story-pop-in{0%{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}.story-card textarea{width:100%;min-height:88px;resize:vertical;background:var(--bg);color:inherit;border:1px solid var(--line);border-radius:10px;padding:10px}.story-privacy{display:grid;gap:8px}.story-privacy>strong{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.story-privacy label{display:flex;gap:8px;align-items:center}.story-compose{padding:0;gap:0;border-radius:22px;overflow:hidden;background:var(--sidebar);display:flex;flex-direction:column;min-height:0}.story-compose-head{position:relative;flex:none;display:flex;align-items:flex-start;gap:12px;padding:18px 50px 14px 18px;background:radial-gradient(120% 160% at 100% 0%,rgba(var(--accent-rgb),.22) 0%,transparent 55%),linear-gradient(135deg,var(--brand-gradient-start) 0%,var(--sidebar) 78%);border-bottom:1px solid var(--line)}.story-compose-badge{flex:none;width:40px;height:40px}.story-compose-heading{min-width:0}.story-compose-heading h2{margin:0;font-size:16px;font-weight:700}.story-compose-heading p{margin:3px 0 0;color:var(--muted);font-size:12.5px;line-height:1.4}.story-compose-close{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ffffff14;color:var(--text)}.story-compose-close svg{width:15px;height:15px}.story-compose-close:hover{background:#ffffff29}.story-compose-body{display:grid;gap:14px;padding:16px 18px;flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.story-compose-body::-webkit-scrollbar{width:6px}.story-compose-body::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}.story-compose-body::-webkit-scrollbar-thumb:hover{background:var(--muted)}.story-image-preview{position:relative;border-radius:14px;overflow:hidden;background:var(--bg)}.story-image-preview img{display:block;width:100%;max-height:240px;object-fit:cover}.story-image-remove{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#0a1330b8;color:#fff;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.story-image-remove svg{width:14px;height:14px}.story-textarea-wrap{position:relative}.story-textarea-wrap textarea{width:100%;min-height:96px;resize:vertical;background:var(--bg);color:inherit;border:1px solid var(--line);border-radius:14px;padding:12px 64px 20px 14px;font:inherit;line-height:1.45}.story-textarea-wrap textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.18)}.story-counter{position:absolute;right:12px;bottom:9px;font-size:11px;color:var(--muted);pointer-events:none}.story-privacy-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.story-privacy-option{position:relative;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);cursor:pointer;font-size:13px;font-weight:600;transition:border-color .15s ease,background .15s ease}.story-privacy-option input{position:absolute;opacity:0;width:0;height:0}.story-privacy-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;flex:none;background:rgba(var(--primary-rgb),.14);color:var(--accent)}.story-privacy-icon svg{width:14px;height:14px}.story-privacy-option:hover{border-color:var(--muted)}.story-privacy-option.on{border-color:var(--accent);background:rgba(var(--accent-rgb),.12)}.story-privacy-option.on .story-privacy-icon{background:var(--accent);color:#06202b}.story-pick-search{position:relative;display:flex;align-items:center}.story-pick-search-icon{position:absolute;left:12px;display:grid;place-items:center;color:var(--muted);pointer-events:none}.story-pick-search-icon svg{width:14px;height:14px}.story-pick-search input{width:100%;background:var(--bg);color:inherit;border:1px solid var(--line);border-radius:10px;padding:9px 12px 9px 34px;font:inherit;font-size:13px}.story-pick-search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.18)}.story-pick-empty{margin:0;padding:6px 2px 0;font-size:12px;color:var(--muted);text-align:center}.story-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;max-height:168px;overflow-y:auto;padding:2px}.story-pick-chip{position:relative;display:grid;justify-items:center;gap:6px;padding:10px 6px;border-radius:14px;border:1px solid var(--line);background:var(--bg);cursor:pointer;text-align:center;font-size:11.5px;color:var(--muted)}.story-pick-chip[hidden]{display:none}.story-pick-chip input{position:absolute;opacity:0;width:0;height:0}.story-pick-chip .avatar-wrap,.story-pick-chip .avatar{width:34px;height:34px;font-size:12px}.story-pick-chip span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-pick-chip.on{border-color:var(--accent);background:rgba(var(--accent-rgb),.12);color:var(--text)}.story-pick-chip .pick-check{position:absolute;right:-2px;bottom:-2px;width:16px;height:16px;border-radius:50%;display:none;place-items:center;background:var(--accent);color:#06202b;box-shadow:0 0 0 2px var(--bg)}.story-pick-chip .pick-check svg{width:10px;height:10px}.story-pick-chip.on .pick-check{display:grid}.story-compose-foot{flex:none;display:flex;gap:8px;padding:14px 18px calc(16px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--sidebar);box-shadow:0 -8px 16px -8px #00000047;position:relative;z-index:1}.story-attach-btn,.story-post-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13.5px}.story-attach-btn svg{width:15px;height:15px}.story-post-btn{flex:1;padding:10px 14px}.story-post-btn svg{width:15px;height:15px}@media(max-width:640px){.story-overlay{padding:0;align-items:flex-end}.story-overlay .story-compose{width:100%;max-height:92vh;border-radius:20px 20px 0 0;animation:story-sheet-up .22s ease-out}@keyframes story-sheet-up{0%{transform:translateY(24px);opacity:.5}to{transform:none;opacity:1}}.story-picks{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}}.story-view-card{padding:0;border-radius:22px;overflow:hidden;background:var(--sidebar)}.story-progress{display:flex;gap:4px;padding:10px 14px 0}.story-progress-seg{flex:1;height:3px;border-radius:99px;background:#ffffff29;overflow:hidden}.story-progress-seg:after{content:"";display:block;height:100%;width:0;background:var(--accent);border-radius:99px}.story-progress-seg.done:after{width:100%}.story-progress-seg.active:after{width:100%;animation:story-progress-fill 4.5s linear}@keyframes story-progress-fill{0%{width:0}to{width:100%}}.story-view-head{position:relative;display:flex;align-items:center;gap:10px;padding:12px 46px 12px 14px}.story-view-head .avatar-wrap,.story-view-head .avatar{width:36px;height:36px;font-size:13px}.story-view-heading{min-width:0;display:grid;gap:1px}.story-view-heading strong{font-size:13.5px;display:inline-flex;align-items:center}.story-view-heading span{font-size:11.5px;color:var(--muted)}.story-view-heading span svg{width:11px;height:11px;vertical-align:-1px}.story-view-close{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--hover);color:var(--text)}.story-view-close svg{width:15px;height:15px}.story-view-close:hover{background:#ffffff29}.story-view-stage{position:relative;display:grid;min-height:320px}.story-view-content{position:relative;display:grid;align-content:center;min-height:320px;background:var(--bg)}.story-view-content img{width:100%;max-height:60vh;object-fit:contain;background:var(--bg)}.story-view-content.text-only{padding:32px 28px;background:radial-gradient(120% 140% at 10% 0%,rgba(var(--accent-rgb),.28) 0%,transparent 55%),linear-gradient(150deg,var(--brand-gradient-start) 0%,var(--primary) 55%,var(--brand-gradient-end) 100%)}.story-view-text{margin:0;font-size:22px;font-weight:700;line-height:1.4;text-align:center;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.25);white-space:pre-wrap;word-break:break-word}.story-view-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:24px 16px 14px;font-size:14px;line-height:1.4;color:#fff;text-align:center;background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.72) 100%)}.story-view-nav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0a13308c;color:#fff;z-index:2}.story-view-nav:hover{background:#0a1330c7}.story-view-nav svg{width:16px;height:16px}.story-view-nav.prev{left:10px}.story-view-nav.next{right:10px;transform:translateY(-50%) rotate(180deg)}.story-view-foot{display:flex;gap:8px;padding:14px 16px calc(16px + var(--safe-bottom));border-top:1px solid var(--line)}.story-view-action{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:13.5px;padding:10px 12px}.story-view-action svg{width:15px;height:15px}.story-view-foot .danger,.story-feed-card-foot .danger{color:#fca5a5}.story-chip.fresh .avatar-wrap:before{content:"";position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(from 210deg,#f9ce34,#ee2a7b,#6228d7,#f9ce34);z-index:-1}.story-chip.fresh .avatar{box-shadow:0 0 0 3px var(--bg)}.story-chip.mine.fresh .avatar-wrap:before{background:conic-gradient(from 210deg,var(--accent),var(--brand-gradient-end),var(--accent))}.story-chip.active span{color:var(--text);font-weight:600}.story-chip.active:not(.fresh) .avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}.story-list-row{width:100%;display:flex;align-items:center;gap:12px;padding:10px 14px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.story-list-row:hover{background:var(--hover)}.story-list-row .row-body{min-width:0;flex:1;display:grid;gap:2px}.story-list-row .row-top strong{font-size:14px}.story-list-row em{font-size:12.5px;color:var(--muted);font-style:normal}.story-list-row.fresh .avatar-wrap:before{content:"";position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(from 210deg,#f9ce34,#ee2a7b,#6228d7,#f9ce34);z-index:-1}.story-list-row .avatar-wrap{position:relative}.story-list-row.fresh .avatar{box-shadow:0 0 0 3px var(--bg)}.story-list-section{padding:14px 14px 4px}.story-list-section strong{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.mobile-tabs button[data-tab=stories]{position:relative}.mobile-tabs button[data-tab=stories].has-fresh:after{content:"";position:absolute;top:2px;right:calc(50% - 14px);width:7px;height:7px;border-radius:50%;background:#ee2a7b;box-shadow:0 0 0 2px var(--sidebar)}.story-tap-zone{position:absolute;top:0;bottom:0;z-index:3;background:transparent;border:0;cursor:pointer}.story-tap-zone.prev{left:0;width:32%}.story-tap-zone.next{left:32%;right:0}.story-media-spinner{width:28px;height:28px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:story-spin .8s linear infinite;margin:auto}@keyframes story-spin{to{transform:rotate(360deg)}}.story-view-content video{width:100%;max-height:72vh;object-fit:contain;background:#000}.story-like-burst{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;opacity:0;z-index:4}.story-like-burst svg{width:96px;height:96px;color:#fff;filter:drop-shadow(0 4px 18px rgba(0,0,0,.45))}.story-like-burst.show{animation:story-like-pop .7s cubic-bezier(.2,.9,.3,1.1)}@keyframes story-like-pop{0%{opacity:0;transform:scale(.3)}30%{opacity:1;transform:scale(1.15)}55%{transform:scale(.98)}to{opacity:0;transform:scale(1)}}.story-like-btn{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--hover);color:var(--text)}.story-like-btn svg{width:20px;height:20px}.story-like-btn.on{color:#ee2a7b}.story-like-btn.on svg{animation:story-like-pop .4s ease}.story-reply-form{flex:1;display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:6px 6px 6px 16px}.story-reply-form input{flex:1;min-width:0;background:transparent;border:0;color:inherit;font:inherit;font-size:13.5px}.story-reply-form input:focus{outline:none}.story-reply-send{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#06202b;border:0}.story-reply-send svg{width:15px;height:15px}.story-reply-send:disabled{opacity:.6}.story-view-owner-actions{display:flex;gap:8px}.story-view-owner-actions .story-view-action{flex:none;width:42px;height:42px;padding:0;border-radius:50%}.story-view-seen{flex:1;display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);border:0;background:transparent;padding:0 4px}.story-view-seen svg{width:16px;height:16px}.story-view-seen:hover{color:var(--text)}.story-upload-progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:#00000059}.story-upload-progress span{display:block;height:100%;background:var(--accent);transition:width .15s ease}.story-progress-seg.active:after{animation-duration:var(--story-seg-dur, 5.5s)}.story-view-card.paused .story-progress-seg.active:after{animation-play-state:paused}.story-activity-sheet{position:absolute;inset:0;z-index:5;display:grid;align-items:flex-end;background:#060a1a66}.story-activity-card{background:var(--sidebar);border-radius:20px 20px 0 0;max-height:70%;display:grid;grid-template-rows:auto 1fr;overflow:hidden;animation:story-sheet-up .2s ease-out}.story-activity-card header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);font-weight:700}.story-activity-card header button{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--hover)}.story-activity-card header button svg{width:13px;height:13px}.story-activity-card .story-media-spinner{margin:24px auto}.story-activity-list{list-style:none;margin:0;padding:6px 0;overflow-y:auto}.story-activity-row{display:flex;align-items:center;gap:10px;padding:8px 16px}.story-activity-row .avatar-wrap,.story-activity-row .avatar{width:36px;height:36px;font-size:13px}.story-activity-info{min-width:0;flex:1;display:grid;gap:1px}.story-activity-info strong{font-size:13.5px}.story-activity-info span{font-size:11.5px;color:var(--muted)}.story-activity-like{color:#ee2a7b;flex:none}.story-activity-like svg{width:16px;height:16px}.story-activity-empty{padding:24px 16px;text-align:center;color:var(--muted);font-size:13px}.story-feed{height:100%;display:flex;flex-direction:column;min-height:0}.story-feed-tray{position:sticky;top:0;z-index:2;flex:none;background:var(--sidebar)}.story-feed-error{flex:none;margin:10px 16px 0;padding:8px 12px;border-radius:10px;background:#ef444429;color:#fca5a5;font-size:13px;text-align:center}.story-feed-cards{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:16px;padding:16px;background:var(--bg)}.story-feed>.empty{flex:1;min-height:0;overflow-y:auto;background:var(--bg)}#chat-stage>.story-feed{position:absolute;inset:0;z-index:5;background:var(--sidebar)}.story-feed-card{width:100%;max-width:520px;flex:none;background:var(--sidebar);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 10px 28px #00000029}.story-feed-card-head{display:flex;align-items:center;gap:10px;padding:12px 14px}.story-feed-card-head .avatar-wrap,.story-feed-card-head .avatar{width:36px;height:36px;font-size:13px}.story-feed-caption{margin:0;padding:0 14px 12px;font-size:14px;line-height:1.45;color:var(--text);white-space:pre-wrap;word-break:break-word}.story-feed-card-media{position:relative;min-height:260px;max-height:70vh;background:var(--bg);display:grid}.story-feed-card .story-view-content{min-height:260px}.story-feed-card .story-view-content img,.story-feed-card .story-view-content video{max-height:70vh}.story-feed-card-foot{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line)}.story-feed-card .story-like-btn{background:transparent}@media(max-width:640px){.story-feed-cards{padding:10px;gap:12px}.story-feed-card-media,.story-feed-card .story-view-content{min-height:320px}}.qr-actions{display:flex;gap:8px;flex-wrap:wrap}.qr-box-settings .qr-box{width:196px;margin:0 auto;background:#fff;border-radius:12px;padding:8px}.qr-box-settings .qr-box svg{display:block;width:100%;height:auto}.lock-hero{width:64px;height:64px;margin:0 auto 4px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 40% 30%,var(--primary),var(--brand-gradient-start));color:#fff;box-shadow:0 0 0 14px rgba(var(--primary-rgb),.08),0 10px 24px rgba(var(--primary-rgb),.3)}.lock-hero svg{width:30px;height:30px}.lock-card{text-align:center}.lock-card .avatar,.lock-card .avatar-wrap{margin:0 auto}.lock-card label,.lock-card input,.lock-card .primary{text-align:left}.lock-ring{display:flex;align-items:center;gap:12px;width:min(420px,100%);margin:0 auto 16px;padding:12px 14px;border-radius:16px;background:var(--surface);border:1px solid rgba(59,130,246,.4);position:relative;z-index:2;text-align:left}.lock-ring .avatar,.lock-ring .avatar-wrap{width:44px;height:44px;font-size:16px;flex:none;animation:incoming-pulse 1.6s ease-in-out infinite}.lock-ring .row-body{min-width:0;flex:1}.lock-ring strong{display:block;font-size:15px}.lock-ring em{display:block;color:var(--accent);font-size:12px;font-style:normal}.lock-ring .call-ctrl{width:auto;flex:none}.lock-ring .call-ctrl .face{width:44px;height:44px}.e2ee-bar{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 12px;font-size:11px;color:var(--muted);background:var(--sidebar);border-top:1px solid var(--line)}.e2ee-bar svg{width:12px;height:12px;flex:none}.dash{overflow:auto;padding:22px 22px 40px;display:grid;gap:18px;align-content:start;overscroll-behavior:contain;background:radial-gradient(circle at 8% 0%,rgba(59,130,246,.1),transparent 34%),radial-gradient(circle at 92% 8%,rgba(34,197,94,.06),transparent 28%),var(--bg)}.dash .proof{background:linear-gradient(180deg,var(--surface),var(--sidebar));border:1px solid var(--line);border-radius:16px;padding:18px 20px}.dash .proof.ok{border-color:var(--success);background:linear-gradient(180deg,#22c55e24,#22c55e0d)}.dash .proof strong{display:block;font-size:16px;margin-bottom:6px}.dash .proof p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.dash .proof b{color:var(--text)}.dash .stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.dash .stat{background:var(--sidebar);border:1px solid var(--line);border-radius:16px;padding:16px 14px;display:grid;gap:4px;text-align:left;color:inherit;box-shadow:inset 0 1px #ffffff08}.dash .stat b{font-size:26px;letter-spacing:-.03em}.dash .stat span{color:var(--muted);font-size:12px;font-weight:600}.dash .stat.tap{cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease}.dash .stat.tap em{font-style:normal;color:var(--accent);font-size:11px;font-weight:700}.dash .stat.tap:hover{transform:translateY(-1px);border-color:var(--line);background:var(--surface)}.dash .stat.tap.on{border-color:var(--primary);background:var(--active);box-shadow:inset 3px 0 0 var(--primary)}.dash-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}.dash-grid .panel.wide{grid-column:1 / -1}.dash .panel{background:var(--sidebar);border:1px solid var(--line);border-radius:16px;padding:16px;overflow:auto;min-width:0}.dash .panel h2{margin:0 0 6px;font-size:16px}.dash .muted{color:var(--muted);font-size:12px;margin:0 0 12px}.table-wrap{overflow:auto}.dash table{width:100%;border-collapse:collapse;font-size:12px}.dash th,.dash td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}.dash th{color:var(--muted);font-weight:600}.dash code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:var(--muted);word-break:break-all}.dash-search-panel{min-width:0}.dash-search input{width:100%;max-width:420px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--text);font:inherit;padding:11px 14px;outline:none}.dash-search input:focus{border-color:var(--primary)}.user-picks{display:grid;gap:6px;margin-top:8px}.user-stats{margin-top:16px;display:grid;gap:16px}.user-stats .person-hero{padding:0}.user-stat-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important}.user-stat-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.user-stat-cols h3{margin:0 0 8px;font-size:13px;color:var(--muted)}.handle-btn{border:0;padding:0;background:none;color:var(--accent);font:inherit;font-size:11px;font-weight:700;cursor:pointer}.handle-btn:hover{text-decoration:underline}.who-list{display:flex;flex-wrap:wrap;gap:6px 10px}.who{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;min-width:0}.top-actions .account-chip{flex-wrap:nowrap;align-items:center;gap:10px;padding:4px 10px 4px 4px;border-radius:999px;background:var(--topbar-chip);border:1px solid var(--topbar-chip-border);margin-left:4px}.top-actions .account-chip .avatar-wrap,.top-actions .account-chip .avatar{width:32px;height:32px}.top-actions .account-chip .avatar{font-size:12px}.top-actions .account-chip strong{display:block;font-size:13px;color:var(--text);line-height:1.25}.top-actions .account-chip em{display:block;font-style:normal;font-size:11px;color:var(--muted);line-height:1.25}@media(max-width:1100px){.top-actions .account-chip>div{display:none}.top-actions .account-chip{padding:2px;margin-left:0}}.who strong{font-size:12px;font-weight:650;color:var(--text)}.who .handle{color:var(--muted);font-size:11px;font-weight:600}.person-row .who-list{margin-top:4px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;background:var(--line);color:var(--muted);white-space:nowrap}.pill.ok{background:#22c55e2e;color:#86efac}.pill.warn{background:#ef444429;color:#fca5a5}.pill.live{background:#3b82f62e;color:var(--accent)}.pill-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.sheet-backdrop{position:fixed;inset:0;background:#0f172a8c;z-index:20}.sheet{position:fixed;top:0;right:0;width:min(440px,100%);height:100%;background:var(--sidebar);border-left:1px solid var(--line);z-index:21;display:flex;flex-direction:column;box-shadow:-24px 0 60px #00000059}.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 16px 12px}.sheet-head h2{margin:4px 0 0;font-size:20px}.sheet-back{padding-left:0}.sheet-search{padding:0 16px 12px}.sheet-search input{width:100%;border:0;border-radius:12px;background:var(--line);color:var(--text);font:inherit;padding:11px 12px;outline:none}.sheet-body{overflow:auto;min-height:0;flex:1;padding:0 12px 24px;display:grid;align-content:start;gap:6px}.org-sheet{gap:14px}.org-block{display:grid;gap:10px;padding:12px 10px;border-radius:14px;background:var(--surface)}.org-block h3,.org-block h4{margin:0;font-size:.95rem}.org-form{display:grid;gap:10px}.org-form label,.org-block label{display:grid;gap:6px;font-size:.85rem;color:var(--muted)}.org-form input,.org-block input,.org-block select{border:0;border-radius:12px;background:var(--line);color:var(--text);font:inherit;padding:10px 12px}.org-feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 12px}.org-feature-label{display:flex!important;flex-direction:row;align-items:center;gap:8px;color:var(--text)!important;font-size:.82rem!important}.org-feature-label input{width:auto;padding:0;background:transparent}.org-member-access td{background:var(--line);border-radius:12px;padding:12px!important}.sheet-body tr.warn td{color:var(--warn, #c97a00)}.org-import-panel{gap:12px}.org-template-table table{font-size:.85rem}.org-template-table th{text-transform:lowercase}.org-file-label input[type=file]{margin-top:6px;width:100%}.org-import-preview{display:grid;gap:10px;margin-top:4px}.org-preview-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.org-preview-head h4{margin:0;flex:1 1 auto}.org-import-list{display:grid;gap:4px;max-height:280px;overflow:auto;padding:4px;border-radius:12px;background:var(--line)}.org-import-user.import-skip{opacity:.72}.org-confirm-bar{position:sticky;bottom:0;padding:10px 0 4px;background:linear-gradient(transparent,var(--surface) 24%)}.org-confirm-bar .primary{width:100%}.org-member-new td{background:color-mix(in srgb,var(--primary) 12%,transparent)}.org-flash{outline:1px solid color-mix(in srgb,var(--primary) 40%,transparent)}.org-create-details summary{cursor:pointer;list-style:none}.org-create-details summary h3{display:inline;margin:0}.person-row{width:100%;display:flex;gap:12px;align-items:center;padding:10px;border-radius:14px;background:transparent;color:var(--text);text-align:left}.person-row:hover{background:var(--surface)}.person-row.static{cursor:default}.person-row.static:hover{background:var(--hover)}.person-row.on{outline:1px solid var(--primary);background:var(--surface)}.person-row .row-body{min-width:0;flex:1}.person-row .ghost{flex:none}.pick-row{padding:8px 10px;transition:background .15s}.pick-row.on{outline:none;background:color-mix(in srgb,var(--primary) 10%,transparent)}.pick-row:disabled{opacity:.45;cursor:default}.pick-row .avatar-wrap,.pick-row>.avatar{width:42px;height:42px}.pick-row .avatar{width:42px;height:42px;font-size:14px;box-shadow:none}.pick-row .online{border-color:var(--surface)}.pick-row .row-body strong{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pick-row .row-body em{font-style:normal;font-size:13px;color:var(--muted);margin-top:2px}.pick-check{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid color-mix(in srgb,var(--muted) 70%,transparent);display:grid;place-items:center;color:#fff;transition:background .15s,border-color .15s,transform .15s}.pick-check svg{width:16px;height:16px;opacity:0;transform:scale(.5);transition:opacity .15s,transform .15s}.pick-row.on .pick-check{background:var(--primary);border-color:var(--primary);transform:scale(1.05)}.pick-row.on .pick-check svg{opacity:1;transform:scale(1)}.pick-chips{display:flex;gap:6px;padding:0 16px;overflow-x:auto;scrollbar-width:none}.pick-chips:not(:empty){padding-bottom:10px}.pick-chips::-webkit-scrollbar{display:none}.pick-chip{flex:none;display:inline-flex;align-items:center;gap:6px;max-width:160px;padding:3px 8px 3px 3px;border-radius:999px;background:color-mix(in srgb,var(--primary) 16%,transparent);color:var(--text);font-size:13px;animation:pick-chip-in .15s ease-out}.pick-chip .avatar-wrap,.pick-chip>.avatar,.pick-chip .avatar{width:24px;height:24px;font-size:10px;box-shadow:none}.pick-chip .online{display:none}.pick-chip span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pick-chip svg{width:14px;height:14px;flex:none;opacity:.7}.pick-chip:hover svg{opacity:1}@keyframes pick-chip-in{0%{transform:scale(.8);opacity:0}}.forward-foot{grid-template-columns:1fr auto;align-items:center}.forward-foot .sheet-hint{padding:0}.sheet-foot.forward-foot .primary{width:auto;min-width:120px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px}.forward-foot .primary svg{width:16px;height:16px}.sheet-hint{color:var(--muted);padding:8px 10px;font-size:13px;line-height:1.45}.sheet-label{margin:10px 10px 4px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.sheet-foot{padding:12px 16px 20px;display:grid;gap:8px;border-top:1px solid var(--line)}.sheet-foot .primary,.sheet-foot .ghost{width:100%;padding:11px 12px}.sheet-foot .ghost.danger{color:#fca5a5}.sheet-foot .primary.danger{background:var(--danger);color:#fff}.person-row .row-actions{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;flex:none;max-width:48%}.person-row .row-actions .ghost{width:auto;padding:6px 8px;font-size:12px}.confirm-sheet{top:auto;height:auto;max-height:70%;border-radius:18px 18px 0 0;z-index:24}#delete-backdrop{z-index:23}.role-pill{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#3b82f62e;color:var(--accent);font-size:11px;font-weight:700}.person-row code{display:block;margin-top:6px;font-size:11px;color:var(--muted);word-break:break-all}.person-hero{display:flex;gap:14px;align-items:center;padding:8px 8px 16px}.person-hero strong{display:block;font-size:20px}.person-hero em{color:var(--muted);font-style:normal}.meta-grid{display:grid;gap:10px;margin:0}.meta-grid div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}.meta-grid dt{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.meta-grid dd{margin:4px 0 0;font-size:13px}.key-card{margin-top:8px;padding:14px;border-radius:16px;background:linear-gradient(180deg,var(--surface),var(--sidebar));border:1px solid var(--line)}.key-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.fp{margin:10px 0 14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.7;color:var(--text);letter-spacing:.04em}.key-card.empty-keys{color:var(--muted);text-align:center}.auth-card .error{padding:0;color:#dc2626;text-align:center}@media(max-width:1100px){.dash-grid{grid-template-columns:1fr}.top-actions .ghost{padding:7px 8px}}@media(max-width:1100px)and (min-width:901px){html:not(.compact-ui) .pane{grid-template-columns:72px minmax(240px,320px) minmax(0,1fr)}html:not(.compact-ui) .nav-rail{display:flex;flex-direction:column;padding:8px 0 12px}html:not(.compact-ui) .nav-rail .me-row{justify-content:center;padding:12px 8px 8px}html:not(.compact-ui) .nav-rail .me-row>div{display:none}html:not(.compact-ui) .nav-rail .search{display:none}html:not(.compact-ui) .nav-list{align-items:center;padding:4px 8px}html:not(.compact-ui) .nav-item{width:48px;justify-content:center;padding:10px 0}html:not(.compact-ui) .nav-item span,html:not(.compact-ui) .nav-item b{display:none}html:not(.compact-ui) .nav-item.on{background:linear-gradient(90deg,var(--brand-gradient-start) 0%,var(--primary) 100%);box-shadow:0 4px 14px rgba(var(--primary-rgb),.4)}html:not(.compact-ui) .nav-item.on svg{color:#fff}html:not(.compact-ui) .e2ee-card,html:not(.compact-ui) .storage-card,html:not(.compact-ui) .search kbd{display:none}}@media(max-width:900px){#app:has(.workspace){grid-template-rows:1fr}#app:has(.workspace) .tg-topbar{display:none}.pane{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;height:100%}.pane>.mobile-drawer,.pane>.drawer-backdrop{position:fixed}.nav-rail{display:none!important}.sidebar{border-right:0;min-height:0;grid-column:1;grid-row:1}.stage{display:none;grid-column:1;grid-row:1}.pane.chat-open{grid-template-rows:minmax(0,1fr)}.pane.chat-open .sidebar,.pane.chat-open .mobile-tabs{display:none}.pane.chat-open .stage{display:grid;min-height:0}.back-btn,.menu-btn{display:grid}.chat-head-row{padding-left:6px}.chat-head-row>.back-btn+.who{padding-left:4px}.sidebar-search{display:flex}.conv-head{padding:8px 8px 6px 4px;gap:4px}.conv-head h2{font-size:20px;font-weight:700}.folders{display:flex;padding-bottom:6px}.search{display:flex}.row-body{display:block}.chat-row{justify-content:flex-start;padding:10px 14px}.chat-row.on{background:transparent;box-shadow:none}.chat-row:active{background:var(--hover)}.msg{max-width:82%}.top-actions{flex-wrap:wrap;justify-content:flex-end}.icon-btn,.send{width:44px;height:44px;min-width:44px;min-height:44px}.icon-btn:active,.send:active,.mobile-tabs button:active,.call-ctrl:active .face{transform:scale(.94)}.call-ctrl{min-width:56px;gap:6px}.call-ctrl .face,.call-ctrl.hang .face{width:52px;height:52px}.call-ctrl .lbl{font-size:10px}.chat-tools{gap:0;padding-right:6px}.folders button{padding:8px 12px;min-height:34px}.compose{grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:4px;padding:6px 8px calc(8px + var(--safe-bottom))}.compose.attaching,.compose.recording{grid-template-columns:44px minmax(0,1fr) 44px}.compose.recording.has-speech{grid-template-columns:44px minmax(0,1fr) 44px 44px}.compose #disappear-btn{display:none}.compose-field{min-height:44px}.compose .gif-btn{width:36px;min-width:36px}.emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.sticker-search{flex-wrap:wrap}.sticker-search input{width:100%;flex:1 1 100%}.compose input,.search input,.auth-card input,.settings-card input{padding:11px 8px;font-size:16px}.auth-card .field-icon input,.settings-card .field-icon input{padding-left:38px}.auth-card .field-icon.pw-field input,.settings-card .field-icon.pw-field input{padding-right:38px}.join{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:22px;font-size:15px;margin-top:8px}.msg-hover-bar{position:static;opacity:0;visibility:hidden;transform:none;background:transparent;border:0;box-shadow:none;padding:0;margin-top:0;max-height:0;overflow:hidden;transition:opacity .15s ease,max-height .15s ease,margin-top .15s ease}.msg.show-actions .msg-hover-bar{opacity:1;visibility:visible;max-height:40px;margin-top:4px}.msg.me .msg-hover-bar{justify-content:flex-end}.msg-hover-bar .icon-btn{width:32px;height:32px;background:#ffffff14}.auth-card .primary:not(.profile-icon-btn):not(.profile-action-btn),.settings-card .primary:not(.profile-icon-btn):not(.profile-action-btn){min-height:48px;font-size:16px;border-radius:12px}.mobile-drawer button.drawer-link{min-height:48px}.mobile-tabs{display:grid;grid-template-columns:repeat(4,1fr);grid-column:1;grid-row:2;background:var(--sidebar);border-top:1px solid var(--line);padding:4px 0 calc(4px + var(--safe-bottom))}.mobile-tabs button{background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:6px 2px 4px;font-size:11px;font-weight:600;min-width:0}.mobile-tabs button span{overflow:hidden;text-overflow:ellipsis;max-width:100%}.mobile-tabs button svg{width:22px;height:22px}.mobile-tabs button.on{color:var(--primary)}.mobile-drawer{display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;width:min(82vw,320px);background:var(--bg);z-index:30;padding:calc(12px + var(--safe-top)) 0 calc(16px + var(--safe-bottom));transform:translate(-105%);transition:transform .22s ease;box-shadow:8px 0 32px #00000059}.pane.menu-open .mobile-drawer{transform:translate(0)}.drawer-backdrop{display:none;position:fixed;inset:0;background:#00000073;z-index:29;border:0}.pane.menu-open .drawer-backdrop{display:block}.mobile-drawer .me-row{padding:18px 16px 16px;gap:12px}.mobile-drawer .me-row .avatar,.mobile-drawer .me-row .avatar-wrap{width:56px;height:56px}.mobile-drawer .me-row strong{font-size:16px}.mobile-drawer .lang-switch{margin:0 16px 12px}.mobile-drawer button.drawer-link{display:flex;align-items:center;gap:12px;width:100%;background:transparent;color:var(--text);text-align:left;padding:12px 16px;font-size:15px}.mobile-drawer button.drawer-link svg{width:20px;height:20px;color:var(--muted)}.mobile-drawer button.drawer-link:active{background:var(--hover)}.mobile-drawer .e2ee-card{display:flex;margin-top:auto}.auth-wrap{padding:16px 14px calc(16px + var(--safe-bottom))}.auth-card{padding:22px 16px;border-radius:14px}.auth-qr,.auth-split{display:none}.auth-brand{margin-bottom:12px}.auth-brand-mark{max-width:150px}}html.compact-ui #app:has(.workspace){grid-template-rows:1fr}html.compact-ui #app:has(.workspace) .tg-topbar{display:none}html.compact-ui .pane{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;height:100%}html.compact-ui .pane>.mobile-drawer,html.compact-ui .pane>.drawer-backdrop{position:fixed}html.compact-ui .nav-rail{display:none!important}html.compact-ui .sidebar{border-right:0;min-height:0;grid-column:1;grid-row:1}html.compact-ui .stage{display:none;grid-column:1;grid-row:1}html.compact-ui .pane.chat-open{grid-template-rows:minmax(0,1fr)}html.compact-ui .pane.chat-open .sidebar,html.compact-ui .pane.chat-open .mobile-tabs{display:none}html.compact-ui .pane.chat-open .stage{display:grid;min-height:0}html.compact-ui .back-btn,html.compact-ui .menu-btn{display:grid}html.compact-ui .chat-head-row{padding-left:6px}html.compact-ui .chat-head-row>.back-btn+.who{padding-left:4px}html.compact-ui .sidebar-search{display:flex}html.compact-ui .conv-head{padding:8px 8px 6px 4px;gap:4px}html.compact-ui .conv-head h2{font-size:20px;font-weight:700}html.compact-ui .folders{display:flex;padding-bottom:6px}html.compact-ui .chat-row.on{background:transparent;box-shadow:none}html.compact-ui .chat-row:active{background:var(--hover)}html.compact-ui .msg{max-width:82%}html.compact-ui .msg-hover-bar{position:static;opacity:0;visibility:hidden;transform:none;background:transparent;border:0;box-shadow:none;padding:0;margin-top:0;max-height:0;overflow:hidden;transition:opacity .15s ease,max-height .15s ease,margin-top .15s ease}html.compact-ui .msg.show-actions .msg-hover-bar{opacity:1;visibility:visible;max-height:40px;margin-top:4px}html.compact-ui .msg.me .msg-hover-bar{justify-content:flex-end}html.compact-ui .msg-hover-bar .icon-btn{width:32px;height:32px;background:#ffffff14}html.compact-ui .icon-btn,html.compact-ui .send{width:44px;height:44px;min-width:44px;min-height:44px}html.compact-ui .chat-tools{gap:0;padding-right:6px}html.compact-ui .compose{grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:4px;padding:6px 8px calc(8px + var(--safe-bottom))}html.compact-ui .compose.attaching,html.compact-ui .compose.recording{grid-template-columns:44px minmax(0,1fr) 44px}html.compact-ui .compose.recording.has-speech{grid-template-columns:44px minmax(0,1fr) 44px 44px}html.compact-ui .compose #disappear-btn{display:none}html.compact-ui .compose-field{min-height:44px}html.compact-ui .compose .gif-btn{width:36px;min-width:36px}html.compact-ui .compose input,html.compact-ui .search input,html.compact-ui .auth-card input,html.compact-ui .settings-card input{padding:11px 8px;font-size:16px}html.compact-ui .auth-card .field-icon input,html.compact-ui .settings-card .field-icon input{padding-left:38px}html.compact-ui .auth-card .field-icon.pw-field input,html.compact-ui .settings-card .field-icon.pw-field input{padding-right:38px}html.compact-ui .auth-card .primary:not(.profile-icon-btn):not(.profile-action-btn),html.compact-ui .settings-card .primary:not(.profile-icon-btn):not(.profile-action-btn){min-height:48px;font-size:16px;border-radius:12px}html.compact-ui .mobile-tabs{display:grid;grid-template-columns:repeat(4,1fr);grid-column:1;grid-row:2;background:var(--sidebar);border-top:1px solid var(--line);padding:4px 0 calc(4px + var(--safe-bottom))}html.compact-ui .mobile-tabs button{background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:6px 2px 4px;font-size:11px;font-weight:600;min-width:0}html.compact-ui .mobile-tabs button span{overflow:hidden;text-overflow:ellipsis;max-width:100%}html.compact-ui .mobile-tabs button svg{width:22px;height:22px}html.compact-ui .mobile-tabs button.on{color:var(--primary)}html.compact-ui .mobile-drawer{display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;width:min(82vw,320px);background:var(--bg);z-index:30;padding:calc(12px + var(--safe-top)) 0 calc(16px + var(--safe-bottom));transform:translate(-105%);transition:transform .22s ease;box-shadow:8px 0 32px #00000059}html.compact-ui .pane.menu-open .mobile-drawer{transform:translate(0)}html.compact-ui .drawer-backdrop{display:none;position:fixed;inset:0;background:#00000073;z-index:29;border:0}html.compact-ui .pane.menu-open .drawer-backdrop{display:block}html.compact-ui .mobile-drawer .me-row{padding:18px 16px 16px;gap:12px}html.compact-ui .mobile-drawer .me-row .avatar,html.compact-ui .mobile-drawer .me-row .avatar-wrap{width:56px;height:56px}html.compact-ui .mobile-drawer .me-row strong{font-size:16px}html.compact-ui .mobile-drawer .lang-switch{margin:0 16px 12px}html.compact-ui .mobile-drawer button.drawer-link{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;background:transparent;color:var(--text);text-align:left;padding:12px 16px;font-size:15px}html.compact-ui .mobile-drawer button.drawer-link svg{width:20px;height:20px;color:var(--muted)}html.compact-ui .mobile-drawer button.drawer-link:active{background:var(--hover)}html.compact-ui .mobile-drawer .e2ee-card{display:flex;margin-top:auto}html.compact-ui .auth-wrap{padding:16px 14px calc(16px + var(--safe-bottom))}html.compact-ui .auth-card{padding:22px 16px;border-radius:14px}html.compact-ui .auth-brand{margin-bottom:12px}html.compact-ui .auth-brand-mark{max-width:150px}html.compact-ui .auth-login{width:min(420px,100%);grid-template-columns:minmax(0,1fr)}html.compact-ui .sheet,html.compact-ui .shared-sheet{width:100%;border-left:0}html.keyboard-open .mobile-tabs{display:none!important}html.keyboard-open .pane{grid-template-rows:minmax(0,1fr)!important}html.keyboard-open .compose{padding-bottom:8px}html.keyboard-open .auth-wrap{justify-content:flex-end;padding-top:8px;padding-bottom:8px}html.keyboard-open .auth-brand{display:none}html.native-shell.keyboard-open .auth-wrap{justify-content:flex-end}html.keyboard-open .rail,html.keyboard-open .thread,html.keyboard-open .auth-wrap{overflow:auto}html.native-shell .mobile-drawer{padding-top:12px;padding-bottom:calc(16px + var(--safe-bottom))}html.native-shell .call-top{padding-top:10px}html.native-shell .call-overlay .local,html.native-shell .call-overlay.swapped .remote{top:12px}html.native-shell .sidebar-collapse-toggle{display:none}@media(max-width:900px){.sheet{width:100%;border-left:0}}html.macos{--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Nirmala UI", "Kohinoor Bangla", "Noto Sans Bengali", system-ui, sans-serif;--mac-focus: rgba(10, 132, 255, .42);color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.macos body{letter-spacing:-.012em}html.macos #app{grid-template-rows:52px minmax(0,1fr)}html.macos .tg-topbar{height:52px;padding:0 14px 0 16px;background:#111827d1;backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px);border-bottom-color:#ffffff0f}html.macos .lock-chip{display:none}html.macos .brand h1{font-size:14px;font-weight:650}html.macos .logo{width:30px;height:30px}html.macos .nav-rail{background:#111827f0;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}html.macos .nav-item{border-radius:8px}html.macos .chat-row{width:calc(100% - 12px);margin:1px 6px;border-radius:8px}html.macos .chat-row.on{box-shadow:none}html.macos .search{background:#334155eb;box-shadow:inset 0 0 0 1px #ffffff0a}html.macos .compose-field,html.macos .auth-card input,html.macos .settings-card input{box-shadow:inset 0 0 0 1px #ffffff0a}html.macos input:focus-visible,html.macos textarea:focus-visible,html.macos button:focus-visible,html.macos a:focus-visible{outline:3px solid var(--mac-focus);outline-offset:1px}html.macos .auth-card,html.macos .auth-qr{border-radius:18px}html.macos .chat-head{background:#111827e6;backdrop-filter:saturate(160%) blur(16px);-webkit-backdrop-filter:saturate(160%) blur(16px)}html.macos .compose{background:#111827f0}.thread,.rail,.nav-list{scrollbar-width:thin;scrollbar-color:rgba(var(--primary-rgb),.45) transparent}.thread::-webkit-scrollbar,.rail::-webkit-scrollbar,.nav-list::-webkit-scrollbar{width:6px}.thread::-webkit-scrollbar-track,.rail::-webkit-scrollbar-track,.nav-list::-webkit-scrollbar-track{background:transparent}.thread::-webkit-scrollbar-thumb,.rail::-webkit-scrollbar-thumb,.nav-list::-webkit-scrollbar-thumb{background:rgba(var(--primary-rgb),.45);border-radius:999px}.thread::-webkit-scrollbar-thumb:hover,.rail::-webkit-scrollbar-thumb:hover,.nav-list::-webkit-scrollbar-thumb:hover{background:rgba(var(--primary-rgb),.7)}html.macos *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}html.macos ::-webkit-scrollbar{width:11px;height:11px}html.macos ::-webkit-scrollbar-thumb{background:#fff3;border-radius:11px;border:3px solid transparent;background-clip:padding-box}html.macos ::-webkit-scrollbar-track{background:transparent}html.native-shell.macos #app,html.native-shell.macos #app:has(.workspace),html.native-shell.macos #app:has(.auth-wrap){grid-template-rows:1fr}html.native-shell.macos .tg-topbar{display:none!important}html.macos:not(.compact-ui) #app,html.macos:not(.compact-ui) #app:has(.workspace){grid-template-rows:52px minmax(0,1fr)}html.macos:not(.compact-ui) #app:has(.workspace) .tg-topbar{display:flex}html.macos:not(.compact-ui) .pane{grid-template-columns:minmax(232px,268px) minmax(280px,340px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:auto}html.macos:not(.compact-ui) .nav-rail{display:flex!important}html.macos:not(.compact-ui) .sidebar{border-right:1px solid var(--line);grid-column:auto;grid-row:auto}html.macos:not(.compact-ui) .stage{display:grid;grid-column:auto;grid-row:auto}html.macos:not(.compact-ui) .pane.chat-open .sidebar{display:flex}html.macos:not(.compact-ui) .mobile-tabs,html.macos:not(.compact-ui) .menu-btn,html.macos:not(.compact-ui) .back-btn,html.macos:not(.compact-ui) .sidebar-search,html.macos:not(.compact-ui) .mobile-drawer,html.macos:not(.compact-ui) .drawer-backdrop{display:none!important}html.macos:not(.compact-ui) .conv-head{padding:14px 14px 8px;gap:8px}html.macos:not(.compact-ui) .conv-head h2{font-size:18px;font-weight:600}html.macos:not(.compact-ui) .icon-btn{width:36px;height:36px;min-width:36px;min-height:36px}html.macos:not(.compact-ui) .send{width:38px;height:38px;min-width:38px;min-height:38px}html.macos:not(.compact-ui) .compose{grid-template-columns:auto 1fr auto auto auto;gap:6px;padding:8px 12px 12px}html.macos:not(.compact-ui) .compose.attaching{grid-template-columns:auto 1fr auto}html.macos:not(.compact-ui) .compose.recording{grid-template-columns:auto 1fr auto}html.macos:not(.compact-ui) .compose.recording.has-speech{grid-template-columns:auto 1fr auto auto}html.macos:not(.compact-ui) .compose #disappear-btn{display:grid}html.macos:not(.compact-ui) .compose input,html.macos:not(.compact-ui) .search input,html.macos:not(.compact-ui) .auth-card input,html.macos:not(.compact-ui) .settings-card input{font-size:13px;padding:10px 8px}html.macos:not(.compact-ui) .auth-card .field-icon input,html.macos:not(.compact-ui) .settings-card .field-icon input{padding-left:38px}html.macos:not(.compact-ui) .auth-card .field-icon.pw-field input,html.macos:not(.compact-ui) .settings-card .field-icon.pw-field input{padding-right:38px}html.macos:not(.compact-ui) .auth-card .primary:not(.profile-icon-btn):not(.profile-action-btn),html.macos:not(.compact-ui) .settings-card .primary:not(.profile-icon-btn):not(.profile-action-btn){min-height:0;font-size:14px;border-radius:8px}html.macos:not(.compact-ui) .auth-qr{display:grid}html.macos:not(.compact-ui) .auth-split{display:flex}html.macos:not(.compact-ui) .auth-login:has(.auth-qr){grid-template-columns:minmax(0,1fr) auto minmax(0,1.08fr);gap:8px 16px;width:min(820px,100%)}html.macos:not(.compact-ui) .auth-wrap{padding:28px 20px}html.macos:not(.compact-ui) .auth-card{padding:28px 22px;border-radius:18px}html.native-shell.macos:not(.compact-ui) #app,html.native-shell.macos:not(.compact-ui) #app:has(.workspace),html.native-shell.macos:not(.compact-ui) #app:has(.auth-wrap){grid-template-rows:1fr}@media(max-width:1100px){html.macos:not(.compact-ui) .pane{grid-template-columns:72px minmax(240px,320px) minmax(0,1fr)}html.macos:not(.compact-ui) .nav-rail{display:flex;flex-direction:column;padding:8px 0 12px}html.macos:not(.compact-ui) .nav-rail .me-row{justify-content:center;padding:12px 8px 8px}html.macos:not(.compact-ui) .nav-rail .me-row>div{display:none}html.macos:not(.compact-ui) .nav-rail .search{display:none}html.macos:not(.compact-ui) .nav-list{align-items:center;padding:4px 8px}html.macos:not(.compact-ui) .nav-item{width:48px;justify-content:center;padding:10px 0}html.macos:not(.compact-ui) .nav-item span,html.macos:not(.compact-ui) .nav-item b{display:none}html.macos:not(.compact-ui) .nav-item.on{box-shadow:inset 0 0 0 2px var(--primary)}html.macos:not(.compact-ui) .e2ee-card,html.macos:not(.compact-ui) .storage-card,html.macos:not(.compact-ui) .search kbd{display:none}}html.theme-light .folders button{background:var(--surface);border-color:var(--line)}html.theme-light .folders button:hover{border-color:rgba(var(--primary-rgb),.4)}html.theme-light .folders button b{background:rgba(var(--primary-rgb),.14);color:var(--primary)}html.theme-light .folders button.on b{background:#fff;color:var(--primary)}html.theme-light .requests-icon{background:rgba(var(--primary-rgb),.1);color:var(--primary)}html.theme-light .icon-btn.danger,html.theme-light .tg-menu-list button.danger,html.theme-light .chat-error,html.theme-light .profile-icon-btn.danger,html.theme-light .profile-action-btn.danger,html.theme-light .profile-action-btn.danger .profile-action-icon,html.theme-light .call-meta.missed em,html.theme-light .totp-box .danger,html.theme-light .error,html.theme-light .story-view-foot .danger,html.theme-light .story-feed-card-foot .danger,html.theme-light .story-feed-error,html.theme-light .pill.warn,html.theme-light .sheet-foot .ghost.danger{color:var(--danger)}html.theme-light .msg:not(.me) .voice-play{background:rgba(var(--primary-rgb),.12);color:var(--primary)}html.theme-light .msg:not(.me) .voice-play.on{background:var(--success);color:#fff}html.theme-light .story-compose-close,html.theme-light .story-view-close{background:var(--hover)}html.theme-light .story-compose-close:hover,html.theme-light .story-view-close:hover{background:var(--active)}html.theme-light .story-progress-seg{background:#0f172a24}html.theme-light .msg-hover-bar .icon-btn{background:#0f172a0f}html.theme-light .avatar{box-shadow:0 2px 6px #0f172a24,inset 0 0 0 1px #ffffff40}html.theme-light.macos .tg-topbar{background:#ffffffdb;border-bottom-color:var(--line)}html.theme-light.macos .nav-rail{background:#fffffff0}html.theme-light.macos .search{background:#f1f5f9f2;box-shadow:inset 0 0 0 1px var(--line)}html.theme-light.macos .compose-field,html.theme-light.macos .auth-card input,html.theme-light.macos .settings-card input{box-shadow:inset 0 0 0 1px var(--line)}html.theme-light.macos .chat-head{background:#ffffffe6}html.theme-light.macos .compose{background:#fffffff0}html.theme-light.macos *{scrollbar-color:rgba(15,23,42,.25) transparent}html.theme-light.macos ::-webkit-scrollbar-thumb{background:#0f172a38;background-clip:padding-box}
