#chat #call-options-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:5px;background:transparent;border:0;color:var(--purple,#b48aeb);flex:none}
#chat #call-options-toggle[hidden]{display:none}
#call-options-toggle svg,#call-drag svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#call-options-dialog{box-sizing:border-box;width:min(92vw,430px);max-height:85dvh;overflow:auto;padding:16px;border:1px solid var(--zw-border,#494158);border-radius:18px;background:var(--zw-panel,#191720);color:var(--zw-text,#eee)}
#call-options-dialog::backdrop{background:#0008}
#call-options-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#call-options-dialog header button{background:none;border:0;color:inherit;font-size:24px;min-width:40px;min-height:40px}
#call-options-dialog #call-panel{display:block;margin:0;padding:8px 0 0;border:0;background:transparent}
#call-options-dialog #call-panel[hidden]{display:none}
#call-options-dialog .call-buttons{display:grid;grid-template-columns:1fr;gap:7px;margin-top:12px}
#call-options-dialog .call-buttons button{text-align:left;padding:10px 12px;min-height:42px;font:inherit}
#chat #call-video-stage:not(.expanded){position:fixed;inset:0;z-index:15;padding:0;margin:0;max-height:none;overflow:visible;background:transparent;pointer-events:none}
#chat #call-video-stage[hidden]{display:none}
#chat #call-video-stage:not(.expanded) figure{position:fixed;width:min(240px,42vw);height:150px;flex:none;pointer-events:auto;border:1px solid #ffffff18;box-shadow:0 5px 18px #0005;left:50%;top:120px}
#chat #call-video-stage:not(.expanded) figure[hidden]{display:none}
#chat #call-video-stage:not(.expanded) figure video{width:100%;height:100%;object-fit:contain}
#call-video-stage .call-drag{position:absolute;top:6px;left:6px;width:32px;height:32px;padding:6px;background:#0009;border:0;color:#ddd;border-radius:8px;cursor:grab;touch-action:none}
#call-video-stage .call-drag svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#call-video-stage .dragging{z-index:2}
#call-video-stage .dragging .call-drag{cursor:grabbing}
#call-video-stage.expanded .call-drag{display:none}
@media(max-width:760px){#chat #call-video-stage:not(.expanded) figure{width:min(190px,42vw);height:120px}}
@media(max-height:520px){#chat #call-video-stage:not(.expanded) figure{height:85px;width:min(170px,40vw)}}

#chat #call-video-stage.expanded figure{left:auto!important;top:auto!important;width:auto;height:auto;position:relative;flex:1}

#call-video-stage .call-resize{position:absolute;bottom:5px;right:5px;width:32px;height:32px;padding:6px;background:#0009;border:0;color:#ddd;border-radius:8px;cursor:nwse-resize;touch-action:none}
#call-video-stage .call-resize svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#call-video-stage.expanded .call-resize{display:none}
#call-video-stage .resizing{z-index:2}
