.profile-crop-dialog { --avatar-ink:var(--ink,#243e4b); width:min(420px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:24px; border:1px solid var(--line,#d9e2e6); border-radius:18px; background:var(--paper,#fff); color:var(--avatar-ink); box-shadow:0 20px 70px #162c3d30; font:inherit; overflow:auto; }
.profile-crop-dialog::backdrop { background:#172f4066; }
.profile-crop-dialog form { display:grid; gap:20px; margin:0; }
.profile-crop-dialog header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.profile-crop-dialog h2 { font-size:20px; margin:0 0 5px; color:inherit; }
.profile-crop-dialog p { margin:0; color:var(--muted,#627782); font-size:14px; }
.profile-crop-dialog button { min-height:44px; padding:9px 16px; border:1px solid var(--line,#d9e2e6); border-radius:9px; background:var(--paper,#fff); color:inherit; font:inherit; cursor:pointer; }
.profile-crop-dialog .profile-crop-close { font-size:24px; padding:0; width:44px; flex-shrink:0; }
.profile-crop-dialog canvas { display:block; width:min(280px,100%); height:auto; aspect-ratio:1; border-radius:50%; margin:auto; background:repeating-conic-gradient(#eef1f3 0 25%,#fff 0 50%) 50%/20px 20px; box-shadow:0 0 0 1px var(--line,#d9e2e6); cursor:grab; touch-action:none; }
.profile-crop-dialog canvas:active { cursor:grabbing; }
.profile-crop-dialog :focus-visible { outline:3px solid var(--amber-deep,#a86a15); outline-offset:3px; }
.profile-crop-zoom { display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:center; font-size:14px; }
.profile-crop-zoom input { width:100%; min-width:0; min-height:44px; accent-color:var(--amber-deep,#a86a15); }
.profile-crop-dialog footer { display:flex; justify-content:flex-end; gap:8px; }
.profile-crop-dialog .profile-crop-save { background:var(--amber,#ffc25d); border-color:var(--amber-deep,#bd842e); color:#493010; font-weight:600; }
@media(prefers-reduced-motion:no-preference) { .profile-crop-dialog[open] { animation:profile-crop-in 140ms ease-out; } @keyframes profile-crop-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } } }
@media(max-width:480px) { .profile-crop-dialog { padding:18px; } .profile-crop-dialog form { gap:16px; } }
