body #voiceCallButton{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:7px;border:0;border-radius:50%;background:transparent;color:var(--ys-text,#111b21);cursor:pointer}body #voiceCallButton[hidden]{display:none!important}#voiceCallButton svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
body.voice-call-open{overflow:hidden}
body .voice-call-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;min-height:0;box-sizing:border-box;border:0;border-radius:0;padding:max(24px,env(safe-area-inset-top)) 24px max(34px,env(safe-area-inset-bottom));background:#0b141a url('/chat-wallpaper-dark.20261017.svg') 0 0/260px 260px repeat;color:#fff;font-family:inherit;text-align:center;overflow-y:auto;box-shadow:none}
body .voice-call-dialog[open]{display:flex;flex-direction:column;align-items:center}
.voice-call-dialog::backdrop{background:#0b141a}
.voice-call-info{flex:1 1 auto;min-height:0;width:100%;padding-top:clamp(24px,7dvh,80px);box-sizing:border-box}
.voice-call-avatar{width:76px;height:76px;margin:0 auto 20px;filter:drop-shadow(0 3px 12px #0003)}.voice-call-user-avatar,.voice-call-user-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
body .voice-call-dialog h2{color:#fff!important;font-size:clamp(26px,6.5vw,40px);font-weight:500;line-height:1.22;letter-spacing:-.4px;overflow-wrap:anywhere;margin:0 auto 12px;max-width:700px}
body .voice-call-brand{color:#ffffffac;font-size:16px;margin:0 0 12px}body .voice-call-status{color:#ffffffd9;font-size:20px;line-height:1.35;min-height:28px;margin:0 0 8px}body .voice-call-duration{color:#fff;font-size:24px;min-height:30px;margin:0;font-variant-numeric:tabular-nums}
.voice-call-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:76px 90px;column-gap:12px;row-gap:36px;width:min(100%,390px);flex:0 0 auto;align-items:center;justify-items:center;margin:20px auto 0}
body .voice-call-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:8px;border:0;border-radius:50%;color:#fff!important;font:inherit;font-size:13px;line-height:1.2;cursor:pointer;width:82px;height:76px;background:transparent;box-shadow:none}
body .voice-call-actions button svg{width:31px;height:31px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8}
body .voice-call-mute{grid-column:2;grid-row:1}.voice-mute-slash{display:none}.voice-call-mute.is-muted .voice-mute-slash{display:block}.voice-call-mute.is-muted{background:#ffffff24}
body .voice-call-speaker{grid-column:1;grid-row:2}.voice-call-speaker.is-selected{background:#ffffff24}
body .voice-call-actions .voice-call-end{grid-column:2;grid-row:2;background:#ff202b;width:86px;height:86px;padding:20px}
.voice-call-end svg{transform:rotate(135deg)}body .voice-call-actions .voice-call-end svg{width:38px;height:38px;stroke-width:3}body .voice-call-end span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .voice-call-actions .voice-call-accept{grid-column:3;grid-row:2;width:82px;height:82px;background:#00bd16;gap:4px;font-size:12px}
body .voice-call-actions button[hidden]{display:none!important}.voice-call-actions button:disabled{opacity:.3;cursor:default}
body .voice-call-sound{flex:0 0 auto;margin:10px 0;padding:10px 22px;border:1px solid #ffffff60;border-radius:22px;background:#ffffff20;color:white;font:inherit}
.voice-call-output-note{flex:0 0 auto;font-size:12px;line-height:1.5;color:#ffffffa6;max-width:320px;margin:0 0 4px}
.voice-call-outputs{flex:0 0 auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-height:130px;overflow:auto}.voice-call-outputs[hidden]{display:none}.voice-call-outputs button{border:1px solid #ffffff60;border-radius:18px;background:#ffffff20;color:#fff;padding:8px 12px;font:inherit;font-size:13px}
.voice-call-dialog button:focus-visible{outline:2px solid white;outline-offset:4px}
@media(max-height:580px){body .voice-call-dialog{padding:12px 20px 16px}.voice-call-info{padding-top:0}.voice-call-avatar{width:46px;height:46px;margin-bottom:8px}body .voice-call-dialog h2{font-size:24px;margin-bottom:5px}body .voice-call-brand{font-size:12px;margin-bottom:5px}body .voice-call-status{font-size:16px;min-height:22px}body .voice-call-duration{font-size:18px;min-height:22px}.voice-call-actions{grid-template-rows:56px 64px;row-gap:8px;margin-top:8px;width:min(100%,300px)}body .voice-call-actions button{height:54px;width:68px;font-size:11px;gap:5px}body .voice-call-actions button svg{width:24px;height:24px}body .voice-call-actions .voice-call-end,body .voice-call-actions .voice-call-accept{width:62px;height:62px}.voice-call-output-note{font-size:10px;margin:0}}


/* Audio controls share the upper row; hangup stays centered underneath. */
body .voice-call-actions{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:8px}
body .voice-call-actions .voice-call-mute{grid-column:1 / 3;grid-row:1}
body .voice-call-actions .voice-call-speaker{grid-column:3 / 5;grid-row:1}
body .voice-call-actions .voice-call-end{grid-column:2 / 4;grid-row:2}
body .voice-call-actions .voice-call-accept{grid-column:4;grid-row:2}

/* Incoming calls expose precisely two actions, with the familiar phone icons. */
body .voice-call-dialog.is-incoming .voice-call-actions{grid-template-columns:1fr 1fr;grid-template-rows:90px;gap:24px;width:min(100%,330px);margin-bottom:14px}
body .voice-call-dialog.is-incoming .voice-call-end{grid-column:1;grid-row:1;width:86px;height:86px}
body .voice-call-dialog.is-incoming .voice-call-accept{grid-column:2;grid-row:1;width:86px;height:86px}
body .voice-call-dialog.is-incoming .voice-call-accept svg{width:36px;height:36px;stroke-width:2.5}
body .voice-call-dialog.is-incoming .voice-call-accept span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body .voice-call-dialog.is-incoming .voice-call-mute,body .voice-call-dialog.is-incoming .voice-call-speaker,body .voice-call-dialog.is-incoming .voice-call-output-note,body .voice-call-dialog.is-incoming .voice-call-outputs,body .voice-call-dialog.is-incoming .voice-call-sound{display:none!important}
@media(max-height:580px){body .voice-call-dialog.is-incoming .voice-call-actions{grid-template-rows:66px;margin-bottom:0}body .voice-call-dialog.is-incoming .voice-call-end,body .voice-call-dialog.is-incoming .voice-call-accept{width:62px;height:62px}}

/* Contact header, centered portrait and a separate, rounded control tray. */
body .voice-call-info{display:flex;flex-direction:column;align-items:center;padding-top:16px;gap:0}
body .voice-call-dialog h2{order:1;font-size:24px;font-weight:600;line-height:1.25;margin:0 0 5px}
body .voice-call-brand{order:2;margin:0 0 8px;font-size:14px;color:#aebac1}
body .voice-call-status{order:3;margin:0 0 5px;font-size:17px;min-height:24px;color:#d1d7db}
body .voice-call-duration{order:4;margin:0;font-size:20px;min-height:26px}
body .voice-call-avatar{order:5;flex:0 0 auto;width:min(56vw,280px,32dvh);height:auto;aspect-ratio:1;margin:auto 0;border-radius:50%;overflow:hidden;filter:none}
body .voice-call-user-avatar,body .voice-call-user-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
body .voice-call-actions{box-sizing:border-box;width:min(100%,390px);padding:20px;background:#111b21;border:1px solid #26343c;border-radius:32px;row-gap:20px;margin-top:16px}
body .voice-call-actions .voice-call-mute,body .voice-call-actions .voice-call-speaker{width:76px;height:76px;background:#202d33;gap:7px}
body .voice-call-actions .voice-call-speaker.is-selected,body .voice-call-actions .voice-call-mute.is-muted{background:#fff;color:#111b21!important}
body .voice-call-actions .voice-call-end{width:78px;height:78px;background:#f60046}
body .voice-call-actions .voice-call-end svg,body .voice-call-actions .voice-call-accept svg{transform:none;width:36px;height:36px}
body .voice-call-actions .voice-phone-filled{fill:currentColor;stroke:none;stroke-width:0}
body .voice-call-dialog.is-incoming .voice-call-actions{padding:16px 20px;grid-template-rows:86px;margin-bottom:0;width:min(100%,360px)}
@media(max-height:680px){
 body .voice-call-info{padding-top:0}
 body .voice-call-dialog h2{font-size:21px;margin-bottom:3px}
 body .voice-call-brand{font-size:12px;margin-bottom:4px}
 body .voice-call-status{font-size:15px;min-height:21px}
 body .voice-call-duration{font-size:17px;min-height:22px}
 body .voice-call-actions{grid-template-rows:56px 62px;padding:14px;row-gap:14px;border-radius:26px;margin-top:10px}
 body .voice-call-actions .voice-call-mute,body .voice-call-actions .voice-call-speaker{width:56px;height:56px;font-size:10px;gap:3px}
 body .voice-call-actions .voice-call-mute svg,body .voice-call-actions .voice-call-speaker svg{width:23px;height:23px}
 body .voice-call-actions .voice-call-end{width:62px;height:62px}
 body .voice-call-dialog.is-incoming .voice-call-actions{grid-template-rows:62px;padding:14px}
 body .voice-call-dialog.is-incoming .voice-call-end,body .voice-call-dialog.is-incoming .voice-call-accept{width:62px;height:62px}
}
@media(max-height:480px) and (orientation:landscape){
 body .voice-call-info{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:repeat(4,auto);column-gap:20px;align-content:center;justify-content:center;max-width:420px;text-align:left}
 body .voice-call-avatar{grid-column:1;grid-row:1 / 5;width:96px;height:96px;margin:0;order:0}
 body .voice-call-dialog h2,body .voice-call-brand,body .voice-call-status,body .voice-call-duration{grid-column:2;width:100%;text-align:left}
}
body .voice-call-actions{grid-template-rows:100px 78px}
body .voice-call-actions .voice-call-mute,body .voice-call-actions .voice-call-speaker{width:100px;height:100px;padding:0;justify-content:flex-start;background:transparent;gap:10px;font-size:13px}
body .voice-call-actions .voice-call-mute svg,body .voice-call-actions .voice-call-speaker svg{box-sizing:border-box;width:64px;height:64px;padding:17px;background:#202d33;border-radius:50%;color:#fff}
body .voice-call-actions .voice-speaker-filled{fill:currentColor;stroke:none;stroke-width:0}
body .voice-call-actions .voice-call-mute.is-muted,body .voice-call-actions .voice-call-speaker.is-selected{background:transparent;color:#fff!important}
body .voice-call-actions .voice-call-mute.is-muted svg,body .voice-call-actions .voice-call-speaker.is-selected svg{background:#fff;color:#111b21}
@media(max-height:680px){body .voice-call-actions{grid-template-rows:76px 62px}body .voice-call-actions .voice-call-mute,body .voice-call-actions .voice-call-speaker{width:80px;height:76px;font-size:11px;gap:7px}body .voice-call-actions .voice-call-mute svg,body .voice-call-actions .voice-call-speaker svg{width:48px;height:48px;padding:12px}}

.conversation-head:has(>.voice-call-live:not([hidden])){position:relative}
.voice-call-live{position:absolute;inset:0 88px 0 52px;z-index:120;display:flex;align-items:center;gap:12px;padding:7px 12px;background:#008069;color:#fff;min-width:0;box-sizing:border-box}
.conversation-head:has(>.voice-call-live:not([hidden])) #voiceCallButton,.conversation-head:has(>.voice-call-live:not([hidden])) #backButton{position:relative;z-index:121}
.voice-call-live[hidden]{display:none!important}
.voice-call-live-open{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0;flex:1;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:#fff;font:inherit;text-align:left}
.voice-call-live-open strong,.voice-call-live-open span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.voice-call-live-open strong{font-size:16px;color:#fff!important}.voice-call-live-open span{font-size:12px;color:#e2fff2!important}
.voice-call-live-end{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:8px;border:0;border-radius:50%;background:#f60046;color:white}
.voice-call-live-end svg{width:24px;height:24px;fill:currentColor;stroke:none;transform:none}
body .voice-call-dialog .voice-call-minimize{position:absolute;top:max(14px,env(safe-area-inset-top));left:14px;display:grid;place-items:center;width:38px;height:38px;padding:7px;border:0;border-radius:50%;background:#202d33;color:#fff}
.voice-call-minimize svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.voice-call-minimize[hidden]{display:none!important}
@media(max-width:350px){.voice-call-live{gap:7px;padding-right:8px}.voice-call-live-open strong{font-size:14px}.voice-call-live-open span{font-size:11px}}

/* Resolve the portrait size before sizing the shared avatar's absolute image. */
body .voice-call-dialog .voice-call-avatar{position:relative;width:min(56vw,280px,32dvh);height:min(56vw,280px,32dvh);aspect-ratio:1;overflow:hidden;border-radius:50%}
body .voice-call-dialog .voice-call-avatar>.yasko-person-avatar.voice-call-user-avatar[data-user-avatar]{position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;flex:0 0 auto;margin:0;padding:0;border-radius:50%}
body .voice-call-dialog .voice-call-avatar>.yasko-person-avatar.voice-call-user-avatar[data-user-avatar]>img[data-yasko-photo]{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;object-fit:cover;object-position:center;border-radius:50%}
@media(max-height:480px) and (orientation:landscape){body .voice-call-dialog .voice-call-avatar{width:96px;height:96px}}
