/* Authoritative call layout. Geometry belongs to JS; SDK overrides are confined
   to player dimensions and fit. No inset/right/left competing with gestures. */
dialog.aeotee-peer-call-dialog.aeotee-call-stage-dialog{
 box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:24px;
 width:min(440px,calc(100vw - 24px));max-width:none;height:max-content;
 max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #ffffff20;
 border-radius:26px;background:#10151f;color:#f6f7fb;box-shadow:0 24px 100px #0008;
 font:14px/1.5 system-ui,sans-serif;overscroll-behavior:contain;
}
dialog.aeotee-call-stage-dialog:not([open]){display:none}
.aeotee-call-stage-dialog::backdrop{background:#03070edb}
.aeotee-call-stage-dialog>h2{margin:0 0 12px;font-size:20px;letter-spacing:-.03em;color:#fff}
.aeotee-call-stage-dialog>p{font-size:12px;color:#adb9ca}
.aeotee-call-stage-dialog .aeotee-peer-call-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.aeotee-call-stage-dialog button{font:600 12px/1.25 system-ui;color:#fff;cursor:pointer}
.aeotee-call-stage-dialog button:focus-visible,.aeotee-call-stage-dialog select:focus-visible,.aeotee-call-inset:focus-visible{outline:2px solid #c8ddff;outline-offset:3px}
.aeotee-call-stage-dialog button:disabled{opacity:.45;cursor:wait}
.aeotee-call-stage-dialog .aeotee-peer-call-actions>button{min-height:48px;border:1px solid #ffffff24;border-radius:16px;padding:12px 18px;background:#293446}
.aeotee-call-stage-dialog:not(.aeotee-call-connected) .aeotee-peer-call-actions>button:first-child{background:#137d60}
.aeotee-call-stage-dialog:not(.aeotee-call-connected) .aeotee-peer-call-actions>button:nth-child(2){background:#a5324c}
.aeotee-call-stage-dialog svg{display:block;width:23px;height:23px;flex:none;pointer-events:none}
.aeotee-call-stage-dialog [hidden]{display:none!important}
.aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog{
 display:block;inset:0;margin:0;padding:0;width:100vw;height:100dvh;max-height:none;
 border:0;border-radius:0;overflow:hidden;background:#090d14;box-shadow:none;
}
.aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog.aeotee-call-restored{
 inset:12px;margin:0;width:calc(100vw - 24px);height:calc(100dvh - 24px);border-radius:22px;border:1px solid #ffffff28;
}
.aeotee-call-stage{position:absolute;inset:0;overflow:hidden;isolation:isolate;background:#090d14}
.aeotee-call-tile{box-sizing:border-box;position:absolute;overflow:hidden;background:#0c121c}
.aeotee-call-stage .aeotee-call-main{inset:0;width:100%;height:100%;border:0;z-index:1}
.aeotee-call-stage .aeotee-call-inset{
 top:0;left:0;right:auto;bottom:auto;z-index:3;min-width:0;min-height:0;
 border:1px solid #ffffff30;border-radius:18px;box-shadow:0 6px 24px #0008;
 cursor:grab;touch-action:none;user-select:none;will-change:transform;contain:layout paint;
}
.aeotee-call-gesturing .aeotee-call-inset{cursor:grabbing;transition:none}
.aeotee-call-stage .aeotee-call-tile>video,
.aeotee-call-stage .aeotee-call-tile>:is(.aeotee-agora-remote,.aeotee-agora-local,.aeotee-livekit-remote,.aeotee-livekit-local){
 position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;min-height:0;
 margin:0;border:0;border-radius:0;aspect-ratio:auto;background:#090d14;
}
.aeotee-call-stage .aeotee-call-tile :is(video,.agora_video_player),
.aeotee-call-stage .aeotee-call-tile>:is(.aeotee-agora-remote,.aeotee-agora-local)>div{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-height:none!important;max-width:none!important;min-height:0!important;
 object-fit:cover!important;pointer-events:none;border-radius:0;
}
.aeotee-call-stage.aeotee-call-contain .aeotee-call-tile video{object-fit:contain!important}
.aeotee-call-tile-label{position:absolute;left:8px;bottom:8px;padding:3px 8px;border-radius:8px;background:#05090e80;color:#fff;font-size:10px;pointer-events:none}
.aeotee-call-main>.aeotee-call-tile-label{display:none}
.aeotee-call-stage .aeotee-call-resize-grip{
 display:none;position:absolute;right:0;bottom:0;z-index:5;width:44px;height:44px;
 padding:13px;border:0;border-radius:12px 0 0 0;background:linear-gradient(135deg,transparent,#0007);
 color:#ffffffb0;touch-action:none;cursor:nwse-resize;
}
.aeotee-call-stage .aeotee-call-inset>.aeotee-call-resize-grip{display:grid;place-items:center}
.aeotee-call-resize-grip svg{width:18px;height:18px}
.aeotee-call-stage.aeotee-call-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.aeotee-call-stage.aeotee-call-split>.aeotee-call-tile{
 position:relative;inset:auto;width:100%;height:100%;border:0;border-radius:0;transform:none;box-shadow:none;will-change:auto;cursor:default;
}
.aeotee-call-stage.aeotee-call-split .aeotee-call-resize-grip{display:none}
.aeotee-call-connected.aeotee-call-video-dialog>h2{
 position:absolute;top:calc(env(safe-area-inset-top) + 12px);left:calc(env(safe-area-inset-left) + 12px);z-index:6;
 max-width:calc(100% - 80px);margin:0;padding:9px 12px;border-radius:14px;
 font-size:14px;line-height:1.4;background:#0b1322ba;text-shadow:0 1px 4px #0008;
 touch-action:none;user-select:none;
}
.aeotee-call-connected.aeotee-call-video-dialog>p:not([role=status]){display:none}
.aeotee-call-connected.aeotee-call-video-dialog>p[role=status]{
 position:absolute;left:16px;right:16px;bottom:calc(env(safe-area-inset-bottom) + 96px);z-index:4;
 margin:0 auto;padding:6px 12px;border-radius:12px;width:fit-content;max-width:calc(100% - 56px);
 font-size:11px;line-height:1.4;text-align:center;background:#09111dcc;color:#e7edf8;pointer-events:none;
}
.aeotee-call-stage-dialog>.aeotee-call-layout-toggle{
 position:absolute;top:calc(env(safe-area-inset-top) + 10px);right:calc(env(safe-area-inset-right) + 12px);z-index:10;
 display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff20;border-radius:50%;background:#192336c9;padding:10px;
}
.aeotee-call-stage-dialog>.aeotee-call-layout-tools{
 display:none;position:absolute;top:calc(env(safe-area-inset-top) + 66px);right:12px;z-index:9;
 box-sizing:border-box;width:min(330px,calc(100% - 24px));max-height:calc(100% - 166px);overflow:auto;overscroll-behavior:contain;
 grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border:1px solid #ffffff22;border-radius:20px;
 background:#111c2bf5;box-shadow:0 12px 40px #0007;
}
.aeotee-call-layout-open>.aeotee-call-layout-tools{display:grid}
.aeotee-call-stage-dialog .aeotee-call-layout-btn{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;
 min-width:0;padding:9px 5px;border:1px solid #ffffff12;border-radius:13px;background:#ffffff09;font-size:10px;text-align:center;
}
.aeotee-call-layout-btn span{pointer-events:none}
.aeotee-call-layout-btn:hover{background:#ffffff16}
.aeotee-call-provider-tools{display:contents}
.aeotee-call-device{grid-column:1/-1;display:flex;gap:8px;align-items:center;color:#bac6d8;font-size:11px}
.aeotee-call-device select{min-width:0;flex:1;padding:8px;border:1px solid #ffffff28;border-radius:9px;background:#172234;color:#fff;font:12px system-ui}
.aeotee-call-connected.aeotee-call-video-dialog>.aeotee-peer-call-actions{
 position:absolute;bottom:calc(env(safe-area-inset-bottom) + 12px);left:50%;transform:translateX(-50%);z-index:6;
 box-sizing:border-box;display:flex;flex-wrap:nowrap;gap:12px;width:max-content;max-width:calc(100% - 24px);
 padding:10px 14px;margin:0;border:1px solid #ffffff23;border-radius:28px;background:#162132df;
}
.aeotee-call-connected.aeotee-call-video-dialog>.aeotee-peer-call-actions>button[data-call-role]{
 display:grid;place-items:center;flex:none;box-sizing:border-box;width:48px;height:48px;min-height:48px;
 padding:12px;border:1px solid #ffffff1a;border-radius:50%;background:#ffffff12;transition:background .15s;
}
.aeotee-call-stage-dialog .aeotee-peer-call-actions>button[data-call-role=hangup]{background:#e33b59;border-color:#ff72822e}
.aeotee-call-stage-dialog button[aria-pressed=true]{background:#dbe7fb;color:#172337}
.aeotee-call-connected.aeotee-call-video-dialog>.aeotee-peer-call-actions>button[aria-pressed=true]{background:#dbe7fb;color:#172337}
.aeotee-call-connected .aeotee-peer-call-actions .aeotee-call-control-label{
 position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
.aeotee-call-stage-dialog .aeotee-peer-call-actions .aeotee-call-quality-details{display:none}
.aeotee-call-stage-dialog>.aeotee-call-pipeline{
 position:absolute;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 96px);z-index:11;box-sizing:border-box;
 margin:0;padding:14px;border:1px solid #ffffff25;border-radius:16px;background:#0b1426f5;color:#e0ebfa;
 max-height:45%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.65 system-ui;
}
.aeotee-call-stage-dialog>.aeotee-call-pip-resize{display:none}
dialog.aeotee-call-stage-dialog.aeotee-call-connected.aeotee-call-video-dialog.aeotee-call-in-pip{
 position:fixed;inset:auto;left:0;top:0;right:auto;bottom:auto;margin:0;padding:0;z-index:10020;
 width:var(--call-window-w);height:var(--call-window-h);max-width:none;max-height:none;
 transform:translate3d(var(--call-window-x),var(--call-window-y),0);border:1px solid #ffffff30;
 border-radius:20px;box-shadow:0 14px 60px #0009;
}
.aeotee-call-in-pip>h2{top:7px;left:7px;max-width:calc(100% - 64px);padding:7px;font-size:12px;cursor:grab}
.aeotee-call-in-pip>.aeotee-call-layout-toggle{top:6px;right:6px}
.aeotee-call-in-pip>.aeotee-call-layout-tools{top:57px;max-height:calc(100% - 145px)}
.aeotee-call-in-pip.aeotee-call-video-dialog>p[role=status]{display:none}
.aeotee-call-in-pip.aeotee-call-video-dialog>.aeotee-peer-call-actions{bottom:8px;gap:6px;padding:6px 8px;border-radius:24px}
.aeotee-call-stage-dialog.aeotee-call-in-pip>.aeotee-call-pip-resize{
 display:grid;place-items:center;position:absolute;bottom:0;right:0;z-index:8;width:44px;height:44px;padding:13px;
 border:0;border-radius:14px 0 0 0;background:linear-gradient(135deg,transparent,#0009);color:#ffffffa0;touch-action:none;cursor:nwse-resize;
}
.aeotee-call-pip-resize svg{width:18px;height:18px}
@media(max-width:700px),(orientation:portrait){
 .aeotee-call-stage.aeotee-call-split{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}
}
@media(max-height:450px){
 .aeotee-call-connected.aeotee-call-video-dialog>p[role=status]{display:none}
 .aeotee-call-stage-dialog>.aeotee-call-layout-tools{max-height:calc(100% - 135px)}
}
@media(prefers-reduced-motion:reduce){.aeotee-call-stage-dialog *{transition:none!important;animation:none!important}}
