/* Shared by the sign-in gateway and authenticated app. No external artwork. */
#startupScreen {
  box-sizing: border-box;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 42%, #191d3a 0, #0c101b 40%, #090c12 75%);
  overflow: auto;
  transition: opacity 180ms ease;
}
#startupScreen[hidden] { display: none !important; }
#startupScreen.is-leaving { opacity: 0; pointer-events: none; }
.startup-content { width: min(100%, 380px); text-align: center; }
.startup-wordmark { margin: 0 0 26px; color: #f4f6ff; font: 750 52px/1 system-ui, sans-serif; letter-spacing: -.055em; }
.startup-wordmark span { color: #7180ff; }
#startupTitle { margin: 0; font: 600 19px/1.4 system-ui, sans-serif; letter-spacing: -.015em; }
#startupDetail { margin: 9px 0 0; color: #aab3c2; font: 400 14px/1.5 system-ui, sans-serif; }
.startup-progress { width: 112px; height: 3px; overflow: hidden; margin: 28px auto 0; background: #252b45; border-radius: 99px; }
.startup-progress::after { content: ''; display: block; width: 40%; height: 100%; border-radius: inherit; background: #8491ff; animation: maily-startup-progress 1.6s ease-in-out infinite; }
.startup-recovery { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.startup-recovery a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid #39435a; border-radius: 12px; color: #dbe1ff; background: #151b29; text-decoration: none; font: 600 13px/1.4 system-ui, sans-serif; }
.startup-recovery a:focus-visible { outline: 2px solid #a5b0ff; outline-offset: 3px; }
#startupScreen[data-phase='failed'] .startup-progress { display: none; }
.startup-noscript { position: fixed; inset: 0; display: grid; place-content: center; gap: 14px; padding: 24px; text-align: center; background: #090c12; color: #f4f6ff; font: 16px/1.5 system-ui, sans-serif; }
.startup-noscript a { color: #a5b0ff; }
html[data-startup-complete] .shell :is(.topbar, .hero, .section) { animation: none !important; }
@keyframes maily-startup-progress { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  #startupScreen { transition: none; }
  .startup-progress::after { animation: none; transform: translateX(75%); }
}
