.call-screen{--call-accent:#73e0cf;position:fixed;inset:0;z-index:3000;display:flex;flex-direction:column;background:radial-gradient(ellipse at 14% 8%,#285750 0,transparent 52%),radial-gradient(ellipse at 90% 85%,#26435c,transparent 60%),#102429;color:#fff;padding:env(safe-area-inset-top) 18px max(16px,env(safe-area-inset-bottom));overflow:hidden}
.call-screen:before{content:"";position:absolute;width:95vw;height:95vw;max-width:650px;max-height:650px;border:1px solid #73e0cf12;border-radius:50%;top:12%;left:50%;transform:translateX(-50%);box-shadow:0 0 0 45px #73e0cf04,0 0 0 90px #73e0cf03;pointer-events:none}
.call-top{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2}.call-top .icon-button{color:#fff;background:#ffffff0d;width:46px;height:46px;border:1px solid #ffffff12;border-radius:16px}
.call-brand{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:650;letter-spacing:.03em}.call-brand img{width:26px;height:26px}
.call-identity{display:flex;flex:1;min-height:0;justify-content:center;align-items:center;flex-direction:column;text-align:center;z-index:1;gap:12px;padding:20px 0 24px}
.call-type{font-size:13px;margin:0;color:var(--call-accent);letter-spacing:.06em}.call-name{font-size:clamp(28px,7vw,40px);line-height:1.15;margin:0;max-width:95%;overflow-wrap:anywhere}
.call-status{font-size:16px;margin:0;color:#d7e6e7;font-variant-numeric:tabular-nums}
.call-avatar{flex-shrink:0;width:clamp(130px,43vw,210px);height:clamp(130px,43vw,210px);border-radius:50%;background:linear-gradient(135deg,#36786d,#233f52);display:grid;place-items:center;font-size:64px;margin:22px 0 4px;overflow:hidden;outline:1px solid #b0fff744;outline-offset:10px;box-shadow:0 0 0 22px #80ead707}
.call-avatar img{width:100%;height:100%;object-fit:cover}
.call-screen:is([data-phase=ringing],[data-phase=incoming]) .call-avatar{animation:yanki-call-pulse 2.4s ease-in-out infinite}
@keyframes yanki-call-pulse{50%{box-shadow:0 0 0 28px #80ead710;outline-color:#b0fff788}}
.call-remote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#102429;display:none}
.call-local{display:none;position:absolute;inset-inline-end:18px;top:110px;width:100px;height:142px;object-fit:cover;border-radius:20px;background:#203e40;z-index:3;box-shadow:0 5px 24px #0006;border:2px solid #ffffff60;touch-action:none;cursor:grab}
.call-screen[data-video=true]:not([data-phase=incoming]) .call-local{display:block}.call-screen[data-camera-off=true] .call-local{display:none}
.call-screen[data-video=true][data-remote-ready=true] .call-remote{display:block}
.call-screen[data-remote-ready=true]:after{content:"";position:absolute;inset:0;background:linear-gradient(#0009,transparent 35%,transparent 55%,#0009);pointer-events:none}
.call-screen[data-remote-ready=true] .call-identity{flex:1;justify-content:flex-start;align-items:flex-start;text-align:start;padding-top:10px;gap:8px;text-shadow:0 2px 10px #000}
.call-screen[data-remote-ready=true] .call-avatar{display:none}.call-screen[data-remote-ready=true] .call-name{font-size:26px;max-width:calc(100% - 115px)}
.call-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;align-items:start;padding:18px 12px 12px;z-index:2;border:1px solid #ffffff16;border-radius:28px;background:#101e27d9;backdrop-filter:blur(16px);width:min(100%,470px);align-self:center}
.call-control{border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;font-size:13px;line-height:1.2;padding:4px;min-height:86px}
.call-control .glyph{box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;width:59px;height:59px;padding:17px;border-radius:21px;background:#ffffff16}.call-control .glyph svg{width:25px;height:25px;flex-shrink:0;padding:0;background:none}
.call-control.enabled .glyph{background:#a8eddf;color:#163930}.call-control.enabled{background:transparent!important;color:#fff!important}.call-control:disabled{opacity:.45}
.call-control.call-end,.call-control.call-accept{flex-direction:row;justify-content:center;border-radius:20px;min-height:58px;gap:10px;font-size:16px;font-weight:650;padding:10px 14px}
.call-control.call-end{background:#d74961;grid-column:1/-1}.call-control.call-accept{background:#228d75}
.call-control:is(.call-end,.call-accept) .glyph{padding:0;border-radius:0;background:transparent;width:25px;height:25px}
.call-screen[data-phase=incoming] .call-controls{grid-template-columns:1fr 1fr;padding:16px}
.call-screen[data-phase=incoming] .call-control.call-end{grid-column:auto}
.call-screen:is([data-phase=preparing],[data-phase=dialing],[data-phase=ringing]) .call-controls{grid-template-columns:1fr}
.call-hint{z-index:2;text-align:center;min-height:20px;margin:0;padding:0 10px 12px;color:#d4e6e5;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.call-enable-sound{align-self:center;z-index:2;margin:0 0 12px;border-radius:18px;color:#fff;background:#ffffff26;padding:12px 18px;border:0}
.call-pill{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:2000;background:#147e69;color:#fff;border:0;border-radius:24px;padding:12px 18px;display:flex;align-items:center;gap:10px;max-width:calc(100% - 24px);box-shadow:0 3px 20px #0003}
.call-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-pill svg{width:20px;height:20px}
.call-history-row{display:grid;grid-template-columns:32px 1fr;gap:8px;text-align:start;background:var(--surface);color:var(--text);border:0;border-bottom:1px solid var(--border);padding:16px;width:100%}.call-history-row svg{grid-row:span 2;width:24px;height:24px}.call-history-row small{opacity:.7}
.call-message-action{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--accent,#188c7f);padding:10px 0;font-weight:600}.call-message-action svg{width:22px;height:22px}
.update-details{white-space:pre-wrap;line-height:1.55}.update-status{font-size:14px;line-height:1.5}.update-buttons{display:flex;flex-wrap:wrap;gap:10px}.in-call .reaction-tray{display:none}
[data-theme=warm] .call-screen{--call-accent:#f2d7a1;background:radial-gradient(ellipse at top,#5c4b3d,#20242e)}
@media(max-width:360px){.call-screen{padding-inline:12px}.call-control .glyph{width:53px;height:53px;padding:14px}.call-control{font-size:12px}.call-local{width:80px;height:116px}.call-controls{padding-inline:8px}}
@media(max-height:650px){.call-identity{gap:7px;padding:10px 0}.call-avatar{width:115px;height:115px;margin:15px 0}.call-top{min-height:52px}.call-controls{padding-top:10px;gap:5px}.call-control{min-height:68px;gap:5px}.call-control .glyph{width:49px;height:49px;padding:12px}.call-name{font-size:26px}}
@media(orientation:landscape){.call-screen{padding-inline:24px}.call-identity{align-self:flex-start;width:45%;padding:6px}.call-avatar{width:100px;height:100px;margin:14px 0}.call-controls{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));right:18px;width:47%;max-width:410px}.call-hint{position:absolute;bottom:22px;left:18px;width:42%}.call-local{top:75px;right:calc(48% + 32px);height:108px;width:76px}.call-top{min-height:52px}}
@media(prefers-reduced-motion:reduce){.call-avatar{animation:none!important}}

/* Keep controls compact during every outgoing phase, including before the answer. */
#call-screen.call-screen .call-controls{grid-template-columns:repeat(3,minmax(0,1fr));flex-shrink:0;max-height:45dvh;max-height:45vh;overflow-y:auto}
#call-screen.call-screen[data-phase=incoming] .call-controls{grid-template-columns:1fr 1fr}
#call-screen .call-top{flex-shrink:0}#call-screen .call-hint{flex-shrink:0;max-height:58px;overflow:auto;white-space:normal;font-size:13px}
#call-screen .call-identity{overflow:hidden;flex:1 1 0;min-height:100px}
#call-screen[data-remote-ready=true] .call-identity{min-height:76px;overflow:visible}
#call-screen .call-local{max-height:25vh;top:110px}
#call-screen[data-facing=user] .call-local{transform:scaleX(-1)}
.sidebar-head>div:first-child{min-width:0}.sidebar-head .icon-button{flex-shrink:0}
.sidebar-head #self-chat,.sidebar-head #new-group{width:38px;height:38px;min-width:38px}
.conversation-list-wrap{position:relative;display:flex;flex:1;min-height:0;isolation:isolate}
.conversation-list-wrap .conversation-list{min-height:0;padding-block-end:88px}
#new-chat.new-chat-fab{position:absolute;inset-inline-end:18px;bottom:18px;z-index:2;display:grid;place-items:center;width:58px;height:58px;min-width:58px;min-height:58px;padding:0;border-radius:20px;background:var(--accent);color:var(--surface);border:0;box-shadow:0 5px 18px color-mix(in srgb,var(--accent) 28%,transparent)}
#new-chat.new-chat-fab .glyph{width:28px;height:28px}
@media(max-width:430px){.sidebar-head{gap:3px;padding-inline:12px}.sidebar-head h2{font-size:25px}.sidebar-head .icon-button{width:36px;height:40px;min-width:36px}.sidebar-head #self-chat,.sidebar-head #new-group{width:36px;min-width:36px}.sidebar-head .glyph{width:22px;height:22px}}
@media(max-height:650px){#call-screen .call-controls{max-height:47vh}#call-screen .call-identity{min-height:78px}}
/* Connected calls use one compact bottom toolbar, leaving the video visible. */
#call-screen .call-top{justify-content:center;min-height:52px}
#call-screen[data-controls-ready=true] .call-controls{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;width:min(100%,540px);padding:12px 6px 9px;border-radius:25px;overflow:visible;max-height:none;background:#10202ddd;flex-shrink:0}
#call-screen[data-controls-ready=true][data-video=false] .call-controls{grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,400px)}
#call-screen[data-controls-ready=true] .call-control{min-height:70px;min-width:0;gap:7px;font-size:12px;line-height:1.2;justify-content:flex-start;padding:0;white-space:normal;text-align:center;border-radius:0;background:transparent}
#call-screen[data-controls-ready=true] .call-control .glyph{width:44px;height:44px;padding:11px;border-radius:16px;background:#ffffff1c;flex:none}
#call-screen[data-controls-ready=true] .call-control.enabled .glyph{background:var(--call-accent);color:#103430}
#call-screen[data-controls-ready=true] .call-control.call-end{grid-column:auto;flex-direction:column;color:#fff;font-weight:650;min-height:70px}
#call-screen[data-controls-ready=true] .call-control.call-end .glyph{background:#d74961;color:#fff}
#call-screen .call-control[hidden],#call-screen .call-control.hidden{display:none!important}
@media(max-width:360px){#call-screen[data-controls-ready=true] .call-controls{gap:2px;padding-inline:2px}}
@media(orientation:landscape){#call-screen[data-controls-ready=true] .call-controls{position:absolute;bottom:max(8px,env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);width:min(calc(100% - 32px),540px)}#call-screen[data-controls-ready=true] .call-hint{bottom:108px;left:16px;width:calc(100% - 32px);text-align:center;max-height:32px}#call-screen[data-controls-ready=true] .call-local{top:65px;right:18px;left:auto;width:76px;height:105px}#call-screen .call-top{min-height:42px}}
