/* Shared webcam window for editors 3 and 4. */
#mp-camera[hidden] { display: none !important; }
.editor4-camera[hidden], .editor4-camera [hidden] { display: none !important; }
.editor4-camera { position: fixed; z-index: 1034; display: flex; flex-direction: column; box-sizing: border-box; width: 340px; height: 270px; min-width: 0; min-height: 0; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: hidden; border: 1px solid #8d989f; border-radius: 6px; background: #182220; box-shadow: 0 3px 14px #0004; }
.editor4-camera-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; background: #f0f0f0; cursor: move; touch-action: none; user-select: none; }
.editor4-camera-header button { border: 0; padding: 2px 4px; background: transparent; color: #30363c; cursor: pointer; }
.editor4-camera-header:focus-visible { outline: 2px solid #0f7391; outline-offset: -2px; }
.editor4-camera-controls { flex: 0 0 auto; padding: 4px 8px; background: #f0f0f0; }
.editor4-camera-controls select { width: 100%; min-width: 0; border: 1px solid #ccc; border-radius: 3px; padding: 3px; background: #fff; }
.editor4-camera video { display: block; flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; }
.editor4-camera p { flex: 0 0 auto; margin: 0; padding: 8px 10px; color: #fff; font-size: 13px; overflow-wrap: anywhere; }
.editor4-camera-resize { position: absolute; right: 0; bottom: 0; border: 0; border-radius: 4px 0 0 0; width: 24px; height: 24px; background: #0007; color: #fff; cursor: nwse-resize; touch-action: none; }
