/* Video editor: selecting and moving things on the picture (features/vedit_select.js). */
.ve-sel, .ve-hover { transform-origin: center center; box-sizing: border-box; }
.ve-sel.member { outline-width: 1px; }
.ve-sel.multi { outline-width: 2px; }
.ve-sel.multi.group { outline-style: dashed; }
.ve-groupbox { position: absolute; outline: 1px dashed rgba(56, 163, 255, .85); outline-offset: 5px; pointer-events: none; }

/* the turn handle: a round one on a short stem above the box (below or inside it when there is no room) */
.ve-handle.rot { left: calc(50% - 7px); top: -34px; width: 14px; height: 14px; border-radius: 50%; cursor: grab; }
.ve-handle.rot::after { content: ''; position: absolute; left: calc(50% - .5px); top: 100%; width: 1px; height: 20px; margin-top: 2px; background: #38a3ff; pointer-events: none; }
.ve-handle.rot.below { top: auto; bottom: -34px; }
.ve-handle.rot.below::after { top: auto; bottom: 100%; margin: 0 0 2px; }
.ve-handle.rot.inside { top: 10px; }
.ve-handle.rot.inside::after { display: none; }

.ve-readout { position: absolute; z-index: 1; background: #38a3ff; color: #fff; font: 11px/1.4 system-ui, sans-serif; padding: 1px 5px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.ve-marquee { position: absolute; border: 1px solid #38a3ff; background: rgba(56, 163, 255, .14); pointer-events: none; }
.ve-guide.k-guide { background: #a56bff; }

/* Alt held: distance to each edge of the picture */
.ve-dist { position: absolute; background: #ff3d8b; pointer-events: none; }
.ve-dist.h { height: 1px; }
.ve-dist.v { width: 1px; }
.ve-dist span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #ff3d8b; color: #fff; font: 11px/1.4 system-ui, sans-serif; padding: 0 4px; border-radius: 3px; white-space: nowrap; }

/* typing on the picture: a text box in video pixels, scaled like the preview */
.ve-textwrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 3; }
.ve-stage textarea.ve-textedit { position: absolute; display: block; box-sizing: content-box; margin: 0; padding: 0; border: 0; border-radius: 0; min-height: 0; resize: none; overflow: hidden;
  white-space: pre-wrap; overflow-wrap: break-word; outline: 2px dashed #38a3ff; transform-origin: center center; pointer-events: auto; font-kerning: normal; box-shadow: none; }

