.profile-photo-trigger {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.profile-photo-trigger--mobile {
  width: 44px;
  height: 44px;
}

.profile-photo-trigger:hover {
  background: rgb(255 255 255 / 14%);
}

.profile-photo-trigger--mobile:hover {
  background: #eef3fa;
}

.profile-photo-edit {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  color: #003f87;
  box-shadow: 0 0 0 1px #c8d8ea;
}

.profile-photo-trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.profile-photo-trigger--mobile:focus-visible,
.profile-photo-actions button:focus-visible {
  outline: 2px solid #003f87;
  outline-offset: 3px;
}

.profile-photo-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100% - 32px));
  margin: auto;
  padding: 24px;
  border: 1px solid #d9e3ee;
  border-radius: 12px;
  color: #1c2b3a;
  background: #fff;
  box-shadow: 0 16px 40px rgb(0 45 99 / 24%);
}

.profile-photo-dialog::backdrop {
  background: rgb(0 30 65 / 50%);
}

.profile-photo-dialog h2 {
  margin: 0;
  color: #002d63;
  font-size: 20px;
  font-weight: 700;
}

.profile-photo-details {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.profile-photo-preview > * {
  width: 44px;
  height: 44px;
}

.profile-photo-name {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-photo-dialog p,
.profile-photo-status {
  margin: 0;
  font-size: 14px;
  color: #46586e;
}

.profile-photo-dialog .profile-photo-error {
  margin-top: 12px;
  color: #a61c1c;
}

.profile-photo-status:not(:empty) {
  margin-top: 12px;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.profile-photo-actions button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #003f87;
  border-radius: 8px;
  background: #003f87;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.profile-photo-actions button:last-child {
  border-color: #cbd7e4;
  background: #fff;
  color: #003f87;
}

.profile-photo-actions button:hover:not([aria-disabled="true"]) {
  box-shadow: inset 0 0 0 999px rgb(0 45 99 / 9%);
}

.profile-photo-actions button[aria-disabled="true"] {
  opacity: .65;
  cursor: wait;
}
