/* A clip from Kling, its frames picked before anything is added (shared/clip.js review) – the Sprite editor's Animate
   with AI and the Cutout Show's Make an animation. */
.spr-review-modal .modal-body { padding-bottom: 12px; }
.spr-review { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
/* the clip and, beside it, the animation as it will be */
.spr-review-top { display: flex; gap: 12px; align-items: stretch; }
.spr-review-top > .spr-review-stage { flex: 1 1 0; min-width: 160px; }
.spr-review-top > .spr-review-right { flex: 0 1 200px; min-width: 110px; justify-content: center; align-items: center; text-align: center; gap: 6px; }
.spr-review-left, .spr-review-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.spr-review-video { width: 100%; max-height: min(34vh, 380px); background: #111; border-radius: 8px; }
/* the frame cut from the clip, over it: dragged to move it, its edges and corners to resize it; what's outside dimmed */
.spr-review-stage { position: relative; overflow: hidden; border-radius: 8px; }
/* (Keep everything round the frame: the room kept round it, outlined on the clip) */
.spr-review-room { position: absolute; box-sizing: border-box; border: 1.5px dashed var(--warn); pointer-events: none; }
.spr-review-room[hidden] { display: none; }
.spr-review-stage .spr-review-video { display: block; }
.spr-review-crop { position: absolute; box-sizing: border-box; border: 1.5px solid #ffd23f; outline: 1px solid rgba(0,0,0,.55); box-shadow: 0 0 0 9999px rgba(0,0,0,.32); cursor: move; touch-action: none; }
.spr-review-crop[hidden] { display: none; }
/* the sheet's tiles in the frame (lines a tile apart – sprite/animate.js sets their size and place) */
.spr-review-crop.tiled { background-image: linear-gradient(to right, rgba(255,210,63,.75) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,210,63,.75) 1px, transparent 1px); background-origin: border-box; background-clip: padding-box; }
.spr-review-anim.tiled, .spr-review-fr canvas.tiled { background: none; }
.spr-review-crop:focus-visible { outline: 2px solid #fff; }
.spr-review-crop-h { position: absolute; width: 10px; height: 10px; margin: -6px 0 0 -6px; box-sizing: border-box; background: #ffd23f; border: 1px solid rgba(0,0,0,.6); border-radius: 2px; }
.spr-review-crop-h.nw { left: 0; top: 0; cursor: nwse-resize; }
.spr-review-crop-h.n { left: 50%; top: 0; cursor: ns-resize; }
.spr-review-crop-h.ne { left: 100%; top: 0; cursor: nesw-resize; }
.spr-review-crop-h.e { left: 100%; top: 50%; cursor: ew-resize; }
.spr-review-crop-h.se { left: 100%; top: 100%; cursor: nwse-resize; }
.spr-review-crop-h.s { left: 50%; top: 100%; cursor: ns-resize; }
.spr-review-crop-h.sw { left: 0; top: 100%; cursor: nesw-resize; }
.spr-review-crop-h.w { left: 0; top: 50%; cursor: ew-resize; }
.spr-review-crop-tag { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; padding: 0 5px; border-radius: 3px; background: #ffd23f; color: #111; font: 600 11px/16px system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.spr-review-crop.tag-below .spr-review-crop-tag { bottom: auto; top: 100%; margin: 4px 0 0; }
.spr-review-cropline { justify-content: space-between; }
.spr-review-capline { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.spr-review-capline .btn .cb-icon { font-size: 18px; margin-right: 4px; }
.spr-cap-concept { display: flex; flex-direction: column; gap: 8px; }
/* Target sprite size (one clip): folded to a line, Edit opens it */
.spr-review-cropline { align-items: flex-start; }
.spr-review-target { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.spr-review-target .sai-num { width: 72px; }
.spr-review-places { display: flex; flex-wrap: wrap; gap: 4px; }
.spr-review-track { position: relative; height: 34px; border-radius: 6px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; margin: 0 12px; touch-action: none; }
.spr-review-head { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #e5484d; pointer-events: none; }
.spr-review-head[hidden] { display: none; }
.spr-review-whole { height: 26px; }
.spr-review-span { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 4px; pointer-events: none; }
.spr-review-ticks { position: absolute; inset: 0; pointer-events: none; }
.spr-review-ticks i { position: absolute; top: 7px; bottom: 7px; width: 1px; background: var(--accent); }
.spr-review-edge { position: absolute; top: -4px; bottom: -4px; width: 12px; margin-left: -6px; padding: 0; border: 0; border-radius: 3px; background: var(--accent); cursor: ew-resize; touch-action: none; z-index: 2; }
.spr-review-edge::after { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.8); border-radius: 1px; }
.spr-review-edge:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.spr-review-marks { position: absolute; inset: 0; }
.spr-review-mark { position: absolute; top: 5px; height: 24px; min-width: 22px; padding: 0 4px; transform: translateX(-50%); border: 1px solid var(--accent); border-radius: 5px; background: var(--surface); color: var(--text); font: 600 11px/22px inherit; font-variant-numeric: tabular-nums; cursor: ew-resize; touch-action: none; }
.spr-review-mark.on { background: var(--accent); color: #fff; z-index: 1; }
.spr-review-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spr-review-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spr-review-count { display: inline-flex; align-items: center; gap: 6px; }
.spr-review-count .vid-num { width: 72px; }
.spr-review-time { font-variant-numeric: tabular-nums; }
.spr-review-strip { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.spr-review-fr { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-2); font: 10.5px/1.2 inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.spr-review-fr.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.spr-review-fr canvas, .spr-review-anim { image-rendering: pixelated; background: repeating-conic-gradient(#e4e6ea 0% 25%, #fff 0% 50%) 0 0 / 10px 10px; border-radius: 4px; }
.spr-review-anim { align-self: center; }
.spr-review-kept { margin-right: auto; font-size: 12px; }
/* (in the Cutout Show, which hasn't the Sprite editor's styles for these) */
.cut-studio .spr-review .spr-check { display: flex; align-items: center; gap: 6px; }
.cut-studio .spr-review .spr-label { font-size: 12.5px; color: var(--text-2); }
.spr-review-anim.painted { background: none; image-rendering: auto; }
