.profile-photo-front > .profile-photo.profile-preview-previous,
.profile-photo-front > .profile-photo.profile-preview-current {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.profile-photo-front > .profile-preview-previous { z-index: 1; }
.profile-photo-front > .profile-preview-current {
  z-index: 2;
  animation: profile-preview-appear 140ms ease-out both;
}
.profile-preview-track {
  display: flex;
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 6;
  height: 3px;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}
.profile-preview-segment {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 2px;
  background: #ffffff70;
  box-shadow: 0 1px 3px #0003;
}
.profile-preview-segment[data-active='true'] { background: #fff; }
.profile-card[data-previewing='true'] .profile-preview-track,
.profile-card-visual:focus-within .profile-preview-track { opacity: 1; }

@keyframes profile-preview-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .profile-preview-pointer-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-photo-front > .profile-preview-current { animation: none; opacity: 1; }
  .profile-preview-track { transition: none; }
}
