.photo-crop-dialog { width:min(560px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; box-sizing:border-box; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--surface,#fff); color:var(--ink,#1d1d1f); }
.photo-crop-dialog::backdrop { background:rgba(0,0,0,.65); }
.photo-crop-dialog .dialog-head { align-items:center; gap:16px; }
.photo-crop-dialog h2 { margin:0; font-size:1.35rem; }
.photo-crop-dialog p { font-size:.9rem; line-height:1.5; }
.photo-crop-frame { position:relative; width:min(100%,360px,max(180px,calc(100dvh - 340px))); aspect-ratio:1; margin:20px auto; overflow:hidden; background:#fff; border:1px solid var(--line,#ddd); border-radius:12px; cursor:grab; touch-action:none; user-select:none; }
.photo-crop-frame:active { cursor:grabbing; }.photo-crop-frame:focus-visible { outline:3px solid var(--accent,#3664a1); outline-offset:3px; }
.photo-crop-frame img { position:absolute; max-width:none; max-height:none; object-fit:fill; pointer-events:none; }
.photo-crop-grid { position:absolute; inset:0; pointer-events:none; background:linear-gradient(to right,transparent 33%,rgba(255,255,255,.45) 33%,rgba(255,255,255,.45) 33.5%,transparent 33.5%,transparent 66%,rgba(255,255,255,.45) 66%,rgba(255,255,255,.45) 66.5%,transparent 66.5%),linear-gradient(to bottom,transparent 33%,rgba(255,255,255,.45) 33%,rgba(255,255,255,.45) 33.5%,transparent 33.5%,transparent 66%,rgba(255,255,255,.45) 66%,rgba(255,255,255,.45) 66.5%,transparent 66.5%); box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); }
.photo-crop-zoom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; font-size:.9rem; }.photo-crop-zoom input { width:100%; min-height:36px; padding:0; accent-color:var(--accent,#3664a1); }.photo-crop-zoom output { font-variant-numeric:tabular-nums; }
.photo-crop-actions { display:flex; gap:12px; justify-content:space-between; margin-top:16px; }.photo-crop-actions button { white-space:normal; }
.used-photo-tools { flex-wrap:wrap; gap:8px; }
@media(max-width:560px){.photo-crop-dialog{padding:18px;}.photo-crop-dialog .dialog-head{align-items:flex-start;}.photo-crop-actions{flex-direction:column-reverse;}.photo-crop-actions button{width:100%;}.product-photo-preview-image{height:auto;aspect-ratio:1;}}
