.resume-photo-progress-layer {
  position: fixed;
  inset: 0;
  z-index: 1970;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 29, 49, .58);
  backdrop-filter: blur(5px);
  animation: resume-date-layer-in .18s ease-out both;
}

.resume-photo-progress-dialog {
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid rgba(215, 224, 232, .92);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 86px rgba(10, 25, 43, .34);
  animation: resume-date-dialog-in .22s cubic-bezier(.2, .7, .25, 1) both;
}

.resume-photo-progress-dialog > header {
  padding: 19px 21px 15px;
  border-bottom: 1px solid #e8edf2;
}

.resume-photo-progress-dialog > header span {
  display: block;
  color: #9a7425;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.resume-photo-progress-dialog > header h3 {
  margin: 5px 0 0;
  color: #1d3859;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

.resume-photo-progress-body {
  padding: 23px 21px 22px;
  text-align: center;
}

.resume-photo-progress-visual {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.resume-photo-progress-visual > i {
  width: 58px;
  height: 58px;
  display: block;
  border: 3px solid #d9e7f2;
  border-top-color: #24517d;
  border-radius: 50%;
  animation: resume-photo-progress-spin .9s linear infinite;
}

.resume-photo-progress-visual > span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 1px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf4;
}

.resume-photo-progress-visual > span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b99142, #2c6797);
  animation: resume-photo-progress-track 1.5s ease-in-out infinite;
}

.resume-photo-progress-body > strong {
  display: block;
  color: #294760;
  font-size: 13px;
}

.resume-photo-progress-body > p {
  max-width: 330px;
  margin: 8px auto 0;
  color: #76879a;
  font-size: 10px;
  line-height: 1.65;
}

.resume-photo-progress-dialog > footer {
  display: flex;
  justify-content: flex-end;
  padding: 11px 21px 16px;
  border-top: 1px solid #edf1f4;
}

.resume-photo-progress-dialog > footer button {
  height: 39px;
  padding: 0 16px;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #fff;
  color: #5c6f84;
  font-size: 11px;
  font-weight: 700;
}

@keyframes resume-photo-progress-spin {
  to { transform: rotate(360deg); }
}

@keyframes resume-photo-progress-track {
  0% { transform: translateX(-125%); }
  55%, 100% { transform: translateX(240%); }
}

@media (max-width: 700px) {
  .resume-photo-progress-layer { align-items: end; padding: 0; }
  .resume-photo-progress-dialog { width: 100%; border-width: 1px 0 0; border-radius: 18px 18px 0 0; }
  .resume-photo-progress-dialog > header { padding: 17px 18px 14px; }
  .resume-photo-progress-body { padding: 22px 18px; }
  .resume-photo-progress-dialog > footer { padding: 11px 18px calc(13px + env(safe-area-inset-bottom)); }
  .resume-photo-progress-dialog > footer button { min-width: 70px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .resume-photo-progress-layer,
  .resume-photo-progress-dialog { animation: none; }
  .resume-photo-progress-visual > i,
  .resume-photo-progress-visual > span::after { animation-duration: 2.4s; }
}
