:root{color-scheme:light;--navy:#193649;--gold:#c4a263;--ink:#193649;--muted:#77838e;--paper:#f5f6f8;--line:#e5e9ee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,label{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}input,textarea{outline:none}input:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px #c4a26320}button{border:0}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-1.5px}h2{letter-spacing:-.6px}.boot{height:100dvh;display:grid;place-content:center;text-align:center}.boot img{width:120px;border-radius:50%;margin:auto}.boot h1{font-size:44px;margin:16px 0}.boot p{color:var(--muted)}.shell{max-width:1240px;margin:0 auto;min-height:100dvh;display:grid;grid-template-columns:380px 1fr;background:white;box-shadow:0 0 100px #19364909}.side{padding:40px 34px;background:var(--navy);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh}.wordmark{display:flex;align-items:center;gap:10px;font-size:31px;font-weight:750;letter-spacing:-1px}.wordmark img{width:47px;height:47px;border-radius:50%}.eyebrow{text-transform:uppercase;letter-spacing:2.5px;font-size:10px;font-weight:750;color:var(--gold);margin-bottom:20px}.side h1{font-size:49px;line-height:1.08;margin:20px 0}.side p{font-size:16px;line-height:1.7;color:#c2ced5}.mascot{position:relative;isolation:isolate}.side .mascot{width:260px;height:260px;margin:24px auto}.mascot img,.mascot video{width:100%;height:100%;object-fit:cover;border-radius:50%}.mascot video{position:absolute;inset:0}.mascot .headphones{position:absolute;top:8%;left:19%;width:62%;height:49%;border:5px solid var(--gold);border-bottom:0;border-radius:50% 50% 0 0;opacity:0;pointer-events:none}.mascot .headphones:before,.mascot .headphones:after{content:'';position:absolute;width:12%;height:47%;background:var(--navy);border:3px solid var(--gold);border-radius:7px;top:48%}.mascot .headphones:before{left:-10%}.mascot .headphones:after{right:-10%}.mascot.busy video{visibility:hidden}.mascot.busy .headphones{opacity:1;animation:bob 1.5s infinite ease-in-out}.small-mascot{width:49px;height:49px;flex:none}.side-footer{font-size:12px!important;color:#aebfc9!important}.auth-main{padding:48px 60px;align-self:center;max-width:600px;width:100%;margin:auto}.mobile-brand{display:none}.auth-main h1{font-size:34px;line-height:1.15;margin-bottom:12px}.subtitle{color:var(--muted);font-size:15px;line-height:1.55;margin-bottom:26px}.auth-form{display:flex;flex-direction:column;gap:17px}label.field{display:block;font-size:13px;font-weight:650}.field input{display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:13px;padding:14px;background:var(--paper);color:var(--ink);min-height:49px}.hint{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0 0;font-weight:400}.primary,.secondary{border-radius:15px;padding:15px 20px;font-weight:650;text-align:center;text-decoration:none;display:inline-block}.primary{background:var(--navy);color:white}.primary.gold{background:var(--gold);color:var(--navy)}.secondary{background:var(--paper);color:var(--navy);border:1px solid var(--line)}.link{background:none;color:var(--navy);padding:8px 0;font-weight:650}.switcher{font-size:13px;text-align:center;margin:17px 0;color:var(--muted)}.error{color:#ab3547;font-size:13px;line-height:1.5;margin:0}.photo-line{display:flex;gap:15px;align-items:center;padding:15px 0}.avatar{width:48px;height:48px;flex:none;border-radius:50%;background:#edf1f4;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;font-size:28px;border:1px solid #19364905}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.large{width:72px;height:72px;font-size:42px}.avatar.initial{background:#e8ddc8;color:var(--navy);font-weight:700}.checkbox{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:400}.checkbox input{width:17px;height:17px;accent-color:var(--navy)}.install-note{border-top:1px solid var(--line);padding-top:17px;color:var(--muted);font-size:12px;line-height:1.7;margin-top:24px}.install-note strong{color:var(--navy)}.app-shell{height:100dvh;min-height:0;grid-template-columns:360px 1fr;overflow:hidden}.inbox{display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0;background:#fff}.inbox-header{padding:30px 24px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar .wordmark{font-size:32px}.account-button{background:none;padding:0;border-radius:50%}.inbox h1{font-size:28px;margin:25px 0 7px}.hello{font-size:13px;color:var(--muted);margin-bottom:21px}.search-wrap{position:relative}.search-wrap:before{content:'⌕';position:absolute;top:7px;left:13px;font-size:26px;color:var(--muted)}.search{width:100%;border:1px solid transparent;border-radius:12px;padding:13px 12px 13px 41px;background:var(--paper);font-size:14px;min-height:44px}.list-title{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted);padding:0 24px;margin:9px 0}.conversation-list{overflow:auto;flex:1;min-height:0}.person{display:flex;gap:12px;align-items:center;width:100%;padding:16px 24px;text-align:left;background:#fff;border-bottom:1px solid #f0f2f5;color:var(--ink)}.person:hover,.person.active{background:#f3f5f7}.person-copy{min-width:0;flex:1}.person-name{font-size:15px;font-weight:650;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-sub{font-size:12px;display:block;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-time{font-size:10px;align-self:flex-start;margin-top:7px;color:var(--muted)}.empty-list{text-align:center;padding:38px 27px;color:var(--muted);font-size:13px;line-height:1.7}.empty-list strong{color:var(--navy);display:block;margin:10px 0}.inbox-bottom{padding:13px 24px max(15px,env(safe-area-inset-bottom));font-size:11px;color:var(--muted);border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#4b9a7d;margin-right:6px}.status.offline:before{background:var(--gold)}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fafbfc}.welcome{margin:auto;max-width:420px;text-align:center;padding:30px}.welcome .mascot{width:210px;height:210px;margin:0 auto 30px}.welcome h2{font-size:34px;margin-bottom:13px}.welcome p{color:var(--muted);font-size:14px;line-height:1.8}.welcome .tag{font-size:11px;display:inline-block;background:#eee7d8;color:#897143;padding:8px 13px;border-radius:20px;margin-top:15px}.chat-header{background:#ffffffed;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:18px 25px;min-height:89px;flex:none}.chat-header .peer{flex:1;min-width:0}.chat-header h2{font-size:16px;margin:0 0 5px}.chat-header p{color:var(--muted);font-size:11px;margin:0}.back{display:none}.icon{background:transparent;color:var(--navy);font-size:28px;width:36px;height:36px;padding:0;flex:none;border-radius:50%}.messages{flex:1;overflow:auto;padding:28px 28px 12px;overscroll-behavior:contain}.chat-intro{text-align:center;font-size:11px;color:var(--muted);margin:0 auto 27px;line-height:1.7;max-width:290px}.day{font-size:10px;color:var(--muted);text-align:center;margin:18px 0}.message-row{display:flex;flex-direction:column;align-items:flex-start;margin:8px 0 14px}.message-row.own{align-items:flex-end}.bubble{max-width:82%;padding:12px 17px;border-radius:19px 19px 19px 5px;background:white;color:var(--navy);border:1px solid var(--line);font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;text-align:start}.own .bubble{background:var(--navy);color:white;border-color:var(--navy);border-radius:19px 19px 5px 19px}.message-meta{font-size:9px;color:var(--muted);margin:5px 5px 0}.composer-area{padding:13px 24px max(15px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}.composer{display:flex;gap:10px;align-items:flex-end}.composer textarea{resize:none;border:1px solid var(--line);border-radius:22px;background:var(--paper);padding:12px 17px;color:var(--ink);flex:1;min-width:0;min-height:45px;max-height:120px;line-height:1.45;font-size:16px}.send{width:44px;height:44px;border-radius:50%;background:var(--navy);color:var(--gold);font-size:24px;flex:none}.composer-note{font-size:10px;color:var(--muted);text-align:center;margin:9px 0 0}.profile{padding:35px;max-width:550px;width:100%;margin:0 auto;overflow:auto}.profile .auth-form{margin-top:23px}.profile-top{display:flex;justify-content:space-between;align-items:center}.profile-top h2{font-size:28px;margin:0}.logout{color:#ab3547;margin-top:35px}.profile .readonly{color:var(--muted);background:var(--paper);border:1px solid var(--line);padding:14px;border-radius:13px;margin-top:8px;font-size:15px}.profile .warning{font-size:12px;line-height:1.7;color:var(--muted);margin:25px 0}.photo-upload{position:relative;display:block;margin-top:20px;cursor:pointer}.photo-upload input{position:absolute;width:1px;height:1px;opacity:0}.avatar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.avatar-option{background:var(--paper);padding:10px 4px;border:2px solid transparent;border-radius:14px;color:var(--navy);font-size:11px}.avatar-option.selected{border-color:var(--gold)}.avatar-option .avatar{margin-bottom:7px}dialog{border:0;border-radius:24px;padding:26px;color:var(--navy);width:calc(100% - 32px);max-width:440px;box-shadow:0 20px 80px #19364930}dialog::backdrop{background:#10273380;backdrop-filter:blur(4px)}dialog p{font-size:13px;color:var(--muted);line-height:1.6}.dialog-title{display:flex;align-items:center;justify-content:space-between}.dialog-title h2{margin:0;font-size:24px}#toast{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--navy);color:white;border-radius:15px;max-width:calc(100% - 35px);font-size:13px;padding:13px 20px;z-index:20;box-shadow:0 6px 30px #19364925;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}#update{position:fixed;top:0;left:0;right:0;background:var(--gold);color:var(--navy);padding:12px;text-align:center;z-index:30;font-size:13px}#update button{background:var(--navy);color:white;border-radius:10px;padding:7px;margin-left:10px}.connection-banner{background:#f6ecd8;color:#866c3c;font-size:12px;padding:10px 20px;text-align:center}.hidden{display:none!important}@keyframes bob{50%{transform:translateY(3px)}}@media(min-width:1241px){.shell{min-height:calc(100dvh - 48px);margin:24px auto;border-radius:25px;overflow:hidden}.app-shell{height:calc(100dvh - 48px)}.side{min-height:calc(100dvh - 48px)}}@media(max-width:760px){.shell{display:block;min-height:100dvh}.side{display:none}.auth-main{padding:max(28px,env(safe-area-inset-top)) 25px max(25px,env(safe-area-inset-bottom));max-width:470px}.mobile-brand{display:flex;align-items:center;gap:13px;margin-bottom:30px;font-size:34px;font-weight:750;letter-spacing:-1px}.mobile-brand .mascot{width:65px;height:65px}.auth-main h1{font-size:30px}.auth-form{gap:17px}.auth-main .subtitle{margin-bottom:15px}.app-shell{height:100dvh;min-height:0;display:block}.inbox{height:100%;border:0}.inbox-header{padding:max(24px,env(safe-area-inset-top)) 23px 20px}.inbox h1{font-size:32px;margin-top:24px}.workspace{display:none;height:100%;background:var(--paper)}.app-shell.detail .inbox{display:none}.app-shell.detail .workspace{display:flex}.app-shell:not(.detail) .workspace{display:none}.chat-header{padding:max(13px,env(safe-area-inset-top)) 16px 13px;min-height:82px;gap:10px}.back{display:block;font-size:32px;width:24px}.chat-header .avatar{width:42px;height:42px;font-size:25px}.chat-header .small-mascot{width:43px;height:43px}.messages{padding:20px 16px 10px}.bubble{max-width:87%;font-size:16px}.composer-area{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.profile{padding:max(25px,env(safe-area-inset-top)) 24px max(25px,env(safe-area-inset-bottom));flex:1}.welcome{display:none}.inbox-bottom{padding-bottom:max(17px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.mascot video{display:none}}

.confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}
/* Keep the whole conversation inside the area above the on-screen keyboard. */
html,body{min-height:100%;overscroll-behavior:none}.app-mode{position:fixed;inset:0;overflow:hidden}.app-mode #app{height:var(--visible-height,100dvh);transform:translateY(var(--visible-top,0px));overflow:hidden}.app-mode .app-shell{height:var(--visible-height,100dvh);min-height:0;margin:0 auto;border-radius:0}.inbox-header{flex:none}.workspace,.inbox,.messages,.conversation-list{min-height:0}.messages{touch-action:pan-y;-webkit-overflow-scrolling:touch}.field input{font-size:16px}.face-mascot{overflow:hidden}.face-mascot img{object-fit:cover}.face-mascot:not(.small-mascot) img{animation:face-breathe 4s ease-in-out infinite}.face-mascot .headphones{top:3%;left:11%;width:78%;height:55%}.wordmark>img{object-fit:cover}.composer-tool{width:32px;height:44px;flex:none;padding:7px 3px;background:transparent;color:var(--navy)}.composer-tool svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.composer{gap:6px}.composer textarea{padding-left:13px;padding-right:12px}.call-start{font-size:26px;color:var(--navy)}.media-bubble{min-width:190px;max-width:280px}.media-label{display:block;font-size:12px;margin-bottom:9px;font-weight:600}.media-load{background:#c4a26330;border:1px solid #c4a26370;color:inherit;border-radius:12px;padding:11px;font-size:13px;text-align:left;display:block;width:100%}.voice-note{display:block;width:230px;max-width:100%;height:42px}.video-note{display:block;width:220px;height:220px;border-radius:50%;object-fit:cover;background:#102733}.record-preview video{width:min(260px,100%);aspect-ratio:1;border-radius:50%;object-fit:cover;background:var(--paper)}.record-preview audio{max-width:100%}.record-preview{text-align:center}.record-dialog h2{font-size:24px}.record-state{min-height:38px}.record-timer{text-align:center;font-size:28px;font-variant-numeric:tabular-nums;padding:18px 0;color:var(--navy)}.record-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.record-dialog [hidden]{display:none!important}.call-overlay{position:fixed;top:var(--visible-top,0);left:0;right:0;height:var(--visible-height,100dvh);z-index:50;background:#112c3ef7;color:white;display:flex;flex-direction:column;align-items:center;overflow:auto;padding:max(25px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));backdrop-filter:blur(20px)}.call-person{text-align:center;padding:20px 0 5px;flex:none}.call-person img{width:100px;height:100px;border-radius:50%;margin-bottom:22px}.call-person h2{font-size:32px;margin:10px 0}.call-person>p:not(.eyebrow){color:#bccbd6;font-size:13px}.call-status{min-height:24px;max-width:340px;line-height:1.6}.call-video-stage{position:relative;flex:1;min-height:30px;width:100%;max-width:640px;max-height:50dvh;display:flex;justify-content:center}.call-video-stage video{display:none;object-fit:contain;border-radius:18px;max-width:100%;max-height:100%}.call-video-stage .remote-video.visible{display:block;width:100%}.call-video-stage .local-video.visible{display:block;position:absolute;right:0;bottom:0;width:100px;height:130px;object-fit:cover;border:2px solid white}.call-controls{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:25px;flex:none}.call-control,.call-answer,.call-end{padding:15px 20px;border-radius:30px;font-size:14px;font-weight:650;color:white;background:#ffffff20}.call-end{background:#be4055}.call-answer{background:#338a70}.audio-resume{margin-top:15px}.call-person .eyebrow{margin-bottom:0}.app-mode .inbox-bottom{flex:none}@keyframes face-breathe{50%{transform:scale(1.025)}}@media(min-width:1241px){.app-mode .app-shell{max-width:1240px;border-left:1px solid var(--line);border-right:1px solid var(--line)}}@media(max-width:760px){.app-mode .app-shell{display:block}.app-shell.detail .workspace{height:100%}.app-mode .inbox{height:100%}.composer-area{padding-left:9px;padding-right:9px}.chat-header{flex:none}.app-mode .profile{height:100%;overscroll-behavior:contain}.chat-header .call-start{width:38px}.composer textarea{font-size:16px}.call-person{padding-top:8px}.call-person img{width:80px;height:80px;margin-bottom:13px}.composer-area{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
.record-inline{width:100%;padding:0 3px}.record-inline .record-state{min-height:0;margin:0 0 7px;font-size:11px;line-height:1.4;color:var(--muted)}.record-strip{display:flex;align-items:center;gap:10px;min-height:44px}.record-inline .record-timer{padding:0;font-size:15px;font-weight:600;flex:none}.record-wave{letter-spacing:2px;color:var(--gold);flex:1;white-space:nowrap;overflow:hidden;animation:record-pulse 1s ease-in-out infinite;font-size:23px}.record-wave.stopped{animation:none}.record-cancel,.record-stop{background:var(--paper);color:#ae4455;width:38px;height:38px;border-radius:50%;font-size:23px;flex:none}.record-stop{color:var(--navy);font-size:17px}.record-send{background:var(--navy);color:var(--gold);width:44px;height:44px;border-radius:50%;font-size:24px;flex:none}.record-inline .record-preview audio{height:38px;width:100%;margin-bottom:7px}.record-inline .record-preview video{width:160px;height:160px;display:block;margin:0 auto 10px}.record-inline [hidden]{display:none!important}.record-inline .error{margin-top:6px;font-size:11px}.recording .composer-note{display:none}@keyframes record-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.record-wave{animation:none}}
.appearance-settings{padding:19px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:25px 0}.appearance-settings h3{font-size:14px;margin-bottom:3px}.theme-choices{display:flex;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:4px;gap:4px;margin-top:13px}.theme-choices button{flex:1;border-radius:10px;padding:11px 7px;font-size:12px;font-weight:600;background:transparent;color:var(--muted)}.theme-choices button[aria-pressed=true]{background:var(--navy);color:white}.theme-choices button:last-child{flex:1.6}
:root[data-theme=night]{color-scheme:dark;--ink:#e5edf5;--muted:#a0b0c0;--paper:#111e2b;--line:#2c3f50;background:#111e2b;color:var(--ink)}[data-theme=night] .shell,[data-theme=night] .inbox,[data-theme=night] .person,[data-theme=night] .chat-header,[data-theme=night] .composer-area,[data-theme=night] dialog{background:#172a3a;color:var(--ink)}[data-theme=night] .workspace,[data-theme=night] .messages{background:#111e2b}[data-theme=night] .person:hover,[data-theme=night] .person.active{background:#203a4e}[data-theme=night] .person{border-color:var(--line)}[data-theme=night] .bubble{background:#1c3448;border-color:#2a4356;color:var(--ink)}[data-theme=night] .own .bubble{background:#29536f;border-color:#29536f;color:#f4f7fc}[data-theme=night] .primary{background:#c4a263;color:#102c3d}[data-theme=night] .secondary,[data-theme=night] .link,[data-theme=night] .icon,[data-theme=night] .composer-tool,[data-theme=night] .record-stop,[data-theme=night] .empty-list strong,[data-theme=night] .install-note strong,[data-theme=night] .record-timer,[data-theme=night] .profile .readonly{color:var(--ink)}[data-theme=night] .send,[data-theme=night] .record-send{background:#315a75;color:#eed39d}[data-theme=night] .field input,[data-theme=night] .search,[data-theme=night] .composer textarea{color:var(--ink)}[data-theme=night] .avatar{background:#244056}[data-theme=night] .avatar.initial{background:#d8c49d;color:#193649}[data-theme=night] .avatar-option{color:var(--ink)}[data-theme=night] .welcome .tag{background:#403a2c;color:#e2c894}[data-theme=night] .error{color:#f2a2b0}[data-theme=night] .profile .logout{color:#f2a2b0}[data-theme=night] .theme-choices button[aria-pressed=true]{background:#c4a263;color:#112c3e}[data-theme=night] .confirm-actions .secondary{background:#233f54}[data-theme=night] .connection-banner{background:#443b29;color:#ead3a6}
.call-overlay.video-active{padding:0;background:#09141c;overflow:hidden}.video-active .call-video-stage{position:absolute;inset:0;max-width:none;max-height:none;width:100%;height:100%;min-height:0;z-index:0}.video-active .call-video-stage .remote-video.visible{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:0}.video-active .call-person{position:absolute;top:0;left:0;right:0;z-index:2;padding:max(22px,env(safe-area-inset-top)) 24px 55px;background:linear-gradient(#0009,transparent);text-align:left;pointer-events:none}.video-active .call-person img,.video-active .call-person .eyebrow,.video-active .call-person>p:not(.call-status){display:none}.video-active .call-person h2{font-size:21px;margin:0 0 5px;text-shadow:0 1px 9px #0008}.video-active .call-person .call-status{font-size:12px;color:#e7edf3;margin:0}.video-active .call-controls{position:absolute;bottom:0;left:0;right:0;z-index:3;margin:0;padding:40px 14px max(25px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#000a);gap:9px}.video-active .call-controls button{padding:14px 16px;backdrop-filter:blur(12px);background:#172b42b0}.video-active .call-controls .call-end{background:#bf3e55}.video-active .call-video-stage .local-video.visible{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border:0;border-radius:0}.video-active.remote-visible .call-video-stage .local-video.visible{inset:auto 16px 118px auto;width:105px;height:145px;max-width:30%;max-height:27%;border:2px solid #ffffffb0;border-radius:15px;box-shadow:0 4px 25px #0004;object-fit:cover}.video-active .audio-resume{position:absolute;top:100px;z-index:3}.call-controls [hidden]{display:none!important}@media(max-width:420px){.video-active .call-controls{gap:7px}.video-active .call-controls button{font-size:12px;padding:14px 12px}}
.video-active.remote-visible .call-video-stage .local-video.visible{touch-action:none;cursor:grab;transition:inset .18s ease;z-index:1}.video-active.remote-visible .call-video-stage .local-video.dragging{cursor:grabbing;transition:none}.video-active.remote-visible[data-preview-corner=top-right] .call-video-stage .local-video.visible{inset:max(95px,env(safe-area-inset-top)) 16px auto auto}.video-active.remote-visible[data-preview-corner=top-left] .call-video-stage .local-video.visible{inset:max(95px,env(safe-area-inset-top)) auto auto 16px}.video-active.remote-visible[data-preview-corner=bottom-left] .call-video-stage .local-video.visible{inset:auto auto 118px 16px}.local-video:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.video-note-wrap{width:176px;height:176px;position:relative;border-radius:50%;overflow:hidden;background:#102733;margin:auto;border:2px solid #c4a26390;flex:none}.video-note-wrap .video-note,.video-note-wrap video{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;margin:0;max-width:none}.video-toggle{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;background:#0002;font-size:42px;text-shadow:0 2px 10px #0008}.playing .video-toggle{opacity:0;background:transparent}.video-toggle:focus-visible{opacity:1;outline:3px solid var(--gold);outline-offset:-5px}.media-bubble:has(.video-note-wrap){min-width:0;padding:12px;max-width:220px}.record-inline .record-preview .video-note-wrap{width:160px;height:160px;margin:0 auto 10px}.record-inline .record-preview .video-note-wrap video{width:100%;height:100%;margin:0}
.chat-header .call-start{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#19364908;transition:background .15s ease,transform .15s ease}.call-start svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.call-start:hover{background:#c4a26325}.call-start:active{transform:scale(.94)}[data-theme=night] .chat-header .call-start{background:#c4a26318;color:#e1c28a}
.notification-settings{padding:0 0 20px;margin:0 0 22px;border-bottom:1px solid var(--line)}.notification-settings h3{font-size:14px;margin:0 0 7px}.notification-settings button{margin-top:13px;width:100%;font-size:13px}.notification-settings .hint{line-height:1.7}
@font-face{font-family:Vazirmatn;src:url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');font-display:swap;font-weight:100 900}:root[lang=fa]{font-family:Vazirmatn,-apple-system,BlinkMacSystemFont,sans-serif}html[lang=fa] h1,html[lang=fa] h2{letter-spacing:0;line-height:1.65}html[lang=fa] .eyebrow,html[lang=fa] .list-title{letter-spacing:0;font-size:12px}html[lang=fa] .field{line-height:1.7}.language-picker{display:inline-flex;gap:3px;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:3px;flex:none}.language-picker button{padding:8px 12px;border-radius:9px;background:transparent;font-size:12px;color:var(--muted);font-weight:600}.language-picker [aria-pressed=true]{background:var(--navy);color:white}.auth-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.auth-tools #auth-back{display:flex;gap:7px;align-items:center;font-size:14px}.language-settings{padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.language-settings h3{font-size:14px;margin:0}.language-settings .language-picker{margin-top:13px}.connection-info{border:1px solid var(--line);padding:20px;border-radius:17px;margin-top:24px;background:var(--paper);line-height:1.7}.connection-info h3{font-size:16px;margin-bottom:12px}.connection-info strong{font-size:12px}.connection-info p{font-size:12px;color:var(--muted);margin-top:12px}.connection-info .secondary{font-size:12px;width:100%}.landing{max-width:1120px;margin:auto;padding:24px 40px 55px}.landing-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.landing-top a{color:var(--ink);text-decoration:none}.landing-top img{border-radius:14px}.landing-hero{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:65px;padding:80px 0}.landing-hero h1{font-size:58px;line-height:1.1;max-width:620px;margin-bottom:20px}.landing-hero .subtitle{font-size:18px;max-width:480px;line-height:1.7}.landing-logo{width:min(100%,300px);border-radius:27%;justify-self:center;box-shadow:0 25px 55px #19364915}.landing-actions{display:flex;gap:12px;margin-top:30px}.installation{background:white;border:1px solid var(--line);padding:30px;border-radius:25px;scroll-margin-top:20px}.install-heading{display:flex;align-items:center;gap:18px}.install-heading img{width:65px;height:65px;border-radius:18px}.install-heading h2{font-size:24px;margin-bottom:8px}.install-heading p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:0}.install-platforms{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:28px 0}.install-platforms h3{font-size:14px;margin-bottom:13px}.install-platforms ol{list-style:none;padding:0;margin:0}.install-platforms li,.install-platforms p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 9px}.install-platforms article{border-inline-start:2px solid var(--gold);padding-inline-start:15px}.face-mascot{border-radius:26%;background:transparent}.face-mascot img{border-radius:26%}.face-mascot .headphones{display:none}.avatar img[src$="fili-mark.svg"]{border-radius:50%}.chat-header .peer{min-width:0}.chat-header .call-start{width:38px;height:38px}.chat-header{gap:9px}.chat-header .video-start svg{width:23px;height:23px}.language-picker button{font-family:inherit}[data-theme=night] .installation{background:#172a3a}[data-theme=night] .language-picker [aria-pressed=true]{background:var(--gold);color:#142d3d}[dir=rtl] .inbox{border-right:0;border-left:1px solid var(--line)}[dir=rtl] .search-wrap:before{left:auto;right:13px}[dir=rtl] .search{padding:13px 41px 13px 12px}[dir=rtl] .person{text-align:right}[dir=rtl] .person-time{direction:ltr}[dir=rtl] .chat-header .back{transform:rotate(180deg)}[dir=rtl] .peer p{text-align:right}[dir=rtl] .profile .readonly{text-align:right}[dir=rtl] .media-load{text-align:right}[dir=rtl] .message-row{align-items:flex-start}[dir=rtl] .message-row.own{align-items:flex-end}[dir=rtl] .bubble{border-radius:19px 19px 5px 19px}[dir=rtl] .own .bubble{border-radius:19px 19px 19px 5px}[dir=rtl] .call-person{text-align:right}[dir=rtl] .landing-hero h1{font-size:46px}[lang=fa] .hint{line-height:1.9}[lang=fa] .call-status{line-height:1.9}[data-no-i18n]{unicode-bidi:plaintext}@media(max-width:760px){.landing{padding:22px 23px 35px}.landing-top .wordmark{font-size:26px}.landing-top .wordmark img{width:41px;height:41px}.landing-hero{display:flex;flex-direction:column-reverse;text-align:center;padding:42px 0 34px;gap:30px}.landing-logo{width:148px;box-shadow:0 18px 35px #19364917}.landing-hero h1{font-size:37px;line-height:1.15;margin-bottom:16px}.landing-hero .subtitle{font-size:15px}.landing-actions{justify-content:center;margin-top:22px}.install-heading{align-items:flex-start;gap:13px}.install-heading img{width:48px;height:48px;border-radius:14px}.installation{padding:22px}.install-heading h2{font-size:20px}.install-platforms{display:block;margin:23px 0}.install-platforms article{margin-bottom:24px}.installation .primary{width:100%}.auth-tools{margin-bottom:23px}.auth-main .mobile-brand{margin-bottom:24px}.language-picker button{padding:8px 10px}[dir=rtl] .landing-hero h1{font-size:31px}[dir=rtl] .inbox{border:0}.chat-header .peer h2{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-header .avatar{width:38px;height:38px}.chat-header .back{width:21px}.chat-header .call-start{width:35px;height:35px}.chat-header .call-start svg{width:20px;height:20px}}
.call-controls{max-width:610px;padding-inline:10px}.call-controls button{min-width:86px;line-height:1.45}.call-control[aria-pressed=false]{background:#ffffff0b;border:1px solid #ffffff45}.audio-output-dialog{display:flex;flex-direction:column;gap:10px}.audio-output-dialog:not([open]){display:none}.ring-enable{position:absolute;top:120px;z-index:4}.video-active .call-controls{max-width:none;flex-wrap:wrap;padding-bottom:max(22px,env(safe-area-inset-bottom))}.video-active .call-controls button{min-width:0}.video-active.remote-visible .call-video-stage .local-video.visible{bottom:170px}.video-active.remote-visible[data-preview-corner=bottom-left] .call-video-stage .local-video.visible{bottom:170px}@media(max-width:420px){.call-controls{gap:8px}.call-controls button{font-size:12px;padding:12px 13px}.video-active .call-controls button{font-size:11px;padding:12px 9px}.video-active .call-controls{gap:6px}}
.appearance-settings{border-top:0}.call-person img{background:transparent;border-radius:25%}.call-person [data-no-i18n]{unicode-bidi:plaintext}.audio-output-dialog button{width:100%}
.landing-actions{flex-wrap:wrap;align-items:center}.install-platforms .android-download{font-size:12px;padding:11px 15px;width:100%;margin:8px 0}.landing-actions .android-download{font-size:14px}.landing-actions .link{padding:13px}@media(max-width:420px){.landing-actions .primary,.landing-actions .android-download{width:100%}.landing-actions .link{padding:7px}}

/* Call stage preserves the complete camera frame in portrait and landscape. */
.call-video-stage .remote-video.visible,.video-active .call-video-stage .remote-video.visible,.video-active .call-video-stage .local-video.visible,.video-active.remote-visible .call-video-stage .local-video.visible{object-fit:contain;background:#09141c;object-position:center}
.local-video.mirrored{transform:scaleX(-1)}
.call-controls,.video-active .call-controls{display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-start;gap:7px;width:100%;max-width:none;padding-inline:10px}
.call-controls button,.video-active .call-controls button{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;width:54px;padding:0;border:0;background:transparent;backdrop-filter:none;color:#fff;line-height:1.25;font-size:10px;font-weight:500;flex:0 1 54px;border-radius:12px}
.control-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:#ffffff24;backdrop-filter:blur(12px)}
.control-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.call-controls .call-end,.video-active .call-controls .call-end{background:transparent}.call-end .control-icon{background:#d5485d}.call-answer .control-icon{background:#278665}
.call-control[aria-pressed=false]{background:transparent;border:0}.call-control[aria-pressed=false] .control-icon{background:#ffffff10;color:#c7d0d8}.call-control[aria-pressed=false] .control-icon:after{content:'';position:absolute;width:25px;height:2px;background:currentColor;transform:rotate(-45deg);border:1px solid #193649}
.call-controls button:disabled{opacity:.4}.control-label{max-width:62px;white-space:normal;overflow-wrap:anywhere}.call-controls button:focus-visible{outline:2px solid #e4c687;outline-offset:4px}
.video-active.remote-visible .call-video-stage .local-video.visible,.video-active.remote-visible[data-preview-corner=bottom-left] .call-video-stage .local-video.visible{bottom:max(125px,calc(env(safe-area-inset-bottom) + 105px))}
.call-person{pointer-events:none}.video-active .call-person{padding-bottom:24px}.video-active .call-controls{padding-top:28px}
.back{display:flex!important;align-items:center;justify-content:center;font-size:30px;width:36px!important;height:40px;flex-shrink:0}.profile-top .icon{display:flex;align-items:center;gap:5px;font-size:23px;width:auto}.profile-top .icon span{font-size:13px}
.account-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.account-button{display:grid;place-items:center;color:var(--ink);width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--paper)}
.reply-preview{display:grid;grid-template-columns:1fr auto;gap:3px 10px;border-inline-start:3px solid var(--gold);padding:8px 11px;margin:0 4px 10px;background:var(--paper);border-radius:6px}.reply-preview[hidden]{display:none}.reply-preview strong{font-size:11px;color:var(--gold)}.reply-preview span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.reply-preview button{grid-column:2;grid-row:1/3;background:transparent;color:var(--muted);font-size:25px;width:34px}.message-row{position:relative;transition:transform .15s ease,background .3s ease;touch-action:pan-y}.message-reply{position:absolute;inset-inline-end:0;top:7px;opacity:0;background:var(--paper);color:var(--muted);border-radius:50%;width:30px;height:30px}.message-row:hover .message-reply,.message-row:focus-within .message-reply{opacity:1}.message-quote{display:block;text-align:start;max-width:100%;background:#c4a26320;border-inline-start:3px solid var(--gold);border-radius:5px;padding:7px 10px;margin-bottom:7px;font-size:12px;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-highlight .bubble{box-shadow:0 0 0 3px var(--gold)}
@media(pointer:coarse){.message-reply{position:static;opacity:1;width:26px;height:24px;font-size:15px;margin-top:2px;background:transparent}}
@media(max-width:360px){.call-controls,.video-active .call-controls{gap:3px;padding-inline:5px}.control-icon{width:40px;height:40px}.call-controls button{font-size:9px}}
@media(orientation:landscape) and (max-height:500px){.call-person img{display:none}.call-person{padding-top:0}.call-controls{margin-top:6px}.video-active.remote-visible .call-video-stage .local-video.visible{width:140px;height:90px;max-height:32%;bottom:110px}}

.app-mode{touch-action:pan-x pan-y}

.account-button{position:relative}.account-button.has-update:after{content:'';position:absolute;right:-2px;top:-2px;width:13px;height:13px;border:2px solid var(--paper);border-radius:50%;background:#e84153;box-shadow:0 0 0 1px #e8415325}.app-updates{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:16px}.app-updates h3{font-size:14px;margin-bottom:7px}.update-settings-button{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;margin-top:12px}.update-dot{display:none;width:9px;height:9px;border-radius:50%;background:#e84153;flex:none}.has-update .update-dot{display:inline-block}.has-update .update-settings-button{border-color:#e84153;color:#c83546}#update{display:flex;align-items:center;gap:10px;border:1px solid #e8415355;border-radius:16px;padding:12px 18px;background:var(--paper);color:var(--ink);box-shadow:0 8px 35px #0002}#update[hidden]{display:none}#update:before{content:'!';display:grid;place-items:center;background:#e84153;color:white;font-weight:700;border-radius:50%;width:24px;height:24px;flex:none}#refresh{background:#d6384b;color:white;border-radius:12px;padding:9px 13px;font-weight:650}.notification-preview-choice{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin-top:18px}.notification-preview-choice input{margin-top:4px;accent-color:var(--navy)}
#update{top:auto;bottom:max(15px,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);font-size:12px;z-index:45}#update:before{width:20px;height:20px}#update button{flex:none}body:has(#update:not([hidden])) .inbox-bottom{padding-bottom:72px}
.app-mode #update{display:none}.app-mode:has(#update:not([hidden])) .inbox-bottom{padding-bottom:18px}
.permission-dialog{max-width:430px;width:calc(100% - 32px);padding:27px;border-radius:24px;text-align:start;max-height:calc(100dvh - 40px);overflow:auto}.permission-dialog img{border-radius:17px}.permission-dialog h2{font-size:25px;margin:14px 0 8px}.permission-dialog p{font-size:13px;line-height:1.7}.permission-dialog .primary{width:100%;margin-top:12px}.permission-dialog>.link{display:block;margin:14px auto 0}.permission-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.permission-row strong{font-size:11px;color:var(--muted);font-weight:500;text-align:end}#device-permissions{padding:20px 0;margin-bottom:20px;border-bottom:1px solid var(--line)}#device-permissions h3{font-size:14px}#device-permissions button{width:100%;margin-top:10px}#message-sound-settings{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}#message-sound-settings>.link{margin-top:10px}
/* One call stacking context: videos never intercept the controls. */
#call-overlay{isolation:isolate;z-index:1000;box-sizing:border-box;overscroll-behavior:none;overflow:hidden;width:100%;min-height:0;touch-action:manipulation}
#call-overlay .call-video-stage{pointer-events:none;z-index:0}#call-overlay .call-video-stage .local-video{pointer-events:auto;z-index:2}#call-overlay .call-person{z-index:4;pointer-events:none;max-width:100%;overflow:hidden}#call-overlay .call-person h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#call-overlay .call-controls{position:absolute;z-index:12;bottom:0;left:50%;right:auto;transform:translateX(-50%);display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:5px;align-items:start;justify-content:center;width:min(100%,480px);max-width:100%;margin:0;padding:25px 12px max(14px,env(safe-area-inset-bottom));box-sizing:border-box;pointer-events:auto;background:linear-gradient(transparent,#09141ce6);direction:ltr}
#call-overlay .call-controls button{min-width:0;width:100%;max-width:70px;justify-self:center;padding:0;background:transparent;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:flex-start;border:0;line-height:1.3;font-size:10px;pointer-events:auto;touch-action:manipulation;position:relative;z-index:1}#call-overlay .control-icon{width:44px;height:44px;flex-shrink:0}#call-overlay .control-label{max-width:100%;word-break:normal;overflow-wrap:anywhere;text-align:center;min-height:25px}
#call-overlay .call-minimize{position:absolute;z-index:15;top:max(16px,env(safe-area-inset-top));inset-inline-end:16px;width:40px;height:40px;border-radius:50%;background:#193649b0;color:white;display:grid;place-items:center;pointer-events:auto}#call-overlay .call-minimize[hidden]{display:none}#call-overlay .call-minimize svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#call-overlay.video-active .call-person{padding-inline-end:70px;padding-bottom:20px}#call-overlay .audio-resume{z-index:14;max-width:calc(100% - 35px)}
#call-overlay.video-active .call-video-stage .remote-video.visible,#call-overlay.video-active .call-video-stage .local-video.visible{object-fit:contain}#call-overlay.video-active.remote-visible .call-video-stage .local-video.visible{max-width:28%;max-height:25%;width:102px;height:136px;bottom:calc(125px + env(safe-area-inset-bottom))}#call-overlay.video-active.remote-visible[data-preview-corner=bottom-left] .call-video-stage .local-video.visible{bottom:calc(125px + env(safe-area-inset-bottom))}#call-overlay.video-active.remote-visible[data-preview-corner=top-left] .call-video-stage .local-video.visible,#call-overlay.video-active.remote-visible[data-preview-corner=top-right] .call-video-stage .local-video.visible{top:calc(90px + env(safe-area-inset-top))}
.call-minimized #app{padding-top:80px;box-sizing:border-box}.app-mode.call-minimized .app-shell{height:calc(var(--visible-height,100dvh) - 80px)}
#call-overlay.minimized{height:68px!important;top:calc(var(--visible-top,0px) + 6px);left:8px;right:8px;width:calc(100% - 16px);border:1px solid #ffffff24;border-radius:17px;display:block;padding:0;background:#112c3e;box-shadow:0 5px 25px #0004}#call-overlay.minimized .call-video-stage{display:none}#call-overlay.minimized .call-person{position:static;background:none;padding:9px 14px;text-align:start;width:calc(100% - 115px);height:100%;overflow:hidden}#call-overlay.minimized .call-person img,#call-overlay.minimized .call-person .eyebrow,#call-overlay.minimized .call-person>p:not(.call-status){display:none}#call-overlay.minimized .call-person h2{font-size:15px;line-height:1.4;margin:0 0 2px}#call-overlay.minimized .call-person .call-status{font-size:11px;line-height:1.4;margin:0;min-height:0}#call-overlay.minimized .call-controls{left:auto;right:8px;top:8px;bottom:auto;transform:none;width:46px;padding:0;background:none;display:block}#call-overlay.minimized .call-controls button:not([data-end]){display:none}#call-overlay.minimized .control-icon{width:36px;height:36px}#call-overlay.minimized .control-label{display:none}#call-overlay.minimized .call-minimize{top:8px;right:61px;left:auto;width:36px;height:36px}#call-overlay.minimized .call-minimize svg{transform:rotate(180deg)}
@media(max-width:350px){#call-overlay .control-icon{width:39px;height:39px}#call-overlay .call-controls{gap:3px;padding-inline:7px}#call-overlay .call-controls button{font-size:9px}}
@media(orientation:landscape) and (max-height:500px){#call-overlay .call-person img{display:none}#call-overlay .call-person{padding-top:5px}#call-overlay .call-controls{max-width:430px;padding-top:12px;padding-bottom:max(8px,env(safe-area-inset-bottom))}#call-overlay .control-icon{width:38px;height:38px}#call-overlay .control-label{min-height:13px}#call-overlay.video-active.remote-visible .call-video-stage .local-video.visible{width:120px;height:75px;bottom:100px;max-height:30%}}
/* Server-verified developer identity. */
.official-avatar{background:#142b3b;box-shadow:0 0 0 2px #c8a253,0 3px 12px #98712d24}.official-avatar img{width:100%;height:100%;object-fit:contain}.person-name:has(.verified-badge),.peer h2:has(.verified-badge){display:flex;align-items:center;gap:6px}.verified-badge{display:inline-flex;flex:none;width:18px;height:18px;vertical-align:middle}.verified-badge svg{width:100%;height:100%;overflow:visible}.verified-badge path:first-child{fill:#d5ae59;stroke:none}.verified-badge path:last-child{fill:none;stroke:#182d3c;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.official-channel-note{margin:8px 0;text-align:center;color:var(--muted);font-size:12px}.app-version{margin:28px 0 12px;padding-top:18px;border-top:1px solid var(--line);text-align:center;font-size:12px;color:var(--muted)}.release-notes{margin:8px 0 16px;padding-inline-start:20px;color:var(--muted);font-size:13px;line-height:1.65}.release-notes li+li{margin-top:6px}.app-updates h4{margin:12px 0 4px;font-size:13px}.composer[hidden]{display:none!important}
#workspace .call-start[hidden],.message-reply[hidden]{display:none!important}.chat-header:has(.verified-badge){background:linear-gradient(110deg,var(--paper),#c4a26314)}.chat-header .verified-badge{width:20px;height:20px}.person-name .verified-badge{width:16px;height:16px}
.official-announcement .bubble{unicode-bidi:plaintext;border:1px solid #c4a26345;box-shadow:0 2px 10px #98712d0a}
/* Immersive calls, with safe controls and a real picture-in-picture frame. */
#call-overlay{top:0!important;left:0;right:0;width:100%;height:100dvh!important;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#08131c;backdrop-filter:none}
#call-overlay.video-active{padding:0}#call-overlay .call-video-stage{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;pointer-events:none}
#call-overlay.video-active .call-video-stage .remote-video.visible{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center;border-radius:0;background:#08131c}
#call-overlay .self-preview{display:none;position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:auto;touch-action:none;background:#14212b;cursor:pointer}
#call-overlay .self-preview:has(.local-video.visible){display:block}#call-overlay .self-preview[hidden]{display:none!important}
#call-overlay .self-preview .local-video.visible{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center;border:0!important;border-radius:0!important;background:transparent;pointer-events:none}
#call-overlay.remote-visible .self-preview{inset:auto max(14px,env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) auto;width:94px;height:126px;max-width:30vw;max-height:28dvh;border:1px solid #ffffff55;border-radius:17px;box-shadow:0 6px 28px #0005;transition:width .18s,height .18s,inset .18s}
#call-overlay.remote-visible .self-preview.expanded{width:min(46vw,190px);height:min(62vw,255px);max-width:50vw;max-height:40dvh}
#call-overlay .self-preview.dragging{transition:none;cursor:grabbing}#call-overlay .self-preview:focus-visible{outline:2px solid #d7b771;outline-offset:3px}
#call-overlay.remote-visible[data-preview-corner=bottom-left] .self-preview{left:max(14px,env(safe-area-inset-left));right:auto}
#call-overlay.remote-visible[data-preview-corner=top-left] .self-preview{left:max(14px,env(safe-area-inset-left));right:auto;top:calc(86px + env(safe-area-inset-top));bottom:auto}
#call-overlay.remote-visible[data-preview-corner=top-right] .self-preview{top:calc(86px + env(safe-area-inset-top));bottom:auto}
#call-overlay .preview-flip{display:none;position:absolute;right:9px;bottom:9px;z-index:4;width:36px;height:36px;padding:8px;border-radius:50%;background:#101a2638;border:1px solid #ffffff35;color:#fff;backdrop-filter:blur(6px)}
#call-overlay .preview-flip svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#call-overlay .self-preview.expanded .preview-flip,#call-overlay:not(.remote-visible) .self-preview .preview-flip{display:block}
#call-overlay .call-person,#call-overlay .call-controls,#call-overlay .call-minimize{transition:opacity .22s,transform .22s}
#call-overlay.video-active .call-person{padding:calc(12px + env(safe-area-inset-top)) max(68px,env(safe-area-inset-right)) 32px max(18px,env(safe-area-inset-left));background:linear-gradient(#0008,transparent)}
#call-overlay .call-minimize{top:calc(10px + env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));background:#101a2650;border:1px solid #ffffff1a}
#call-overlay .call-controls{width:min(100%,360px);grid-auto-columns:minmax(0,1fr);gap:12px;padding:25px max(16px,env(safe-area-inset-right)) calc(15px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
#call-overlay .control-icon{width:48px;height:48px;background:#ffffff25;backdrop-filter:blur(12px)}#call-overlay .call-end .control-icon{background:#dc405a}#call-overlay .control-label{font-size:11px;min-height:15px}
#call-overlay.controls-hidden:not(.minimized) .call-person,#call-overlay.controls-hidden:not(.minimized) .call-minimize{opacity:0;pointer-events:none}
#call-overlay.controls-hidden:not(.minimized) .call-controls{opacity:0;transform:translate(-50%,12px);pointer-events:none}
#call-overlay.controls-hidden:not(.minimized) .call-controls *{pointer-events:none}#call-overlay.minimized{height:68px!important}#call-overlay.minimized .self-preview{display:none}
@media(orientation:landscape) and (max-height:500px){#call-overlay.remote-visible .self-preview{width:112px;height:84px;bottom:calc(90px + env(safe-area-inset-bottom))}#call-overlay.remote-visible .self-preview.expanded{width:180px;height:135px}#call-overlay .call-controls{padding-top:10px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}#call-overlay .control-icon{width:40px;height:40px}#call-overlay .call-person{padding-top:calc(8px + env(safe-area-inset-top))}}
/* Compact chat bar and genuine receipt states. */
.composer-area{padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:var(--paper)}.composer{gap:5px;align-items:flex-end;margin:0}.composer textarea{min-height:38px;max-height:96px;border-radius:22px;padding:9px 12px;line-height:20px;font-size:16px}.composer-tool{width:29px;height:38px;padding:8px 2px}.composer-tool svg{width:23px;height:23px}.composer .send{width:38px;height:38px;min-width:38px;min-height:38px;align-self:flex-end;border-radius:50%;font-size:23px;padding:0}.composer-note[hidden]{display:none!important}.message-reply{display:none!important}.message-meta{display:flex;align-items:center;gap:4px}.message-receipt{display:inline-flex;color:var(--muted);vertical-align:middle}.message-receipt svg{width:17px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.message-receipt.seen{color:#35bf80}
.keyboard-open .composer-area{padding-bottom:6px}.audio-output-dialog [data-route][hidden]{display:none!important}
body.app-mode:not(.call-open)::before,body.app-mode.call-minimized::before{content:'';position:fixed;z-index:60;top:0;left:0;right:0;height:env(safe-area-inset-top);background:#132b3c;pointer-events:none}#call-overlay.video-active:not(.minimized)::before{content:'';position:absolute;z-index:1;top:0;left:0;right:0;height:calc(env(safe-area-inset-top) + 24px);background:linear-gradient(#0005,transparent);pointer-events:none}#call-overlay.minimized{top:calc(env(safe-area-inset-top) + 6px)!important}

/* Keep the full sensor frame; never promote self-view into the remote stage. */
#call-overlay.video-active .self-preview{inset:auto max(14px,env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) auto;width:112px;height:150px;max-width:30vw;max-height:28dvh;border:1px solid #ffffff55;border-radius:18px;box-shadow:0 6px 28px #0005;background:#0b1925;transition:width .18s,height .18s,inset .18s}
#call-overlay.video-active .self-preview.expanded{width:min(46vw,190px);height:min(62vw,255px);max-width:50vw;max-height:40dvh}
#call-overlay.video-active[data-preview-corner=bottom-left] .self-preview{left:max(14px,env(safe-area-inset-left));right:auto}
#call-overlay.video-active[data-preview-corner=top-left] .self-preview{left:max(14px,env(safe-area-inset-left));right:auto;top:calc(86px + env(safe-area-inset-top));bottom:auto}
#call-overlay.video-active[data-preview-corner=top-right] .self-preview{top:calc(86px + env(safe-area-inset-top));bottom:auto}
#call-overlay:not(.remote-visible) .self-preview:not(.expanded) .preview-flip{display:none}
#call-overlay.video-active:not(.remote-visible) .call-person{top:28%;background:transparent;padding:20px 50px;text-align:center}#call-overlay.video-active:not(.remote-visible) .call-person img{display:block;width:76px;height:76px;margin:0 auto 15px}
#call-overlay .remote-camera-note{position:absolute;top:56%;left:15%;right:15%;text-align:center;color:#d6e0e8;font-size:13px;pointer-events:none}#call-overlay .remote-camera-note[hidden]{display:none}
#call-overlay.remote-visible .remote-camera-note{top:auto;bottom:185px;background:#08131ca6;border-radius:15px;padding:8px;margin:auto;width:fit-content}
@media(orientation:landscape) and (max-height:500px){#call-overlay.video-active .self-preview{width:112px;height:84px;bottom:calc(90px + env(safe-area-inset-bottom))}#call-overlay.video-active .self-preview.expanded{width:180px;height:135px}}
/* Size call targets in CSS pixels, independently of screen pixel density. */
#call-overlay .call-controls{display:flex;align-items:flex-start;justify-content:space-evenly;flex-wrap:nowrap;width:min(100%,440px);max-width:440px;gap:clamp(8px,3vw,18px);padding:20px max(14px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
#call-overlay .call-controls button{flex:1 1 0;min-width:48px;max-width:82px;width:auto;gap:8px;padding:0;min-height:74px;touch-action:manipulation}#call-overlay .control-icon{width:clamp(48px,12vw,62px);height:clamp(48px,12vw,62px);flex:none}#call-overlay .control-icon svg{width:clamp(22px,5.5vw,28px);height:clamp(22px,5.5vw,28px)}#call-overlay .control-label{font-size:clamp(11px,2.9vw,13px);line-height:1.4;max-width:82px;min-height:19px;white-space:nowrap}
@media(orientation:landscape) and (max-height:500px){#call-overlay .call-controls{width:min(100%,390px);padding-top:10px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}#call-overlay .control-icon{width:44px;height:44px}#call-overlay .call-controls button{min-height:61px;gap:5px}#call-overlay .control-label{font-size:11px}}
/* Incoming calls are a distinct, easy-to-answer screen. */
.call-avatar{display:grid;place-items:center;width:88px;height:88px;border-radius:29px;overflow:hidden;background:#d4b77c1c;margin:0 auto 17px;box-shadow:0 0 0 1px #ffffff18}.call-avatar img{width:100%!important;height:100%!important;object-fit:cover;border-radius:inherit!important;margin:0!important}.call-avatar>span{font-size:45px;line-height:1;color:#f2d79e}
#call-overlay.incoming{background:radial-gradient(ellipse at 50% 25%,#345c6eaa,transparent 63%),linear-gradient(160deg,#173649,#07131d);padding:0}
#call-overlay.incoming .call-person,#call-overlay.incoming.video-active .call-person{position:absolute;top:calc(16% + env(safe-area-inset-top));left:0;right:0;padding:20px 30px;background:none;text-align:center;opacity:1;pointer-events:auto}
#call-overlay.incoming .call-avatar{width:116px;height:116px;border-radius:39px;margin:0 auto 27px;box-shadow:0 0 0 1px #ffffff27,0 15px 50px #0003;animation:incoming-breathe 2.2s ease-in-out infinite}#call-overlay.incoming .call-avatar>span{font-size:60px}
#call-overlay.incoming .call-person h2{font-size:clamp(28px,7vw,38px);font-weight:650;letter-spacing:-.8px;margin:0 0 9px;line-height:1.3;color:#fff}#call-overlay.incoming .call-person p{color:#dce8ee}#call-overlay.incoming .call-person .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:17px;color:#e4ca92}#call-overlay.incoming .call-status{font-size:16px;margin-top:18px}
#call-overlay.incoming .call-controls{direction:ltr;position:absolute;left:50%;bottom:calc(6% + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(100%,360px);padding:15px 30px;gap:66px;justify-content:space-between}
#call-overlay.incoming .call-controls button{max-width:100px;min-width:80px;min-height:114px;gap:13px}#call-overlay.incoming .control-icon{width:82px;height:82px;box-shadow:0 1px 1px #ffffff55 inset,0 10px 24px #0003}#call-overlay.incoming .control-icon svg{width:33px;height:33px}#call-overlay.incoming .control-label{font-size:14px;min-height:22px;color:#fff}
#call-overlay.incoming .call-answer{order:1}#call-overlay.incoming .call-end{order:0}#call-overlay.incoming .call-answer .control-icon{background:linear-gradient(145deg,#54d78b,#22a464)}#call-overlay.incoming .call-end .control-icon{background:linear-gradient(145deg,#f36577,#d93954)}#call-overlay.incoming .remote-camera-note{display:none!important}
@keyframes incoming-breathe{50%{transform:scale(1.025);box-shadow:0 0 0 10px #ffffff04,0 0 0 25px #ffffff02,0 15px 50px #0003}}
@media(orientation:landscape) and (max-height:500px){#call-overlay.incoming .call-person,#call-overlay.incoming.video-active .call-person{top:2%;left:6%;right:auto;width:45%;padding:8px}#call-overlay.incoming .call-avatar{width:66px;height:66px;border-radius:22px;margin-bottom:10px}#call-overlay.incoming .call-avatar>span{font-size:35px}#call-overlay.incoming .call-person h2{font-size:25px}#call-overlay.incoming .call-person .eyebrow{display:none}#call-overlay.incoming .call-controls{left:auto;right:5%;bottom:17%;width:40%;transform:none;gap:22px;padding:0}#call-overlay.incoming .control-icon{width:70px;height:70px}#call-overlay.incoming .call-controls button{min-width:70px}}
@media(prefers-reduced-motion:reduce){#call-overlay.incoming .call-avatar{animation:none}}
#call-overlay.incoming .call-person .call-status{margin:18px auto 0}#call-overlay.incoming .call-person>p{margin-left:auto;margin-right:auto}#call-overlay.incoming .call-person .call-avatar img{display:block;width:100%;height:100%;object-fit:cover}#call-overlay.incoming .call-controls{background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:0;border-radius:0}
.boot-rescue{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:#f5f6f8;color:#193649;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Vazirmatn,sans-serif}
.boot-rescue h1{margin:0;font-size:22px}.boot-rescue p{margin:0 0 8px;color:#5f7180}.boot-rescue .primary{min-width:220px;padding:14px 20px;border-radius:14px;border:0;background:#193649;color:#fff;font-size:16px;font-weight:700}.boot-rescue .link{border:0;background:none;color:#1f6fa8;font-size:15px;padding:8px}
@media (prefers-color-scheme:dark){.boot-rescue{background:#0d1a26;color:#eaf1f8}.boot-rescue p{color:#9fb0c1}}
