/*
 * Render-blocking styles for the pre-React loading surface. Keep these rules
 * aligned with the provider-owned LoadingScreen so bootstrap adoption is
 * visually continuous without relying on inline styles or the app bundle.
 */
#bootstrap-loading-surface {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: linear-gradient(
    to right,
    var(--background, #ffffff),
    var(--muted, #f1f5f9)
  );
}

#bootstrap-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--muted, #e2e8f0);
  border-top-color: var(--brand, #111827);
  border-radius: 9999px;
  animation: bootstrap-loading-spin 1500ms linear infinite;
}

#bootstrap-loading-message {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes bootstrap-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #bootstrap-loading-spinner {
    animation: none;
  }
}
