.employee-avatar.avatar-edit-button { position: relative; padding: 0; cursor: pointer; }
.avatar-visual { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
[data-person-avatar] img, .profile-avatar img, .photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-avatar, .visibility-preview-person [data-person-avatar] { overflow: hidden; }
.avatar-edit-mark { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--brand-neutral-300); border-radius: 50%; background: var(--brand-neutral-0); color: var(--ink); }
.avatar-edit-mark svg { width: 17px; height: 17px; }
.avatar-edit-button:hover .avatar-edit-mark { background: var(--selection); }
.photo-editor-open { overflow: hidden; }
.photo-dialog { width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); color: var(--ink); }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog::backdrop { background: var(--overlay-backdrop); }
.photo-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 16px 12px 24px; flex-shrink: 0; }
.photo-heading h2 { margin: 4px 0 8px; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.photo-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.photo-body { overflow-y: auto; min-height: 0; padding: 12px 24px 20px; text-align: center; }
.photo-preview { width: min(220px,100%); aspect-ratio: 1; margin: 0 auto 20px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--brand-blue-100); color: var(--brand-blue-700); font-size: 56px; }
.photo-file-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.photo-file-actions button, .photo-footer button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--brand-neutral-600); border-radius: 8px; background: var(--brand-neutral-0); color: var(--ink); font-size: 14px; font-weight: 600; }
.photo-file-actions button:hover, .photo-footer button:hover { background: var(--selection); }
.photo-file-actions button:disabled, .photo-footer button:disabled { opacity: .45; cursor: default; }
.photo-hint, .photo-demo { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.photo-feedback { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.photo-error { margin: 12px 0 0; color: var(--ui-error); font-size: 13px; line-height: 1.6; }
.photo-error:empty, .photo-feedback:empty { display: none; }
.photo-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); flex-shrink: 0; }
.photo-footer .photo-save { background: var(--ink); color: var(--brand-neutral-0); border-color: var(--ink); }
.photo-footer .photo-save:hover { background: var(--brand-neutral-800); }
@media (max-width: 480px) {
  .photo-heading { padding: 16px 12px 12px 20px; }
  .photo-heading h2 { font-size: 21px; }
  .photo-body { padding-inline: 20px; }
  .photo-preview { width: 180px; }
  .photo-footer { padding: 14px 20px; }
  .photo-footer button { flex: 1; }
}
