/* Uicons by Flaticon. Source and license: icons/call/ATTRIBUTION.md. */
.call-icon{display:inline-block;flex:none;width:18px;height:18px;background:currentColor;mask:var(--call-icon) center/contain no-repeat;-webkit-mask:var(--call-icon) center/contain no-repeat}
.voice-call.call-layout{display:flex;flex-direction:column;gap:10px;padding:14px;max-height:calc(100dvh - 48px)}
.voice-call.call-layout.has-video{width:min(1280px,calc(100vw - 48px));height:min(900px,calc(100dvh - 48px));overflow:visible}
.call-layout .voice-call-heading{flex:none;gap:12px;min-width:0}
.call-layout .voice-call-heading>div{min-width:0}
.call-layout .voice-call-heading .voice-recording{font-size:12px;margin:0;flex:none;max-width:28%;line-height:1.3}
.call-layout .voice-recording-live{color:#ff6b6b}
.call-layout .voice-call-heading .avatar{width:44px;height:44px;border-radius:8px}
.call-layout .voice-error,.call-layout-error{margin:0;font-size:12px;line-height:1.4;flex:none}
.call-layout-error:empty{display:none}
.call-fullscreen,.call-layout .voice-dismiss{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:8px;border:0;background:transparent}
.call-layout:not(.has-video) .call-fullscreen,.call-fullscreen[hidden],.call-exit-fullscreen,.call-fullscreen.is-fullscreen>.call-icon{display:none}
.call-fullscreen.is-fullscreen .call-exit-fullscreen{display:flex}
.call-media{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;gap:12px}
.call-layout:not(.has-video) .call-media{flex:0}
.call-screen{display:contents}
.call-screen>p:empty{display:none}
.call-screen>p{flex:none}
.call-layout .call-video-stage{flex:1;min-height:0;aspect-ratio:auto;margin:0;background:var(--video-surface,#14211d);isolation:isolate}
.call-layout .call-remote-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.call-layout .call-local-preview{width:clamp(160px,28%,320px);max-width:calc(100% - 24px);border:1px solid #ffffff80;border-radius:12px;box-shadow:0 4px 20px #0006;aspect-ratio:4/3;min-height:0}
.call-layout .call-local-preview>video{display:block}
.call-layout .call-local-preview>button{position:absolute;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:0;background:#111b;color:#fff;min-width:36px;min-height:36px;padding:6px;touch-action:none;user-select:none;font-size:12px}
.call-layout .call-local-preview>button:focus-visible{outline:3px solid #fff;outline-offset:-4px}
.call-preview-move{left:0;top:0;cursor:move;border-bottom-right-radius:8px!important}
.call-preview-resize{right:0;bottom:0;cursor:nwse-resize;border-top-left-radius:8px!important}
.call-preview-move .call-icon,.call-preview-resize .call-icon{width:18px;height:18px}
.call-layout .call-toolbar{position:relative;display:flex;justify-content:center;align-items:center;gap:8px;flex:none;margin:0;flex-wrap:wrap}
.call-layout .call-toolbar>button{flex:0 0 auto}
.call-layout .call-toolbar button,.call-layout .call-toolbar summary{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;min-height:36px;padding:7px 10px;white-space:nowrap}
.call-layout .call-tool{min-width:70px}
.call-layout .call-toolbar .voice-end{margin-left:auto;background:#b43838;border-color:#b43838;color:#fff;min-width:90px}
.call-layout .call-toolbar .voice-end:disabled{opacity:.7}
.call-options,.call-details,.screen-audio-options{position:static;margin:0}
.call-layout details:not([open])>:not(summary){display:none}
.call-layout summary{color:var(--text);list-style:none;cursor:pointer;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.call-layout summary::-webkit-details-marker{display:none}
.call-layout details[open]>summary{background:var(--hover);border-color:var(--accent)}
.call-options-menu,.call-details-menu,.call-layout .screen-audio-menu{position:absolute;bottom:calc(100% + 12px);right:0;z-index:5;width:min(360px,100%);max-height:min(420px,calc(100dvh - 180px));overflow:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 30px #0004;padding:16px;font-size:13px;line-height:1.5;white-space:normal}
.call-options-menu>button{width:100%;justify-content:flex-start!important;margin-bottom:8px}
.call-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.call-layout .call-menu-close{flex:none;min-width:36px;width:36px;height:36px;padding:8px;border:0;background:transparent}
.call-details-menu p{margin:0 0 12px;font-size:13px;line-height:1.5}
.call-details-menu .voice-navigation-warning{padding:10px}
.call-details-menu{width:min(440px,100%)}
/* Audio calls sit near the top of the screen, so their menus expand inside the card. */
.voice-call.call-layout:not(.has-video){overflow:auto}
.call-layout:not(.has-video) :is(.call-options,.call-details,.screen-audio-options)[open]{width:100%}
.call-layout:not(.has-video) :is(.call-options-menu,.call-details-menu,.screen-audio-menu){position:relative;bottom:auto;right:auto;width:100%;margin-top:8px;max-height:min(320px,40dvh)}
@media(max-width:650px){.voice-call.call-layout:not(.has-video){max-height:calc(100dvh - 124px - env(safe-area-inset-top))}}
.call-layout .call-statistics{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1.7fr);gap:8px 16px;margin:8px 0 14px;font-size:13px;line-height:1.5}
.call-statistics dt{color:var(--muted);font-weight:400}.call-statistics dd{margin:0;white-space:pre-line;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.call-layout .call-technical{position:static;margin:12px 0}
.call-layout .call-toolbar .call-technical>summary{display:block;font-size:13px;padding:8px 10px;min-width:0;width:100%;height:auto;text-align:left}
.call-technical>summary::before{content:'▸';margin-right:8px}.call-technical[open]>summary::before{content:'▾'}
.call-technical h4{font-size:13px;margin:16px 0 8px}.call-details-menu .call-statistics-note{color:var(--muted);font-size:12px}
.call-share-controls:empty,.call-share-controls [role=status]:empty{display:none}
.call-share-controls [data-screen-action=mute]::before{content:"";width:18px;height:18px;flex:none;background:currentColor;mask:url(icons/call/volume.svg) center/contain no-repeat;-webkit-mask:url(icons/call/volume.svg) center/contain no-repeat}
.call-share-controls .screen-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.call-share-controls [data-screen-action=start]::before,.call-share-controls [data-screen-action=stop]::before{content:"";width:18px;height:18px;flex:none;background:currentColor;mask:url('icons/call/screen.svg') center/contain no-repeat;-webkit-mask:url('icons/call/screen.svg') center/contain no-repeat}
.call-share-controls [hidden],.call-screen [hidden]{display:none!important}
.call-layout .screen-audio-options summary::before{content:"";width:18px;height:18px;flex:none;background:currentColor;mask:url(icons/call/volume.svg) center/contain no-repeat;-webkit-mask:url(icons/call/volume.svg) center/contain no-repeat}
.call-layout .screen-audio-options summary{font-size:12px;min-width:44px}
.call-layout .screen-audio-menu label{display:flex!important;align-items:center;gap:10px;font-size:13px;margin:10px 0;font-weight:400}
.call-layout .screen-audio-menu input{flex:none}
.call-screen-stage{position:relative;flex:1;min-height:0;min-width:0;background:#14211d;color:#fff;border-radius:12px;padding:12px;overflow:hidden}
.call-screen-stage>video{display:block;width:100%;height:calc(100% - 48px);object-fit:contain;min-height:0}
.call-screen-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.call-screen-toolbar>button{padding:8px;font-size:12px;min-height:36px}
.call-screen-reveal{display:none}
.call-layout.is-sharing .call-media{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,28%);grid-template-rows:minmax(0,1fr)}
.call-layout.is-sharing .call-screen>p:not(:empty){grid-column:1/-1}
.call-layout.is-sharing .call-video-stage{min-height:180px}
.call-layout.is-sharing .call-local-preview{max-width:50%}
.call-layout:fullscreen{inset:0;width:100vw!important;height:100dvh!important;max-height:none!important;border:0;border-radius:0;padding:20px;background:var(--surface)}
/* The source keeps its aspect ratio; only source/viewport differences may letterbox. */
.call-screen-stage:fullscreen{width:100vw;height:100dvh;max-width:none;max-height:none;display:block}
.call-layout.full-call.is-sharing{padding:0;gap:0}
.full-call.is-sharing #screen-panel{display:flex;flex-direction:column;overflow:hidden}
#screen-panel>[role=status]:empty{display:none}
.call-screen-stage:fullscreen,.full-call.is-sharing .call-screen-stage{padding:0!important;margin:0!important;border:0;border-radius:0;background:#000}
.call-screen-stage:fullscreen>video,.full-call.is-sharing .call-screen-stage>video{position:absolute;inset:0;width:100%;height:100%;max-height:none!important;min-height:0!important;object-fit:contain}
.call-screen-stage:fullscreen>.call-screen-toolbar,:where(.full-call.is-sharing) .call-screen-stage>.call-screen-toolbar{position:absolute;z-index:3;top:12px;left:12px;max-width:calc(100% - 24px);box-sizing:border-box;padding:8px;border-radius:8px;background:#000b;opacity:0;transform:translateY(calc(-100% - 12px));pointer-events:none;transition:opacity .12s,transform .18s}
.call-screen-stage:fullscreen>.call-screen-reveal,.full-call.is-sharing .call-screen-stage>.call-screen-reveal{display:block;position:absolute;z-index:2;inset:0 0 auto;width:100%;height:16px;padding:0;border:0;border-radius:0;background:transparent;cursor:default}
.call-screen-stage.show-screen-controls>.call-screen-toolbar,.call-screen-stage:has(>.call-screen-reveal:focus-visible)>.call-screen-toolbar,.call-screen-stage>.call-screen-toolbar:has(:focus-visible){opacity:1;transform:none;pointer-events:auto}
.call-screen-stage::backdrop{background:#000}
@media(pointer:coarse){.call-screen-toolbar>button{min-height:44px}.call-screen-stage:fullscreen>.call-screen-reveal,.full-call.is-sharing .call-screen-stage>.call-screen-reveal{height:44px}}
@media(prefers-reduced-motion:reduce){.call-screen-stage>.call-screen-toolbar{transition:none}}
@media(max-width:760px){
 .voice-call.call-layout.has-video{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;gap:10px}
 .call-layout .voice-call-heading{gap:8px}.call-layout .voice-call-heading .avatar{display:none}
 .call-layout .voice-call-heading strong{font-size:14px}.call-layout .voice-call-heading p{font-size:11px}
 .call-layout .voice-call-heading .voice-recording{max-width:30%;font-size:11px}
 .call-layout .call-toolbar{gap:6px}.call-layout .call-toolbar button,.call-layout .call-toolbar summary{font-size:11px;padding:8px;gap:5px}
 .call-layout .call-tool{min-width:48px;flex-direction:column}.call-layout .call-toolbar .voice-end{min-width:68px}
 .call-share-controls .screen-controls{gap:6px}.call-share-controls [data-screen-action]{flex-direction:column}
 .call-layout .screen-audio-options summary{font-size:10px;max-width:66px;white-space:normal;text-align:center}
 .call-layout .call-options>summary,.call-layout .call-details>summary{flex-direction:column;min-width:48px}
 .call-layout .call-toolbar .call-tool,.call-layout .call-options>summary,.call-layout .call-details>summary,.call-layout .screen-controls>button,.call-layout .screen-audio-options>summary{width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;font-size:0;gap:0;padding:10px;flex-direction:row}
 .call-layout .call-toolbar .call-tool>span:not(.call-icon),.call-layout .call-options>summary>span:not(.call-icon),.call-layout .call-details>summary>span:not(.call-icon){font-size:0}
 .call-layout .call-local-preview{width:160px}
 .call-layout.is-sharing .call-media{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 160px}
 .call-layout.is-sharing .call-video-stage{min-height:0}
}
@media(max-height:500px) and (min-width:650px){.voice-call.call-layout.has-video{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:10px;gap:6px}.call-layout .voice-call-heading .avatar{display:none}.call-layout .call-toolbar .call-tool{flex-direction:row}.call-layout .call-toolbar{gap:6px}.call-layout .call-toolbar button,.call-layout .call-toolbar summary{padding:8px}}

@media(pointer:coarse){
 .call-layout .call-menu-close{width:44px;height:44px}
 .call-fullscreen,.call-layout .voice-dismiss{width:44px;height:44px}
 .call-layout .call-local-preview>button{min-width:44px;min-height:44px}
 .call-layout .call-toolbar button,.call-layout .call-toolbar summary{min-height:44px}
}

/* Right-aligned call island, shared with the native Windows header. */
.voice-call.call-layout.call-compact{width:calc(100vw - 48px);max-width:1600px;gap:8px;padding:12px 24px;background:var(--call-surface,#f8fafc)}
:root[data-theme=dark] .call-compact{--call-surface:#242628;--call-island:#303436}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .call-compact{--call-surface:#242628;--call-island:#303436}}
.call-compact .call-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:52px;flex:none;min-width:0}
.call-compact .voice-call-heading{flex:1;min-width:0}
.call-compact .voice-call-heading strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-compact .voice-call-heading p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-compact .voice-call-heading p .call-icon{width:14px;height:14px;vertical-align:-2px;margin-right:6px}
.call-compact .voice-call-heading .avatar{display:grid;width:44px;height:44px;border-radius:10px}
.call-compact .call-toolbar{flex:0 1 auto;justify-content:flex-end;gap:2px;padding:4px;border-radius:14px;background:var(--call-island,#e8edf2);margin-left:auto;min-width:0}
.call-compact .call-toolbar .call-tool,.call-compact .call-toolbar>.call-fullscreen,.call-compact .call-options>summary,.call-compact .call-details>summary{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:10px;gap:0;border:0;border-radius:10px;background:transparent;color:var(--text);font-size:0}
.call-compact .call-options>summary{width:28px;min-width:28px;max-width:28px;padding:5px}
.call-compact .call-toolbar .call-icon{width:22px;height:22px}
.call-compact .call-toolbar .voice-end{margin-left:4px;background:#df4148;color:#fff}
.call-compact .call-toolbar .voice-end:hover{background:#c9343c}
.call-compact .call-tool:hover:not(:disabled),.call-compact .call-fullscreen:hover,.call-compact summary:hover{background:var(--hover)}
.call-compact .call-end-handset{display:flex;transform:rotate(135deg)}
.call-compact .call-share-controls .screen-controls{gap:2px}
.call-compact .call-share-controls .screen-controls>button{width:44px;min-width:44px;max-width:44px;height:44px;padding:10px;font-size:0;gap:0;border:0;background:transparent}
.call-compact .call-share-controls .screen-audio-options>summary{font-size:0;max-width:44px}
.voice-call.call-layout.call-compact:not(.has-video){overflow:visible}
.call-compact:not(.has-video) :is(.call-options,.call-details,.screen-audio-options)[open]{width:auto}
.call-compact :is(.call-options-menu,.call-details-menu,.screen-audio-menu),.call-compact:not(.has-video) :is(.call-options-menu,.call-details-menu,.screen-audio-menu){position:absolute;top:calc(100% + 8px);bottom:auto;right:0;width:min(360px,calc(100vw - 48px));margin:0;max-height:min(420px,calc(100dvh - 180px))}
.call-compact .call-details-menu{width:min(440px,calc(100vw - 48px))}
.call-compact .call-tool[aria-label]:is(:hover,:focus-visible)::after,.call-compact .call-fullscreen[aria-label]:is(:hover,:focus-visible)::after,.call-compact :is(.call-options,.call-details)>summary:is(:hover,:focus-visible)::after{content:attr(aria-label);position:absolute;top:calc(100% + 12px);right:0;z-index:10;white-space:nowrap;font:13px/1.4 var(--font-ui);padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);pointer-events:none}
.call-compact :is(.call-options,.call-details)[open]>summary::after{display:none}
.call-compact .call-media:empty{display:none}
.call-compact .call-record.is-recording{color:#ff737a;background:#523137}
.call-compact .voice-recording-request{padding:8px 0;border-top:1px solid var(--border);font-size:13px}
.call-compact .voice-recording-request p{margin:0 0 8px}
.call-compact .voice-recording-request button{margin-right:8px;font-size:13px}
.call-compact:fullscreen .call-media{flex:1}
@media(max-width:900px){.call-compact .call-header{flex-wrap:wrap;gap:12px}.call-compact .voice-call-heading{flex-basis:100%}.voice-call.call-layout.call-compact{right:12px;top:12px;width:calc(100vw - 24px);padding:12px}.call-compact .call-toolbar{max-width:100%}.call-compact .voice-call-heading .voice-recording{max-width:45%}}
@media(pointer:coarse){.call-compact .call-options>summary{width:44px;min-width:44px;max-width:44px}}
@media(max-width:900px){.call-compact :is(.call-options-menu,.call-details-menu,.screen-audio-menu),.call-compact:not(.has-video) :is(.call-options-menu,.call-details-menu,.screen-audio-menu){max-height:min(420px,calc(100dvh - 210px))}}

.call-compact .call-fullscreen[hidden]{display:none}

/* Canonical shared call roles: the browser builder copies this source into the private media package. */
.reach-design.call-layout,.reach-design.group-call-panel{--surface:var(--reach-surface-page);--text:var(--reach-text-primary);--muted:var(--reach-text-secondary);--border:var(--reach-separator-structural);--hover:var(--reach-action-secondary-hover);--accent:var(--reach-state-focus);--call-surface:var(--reach-surface-page);--call-island:var(--reach-action-secondary-fill);color:var(--reach-text-primary);font-family:var(--reach-font-ui)}
.voice-call.reach-design.call-layout:not(.call-window){--surface:var(--reach-surface-page);--text:var(--reach-text-primary);--muted:var(--reach-text-secondary);--border:var(--reach-separator-structural);--call-surface:var(--reach-surface-page);--call-island:var(--reach-action-secondary-fill);background:var(--reach-surface-page);color:var(--reach-text-primary);border-color:var(--reach-separator-structural);border-radius:var(--reach-radius-popup)}
.voice-call.reach-design:not(.call-window) .voice-call-heading p,.voice-call.reach-design:not(.call-window) :is(.voice-recording-notice,.voice-encryption){color:var(--reach-text-secondary)}
.voice-call.reach-design:not(.call-window) .voice-call-heading .voice-recording-live{color:var(--reach-recording-text)}
.reach-design.call-layout :is(button,summary):not(.call-conversation *){border-radius:var(--reach-radius-control);font-weight:400}
.reach-design.call-layout :is(button,input,select,summary,[tabindex]):not(.call-conversation *):focus-visible{outline:var(--reach-focus-width) solid var(--call-focus,var(--reach-state-focus));outline-offset:var(--reach-focus-offset)}
.reach-design.call-layout :is(.call-options-menu,.call-details-menu,.screen-audio-menu){background:var(--reach-surface-picker);color:var(--reach-text-primary);border-color:var(--reach-separator-structural);border-radius:var(--reach-radius-popup)}
.reach-design.call-layout :is(.voice-error,.call-layout-error):not(.call-conversation *),.reach-design.group-call-panel .group-call-error{color:var(--reach-state-error-text)}
.reach-design.call-layout .voice-recording-live,.reach-design.group-call-panel .voice-recording-live{color:var(--reach-recording-text)}
.reach-design.call-layout .call-toolbar .voice-end{background:var(--reach-state-danger-fill);color:var(--reach-state-danger-text);border-color:transparent}
.reach-design.call-layout .call-toolbar .voice-end:hover:not(:disabled){background:var(--reach-state-danger-hover)}
.reach-design.call-layout .call-toolbar .voice-end:active:not(:disabled){background:var(--reach-state-danger-pressed)}
.reach-design.call-layout .call-record.is-recording{background:var(--reach-state-danger-fill);color:var(--reach-state-danger-text)}
.reach-design.call-layout :is(.call-video-stage,.call-screen-stage){background:var(--reach-media-stage);color:var(--reach-media-text)}
.reach-design.call-layout .call-local-preview>button{background:color-mix(in srgb,var(--reach-media-stage) 73%,transparent);color:var(--reach-media-text)}
.call-select-shell{display:block;position:relative;min-width:0;max-width:100%;width:100%}
.call-window-tools .call-select-shell{width:auto}
.call-select-chevron{position:absolute;top:50%;inset-inline-end:var(--reach-chevron-inset);width:var(--reach-chevron-size);height:var(--reach-chevron-size);transform:translateY(-50%);pointer-events:none;background:currentColor;mask:url(icons/settings/chevron-down.svg) center/contain no-repeat;-webkit-mask:url(icons/settings/chevron-down.svg) center/contain no-repeat}
.reach-design.call-layout .call-select-shell select{appearance:none;padding-inline:var(--reach-field-inset) var(--reach-field-trailing);background:var(--reach-surface-field);color:var(--reach-text-primary);border-color:transparent;border-radius:var(--reach-radius-control);font-weight:400}
.reach-design.call-layout select option{background:var(--reach-surface-picker);color:var(--reach-text-primary)}
.reach-design.call-layout select option:checked{background:var(--reach-state-selected-fill);color:var(--reach-state-selected-text)}
.reach-design.call-layout .call-toolbar .call-menu-close{background:transparent;color:var(--reach-text-primary)}
.reach-design.call-layout .call-toolbar .call-menu-close:is(:hover,:active){background:transparent}
.call-screen-toolbar.reach-design{background:var(--reach-surface-page);color:var(--reach-text-primary);border-radius:var(--reach-radius-popup)}
@media(pointer:coarse){
 .reach-design.call-layout :is(.call-toolbar,.call-window-tools) :is(button,summary,select){min-width:var(--reach-touch-web);min-height:var(--reach-touch-web)}
 .reach-design.call-layout .call-options>summary,.reach-design.call-layout .screen-controls>button{width:var(--reach-touch-web);min-width:var(--reach-touch-web);max-width:none}
 .reach-design.call-layout :is(.voice-record-option,.screen-audio-menu label){min-height:var(--reach-touch-web)}
 .reach-design.call-layout .call-local-preview>button{min-width:var(--reach-touch-web);min-height:var(--reach-touch-web)}
 .call-screen-toolbar.reach-design>button{min-width:var(--reach-touch-web);min-height:var(--reach-touch-web)}
 .call-screen-stage:fullscreen>.call-screen-reveal,.full-call.is-sharing .call-screen-stage>.call-screen-reveal{height:var(--reach-touch-web)}
}
