.photo-crop-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 2px 0; }
.photo-crop-open, .photo-crop-actions button { border: 0; border-radius: 8px; padding: 10px 14px; background: #1d4ed8; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.photo-crop-status { color: #64748b; font-size: 12px; }
.photo-crop-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #cbd5e1; }
.photo-crop-modal { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15, 23, 42, .72); }
.photo-crop-modal[hidden] { display: none; }
.photo-crop-dialog { width: min(100%, 440px); max-height: calc(100vh - 36px); overflow: auto; padding: 22px; border-radius: 16px; background: #fff; color: #1f2937; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.photo-crop-dialog h2 { margin: 0 0 6px; font-size: 20px; }
.photo-crop-dialog p { margin: 0 0 16px; color: #64748b; font-size: 14px; }
.photo-crop-stage { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto 16px; overflow: hidden; border-radius: 10px; background: #111827; }
.photo-crop-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.photo-crop-selection { position: absolute; z-index: 1; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(15, 23, 42, .52), inset 0 0 0 1px rgba(15, 23, 42, .4); cursor: move; touch-action: none; }
.photo-crop-resize { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 5px; background: #2563eb; cursor: nwse-resize; touch-action: none; }
.photo-crop-selection:has(.photo-crop-resize:active) { cursor: nwse-resize; }
.photo-crop-selection:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.photo-crop-actions { display: flex; justify-content: flex-end; gap: 10px; }
.photo-crop-actions .photo-crop-cancel { background: #e2e8f0; color: #334155; }
@media (max-width: 480px) { .photo-crop-dialog { padding: 16px; } .photo-crop-controls { align-items: flex-start; } }
