/* Private account photo enhancements; native upload remains usable without JavaScript. */
.profile-photo-content { min-width: 0; flex: 1; }
.photo-crop-editor { margin-block: 1rem; padding: 1rem; border: 1px solid var(--border, #ddd); border-radius: 12px; background: var(--paper, #fff); }
.photo-crop-editor[hidden], .photo-upload-progress[hidden], [data-photo-abort][hidden], [data-photo-edit-current][hidden], [data-photo-remove][hidden] { display: none; }
.photo-crop-preview { display: block; width: min(100%, 280px); height: auto; aspect-ratio: 1; border-radius: 50%; margin: 1rem auto; background: #e8e4e0; cursor: grab; touch-action: none; }
.photo-crop-preview:active { cursor: grabbing; }
.photo-crop-preview:focus-visible { outline: 3px solid #9f1757; outline-offset: 4px; }
.photo-crop-controls { display: grid; gap: .5rem; max-width: 30rem; margin: 1rem auto; }
.photo-crop-controls label { display: flex; justify-content: space-between; font-weight: 600; }
.photo-crop-controls input[type="range"] { width: 100%; min-height: 32px; accent-color: #a61c63; }
.photo-crop-controls input:disabled { opacity: .5; }
.photo-upload-progress { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin: 1rem 0; }
.photo-upload-progress label { grid-column: 1 / -1; font-weight: 600; }
.photo-upload-progress progress { width: 100%; height: 1rem; accent-color: #a61c63; }
[data-photo-status].is-error { color: #a12020; }
.avatar.profile-avatar { position: relative; overflow: hidden; flex-shrink: 0; }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (max-width: 520px) {
    .profile-photo-editor { align-items: flex-start; flex-direction: column; }
    .profile-photo-content { width: 100%; }
    .photo-crop-editor { padding: .75rem; }
}
