/* Scoped dialog sizing. Does not resize stage, camera or avatar. */
body #liveBackgroundDialog,body #videoSourcesPanel{box-sizing:border-box!important;position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(460px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;height:fit-content!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;overflow:auto!important;overscroll-behavior:contain;min-width:0!important;padding:16px!important;scrollbar-gutter:stable;}
body #liveBackgroundDialog .background-close{position:sticky!important;top:0;display:block;margin:0 0 4px auto;min-width:44px;min-height:44px;z-index:2;}
body #liveBackgroundDialog .background-editor{flex-wrap:wrap;}
body #liveBackgroundDialog .background-buttons{flex:1 1 180px;}
body #liveBackgroundDialog :is(button,input),body #videoSourcesPanel :is(button,input,a.btn){box-sizing:border-box;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
body #videoSourcesPanel header{display:flex;align-items:center;justify-content:space-between;gap:12px;}
body #videoSourcesPanel header button{flex:0 0 44px;}
body #videoSourcesPanel :is(.video-source-choices,.video-source-links){display:flex;flex-wrap:wrap;gap:8px;}
body #videoSourcesPanel .video-source-choices button{flex:1 1 110px;}
body #videoSourcesPanel .video-source-links a{flex:1 1 160px;}
body #videoSourcesPanel :is(section,.field,input){min-width:0;max-width:100%;}
body #videoSourcesPanel input{width:100%;}
