/* LIVE camera/gallery styling, scoped to the reused component host. */
#call-shell{--pc-bg:var(--bg);--pc-soft:#e1edf6;--pc-purple:#366d99;--pc-ink:var(--ink);--pc-panel:var(--surface);--pc-line:var(--line);--pc-radius:10px}#call-shell [hidden]{display:none!important}#call-shell .pc-video{height:min(47vh,460px);min-height:270px;border-radius:var(--pc-radius);overflow:hidden;position:relative;background:#17212d}#call-shell .pc-person{overflow:hidden;background:var(--pc-soft);color:var(--pc-purple)}#call-shell .pc-person-primary{position:absolute;inset:0}#call-shell .pc-person-secondary{position:absolute;bottom:14px;right:14px;width:27%;aspect-ratio:4/3;border-radius:10px;border:2px solid #ffffffc0;z-index:1;box-shadow:0 3px 15px #0002}#call-shell .pc-person-name{position:absolute;bottom:12px;left:12px;padding:5px 9px;border-radius:6px;background:#181720a6;color:#fff;font-size:11px;max-width:calc(100% - 24px);z-index:3}#call-shell .pc-person-secondary .pc-person-name{bottom:5px;left:5px;padding:3px 5px;font-size:10px;max-width:calc(100% - 10px)}#call-shell .pc-video.pc-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;background:var(--pc-bg)}#call-shell .pc-side .pc-person-primary,#call-shell .pc-side .pc-person-secondary{position:relative;inset:auto;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:10px;box-shadow:none}#call-shell .pc-side .pc-person-secondary .pc-person-name{bottom:12px;left:12px;padding:5px 9px;font-size:11px;max-width:calc(100% - 24px)}#call-shell .pc-camera-off{position:absolute;inset:0;background:var(--pc-soft);color:var(--pc-purple);display:grid;place-items:center;font-size:40px}#call-shell .pc-person video.live-video{width:100%;height:100%;display:block;object-fit:contain;object-position:center;background:#17212d}#call-shell .pc-sharing #screen-stage{position:absolute;inset:0;z-index:0}#call-shell .pc-sharing #screen-stage video{display:block;width:100%;height:100%;max-height:none;border-radius:0;object-fit:contain}#call-shell .pc-share-thumbs{position:absolute;z-index:2;bottom:12px;right:12px;display:flex;gap:8px}#call-shell .pc-share-thumbs .pc-person{position:relative;inset:auto;width:clamp(90px,13vw,155px);height:auto;aspect-ratio:16/10;border:2px solid #ffffffc0;border-radius:9px;box-shadow:0 3px 14px #0005}#call-shell .pc-share-thumbs .pc-camera-off{font-size:22px}#call-shell .pc-share-thumbs .pc-person-name{bottom:4px;left:4px;max-width:calc(100% - 8px);padding:3px 5px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#call-shell .pc-video.pc-solo>.pc-person{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:10px}#call-shell .pc-mic-muted{position:absolute;top:9px;right:9px;width:26px;height:26px;padding:5px;border-radius:50%;background:#152735aa;color:white;z-index:4}#call-shell .pc-mic-muted svg{width:100%;height:100%}#call-shell.is-expanded{position:fixed;inset:0;padding:12px;z-index:500;background:var(--surface);overflow:auto;max-width:none}#call-shell:fullscreen{padding:12px;overflow:auto;background:var(--surface)}#call-shell.is-expanded .pc-video,#call-shell:fullscreen .pc-video{height:55vh}#screen-recording-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}.recording-mode-actions{display:flex;gap:6px}.recording-status{color:#b83250;font-weight:600}.recording-status small{margin-left:8px}.consent-details-text{font-size:13px;line-height:1.6}.recording-consent-dialog .pc-actions{display:flex;gap:8px;flex-wrap:wrap}.pc-button.pc-primary{background:var(--rose);border-color:var(--rose);color:#fff}@media(max-width:600px){#call-shell .pc-video{height:34vh;min-height:230px}#call-shell .pc-person-secondary{width:31%;right:9px;bottom:9px}#call-shell .pc-person-name{font-size:10px;left:7px;bottom:7px;padding:4px 6px}#call-shell .pc-side .pc-person-secondary .pc-person-name{font-size:10px;left:7px;bottom:7px;padding:4px 6px}#call-shell .pc-person-secondary .pc-person-name{font-size:9px}#call-shell .pc-share-thumbs{bottom:8px;right:8px;gap:5px}#call-shell .pc-share-thumbs .pc-person{width:88px}}

/* Fit the tile to the camera instead of letterboxing the camera inside a tall tile. */
#call-shell .pc-video{container-type:size;background:var(--pc-bg)}
#call-shell .pc-person video.live-video,#call-shell .preview-camera video,#call-shell .wait-preview-wrap .preview-camera video{background:transparent}
#call-shell .pc-video.pc-side:not(.pc-sharing),#call-shell .pc-video.pc-solo:not(.pc-sharing){display:flex;align-items:center;justify-content:center;gap:8px;background:var(--pc-bg)}
#call-shell .pc-video.pc-side:not(.pc-sharing)>.pc-person{position:relative;inset:auto;flex:none;width:calc(50% - 4px);height:auto;aspect-ratio:var(--camera-ratio,1.777778);max-height:100%;border:0;border-radius:12px;box-shadow:none}
#call-shell .pc-video.pc-solo:not(.pc-sharing)>.pc-person{position:relative;inset:auto;flex:none;width:min(100%,800px);height:auto;aspect-ratio:var(--camera-ratio,1.777778);max-height:100%;border:0;border-radius:12px}
@supports(width:1cqh){
 #call-shell .pc-video.pc-side:not(.pc-sharing)>.pc-person{width:min(calc(50% - 4px),calc(100cqh * var(--camera-ratio,1.777778)))}
 #call-shell .pc-video.pc-solo:not(.pc-sharing)>.pc-person{width:min(100%,800px,calc(100cqh * var(--camera-ratio,1.777778)))}
 #call-shell .pc-video.pc-focus:not(.pc-sharing)>.pc-person-primary{position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100%,calc(100cqh * var(--camera-ratio,1.777778)));height:auto;aspect-ratio:var(--camera-ratio,1.777778);border-radius:12px}
}
#call-shell .pc-video.pc-focus:not(.pc-sharing)>.pc-person-secondary{position:absolute;inset:auto 12px 12px auto;width:clamp(95px,24%,260px);height:auto;aspect-ratio:var(--camera-ratio,1.777778)}
#call-shell .pc-video.pc-group:not(.pc-sharing)>.pc-person{background:var(--pc-bg)}
#call-shell .pc-video.pc-sharing,#call-shell .pc-sharing #screen-stage video{background:#e8edf3}
