:root{--agc-primary:#1e7b3c;--agc-primary-dark:#0f5a2c;--agc-primary-soft:#e8f5ec;--agc-danger:#e5383b;--agc-surface:#fff;--agc-text:#1a1f1c;--agc-text-muted:#6b7570;--agc-border:#e3e8e4;--agc-call-bg:#0e1411;--agc-call-text:#fff;--agc-call-muted:#ffffffb8;--agc-control-bg:#ffffff24;--agc-control-bg-hover:#ffffff3d;--agc-control-size:56px;--agc-radius:16px;--agc-font:"Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;--agc-z:1000}.agc-backdrop{z-index:var(--agc-z);font-family:var(--agc-font);background:#080c0a99;place-items:center;line-height:1.6;display:grid;position:fixed;inset:0}.agc-dialog{border-radius:var(--agc-radius);background:radial-gradient(120% 80% at 50% 0%, #1b3a27 0%, var(--agc-call-bg) 62%);width:min(440px,100vw);min-height:min(620px,100dvh);max-height:100dvh;color:var(--agc-call-text);flex-direction:column;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 64px #00000059}.agc-dialog--video{aspect-ratio:16/10;width:min(960px,100vw);min-height:0}@media (width<=640px){.agc-dialog,.agc-dialog--video{aspect-ratio:auto;border-radius:0;width:100vw;height:100dvh;min-height:100dvh}}.agc-banner{z-index:3;color:#fff;background:#b45309;justify-content:center;align-items:center;gap:12px;padding:8px 16px;font-size:14px;display:flex;position:absolute;top:0;left:0;right:0}.agc-stage{flex-direction:column;flex:1;justify-content:space-between;align-items:center;gap:24px;padding:48px 24px 32px;display:flex;position:relative}.agc-stage--video{padding:0}.agc-stage--video:before{content:"";z-index:1;pointer-events:none;background:linear-gradient(#00000080,#0000);height:120px;position:absolute;inset:0 0 auto}.agc-identity{text-align:center;flex-direction:column;align-items:center;gap:8px;max-width:100%;margin-top:24px;display:flex}.agc-stage--video .agc-identity{margin-top:64px;padding:0 24px}.agc-identity--overlay{text-align:left;z-index:2;text-shadow:0 1px 4px #0009;align-items:flex-start;position:absolute;top:16px;left:16px;right:40%;margin-top:0!important;padding:0!important}.agc-identity--overlay .agc-name{font-size:18px}.agc-name{overflow-wrap:anywhere;margin:8px 0 0;font-size:26px;font-weight:600;line-height:1.3}.agc-status{color:var(--agc-call-muted);margin:0;font-size:16px}.agc-timer{font-variant-numeric:tabular-nums;color:var(--agc-call-text)}.agc-note{color:var(--agc-call-muted);margin:0;font-size:14px}.agc-error{color:#ffd7d8;text-align:left;background:#e5383b29;border-radius:12px;max-width:360px;margin:8px 0 0;padding:10px 14px;font-size:14px}.agc-history .agc-error{color:var(--agc-danger);background:#fde8e8}.agc-avatar{object-fit:cover;background:var(--agc-primary-soft);border-radius:50%;flex:none}.agc-avatar--initial{color:var(--agc-primary-dark);place-items:center;font-weight:600;display:grid}.agc-pulse{border-radius:50%;animation:1.8s ease-out infinite agc-pulse}@keyframes agc-pulse{0%{box-shadow:0 0 #1e7b3c99}to{box-shadow:0 0 0 28px #1e7b3c00}}.agc-remote-video{object-fit:cover;background:#000;width:100%;height:100%;position:absolute;inset:0}.agc-local-video{z-index:2;aspect-ratio:3/4;object-fit:cover;background:#000;border:2px solid #fffc;border-radius:12px;width:clamp(96px,22%,200px);position:absolute;top:16px;right:16px;box-shadow:0 6px 18px #0006}.agc-local-video[data-mirror]{transform:scaleX(-1)}.agc-controls{z-index:2;flex-wrap:wrap;justify-content:center;gap:16px;margin-bottom:8px;padding:12px 16px;display:flex;position:relative}.agc-stage--video .agc-controls{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#00000059;border-radius:999px;margin-top:auto;margin-bottom:24px}.agc-stage--incoming .agc-controls{gap:64px}.agc-control{width:var(--agc-control-size);height:var(--agc-control-size);background:var(--agc-control-bg);color:#fff;cursor:pointer;border:0;border-radius:50%;place-items:center;transition:background-color .15s,transform .15s;display:grid}.agc-control:hover:not(:disabled){background:var(--agc-control-bg-hover)}.agc-control:active:not(:disabled){transform:scale(.95)}.agc-control[aria-pressed=true]{color:var(--agc-call-bg);background:#fff}.agc-control--danger{background:var(--agc-danger)}.agc-control--danger:hover:not(:disabled){background:#c92a2d}.agc-control--accept{background:var(--agc-primary)}.agc-control--accept:hover:not(:disabled){background:var(--agc-primary-dark)}.agc-control:disabled{opacity:.5;cursor:not-allowed}.agc-control:focus-visible,.agc-btn:focus-visible,.agc-link:focus-visible,.agc-call-button:focus-visible,.agc-output select:focus-visible{outline-offset:3px;outline:3px solid #8fd3a5}.agc-output{width:var(--agc-control-size);height:var(--agc-control-size);background:var(--agc-control-bg);color:#fff;border-radius:50%;place-items:center;display:grid;position:relative}.agc-output select{opacity:0;cursor:pointer;border-radius:50%;position:absolute;inset:0}.agc-output:focus-within{outline-offset:3px;outline:3px solid #8fd3a5}.agc-sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.agc-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.agc-btn{min-height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid #fff6;border-radius:999px;padding:10px 22px;font-weight:600}.agc-btn--primary{border-color:var(--agc-primary);background:var(--agc-primary);color:#fff}.agc-link{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;min-height:32px;font-weight:600;text-decoration:underline}.agc-call-button{border:1px solid var(--agc-border);background:var(--agc-primary-soft);width:44px;height:44px;color:var(--agc-primary);cursor:pointer;border-radius:50%;place-items:center;display:inline-grid}.agc-call-button:hover:not(:disabled){background:var(--agc-primary);color:#fff}.agc-call-button:disabled{opacity:.45;cursor:not-allowed}.agc-history{font-family:var(--agc-font);color:var(--agc-text);background:var(--agc-surface);border:1px solid var(--agc-border);border-radius:var(--agc-radius);padding:16px}.agc-history .agc-note{color:var(--agc-text-muted)}.agc-history .agc-btn{border-color:var(--agc-border);color:var(--agc-primary);margin-top:8px}.agc-history__title{margin:0 0 8px;font-size:18px}.agc-history__list{margin:0;padding:0;list-style:none}.agc-history__row{border-top:1px solid var(--agc-border);align-items:center;gap:12px;padding:10px 0;display:flex}.agc-history__row:first-child{border-top:0}.agc-history__main{flex-direction:column;flex:1;min-width:0;display:flex}.agc-history__name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.agc-history__meta{color:var(--agc-text-muted);flex-wrap:wrap;align-items:center;gap:4px;font-size:13px;display:flex}.agc-history__time{color:var(--agc-text-muted);font-size:12px}.agc-history__row[data-outcome=missed] .agc-history__outcome,.agc-history__row[data-outcome=failed] .agc-history__outcome{color:var(--agc-danger);font-weight:600}@media (prefers-reduced-motion:reduce){.agc-pulse{animation:none}.agc-control{transition:none}}:root{--wan-font:"Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;--wan-font-bn:"Hind Siliguri", "Inter", system-ui, sans-serif;--wan-blue-50:#eef4ff;--wan-blue-100:#dbe7ff;--wan-blue-500:#3b6ef5;--wan-blue-600:#2f5ee8;--wan-blue-700:#2449c4;--wan-violet-500:#6d4cf6;--wan-navy-900:#121a3a;--wan-navy-800:#182350;--wan-navy-700:#22306a;--wan-green:#16a34a;--wan-red:#e5484d;--wan-amber:#f59e0b;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--radius-sm:10px;--radius-md:14px;--radius-lg:18px;--radius-pill:999px;--motion-fast:.12s;--motion:.2s;--ease:cubic-bezier(.2, .7, .2, 1);--bg:#f3f5fb;--surface:#fff;--surface-2:#f6f8fc;--surface-hover:#f1f4fb;--surface-active:#eaf0ff;--border:#e6e9f2;--text:#141a2e;--text-2:#4b5470;--text-3:#7d86a1;--accent:var(--wan-blue-600);--accent-hover:var(--wan-blue-700);--accent-soft:var(--wan-blue-50);--accent-text:#fff;--bubble-in:#f1f3f8;--bubble-out:var(--wan-blue-600);--bubble-out-text:#fff;--nav-bg:linear-gradient(180deg, var(--wan-navy-900) 0%, var(--wan-navy-800) 100%);--nav-text:#c9d1ee;--nav-text-strong:#fff;--nav-active:#5b84ff47;--nav-hover:#ffffff12;--shadow-1:0 1px 2px #141a2e0d, 0 1px 1px #141a2e08;--shadow-2:0 8px 24px #141a2e14;--shadow-3:0 18px 48px #141a2e38;--focus:0 0 0 3px #3b6ef559}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0b1020;--surface:#121830;--surface-2:#161d38;--surface-hover:#1a2242;--surface-active:#1e2a55;--border:#232c4d;--text:#e8ecf8;--text-2:#b3bbd6;--text-3:#7f88a8;--accent:#5b84ff;--accent-hover:#7499ff;--accent-soft:#5b84ff29;--bubble-in:#1b2340;--bubble-out:#3d67f0;--nav-bg:linear-gradient(180deg, #080c1c 0%, #0d1430 100%);--shadow-1:0 1px 2px #0006;--shadow-2:0 8px 24px #0006;--shadow-3:0 18px 48px #0009}}:root[data-theme=dark]{--bg:#0b1020;--surface:#121830;--surface-2:#161d38;--surface-hover:#1a2242;--surface-active:#1e2a55;--border:#232c4d;--text:#e8ecf8;--text-2:#b3bbd6;--text-3:#7f88a8;--accent:#5b84ff;--accent-hover:#7499ff;--accent-soft:#5b84ff29;--bubble-in:#1b2340;--bubble-out:#3d67f0;--nav-bg:linear-gradient(180deg, #080c1c 0%, #0d1430 100%);--shadow-1:0 1px 2px #0006;--shadow-2:0 8px 24px #0006;--shadow-3:0 18px 48px #0009}@media (prefers-reduced-motion:reduce){:root{--motion-fast:0s;--motion:0s}}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--wan-font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.45;overflow-x:hidden}:lang(bn) body,html:lang(bn){font-family:var(--wan-font-bn)}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{box-shadow:var(--focus);border-radius:var(--radius-sm);outline:none}h1,h2,h3,h4{margin:0;line-height:1.2}ul{margin:0;padding:0;list-style:none}.muted{color:var(--text-3)}.small{font-size:13px}.danger{color:var(--wan-red)!important}.error{color:var(--wan-red)}.center{min-height:100%;padding:var(--space-6);text-align:center;place-items:center;display:grid}.app{grid-template-rows:minmax(0,1fr);grid-template-columns:248px 1fr;gap:12px;height:100dvh;padding:12px;display:grid}.main{flex-direction:column;gap:12px;min-width:0;min-height:0;display:flex}.content{flex:1;min-height:0;display:flex}.content>*{flex:1;min-width:0}.sidebar{background:var(--nav-bg);color:var(--nav-text);border-radius:var(--radius-lg);min-height:0;box-shadow:var(--shadow-2);flex-direction:column;padding:22px 14px 14px;display:flex;overflow-y:auto}.brand{align-items:center;gap:10px;padding:0 8px 22px;display:flex}.brand strong{letter-spacing:.5px;color:var(--nav-text-strong);font-size:22px;line-height:1;display:block}.brand span{color:var(--nav-text);margin-top:3px;font-size:11px;display:block}.signin .brand strong{color:var(--text)}.signin .brand span{color:var(--text-3)}.nav{gap:4px;display:grid}.nav-item{width:100%;color:var(--nav-text);transition:background var(--motion-fast) var(--ease), color var(--motion-fast);border-radius:12px;align-items:center;gap:14px;padding:12px 14px;font-weight:500;text-decoration:none;display:flex}.nav-item:hover{background:var(--nav-hover);color:var(--nav-text-strong)}.nav-item.active{background:var(--nav-active);color:var(--nav-text-strong);box-shadow:inset 0 0 0 1px #7c9cff40}.nav-item .badge{background:var(--wan-red);color:#fff;border-radius:var(--radius-pill);margin-left:auto;padding:1px 8px;font-size:12px;font-weight:700}.sidebar>.brand,.sidebar>.nav,.sidebar>.app-card{flex-shrink:0}.nav-spacer{flex:1;min-height:16px}.nav-bottom{border-top:1px solid #ffffff14;margin-top:12px;padding-top:12px}.app-card{background:#ffffff0f;border:1px solid #ffffff14;border-radius:14px;overflow:hidden}.app-card-art,.cover-art,.hero-art{background:radial-gradient(120% 80% at 20% 0,#ffd68ce6,#0000 55%),radial-gradient(90% 70% at 90% 20%,#82c8ffd9,#0000 60%),linear-gradient(#7cc0e8 0%,#9fd39a 55%,#3f8f4d 100%)}.app-card-art{height:64px}.app-card-body{padding:10px 12px 12px}.app-card-body strong{color:var(--nav-text-strong);display:block}.app-card-body>span{font-size:12px}.app-switch{color:var(--nav-text-strong);margin-top:8px;font-size:14px;font-weight:600;display:block;position:relative}.app-switch select{opacity:0;cursor:pointer;position:absolute;inset:0}.topbar{align-items:center;gap:var(--space-4);background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-1);padding:10px 14px;display:flex}.search{background:var(--surface-2);border:1px solid var(--border);min-width:0;max-width:640px;height:44px;color:var(--text-3);border-radius:12px;flex:1;align-items:center;gap:10px;padding:0 12px;display:flex}.search input{min-width:0;color:var(--text);background:0 0;border:0;outline:none;flex:1}.search kbd{font:12px var(--wan-font);background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:2px 6px}.topbar-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.icon-btn{min-width:40px;height:40px;color:var(--text-2);transition:background var(--motion-fast);border-radius:12px;grid-auto-flow:column;place-content:center;align-items:center;gap:4px;padding:0 8px;display:inline-grid;position:relative}.icon-btn:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.icon-btn.soft,.icon-btn.on{background:var(--accent-soft);color:var(--accent)}.lang-tag{font-size:12px;font-weight:600}.dot-badge{border-radius:var(--radius-pill);background:var(--wan-red);color:#fff;border:2px solid var(--surface);place-items:center;min-width:18px;height:18px;padding:0 4px;font-size:11px;font-weight:700;display:grid;position:absolute;top:4px;right:4px}.me{border-left:1px solid var(--border);align-items:center;gap:10px;margin-left:4px;padding-left:8px;display:flex}.me-text strong{font-size:14px;display:block}.status{color:var(--text-3);font-size:12px}.status-connected{color:var(--wan-green)}.menu-btn{display:none}.hamburger,.hamburger:before,.hamburger:after{background:currentColor;border-radius:2px;width:18px;height:2px;display:block;position:relative}.hamburger:before,.hamburger:after{content:"";position:absolute}.hamburger:before{top:-6px}.hamburger:after{top:6px}.avatar{color:#fff;background:linear-gradient(135deg, hsl(var(--hue) 62% 58%), hsl(calc(var(--hue) + 40) 62% 46%));-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;place-items:center;font-weight:600;display:inline-grid;position:relative}.avatar img{object-fit:cover;border-radius:50%;width:100%;height:100%}.avatar-dot{background:var(--wan-green);border:2px solid var(--surface);border-radius:50%;width:28%;min-width:10px;height:28%;min-height:10px;position:absolute;bottom:0;right:0}.group-avatar{flex:none;display:inline-block;position:relative}.group-avatar>.avatar:first-child{position:absolute;top:0;left:0}.group-avatar>.avatar:last-child{box-shadow:0 0 0 2px var(--surface);position:absolute;bottom:0;right:0}.panel{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-1);flex-direction:column;min-width:0;min-height:0;display:flex}.panel-head{justify-content:space-between;align-items:center;gap:var(--space-3);padding:18px 18px 12px;display:flex}.panel-head h1{font-size:22px}.panel-head h2{font-size:18px}.messages-screen{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(300px,360px) 1fr;gap:12px;min-height:0;display:grid}.messages-screen.with-info{grid-template-columns:minmax(300px,360px) 1fr minmax(280px,320px)}.tabs{gap:6px;padding:0 14px 10px;display:flex;overflow-x:auto}.tab{border-radius:var(--radius-pill);color:var(--text-2);white-space:nowrap;border:1px solid #0000;align-items:center;gap:6px;padding:6px 12px;font-size:14px;font-weight:500;display:inline-flex}.tab:hover{background:var(--surface-hover)}.tab.on{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb, var(--accent) 30%, transparent)}.tab-count{background:var(--surface-2);border-radius:var(--radius-pill);padding:0 7px;font-size:12px;font-weight:700}.tab.on .tab-count{background:var(--accent);color:var(--accent-text)}.conv-list{flex:1;padding:2px 10px 12px;overflow-y:auto}.conv{text-align:left;width:100%;transition:background var(--motion-fast);border-radius:14px;align-items:center;gap:12px;padding:12px 10px;display:flex}.conv:hover{background:var(--surface-hover)}.conv.active{background:var(--surface-active)}.conv-main{flex:1;gap:2px;min-width:0;display:grid}.conv-top,.conv-bottom{align-items:center;gap:8px;display:flex}.conv-top strong{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.conv-top time{color:var(--text-3);white-space:nowrap;font-size:12px}.conv-preview{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text-3);flex:1;font-size:14px;overflow:hidden}.conv-preview.unread{color:var(--text);font-weight:500}.count{background:var(--accent);color:var(--accent-text);border-radius:var(--radius-pill);place-items:center;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-weight:700;display:grid}.skeleton .sk-avatar{background:var(--surface-2);border-radius:50%;width:44px;height:44px}.sk-lines{flex:1;gap:8px;display:grid}.sk-lines span{background:var(--surface-2);border-radius:6px;height:10px;animation:1.2s ease-in-out infinite pulse}.sk-lines span:last-child{width:60%}@keyframes pulse{50%{opacity:.5}}.thread-head{border-bottom:1px solid var(--border);align-items:center;gap:14px;padding:14px 18px;display:flex}.thread-title{flex:1;min-width:0}.thread-title h2{text-overflow:ellipsis;white-space:nowrap;font-size:18px;overflow:hidden}.thread-title span{color:var(--text-3);font-size:13px}.thread-actions{gap:2px;display:flex}.back-btn{display:none}.messages{flex-direction:column;flex:1;gap:4px;padding:16px 20px;display:flex;overflow-y:auto}.cover{border-radius:16px;min-height:170px;margin-bottom:8px;display:grid;position:relative;overflow:hidden}.cover-art{grid-area:1/1}.cover-text{text-align:center;color:#fff;text-shadow:0 2px 12px #00000073;grid-area:1/1;place-self:end center;padding:18px}.cover-text strong{font-size:30px;font-weight:700;display:block}.day{justify-content:center;margin:12px 0;display:flex}.day span{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--text-2);padding:3px 14px;font-size:13px}.system-msg{text-align:center;color:var(--text-3);margin:4px 0;font-size:13px}.msg{animation:rise var(--motion) var(--ease);align-items:flex-end;gap:10px;margin:6px 0;display:flex}@keyframes rise{0%{opacity:0;transform:translateY(4px)}}.msg.out{justify-content:flex-end}.msg-col{gap:4px;max-width:min(560px,75%);display:grid}.msg.out .msg-col{justify-items:end}.msg-meta{color:var(--text-3);font-size:13px}.msg-meta strong{color:var(--accent);font-weight:600}.bubble{text-align:left;background:var(--bubble-in);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:18px;flex-wrap:wrap;align-items:flex-end;gap:4px 10px;padding:10px 14px;font-size:16px;display:inline-flex}.msg.in .bubble{border-bottom-left-radius:6px}.msg.out .bubble{background:var(--bubble-out);color:var(--bubble-out-text);border-bottom-right-radius:6px}.bubble-time{opacity:.75;align-items:center;gap:3px;margin-left:auto;font-size:11px;display:inline-flex}.tick.read{color:#9ee7ff}.msg.pending .bubble{opacity:.75}.msg.pending .bubble.failed{background:var(--wan-red);opacity:1}.reactions{gap:6px;display:flex}.reaction{border-radius:var(--radius-pill);background:var(--surface);border:1px solid var(--border);align-items:center;gap:4px;padding:2px 10px;font-size:14px;display:inline-flex}.reaction.mine{border-color:var(--accent);background:var(--accent-soft)}.typing-bubble{background:var(--bubble-in);border-radius:18px;gap:4px;padding:14px 16px;display:inline-flex}.typing-bubble span{background:var(--text-3);border-radius:50%;width:7px;height:7px;animation:1.2s infinite blink}.typing-bubble span:nth-child(2){animation-delay:.2s}.typing-bubble span:nth-child(3){animation-delay:.4s}@keyframes blink{50%{opacity:.25;transform:translateY(-2px)}}.load-older{align-self:center}.composer{background:var(--surface-2);border:1px solid var(--border);border-radius:16px;align-items:center;gap:6px;margin:8px 16px 10px;padding:6px 6px 6px 8px;display:flex}.composer input{background:var(--surface);border:0;border-radius:12px;outline:none;flex:1;min-width:0;padding:10px 14px}.emoji-wrap{display:inline-flex;position:relative}.emoji-pop{z-index:20;background:var(--surface);border:1px solid var(--border);width:min(352px,100vw - 24px);box-shadow:var(--shadow-2);animation:rise var(--motion) var(--ease);border-radius:16px;position:absolute;bottom:calc(100% + 10px);right:-60px;overflow:hidden}.emoji-tabs{border-bottom:1px solid var(--border);gap:2px;padding:6px;display:flex;overflow-x:auto}.emoji-tabs button{opacity:.6;border-radius:9px;flex:none;width:36px;height:34px;font-size:18px}.emoji-tabs button.on{background:var(--accent-soft);opacity:1}.emoji-grid{grid-template-columns:repeat(8,1fr);gap:2px;max-height:240px;padding:8px;display:grid;overflow-y:auto}.emoji-grid button{border-radius:8px;height:38px;font-size:22px}.emoji-grid button:hover{background:var(--surface-hover)}@media (width<=520px){.emoji-pop{width:auto;position:fixed;bottom:76px;left:12px;right:12px}}.bubble.has-att{flex-direction:column;align-items:stretch;gap:6px;padding:6px}.bubble.has-att .bubble-text{padding:2px 8px}.bubble.has-att .bubble-time{padding:0 8px 2px}.att-images{gap:4px;max-width:320px;display:grid}.att-images.n2,.att-images.n3,.att-images.n4{grid-template-columns:1fr 1fr}.att-img img{object-fit:cover;background:var(--surface-2);border-radius:12px;width:100%;height:auto;max-height:320px;display:block}.att-images.n2 .att-img img,.att-images.n3 .att-img img,.att-images.n4 .att-img img{aspect-ratio:1}.att-file{background:color-mix(in srgb, currentColor 8%, transparent);min-width:220px;color:inherit;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;display:flex}.att-file>span{flex:1;min-width:0;display:grid}.att-file strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.att-file small{opacity:.75;font-size:12px}.att-voice{max-width:260px}.pending-file{align-items:center;gap:8px;font-size:13px;display:flex}.pending-file img{object-fit:cover;border-radius:8px;width:48px;height:48px}.pending-file progress{width:80px}.composer-error{background:color-mix(in srgb, var(--wan-red) 10%, transparent);color:var(--wan-red);border-radius:10px;margin:0 16px;padding:8px 12px;font-size:13px}.shared-list{gap:8px;display:grid}.shared-list .att-images{grid-template-columns:repeat(3,1fr);max-width:none}.shared-list .att-img img{aspect-ratio:1}.shared-list .att-file{background:var(--surface-2);min-width:0}.send-btn{background:var(--accent);width:42px;height:42px;color:var(--accent-text);transition:background var(--motion-fast), transform var(--motion-fast);border-radius:50%;place-items:center;display:grid}.send-btn:hover:not(:disabled){background:var(--accent-hover);transform:scale(1.04)}.quick-actions{grid-template-columns:repeat(4,1fr);gap:10px;padding:0 16px 16px;display:grid}.quick{background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:14px;justify-items:center;gap:6px;padding:14px 8px;font-size:14px;font-weight:500;display:grid}.quick svg{color:var(--accent)}.quick:hover:not(:disabled){background:var(--accent-soft)}.placeholder{justify-content:center}.info-panel{overflow-y:auto}.info-hero{text-align:center;justify-items:center;gap:6px;padding:4px 18px 16px;display:grid}.hero-art{width:92px;height:92px;box-shadow:0 0 0 4px var(--surface), 0 6px 20px #0000001f;border-radius:50%}.info-hero h3{margin-top:6px;font-size:20px}.info-hero span{color:var(--text-3);font-size:14px}.member-stack{background:var(--surface-2);border-radius:14px;align-items:center;margin:0 18px 12px;padding:10px 12px;display:flex}.member-stack>span:not(.more){margin-right:-8px}.member-stack .avatar{box-shadow:0 0 0 2px var(--surface-2)}.member-stack .more{background:var(--surface);border-radius:var(--radius-pill);margin-left:auto;padding:4px 10px;font-size:14px;font-weight:600}.info-actions{border-bottom:1px solid var(--border);padding:4px 10px 10px}.info-row{text-align:left;width:100%;color:var(--text);border-radius:12px;align-items:center;gap:14px;padding:11px 10px;display:flex}button.info-row:hover:not(:disabled){background:var(--surface-hover)}.info-row>span{flex:1}.info-row svg{color:var(--text-2)}.info-row.danger svg{color:var(--wan-red)}.block-row{gap:4px;display:grid}.check{color:var(--text-2);align-items:center;gap:8px;padding:6px 12px 0;font-size:13px;display:flex}.switch{border-radius:var(--radius-pill);background:var(--border);width:40px;height:22px;transition:background var(--motion);flex:none;position:relative}.switch:after{content:"";width:16px;height:16px;transition:transform var(--motion) var(--ease);background:#fff;border-radius:50%;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.switch.on{background:var(--accent)}.switch.on:after{transform:translate(18px)}.shared{padding:14px 18px 18px}.shared h4{margin-bottom:8px;font-size:15px}.shared p{align-items:flex-start;gap:8px;margin:0;font-size:14px;display:flex}.page{align-content:start;gap:14px;padding:2px;display:grid;overflow-y:auto}.page-head{padding:8px 4px 0}.page-head h1{align-items:center;gap:10px;font-size:26px;display:flex}.page-head p{margin:6px 0 0}.page-head.row{justify-content:space-between;align-items:center;display:flex}.card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-1);padding:18px}.card h2{margin-bottom:12px;font-size:17px}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.stat{text-align:left;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-1);justify-items:start;gap:4px;padding:18px;display:grid}.stat svg{color:var(--accent)}.stat strong{font-size:30px}.stat span{color:var(--text-3)}.stat:hover{box-shadow:var(--shadow-2)}.notes,.calls{display:grid}.note,.call-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 6px;display:flex}.note:last-child,.call-row:last-child{border-bottom:0}.note-icon{background:var(--accent-soft);width:36px;height:36px;color:var(--accent);border-radius:50%;flex:none;place-items:center;display:grid}.note-text{flex:1}.note.unread .note-text{font-weight:600}.note time{color:var(--text-3);font-size:12px}.call-main{flex:1;display:grid}.call-main small{color:var(--text-3);align-items:center;gap:4px;display:inline-flex}.settings{display:grid}.setting{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:14px 0;display:flex}.setting:last-child{border-bottom:0}.setting select,.field{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:8px 10px}.field{width:100%;margin-bottom:10px}.row-actions{flex-wrap:wrap;justify-content:space-between;gap:10px;display:flex}.btn{transition:background var(--motion-fast);border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-weight:600;display:inline-flex}.btn.primary{background:var(--accent);color:var(--accent-text)}.btn.primary:hover:not(:disabled){background:var(--accent-hover)}.btn.ghost{background:var(--surface-2);border:1px solid var(--border)}.btn.ghost:hover:not(:disabled){background:var(--surface-hover)}.btn.danger{background:color-mix(in srgb, var(--wan-red) 12%, transparent);color:var(--wan-red)}.people{gap:2px;display:grid}.people.grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.person{text-align:left;border-radius:12px;align-items:center;gap:12px;width:100%;padding:8px;display:flex}button.person:hover{background:var(--surface-hover)}.person>span{flex:1;display:grid}.person small{color:var(--text-3)}.person .picked{color:var(--accent)}.person-card,.app-tile{text-align:center;justify-items:center;gap:8px;display:grid}.app-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;display:grid}.field-search{max-width:none;margin-bottom:10px}.field-search.big{background:var(--surface);height:50px}.chips{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.chip{border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent);align-items:center;gap:4px;padding:4px 10px;font-size:13px;font-weight:600;display:inline-flex}.empty{text-align:center;color:var(--text-2);justify-items:center;gap:8px;padding:32px 16px;display:grid}.empty-icon{background:var(--accent-soft);width:60px;height:60px;color:var(--accent);border-radius:50%;place-items:center;display:grid}.empty h3{color:var(--text);font-size:17px}.empty p{max-width:420px;margin:0}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;margin:16px auto;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.dialog-backdrop{z-index:50;animation:fade var(--motion) var(--ease);background:#080c1e73;place-items:center;padding:16px;display:grid;position:fixed;inset:0}@keyframes fade{0%{opacity:0}}.dialog{background:var(--surface);border-radius:var(--radius-lg);width:min(480px,100%);max-height:min(640px,100%);box-shadow:var(--shadow-3);padding:0 18px 18px;overflow-y:auto}.dialog .panel-head{padding-left:0;padding-right:0}.dialog-foot{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.signin{background:radial-gradient(60% 50% at 10% 0%, color-mix(in srgb, var(--wan-violet-500) 18%, transparent), transparent), radial-gradient(60% 50% at 100% 100%, color-mix(in srgb, var(--wan-blue-500) 18%, transparent), transparent), var(--bg);place-items:center;min-height:100%;padding:16px;display:grid}.signin-card{background:var(--surface);width:min(460px,100%);box-shadow:var(--shadow-2);border-radius:22px;gap:14px;padding:28px;display:grid}.signin-card h1{font-size:24px}.signin-card p{margin:0}.pw-field{gap:6px;font-size:14px;font-weight:600;display:grid}.pw-field .field{margin:0}.persona-list{gap:8px;display:grid}.persona{background:var(--surface-2);border:1px solid var(--border);justify-content:flex-start;width:100%}.persona:hover{background:var(--accent-soft)}.wcc-call{--agc-primary:var(--accent);--agc-primary-dark:var(--accent-hover);--agc-primary-soft:var(--accent-soft);--agc-danger:var(--wan-red);--agc-surface:var(--surface);--agc-text:var(--text);--agc-text-muted:var(--text-3);--agc-border:var(--border);--agc-call-bg:#0f1630;--agc-radius:18px;--agc-font:var(--wan-font)}@media (width>=901px){.wcc-call .agc-backdrop{background:0 0;display:block;inset:auto 24px 24px auto}.wcc-call .agc-dialog{width:400px;min-height:0;max-height:calc(100dvh - 48px);box-shadow:var(--shadow-3);border-radius:18px;overflow:hidden}.wcc-call .agc-dialog--video{width:520px}}.scrim{display:none}@media (width<=1280px){.messages-screen.with-info{grid-template-columns:minmax(280px,340px) 1fr}.messages-screen.with-info .info-panel{z-index:30;width:min(340px,100vw - 24px);box-shadow:var(--shadow-3);position:fixed;top:12px;bottom:12px;right:12px}}@media (width<=1100px){.me-text,.search kbd{display:none}}@media (width<=900px){.app{grid-template-columns:1fr;gap:0;padding:0}.main{gap:0}.topbar{border-radius:0;gap:8px;padding:8px 12px}.content{padding:8px}.menu-btn{display:inline-grid}.sidebar{z-index:40;width:272px;transition:transform var(--motion) var(--ease);border-radius:0 18px 18px 0;position:fixed;inset:0 auto 0 0;transform:translate(-105%)}.sidebar.open{transform:none}.scrim{z-index:39;opacity:0;pointer-events:none;transition:opacity var(--motion);background:#080c1e73;display:block;position:fixed;inset:0}.scrim.show{opacity:1;pointer-events:auto}.messages-screen,.messages-screen.with-info{grid-template-columns:1fr}.messages-screen.with-thread .list-panel,.messages-screen:not(.with-thread) .thread-panel{display:none}.back-btn{display:inline-grid}.thread-head{gap:10px;padding:10px 12px}.thread-actions .icon-btn:first-child{display:none}.messages{padding:12px}.msg-col{max-width:82%}.quick-actions{display:none}.composer{margin:6px 8px 8px}.lang-tag{display:none}}@media (width<=520px){.search{height:40px}.topbar-actions{gap:0}.me{border-left:0;gap:2px;margin-left:0;padding-left:4px}.topbar-actions .icon-btn:first-child{display:none}.cover{min-height:120px}.cover-text strong{font-size:22px}}
