/* The photo crop editor (vl_crop.js links this; the CSP has no inline styles). */
.vlcrop-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; display: flex;
  align-items: center; justify-content: center; padding: .5rem; }
.vlcrop-dialog { background: #fff; border-radius: 10px; width: min(94vw, 600px); max-height: 94vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.35); }
.vlcrop-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem;
  border-bottom: 1px solid #eee; }
.vlcrop-head h3 { margin: 0; font-size: 1rem; }
.vlcrop-viewport { position: relative; overflow: auto; background: #222; touch-action: none;
  width: 100%; height: min(52vh, 420px); flex: none; }
.vlcrop-stage { position: relative; }
.vlcrop-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.vlcrop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
  cursor: move; touch-action: none; }
.vlcrop-handle { position: absolute; width: 24px; height: 24px; margin: -12px; background: #fff;
  border: 1px solid #333; border-radius: 50%; touch-action: none; }
.vlcrop-handle.n, .vlcrop-handle.s { left: 50%; cursor: ns-resize; }
.vlcrop-handle.e, .vlcrop-handle.w { top: 50%; cursor: ew-resize; }
.vlcrop-handle.nw, .vlcrop-handle.se { cursor: nwse-resize; }
.vlcrop-handle.ne, .vlcrop-handle.sw { cursor: nesw-resize; }
.vlcrop-handle.n { top: 0; } .vlcrop-handle.s { top: 100%; }
.vlcrop-handle.w { left: 0; } .vlcrop-handle.e { left: 100%; }
.vlcrop-handle.nw { left: 0; top: 0; } .vlcrop-handle.ne { left: 100%; top: 0; }
.vlcrop-handle.sw { left: 0; top: 100%; } .vlcrop-handle.se { left: 100%; top: 100%; }
.vlcrop-body { padding: .6rem .8rem; display: flex; flex-direction: column; gap: .5rem; }
.vlcrop-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.vlcrop-aspects button.on { background: #2b6be0; border-color: #2b6be0; color: #fff; }
.vlcrop-row label.straighten { flex: 1; display: flex; align-items: center; gap: .4rem; margin: 0; }
.vlcrop-row label.straighten input { flex: 1; width: auto; }
.vlcrop-zoom .vlcrop-zoom-range { flex: 1; width: auto; }
.vlcrop-actions { display: flex; justify-content: flex-end; gap: .5rem; padding: .6rem .8rem;
  border-top: 1px solid #eee; }
.vlcrop-actions button.primary { background: #2b6be0; border-color: #2b6be0; color: #fff; }
@media (prefers-reduced-motion: reduce) { .vlcrop-canvas, .vlcrop-box { transition: none !important; } }
