.profile-photo-dialog {
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  height: fit-content;
  margin: auto;
  overflow: auto;
}
.profile-photo-body { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.profile-photo-body h2, .profile-photo-body p { margin: 0; }
.profile-photo-body p { font-size: .875rem; line-height: 1.5; color: var(--text-muted); }
.profile-photo-stage {
  width: min(100%, 300px, 42dvh);
  aspect-ratio: 1;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 2px solid var(--text-muted);
  touch-action: none;
  cursor: grab;
}
.profile-photo-stage:active { cursor: grabbing; }
.profile-photo-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.profile-photo-stage canvas { display: block; width: 100%; height: 100%; }
.profile-photo-zoom { width: 100%; min-width: 0; min-height: 44px; padding: 0; }
.profile-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-photo-actions button { flex: 1; min-height: 44px; white-space: nowrap; }
#profile-photo-adjust { margin-top: 8px; min-height: 44px; }
.profile-photo-editor .profile-avatar-wrap { flex-direction: column; gap: 0; }
