.avatar { overflow: hidden; flex-shrink: 0; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-photo-control { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 12px 0 20px; }
.profile-photo-control > span { font-size: 12px; color: var(--text-muted); }
.profile-photo-feedback { margin: 0; font-size: 12px; line-height: 1.5; }
.profile-photo-feedback:empty { display: none; }
.profile-avatar-editor { position: relative; flex: 0 0 auto; border-radius: 50%; }
.profile-avatar-editor > .avatar { margin: 0; }
.profile-avatar-actions { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: rgba(10,30,54,.65); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.profile-avatar-editor:hover .profile-avatar-actions, .profile-avatar-editor:focus-within .profile-avatar-actions { opacity: 1; pointer-events: auto; }
.profile-avatar-actions button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: var(--surface); color: var(--navy); cursor: pointer; }
.profile-avatar-actions button[hidden] { display: none; }
.profile-avatar-actions button[data-photo-remove] { color: var(--danger); }
.profile-avatar-actions button:disabled { opacity: .55; cursor: wait; }
.profile-avatar-actions button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
@media (hover: none), (pointer: coarse) {
  .profile-avatar-actions { opacity: 1; pointer-events: auto; align-items: flex-end; background: transparent; padding-bottom: 0; }
  .profile-avatar-actions button { width: 44px; height: 44px; border-color: var(--border); box-shadow: var(--shadow-sm); }
}
