#cameraMoveLayer{position:absolute;z-index:3;pointer-events:none;overflow:visible;touch-action:none;filter:drop-shadow(0 1px 2px #0009)}
#cameraMoveLayer text{font:600 17px sans-serif;paint-order:stroke;stroke:#000a;stroke-width:3px;pointer-events:none}
#cameraMoveLayer.cameraEditing .editable,#cameraMoveLayer.cameraEditing .moveGrip{pointer-events:all;cursor:move;touch-action:none;outline:none}
#cameraMoveLayer .moveGrip{cursor:nwse-resize}#cameraMoveLayer [data-handle=n],#cameraMoveLayer [data-handle=s]{cursor:ns-resize}#cameraMoveLayer [data-handle=w],#cameraMoveLayer [data-handle=e]{cursor:ew-resize}#cameraMoveLayer .moveGrip:focus{stroke:#fff;stroke-width:5px}
.cameraMoveEditor[hidden]{display:none!important}
.studioPlayer .cameraMoveEditor{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:9px;min-width:0;min-height:0;overflow:auto;background:#202020;color:#eee;padding:10px;box-sizing:border-box;border-left:1px solid #ffffff30;touch-action:pan-y;overscroll-behavior:contain;font-size:12px;color-scheme:dark}
.cameraMoveEditor header{display:flex;align-items:center;justify-content:space-between}.cameraMoveEditor header strong{font-size:13px}.cameraMoveEditor small,.cameraMoveEditor .moveHelp{color:#bbb;font-size:11px;line-height:1.5;margin:0}
.studioPlayer .cameraMoveEditor button{background:#303030;color:#eee;border:1px solid #666;border-radius:3px;min-height:32px;padding:5px 8px;font-size:11px;touch-action:manipulation;transform:none!important}.studioPlayer .cameraMoveEditor button:hover{background:#444}.cameraMoveEditor button[aria-pressed=true]{background:#634039;border-color:#ff806c}.cameraMoveEditor button:disabled{opacity:.4}.cameraMoveEditor label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#ccc}
.studioPlayer .cameraMoveEditor input,.studioPlayer .cameraMoveEditor select{min-width:0;max-width:100%;width:100%;min-height:32px;padding:5px;box-sizing:border-box;background:#141414;color:#fff;border:1px solid #666;border-radius:2px;font-size:12px}.cameraMoveEditor input[type=color]{height:32px;padding:2px}.cameraMoveEditor .moveCheck{flex-direction:row;align-items:center}.cameraMoveEditor .moveCheck input{width:16px;min-height:16px}.movePair,.moveActions{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:end}.moveList{display:flex;flex-wrap:wrap;gap:4px}.cameraMoveEditor fieldset{min-width:0;margin:0;padding:7px;border:1px solid #666}.cameraMoveEditor legend{font-size:11px;color:#ff9a8c}.boxNumbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.cameraMoveEditor footer{border-top:1px solid #555;padding-top:8px}.cameraMoveEditor footer p{font-size:11px;line-height:1.5}.studioPlayer .cameraMoveEditor [data-save]{background:#a33e30;border-color:#f08070}.cameraMoveEditor :focus-visible{outline:2px solid #8bd1ff;outline-offset:1px}
/* The editor is a responsive dock in the same rotating surface as the actual video. */
.studioPlayer.dockMode.cameraMoveEditing .playerSurface{display:grid!important;grid-template-columns:minmax(0,1fr) 284px!important;grid-template-rows:minmax(0,1fr) auto auto auto!important;overflow:hidden!important}
.studioPlayer.dockMode.cameraMoveEditing .playerSurface>.videoFrame{grid-column:1;grid-row:1;min-height:0!important;height:100%!important;width:100%!important;aspect-ratio:auto!important}
.studioPlayer.dockMode.cameraMoveEditing .playerSurface>.videoScrub{grid-column:1/-1;grid-row:2}.studioPlayer.dockMode.cameraMoveEditing .playerSurface>#masterTakeRail{grid-column:1/-1;grid-row:3}.studioPlayer.dockMode.cameraMoveEditing .playerSurface>.partRail{grid-column:1/-1;grid-row:4}
.cameraMoveEditing .fullRecordOverlay,.cameraMoveEditing .fullRecordToggle{display:none!important}
.studioPlayer.dockMode.cameraMoveEditing .playerSurface.cameraEditNarrow{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(100px,.53fr) minmax(100px,.47fr) auto auto auto!important}
.studioPlayer.dockMode.cameraMoveEditing .cameraEditNarrow>.cameraMoveEditor{grid-row:2;grid-column:1;border-left:0;border-top:1px solid #555;padding:8px;gap:7px}
.studioPlayer.dockMode.cameraMoveEditing .cameraEditNarrow>.videoScrub{grid-row:3}.studioPlayer.dockMode.cameraMoveEditing .cameraEditNarrow>#masterTakeRail{grid-row:4}.studioPlayer.dockMode.cameraMoveEditing .cameraEditNarrow>.partRail{grid-row:5}
.cameraEditNarrow .boxNumbers input{font-size:16px}.cameraEditNarrow .cameraMoveEditor select,.cameraEditNarrow .cameraMoveEditor input:not([type=checkbox]):not([type=color]){font-size:16px}

.cameraMoveEditor [data-custom-aspect][hidden]{display:none!important}.cameraMoveEditor [data-custom-aspect]{display:grid;gap:6px}.cameraMoveEditor [data-box-section=from] legend{color:#38d87b}.cameraMoveEditor [data-box-section=to] legend{color:#ff6567}.studioPlayer .cameraMoveEditor [data-front=from]{border-color:#38d87b80}.studioPlayer .cameraMoveEditor [data-front=to]{border-color:#ff4d4f80}.studioPlayer .cameraMoveEditor [data-front=from][aria-pressed=true]{background:#215237}.studioPlayer .cameraMoveEditor [data-front=to][aria-pressed=true]{background:#643031}

/* Compact movement workspace; controls remain reachable while scrolling. */
.studioPlayer .cameraMoveEditor header{position:sticky;top:-10px;z-index:5;background:#202020;padding:8px 0;flex-shrink:0;gap:6px;border-bottom:1px solid #555}
.cameraMoveEditor header strong{margin-right:auto}.cameraMoveEditor [data-exit-prompt]{position:sticky;top:40px;z-index:6;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#292929;padding:10px;border:1px solid #888}.cameraMoveEditor [data-exit-prompt] strong{grid-column:1/-1}
.studioPlayer .cameraMoveEditor .inkTools{display:flex;flex-flow:row wrap;gap:4px;padding:6px 0;align-items:center}
.studioPlayer .cameraMoveEditor .inkTools input[type=range]{width:85px;min-height:28px;padding:0}.studioPlayer .cameraMoveEditor .inkTools input[type=checkbox]{width:16px;min-height:16px;height:16px;padding:0}.studioPlayer .cameraMoveEditor .inkTools>label{width:auto;flex-direction:row;gap:4px;align-items:center;margin:0}.cameraMoveEditor .inkTools small{flex-basis:100%}.studioPlayer .cameraMoveEditor .inkTools button{min-height:32px;padding:4px 6px}
@media(pointer:coarse){.studioPlayer .cameraMoveEditor button{min-height:44px}.studioPlayer .cameraMoveEditor .inkTools button{min-height:40px}}

/* Use the editor transport while manipulating handles, including the video center. */
body.cameraMoveEditing .centerTransport{display:none!important;pointer-events:none!important}
