@font-face{font-family:Vazirmatn;src:url(/assets/Vazirmatn_wght_-BeciDpKm.woff2) format("woff2 supports variations"),url(/assets/Vazirmatn_wght_-BeciDpKm.woff2) format("woff2-variations");font-weight:100 900;font-style:normal;font-display:swap}:root{--primary: #0f7b6c;--primary-2: #13957f;--accent: #0fa58d;--bg: #ffffff;--bg-2: #f2f4f5;--chat-bg: #e9e2d8;--bubble-in: #ffffff;--bubble-out: #d9fdd3;--text: #111b21;--text-2: #667781;--border: #e5e7ea;--danger: #e5484d;--tick-read: #34a8ed;--shadow: 0 1px 1px rgba(0, 0, 0, .12);--topbar: #0f7b6c;--topbar-text: #ffffff;--sheet: #ffffff;--hover: rgba(0, 0, 0, .05);--font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;--fs: 17px;color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #111b21;--bg-2: #0b141a;--chat-bg: #0b141a;--bubble-in: #202c33;--bubble-out: #005c4b;--text: #e9edef;--text-2: #8696a0;--border: #222d34;--topbar: #202c33;--topbar-text: #e9edef;--sheet: #1f2c34;--hover: rgba(255, 255, 255, .06);--shadow: 0 1px 1px rgba(0, 0, 0, .3);color-scheme:dark}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--font);font-size:var(--fs);line-height:1.55}body{overflow:hidden;overscroll-behavior:none}#app{height:100dvh}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;padding:0}a{color:var(--accent)}.icon{display:block;flex-shrink:0}.hint{color:var(--text-2);font-size:.85em}.center{text-align:center;display:flex;justify-content:center}.pad{padding:12px 16px}.pad-x{padding:8px 16px}.grow{flex:1;min-width:0}.accent{color:var(--accent)}.danger{color:var(--danger)!important}.error{color:var(--danger);margin:4px 0}.mono{font-family:ui-monospace,monospace;font-size:.85em;word-break:break-all}.scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;min-height:0}.rot-down{transform:rotate(90deg)}.app{display:flex;height:100%;position:relative}.app>.list-pane{width:100%}.main{display:none;flex:1;min-width:0;height:100%}.app.has-main>.list-pane{display:none}.app.has-main .main{display:flex}@media(min-width:900px){.app>.list-pane,.app.has-main>.list-pane{display:flex;width:380px;flex-shrink:0;border-left:1px solid var(--border)}.main{display:flex}}.pane{display:flex;flex-direction:column;height:100%;width:100%;position:relative;background:var(--bg)}.empty-pane{align-items:center;justify-content:center;color:var(--text-2);background:var(--bg-2);gap:8px}.center-screen{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px}.topbar{display:flex;align-items:center;gap:6px;min-height:60px;padding:6px 8px;padding-top:max(6px,env(safe-area-inset-top));background:var(--topbar);color:var(--topbar-text);flex-shrink:0;z-index:2}.topbar .avatar{margin-inline-start:2px}.topbar-title{flex:1;min-width:0;padding:0 6px;cursor:default}.topbar-title[role=button]{cursor:pointer}.topbar-title .t1{font-weight:700;font-size:1.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-title .t1.brand{font-size:1.3em}.topbar-title .t2{font-size:.8em;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-actions{display:flex;align-items:center}.icon-btn{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:inherit;flex-shrink:0}.icon-btn:hover{background:var(--hover)}.icon-btn:disabled{opacity:.4}.icon-btn.small{width:36px;height:36px}.search-input{flex:1;background:#ffffff26;border:0;border-radius:22px;padding:8px 16px;color:inherit;outline:none}.search-input::placeholder{color:inherit;opacity:.7}.avatar{border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;position:relative;flex-shrink:0;overflow:visible}.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.online-dot{position:absolute;bottom:1px;left:1px;width:26%;height:26%;min-width:10px;min-height:10px;background:#25d366;border:2px solid var(--bg);border-radius:50%}.chat-list{padding-bottom:96px}.chat-row{display:flex;align-items:center;gap:12px;padding:10px 14px;width:100%;text-align:start;cursor:pointer;user-select:none;-webkit-user-select:none}.chat-row:hover{background:var(--hover)}.chat-row.selected{background:var(--bg-2)}.chat-row-body{flex:1;min-width:0;display:flex;flex-direction:column;border-bottom:1px solid var(--border);padding-bottom:10px;margin-bottom:-10px}.chat-row-top,.chat-row-bottom{display:flex;align-items:center;gap:8px}.chat-title{flex:1;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-time{font-size:.75em;color:var(--text-2);flex-shrink:0}.chat-time.unread{color:var(--accent);font-weight:700}.chat-preview{flex:1;min-width:0;color:var(--text-2);font-size:.9em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:3px}.chat-preview>span{overflow:hidden;text-overflow:ellipsis}.chat-badges{display:flex;align-items:center;gap:4px;flex-shrink:0}.badge{background:var(--accent);color:#fff;border-radius:12px;min-width:22px;height:22px;padding:0 6px;font-size:.75em;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.badge.muted{background:var(--text-2)}.muted-icon{color:var(--text-2)}.typing-text{color:var(--accent);font-style:normal}.section-label{padding:12px 16px 4px;color:var(--accent);font-size:.85em;font-weight:700}.empty{padding:40px 24px;text-align:center;color:var(--text-2)}.archived-row{display:flex;align-items:center;gap:16px;padding:12px 24px;width:100%;color:var(--text-2);font-weight:600}.action-row .action-icon{width:48px;height:48px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.perm-banner{display:flex;gap:10px;align-items:center;padding:10px 16px;background:#fff3cd;color:#6b4e00;font-size:.9em;cursor:pointer}@media(prefers-color-scheme:dark){.perm-banner{background:#3d3410;color:#ffe08a}}.fab{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:20px;width:60px;height:60px;border-radius:18px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000040;z-index:3}.fab:disabled{opacity:.6}.role-tag{font-size:.7em;padding:1px 8px;border-radius:8px;background:var(--bg-2);color:var(--accent);font-weight:600}.role-tag.danger{color:var(--danger)}.chat-pane{background:var(--chat-bg)}.messages{padding:8px 0 12px;background:var(--chat-bg);background-image:radial-gradient(rgba(0,0,0,.035) 1px,transparent 1px);background-size:18px 18px}.messages-inner{max-width:860px;margin:0 auto;padding:0 10px}.day-sep,.system-msg,.unread-sep{display:flex;justify-content:center;margin:10px 0}.day-sep span,.system-msg span{background:var(--bubble-in);color:var(--text-2);font-size:.78em;padding:4px 12px;border-radius:8px;box-shadow:var(--shadow);text-align:center;max-width:85%}.unread-sep{background:#ffffff80;color:var(--text-2);font-size:.8em;padding:4px;margin:10px -10px}@media(prefers-color-scheme:dark){.unread-sep{background:#0000004d}}.msg-row{display:flex;flex-direction:column;margin:2px 0}.msg-row.mine{align-items:flex-start}.msg-row.theirs{align-items:flex-end}.msg-row.highlight .bubble{animation:flash 1.5s}@keyframes flash{0%,60%{box-shadow:0 0 0 4px #0fa58d80}}.bubble{position:relative;max-width:min(78%,560px);padding:6px 9px 4px;border-radius:10px;background:var(--bubble-in);box-shadow:var(--shadow);word-wrap:break-word;overflow-wrap:anywhere;user-select:text;transition:transform .15s;min-width:80px}.mine .bubble{background:var(--bubble-out);border-top-right-radius:3px}.theirs .bubble{border-top-left-radius:3px}.bubble.media-only{padding:3px}.bubble.emoji-only{background:transparent;box-shadow:none}.bubble.emoji-only .msg-text{font-size:2.6em;line-height:1.2}.bubble.failed{opacity:.85;outline:1px solid var(--danger)}.msg-text{white-space:pre-wrap;padding:0 2px}.deleted-text{color:var(--text-2);font-style:italic;font-size:.92em}.sender-name{font-size:.82em;font-weight:700;margin-bottom:1px}.forwarded{font-size:.78em;color:var(--text-2);font-style:italic;display:flex;gap:3px;align-items:center}.msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:3px;font-size:.7em;color:var(--text-2);margin-top:-2px;float:left;margin-right:8px;position:relative;top:6px;direction:ltr}.bubble:after{content:"";display:block;clear:both}.media-only .msg-meta{position:absolute;bottom:8px;left:8px;top:auto;background:#00000073;color:#fff;padding:1px 6px;border-radius:8px;margin:0}.media-only .msg-meta .tick{color:#fff}.media-only .msg-meta .tick.read{color:#8fd4ff}.emoji-only .msg-meta{float:none;top:0}.edited{font-style:italic}.tick{color:var(--text-2)}.tick.read{color:var(--tick-read)}.tick.failed{color:var(--danger);font-weight:900;padding:0 3px}.bubble-menu-btn{position:absolute;top:2px;left:2px;opacity:0;color:var(--text-2);background:inherit;border-radius:50%;padding:2px}.bubble:hover .bubble-menu-btn{opacity:1}@media(pointer:coarse){.bubble-menu-btn{display:none}}.failed-actions{display:flex;gap:10px;align-items:center;font-size:.8em;color:var(--danger);clear:both}.failed-actions button{text-decoration:underline;color:var(--danger)}.reply-quote{display:flex;gap:8px;align-items:center;background:#0000000d;border-right:4px solid;border-radius:6px;padding:4px 8px;margin-bottom:4px;cursor:pointer;font-size:.85em;min-width:0}@media(prefers-color-scheme:dark){.reply-quote{background:#ffffff12}}.rq-body{flex:1;min-width:0}.rq-name{font-weight:700;font-size:.92em}.rq-text{color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rq-thumb{width:40px;height:40px;border-radius:4px;object-fit:cover}.reactions{display:flex;gap:4px;margin:-6px 10px 4px;z-index:1;flex-wrap:wrap}.reaction{background:var(--bubble-in);border:1px solid var(--border);border-radius:14px;padding:0 7px;font-size:.9em;box-shadow:var(--shadow);display:flex;gap:2px;align-items:center}.reaction.mine{border-color:var(--accent)}.reaction span{font-size:.8em;color:var(--text-2)}.media-box{position:relative;border-radius:8px;overflow:hidden;background:#0000001a;cursor:pointer;max-width:100%}.media-img,.media-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .2s}.media-thumb.blur{filter:blur(6px);transform:scale(1.05)}.media-placeholder{position:absolute;inset:0;background:#333}.play-overlay{position:absolute;inset:0;margin:auto;width:56px;height:56px;border-radius:50%;background:#00000080;color:#fff;display:flex;align-items:center;justify-content:center}.media-duration{position:absolute;top:6px;right:6px;background:#00000080;color:#fff;font-size:.72em;padding:0 6px;border-radius:6px}.upload-progress{position:absolute;inset:0;margin:auto;width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:#fff}.upload-progress svg{position:absolute;inset:0}.upload-progress .icon{position:relative}.voice .upload-progress,.file-body .upload-progress{position:absolute;left:auto;right:4px;top:4px;margin:0}.voice{display:flex;align-items:center;gap:8px;min-width:min(260px,60vw);padding:2px 0;position:relative}.voice-play{width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.voice-main{flex:1;min-width:0}.waveform{display:flex;align-items:center;gap:2px;height:30px;cursor:pointer}.waveform span{flex:1;background:var(--text-2);opacity:.45;border-radius:2px;min-width:2px}.waveform span.on{background:var(--accent);opacity:1}.voice-meta{display:flex;gap:8px;align-items:center;font-size:.72em;color:var(--text-2)}.voice-meta .rate{background:var(--text-2);color:var(--bubble-in);border-radius:8px;padding:0 6px;font-weight:700}.file-body{display:flex;gap:10px;align-items:center;padding:4px 0;min-width:220px;position:relative}.file-icon{width:46px;height:46px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.file-info{min-width:0;flex:1}.file-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-size{font-size:.75em;color:var(--text-2)}.file-info audio{width:100%;max-width:260px;height:36px;margin-top:4px}.call-body{display:flex;align-items:center;gap:10px;padding:4px 2px;min-width:200px}.call-icon{width:36px;height:36px;border-radius:50%;background:#0fa58d26;color:var(--accent);display:flex;align-items:center;justify-content:center}.call-icon.missed{background:#e5484d1f;color:var(--danger)}.call-body>div{flex:1}.scroll-down{position:absolute;bottom:90px;left:16px;width:46px;height:46px;border-radius:50%;background:var(--bubble-in);color:var(--text-2);box-shadow:0 2px 6px #0003;display:flex;align-items:center;justify-content:center;z-index:2}.scroll-down .badge{position:absolute;top:-8px;right:-4px}.composer-wrap{flex-shrink:0;background:var(--bg-2);padding-bottom:env(safe-area-inset-bottom)}.composer{display:flex;align-items:flex-end;gap:4px;padding:6px 8px;max-width:880px;margin:0 auto}.composer textarea{flex:1;resize:none;border:0;outline:none;background:var(--bg);border-radius:22px;padding:10px 16px;max-height:160px;line-height:1.45;min-height:44px}.composer .icon-btn{color:var(--text-2)}.send-btn{width:48px;height:48px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.send-btn .icon{transform:scaleX(-1)}.composer.recording{align-items:center}.rec-indicator{flex:1;display:flex;align-items:center;gap:10px;padding:0 12px;font-variant-numeric:tabular-nums}.rec-dot{width:12px;height:12px;border-radius:50%;background:var(--danger);transition:transform .1s}.reply-bar{display:flex;align-items:center;gap:10px;padding:6px 12px;border-top:1px solid var(--border);max-width:880px;margin:0 auto}.reply-bar-body{flex:1;min-width:0;border-right:3px solid var(--accent);padding-right:8px}.reply-bar .rq-name{color:var(--accent)}.emoji-panel{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));max-height:220px;overflow-y:auto;padding:6px;max-width:880px;margin:0 auto}.emoji-panel button{font-size:1.6em;height:48px;border-radius:8px}.emoji-panel button:hover{background:var(--hover)}.attach-grid{display:flex;justify-content:space-around;padding:12px 0 20px}.attach-grid button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:.9em}.attach-icon{width:60px;height:60px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center}.staged{position:fixed;inset:0;background:#000;color:#fff;z-index:40;display:flex;flex-direction:column}.staged-top{display:flex;align-items:center;gap:8px;padding:8px;padding-top:max(8px,env(safe-area-inset-top))}.staged-preview{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.staged-preview img,.staged-preview video{max-width:100%;max-height:100%;object-fit:contain}.staged-file{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.staged-strip{display:flex;gap:6px;padding:6px;overflow-x:auto}.staged-strip button{width:56px;height:56px;border-radius:6px;overflow:hidden;border:2px solid transparent;background:#222;display:flex;align-items:center;justify-content:center;flex-shrink:0}.staged-strip button.on{border-color:var(--accent)}.staged-strip img{width:100%;height:100%;object-fit:cover}.staged .composer{width:100%;padding-bottom:max(8px,env(safe-area-inset-bottom))}.staged .composer textarea{background:#222;color:#fff}.sheet-backdrop{position:fixed;inset:0;background:#00000073;z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}@media(min-width:700px){.sheet-backdrop{align-items:center}}@keyframes fade{0%{opacity:0}}.sheet{background:var(--sheet);width:100%;max-width:480px;border-radius:18px 18px 0 0;padding:8px 0 max(12px,env(safe-area-inset-bottom));max-height:85dvh;display:flex;flex-direction:column;animation:up .18s ease-out}@media(min-width:700px){.sheet{border-radius:14px}}.sheet.tall{height:80dvh}.sheet .btn{margin:8px 16px 0}.sheet>.input{margin:8px 16px;width:calc(100% - 32px)}@keyframes up{0%{transform:translateY(40px);opacity:.5}}.sheet-title{font-weight:700;padding:10px 20px 6px}.menu-item{display:flex;align-items:center;gap:18px;width:100%;padding:14px 22px;text-align:start;text-decoration:none;color:var(--text)}.menu-item .icon{color:var(--text-2)}.menu-item:hover{background:var(--hover)}.menu-item.danger,.menu-item.danger .icon{color:var(--danger)}.quick-reactions{display:flex;justify-content:space-around;padding:8px 12px 10px;border-bottom:1px solid var(--border)}.quick-reactions button{font-size:1.9em;width:52px;height:52px;border-radius:50%}.quick-reactions button.on{background:var(--bg-2)}.pick-list{min-height:0}.pick-row{display:flex;align-items:center;gap:12px;padding:8px 18px;cursor:pointer}.pick-row input{width:22px;height:22px;accent-color:var(--accent)}.info-list{padding:4px 0;overflow-y:auto}.info-row{display:flex;align-items:center;gap:12px;padding:8px 18px}.auth{max-width:420px;margin:0 auto;padding:32px 24px;display:flex;flex-direction:column;gap:12px;height:100%;overflow-y:auto}.auth-logo{text-align:center}.auth-logo h1{margin:8px 0 0;color:var(--primary);font-size:2em}.auth-logo p{margin:0;color:var(--text-2)}.auth-note{background:var(--bg-2);padding:10px 14px;border-radius:10px;margin:0}.form{display:flex;flex-direction:column;gap:12px}.form label{display:flex;flex-direction:column;gap:4px;font-size:.9em;color:var(--text-2)}.form input,.input{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:12px 14px;font-size:1.05rem;outline:none;width:100%}.form input:focus,.input:focus{border-color:var(--accent)}.card.form{padding:14px 16px}.btn{background:var(--accent);color:#fff;border-radius:12px;padding:13px 18px;font-weight:700;font-size:1.05em;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn:disabled{opacity:.55}.btn.secondary{background:var(--bg-2);color:var(--accent)}.link-btn{color:var(--accent);padding:8px;font-weight:600}.center.hint{text-align:center}.card{background:var(--bg);margin:8px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;cursor:pointer}.switch{appearance:none;width:46px;height:26px;border-radius:13px;background:var(--border);position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}.switch:after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:right .2s;box-shadow:0 1px 2px #0000004d}.switch:checked{background:var(--accent)}.switch:checked:after{right:23px}.perm-row{display:flex;align-items:center;gap:14px;padding:12px 18px;width:100%;text-align:start}.perm-state{width:30px;height:30px;border-radius:50%;background:#f5a524;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;flex-shrink:0}.perm-state.ok{background:#25b864}.invite-box{display:flex;flex-direction:column;gap:8px;background:var(--bg-2);padding:12px;border-radius:10px}.info-hero{display:flex;flex-direction:column;align-items:center;gap:6px;padding:24px 16px 16px;background:var(--bg)}.info-name{font-size:1.4em;font-weight:700;display:flex;gap:6px;align-items:center;cursor:default}.info-about{color:var(--text-2);text-align:center}.info-actions{display:flex;gap:12px;margin-top:10px}.info-actions button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 22px;border-radius:12px;border:1px solid var(--border);color:var(--accent);font-size:.85em}.clickable{cursor:pointer}.avatar-edit{position:relative}.avatar-edit-badge{position:absolute;bottom:4px;left:4px;background:var(--accent);color:#fff;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px solid var(--bg)}.group-head{display:flex;gap:14px;align-items:center;padding:12px 0}.avatar-pick{width:72px;height:72px;border-radius:50%;background:var(--bg-2);color:var(--text-2);display:flex;align-items:center;justify-content:center;flex-shrink:0}.viewer{position:fixed;inset:0;background:#000;z-index:60;display:flex;flex-direction:column;color:#fff}.viewer-top{display:flex;align-items:center;gap:8px;padding:6px;padding-top:max(6px,env(safe-area-inset-top));background:linear-gradient(rgba(0,0,0,.6),transparent);position:absolute;top:0;left:0;right:0;z-index:2}.viewer-top .icon-btn{color:#fff}.viewer-title{flex:1}.viewer-title .hint{color:#bbb}.viewer-body{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden}.viewer-body img,.viewer-body video{max-width:100%;max-height:100%;object-fit:contain;transition:transform .2s}.viewer-caption{padding:12px 16px max(16px,env(safe-area-inset-bottom));background:#0009;text-align:center;white-space:pre-wrap}.viewer-nav{position:absolute;top:50%;transform:translateY(-50%);font-size:2.6em;color:#fff;background:#ffffff1f;width:48px;height:64px;border-radius:10px}.viewer-nav.left{left:8px}.viewer-nav.right{right:8px}@media(pointer:coarse){.viewer-nav{display:none}}.call-screen{position:fixed;inset:0;z-index:70;background:linear-gradient(160deg,#0b3d36,#071f1c 70%);color:#fff;display:flex;flex-direction:column;align-items:center;overflow:hidden}.call-screen.has-video{background:#000}.call-header{position:relative;z-index:2;text-align:center;padding:max(48px,env(safe-area-inset-top)) 16px 8px;text-shadow:0 1px 4px rgba(0,0,0,.6)}.call-title{font-size:1.7em;font-weight:700}.call-sub{opacity:.85;font-variant-numeric:tabular-nums}.call-sub.warn{color:#ffd166}.call-hero{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.call-hero .avatar{box-shadow:0 0 0 12px #ffffff0f,0 0 0 28px #ffffff08}.call-minimize{position:absolute;top:max(12px,env(safe-area-inset-top));right:12px;z-index:3;color:#fff;width:44px;height:44px;border-radius:50%;background:#ffffff1f;display:flex;align-items:center;justify-content:center}.video-grid{position:absolute;inset:0;display:grid;gap:2px}.video-grid.n2{grid-template-rows:1fr 1fr}.video-grid.n3,.video-grid.n4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.video-tile{position:relative;background:#111;overflow:hidden}.remote-video{width:100%;height:100%;object-fit:cover}.video-grid.n1 .remote-video{object-fit:contain}@media(max-aspect-ratio:1/1){.video-grid.n1 .remote-video{object-fit:cover}}.tile-name,.tile-state{position:absolute;bottom:6px;right:8px;background:#00000080;padding:0 8px;border-radius:6px;font-size:.8em}.tile-state{top:6px;bottom:auto}.local-video{position:absolute;z-index:3;top:max(90px,calc(env(safe-area-inset-top) + 70px));left:12px;width:28vw;max-width:180px;aspect-ratio:3/4;object-fit:cover;border-radius:12px;box-shadow:0 2px 10px #00000080;background:#222}.mirror{transform:scaleX(-1)}.call-controls{position:absolute;bottom:0;left:0;right:0;z-index:3;display:flex;flex-direction:column;align-items:center;gap:18px;padding:24px 16px max(28px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#0000008c)}.ctl-row{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}.incoming-actions{display:flex;gap:90px}.call-ctl{display:flex;flex-direction:column;align-items:center;gap:6px;color:#fff;font-size:.8em}.call-ctl-circle{width:58px;height:58px;border-radius:50%;background:#ffffff29;display:flex;align-items:center;justify-content:center}.call-ctl.on .call-ctl-circle{background:#fff;color:#111}.call-ctl.big .call-ctl-circle{width:74px;height:74px}.call-ctl.danger .call-ctl-circle{background:var(--danger);color:#fff}.incoming-actions .call-ctl.on .call-ctl-circle{background:#25b864;color:#fff;animation:pulse 1.4s infinite}@keyframes pulse{50%{box-shadow:0 0 0 14px #25b86440}}.call-mini{position:fixed;z-index:70;top:max(8px,env(safe-area-inset-top));left:50%;transform:translate(-50%);background:#25b864;color:#fff;border-radius:22px;padding:8px 16px;display:flex;gap:10px;align-items:center;box-shadow:0 2px 10px #0000004d;font-weight:600;max-width:92vw}.toast{position:fixed;bottom:96px;left:50%;transform:translate(-50%);background:#1e1e1eeb;color:#fff;padding:10px 18px;border-radius:22px;z-index:100;max-width:90vw;text-align:center;animation:fade .2s;font-size:.95em}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background:#80808059;border-radius:3px}
