/* Shared by the pre-JavaScript splash and document loading screen.
   Circular sweep inspired by Material UI: https://mui.com/material-ui/react-progress/ */
.folio-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #3f5263;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-15px);
  min-width: 210px;
}
.loading-mark {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  color: #3478f6;
}
.loading-mark::before {
  content: '';
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: #f0f6ff;
  box-shadow: 0 0 32px #3478f60d;
}
.loading-orbit {
  position: absolute;
  inset: 0;
  animation: folio-orbit 1.5s linear infinite;
}
.loading-orbit svg {
  display: block;
  width: 100%;
  height: 100%;
}
.loading-track {
  stroke: #eaf0fa;
  stroke-width: 2.5;
}
.loading-arc {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 42 201;
  animation: folio-sweep 1.5s ease-in-out infinite;
}
.loading-document {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.loading-caption {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1.8;
  color: #576779;
  min-height: 26px;
}
.loading-progress {
  height: 2px;
  width: 145px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 4px;
  margin-top: 16px;
}
.loading-progress > span {
  display: block;
  height: 100%;
  background: #3478f6;
  border-radius: 4px;
  transition: width 0.2s ease;
}
.loading-cancel {
  margin-top: 16px;
  padding: 5px 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  letter-spacing: 0.5px;
  color: #98a4b0 !important;
  cursor: pointer;
}
.loading-cancel:hover {
  color: #416786 !important;
}
.loading-cancel:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 3px;
  border-radius: 6px;
}
.loading-brand {
  position: absolute;
  bottom: max(34px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #63707c;
}
.loading-brand-icon {
  width: 31px;
  height: 35px;
  border-radius: 9px;
  background: #2c3944;
  display: grid;
  place-items: center;
  color: #fff;
}
.loading-brand strong {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
  line-height: 1;
}
.loading-brand strong > span {
  display: block;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 1.6px;
  color: #9ba5ae;
  margin-top: 6px;
  white-space: nowrap;
}
@keyframes folio-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes folio-sweep {
  0% {
    stroke-dasharray: 24 201;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 144 201;
    stroke-dashoffset: -36;
  }
  100% {
    stroke-dasharray: 24 201;
    stroke-dashoffset: -201;
  }
}
@media (max-width: 600px) {
  .loading-mark {
    transform: scale(0.88);
    margin-bottom: 24px;
  }
  .loading-caption {
    font-size: 13px;
  }
  .loading-brand {
    bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-orbit,
  .loading-arc {
    animation: none;
  }
  .loading-progress > span {
    transition: none;
  }
}
