.image-crop-preview{display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#080808}
.image-crop-preview>span{position:relative;display:block;flex:none;overflow:hidden}
.image-crop-preview>span>img,.image-crop-preview>span>video{position:absolute;display:block;max-width:none!important;max-height:none!important;min-height:0!important;object-fit:fill!important;aspect-ratio:auto!important}
.crop-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center}
.crop-source{position:relative;overflow:hidden;line-height:0;user-select:none;touch-action:none;background:#080808}
.crop-source>img,.crop-source>video{display:block;width:100%;height:auto;object-fit:contain}
.crop-selection{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px #0008;cursor:move;touch-action:none}
.crop-selection [data-crop-handle]{position:absolute;display:block;width:24px;height:24px;border:2px solid #fff;background:#1d2430aa}
[data-crop-handle=nw]{left:-2px;top:-2px;cursor:nwse-resize}[data-crop-handle=ne]{right:-2px;top:-2px;cursor:nesw-resize}[data-crop-handle=sw]{left:-2px;bottom:-2px;cursor:nesw-resize}[data-crop-handle=se]{right:-2px;bottom:-2px;cursor:nwse-resize}
.crop-result{aspect-ratio:16/9;min-height:0;width:100%;background:#080808;overflow:hidden;position:relative}.crop-result>.image-crop-preview{position:absolute;inset:0}
.crop-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border:0;padding:12px 0;margin:8px 0}.crop-controls legend,.crop-controls label,.crop-status{font-size:12px;color:var(--muted)}.crop-controls label{display:grid;gap:6px}.crop-controls input{width:100%;min-height:44px;min-width:0}.crop-presets{flex-wrap:wrap}.crop-presets button{min-height:44px}
@media(max-width:600px){.crop-editor{grid-template-columns:1fr}.crop-source{max-width:100%}.crop-source>img{max-height:none}.crop-result{max-height:240px}.crop-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}

.crop-result.crop-tall,.sequence-stage.sequence-tall{aspect-ratio:9/16}.crop-result.crop-square,.sequence-stage.sequence-square{aspect-ratio:1/1}

.crop-result.crop-tall{width:min(100%,15.75vh);justify-self:center}.sequence-stage.sequence-tall{width:min(100%,24.75vh);margin-inline:auto}.sequence-stage.sequence-square{width:min(100%,44vh);margin-inline:auto}
@media(max-width:600px){.crop-result.crop-tall{width:min(100%,78.75px)}}

.crop-video-seek{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:12px}.crop-video-seek input{min-width:0;flex:1;min-height:44px}.crop-video-seek output{white-space:nowrap}
