/* First-paint loading state. External (not inline) so it satisfies the app CSP style-src 'self' (no
   'unsafe-inline'). Keyed on #root:empty: shows only while the SPA bundle is still downloading/parsing
   (an empty #root) and disappears the instant React renders its first children. #root stays byte-identical
   to what the prerender scripts replace, and prerendered pages ship SSR content in #root so :empty never
   matches there (no overlay on marketing pages). */
#root:empty {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #ffffff;
}
#root:empty::before {
  content: '';
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: url(/logo.png) center / contain no-repeat;
  animation: app-boot-pulse 1.6s ease-in-out infinite;
}
#root:empty::after {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(31, 45, 58, 0.15);
  border-top-color: #f37021;
  animation: app-boot-rot 0.8s linear infinite;
}
@keyframes app-boot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes app-boot-rot {
  to { transform: rotate(360deg); }
}
@media (prefers-color-scheme: dark) {
  #root:empty { background: #0f1720; }
  #root:empty::after { border-color: rgba(255, 255, 255, 0.15); border-top-color: #f37021; }
}
@media (prefers-reduced-motion: reduce) {
  #root:empty::before, #root:empty::after { animation: none; }
}
