/* The photo field: click or drop, then frame to 4:3. Pairs with image_crop_controller.js and shared/_image_crop_field.
   Tokens come from intake.css; Cropper.js's own styles are in cropper.css. */

.image-crop { position: relative; display: flex; flex-direction: column; gap: 10px; }
.image-crop [hidden] { display: none !important; }
.image-crop-intake { display: flex; gap: 12px; align-items: stretch; }
.image-crop-current { flex: 0 0 120px; width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--sn-line); }
.image-crop-dropzone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 120px; padding: 18px 16px; text-align: center; border: 1.5px dashed var(--sn-line-strong); border-radius: 8px; background: var(--sn-cream); color: var(--sn-text); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.image-crop-dropzone svg { color: var(--sn-blue); margin-bottom: 4px; }
.image-crop-dropzone b { font-family: "FT Polar", system-ui, sans-serif; font-weight: 500; font-size: 15px; color: var(--sn-ink); }
.image-crop-dropzone:hover, .image-crop-dropzone:focus-within, .image-crop-dropzone.is-over { border-color: var(--sn-blue); background: var(--sn-tint); }
.image-crop-dropzone.is-filled { min-height: 0; flex-direction: row; gap: 10px; padding: 12px 16px; }
.image-crop-dropzone.is-filled svg { width: 18px; height: 18px; margin: 0; }
.image-crop-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.image-crop-stage { display: flex; flex-direction: column; gap: 10px; }
.image-crop-modes, .image-crop-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.image-crop-mode, .image-crop-tool { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--sn-line-strong); border-radius: 999px; background: #fff; color: var(--sn-ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.image-crop-mode:hover, .image-crop-tool:hover { border-color: var(--sn-blue); }
.image-crop-mode.is-active { background: var(--sn-blue); border-color: var(--sn-blue); color: #fff; }
.image-crop-viewport { overflow: hidden; border-radius: 8px; background: #14171c; }
.image-crop-preview { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.image-crop-cropper { max-height: 62vh; }
.image-crop-cropper img { display: block; max-width: 100%; }
.image-crop-info { margin: 0; font-size: 12.5px; color: var(--sn-muted); min-height: 1em; }
