/* Independent of the app bundle so the very first frame is branded. */
html {
  background: #f9fafb;
}
html.dark {
  background: #101828;
  color-scheme: dark;
}
.app-splash {
  --splash-ink: #101828;
  --splash-muted: #667085;
  --splash-line: #e4e7ec;
  --splash-accent: #465fff;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 48px 24px 88px;
  box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 42%, #ecf3ff 0, #f9fafb 55%);
  color: var(--splash-ink);
  font-family:
    'Outfit',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  text-align: center;
}
.dark .app-splash {
  --splash-ink: #f2f4f7;
  --splash-muted: #98a2b3;
  --splash-line: #344054;
  --splash-accent: #9cb9ff;
  background: radial-gradient(ellipse at 50% 42%, #1a2440 0, #101828 60%);
}
.splash-content {
  width: min(100%, 360px);
}
.splash-logo {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
  border: 1px solid #fff;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 12px 36px -16px #10182833,
    0 0 0 8px #465fff05;
}
.splash-logo img {
  display: block;
}
.app-splash h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.25;
}
.splash-subtitle {
  margin: 8px 0 0;
  color: var(--splash-muted);
  font-size: 15px;
  line-height: 1.5;
}
.splash-status {
  margin-top: 40px;
}
.splash-track {
  width: 144px;
  height: 3px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--splash-line);
}
.splash-track span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--splash-accent);
  animation: splash-progress 1.6s ease-in-out infinite;
}
.splash-status p,
.splash-recovery p,
.splash-noscript {
  margin: 0;
  color: var(--splash-muted);
  font-size: 13px;
  line-height: 1.6;
}
.splash-recovery {
  margin-top: 16px;
}
.splash-recovery[hidden] {
  display: none;
}
.splash-recovery button {
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--splash-line);
  border-radius: 8px;
  background: transparent;
  color: var(--splash-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.splash-recovery button:hover {
  border-color: var(--splash-accent);
}
.splash-recovery button:focus-visible {
  outline: 2px solid var(--splash-accent);
  outline-offset: 4px;
}
.splash-footer {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  margin: 0;
  color: var(--splash-muted);
  font-size: 12px;
}
.splash-noscript {
  margin-top: 20px;
}
@keyframes splash-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(330%);
  }
}
@media (max-height: 480px) {
  .app-splash {
    place-items: start center;
  }
  .splash-footer {
    position: static;
    margin-top: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-track span {
    animation: none;
    margin: auto;
  }
}
