.identity-verified {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xs) var(--spacing-md);
  text-align: center;
  animation: identityVerifiedFadeIn 0.5s ease-out both;
}

.identity-verified__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-full);
  background: #E6F4D8;
  color: var(--interactive-primary);
  animation: identityVerifiedPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.identity-verified__badge::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-full);
  background: #A5DC87;
  opacity: 0.6;
  animation: identityVerifiedPulse 1.2s ease-out 0.2s both;
}

.identity-verified__badge {
  position: relative;
  overflow: visible;
}

.identity-verified__badge .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
  animation: identityVerifiedCheck 0.4s ease-out 0.3s both;
}

@keyframes identityVerifiedFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes identityVerifiedPop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes identityVerifiedPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes identityVerifiedCheck {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.identity-progress {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.identity-progress__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xs);
  text-align: center;
}

.identity-progress__avatar {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* The reset gives every img `display: block`, which is an author rule and so beats the
   browser's own [hidden] rule. Without this the four avatars all stay on screen. */
/* The reset gives img and flex containers an explicit display, an author rule that
   beats the browser's own [hidden]. Everything the counter toggles needs saying here. */
.identity-progress__avatar[hidden],
.identity-progress__clock[hidden],
.identity-progress__stages[hidden],
.identity-progress__stage-dots[hidden],
.identity-progress__stage-check[hidden],
.identity-progress__review[hidden],
.identity-progress__delays[hidden] {
  display: none;
}

/* Everything else comes from .badge; the counter only needs its digits to hold still. */
.identity-progress__clock {
  font-variant-numeric: tabular-nums;
}

.identity-progress__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4xs);
}

.identity-progress__stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-2xs) var(--spacing-xs);
  border-radius: var(--rounded-xs);
  opacity: 0.55;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.identity-progress__stage--done {
  opacity: 0.75;
}

.identity-progress__stage--current {
  opacity: 1;
  background: var(--background-neutral);
}

/* The progress is the row itself filling in, so it sits behind the content. */
.identity-progress__stage-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: color-mix(in srgb, var(--interactive-accent) 35%, white);
  transition: width 1s linear;
}

/* A stage that is done or still to come empties at once: the class goes in the same
   pass as the reset to zero, so the fill snaps back instead of draining backwards. */
.identity-progress__stage:not(.identity-progress__stage--current) .identity-progress__stage-fill {
  transition: none;
}

.identity-progress__stage-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.identity-progress__stage-text {
  position: relative;
  display: flex;
  flex-direction: column;
}

.identity-progress__stage-title {
  font-weight: var(--font-weight-medium);
  line-height: 20px;
}

.identity-progress__stage--current .identity-progress__stage-title {
  font-weight: var(--font-weight-semibold);
}

.identity-progress__stage-note {
  font-size: var(--font-sm);
  line-height: 18px;
  color: var(--text-secondary);
}

.identity-progress__stage-check {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  color: var(--interactive-primary);
}

.identity-progress__stage-check .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Three dots pulsing in turn: the stage is working, without putting a number on it. */
.identity-progress__stage-dots {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.identity-progress__stage-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--text-secondary);
  animation: identityStageDots 1.4s ease-in-out infinite;
}

.identity-progress__stage-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.identity-progress__stage-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes identityStageDots {
  0%,
  60%,
  100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

/* Replaces the stage list once the wait is with a human, hence the different tint. */
.identity-progress__review {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--sky-gradient);
  border: 1px solid var(--sky-border);
  border-radius: var(--rounded-xs);
  font-size: 15px;
  line-height: 22px;
}

.identity-progress__delays {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xs);
}

.identity-progress__delays-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border-neutral);
  border-radius: var(--rounded-xs);
  overflow: hidden;
}

.identity-progress__delays-table td {
  padding: var(--spacing-xs) var(--spacing-md);
  color: var(--text-secondary);
}

.identity-progress__delays-table tr + tr td {
  border-top: 1px solid var(--color-border-soft);
}

.identity-progress__delays-duration {
  text-align: right;
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.identity-restart {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: #FFC091;
  border-radius: 12px;
  color: #260A2F;
  font-weight: var(--font-weight-medium);
  line-height: 20px;
}

.identity-restart .icon {
  flex-shrink: 0;
  color: #260A2F;
  margin-top: 2px;
}

.identity-summary {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  padding: 0 var(--spacing-md);
}

.identity-summary td {
  padding: var(--spacing-md) var(--spacing-sm);
  vertical-align: middle;
}

.identity-summary td:first-child {
  padding-left: var(--spacing-4xs);
  padding-right: 0;
}

.identity-summary td:last-child {
  padding-right: var(--spacing-lg);
}

.identity-summary tr + tr td {
  border-top: 1px solid var(--color-border-soft);
}

.identity-summary__icon {
  width: 1px;
  padding-right: var(--spacing-md);
}

.identity-summary__label {
  width: 40%;
}

.identity-mismatch__names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgb(255 255 255 / 0.45);
  border-radius: 8px;
}

.identity-mismatch__row {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
}

.identity-mismatch__label {
  flex: 0 0 auto;
  min-width: 7.5rem;
  font-size: var(--font-sm);
  font-weight: var(--font-weight-regular);
  opacity: 0.75;
}

.identity-mismatch__value {
  font-weight: var(--font-weight-bold);
  word-break: break-word;
}

.identity-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.identity-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.identity-checklist__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--rounded-full);
  background: #E6F4D8;
  color: var(--interactive-primary);
}

.identity-checklist__icon .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.identity-checklist__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4xs);
}

.identity-divider {
  height: 1px;
  background: var(--color-border-soft);
}
