/* Hide the document until global.css applies. Production Vite injects the
 * hashed stylesheet after the module entry, so React can paint before Tailwind
 * (`sr-only`, fonts) is active. External file: CSP style-src 'self'. */
html {
  visibility: hidden;
}

/* Hashed-CSS request failed: show the fallback, not an unstyled React tree. */
html[data-css-failed] {
  visibility: visible;
}

html[data-css-failed] #root {
  display: none;
}

html[data-css-failed] #css-load-error {
  display: block;
  font-family: system-ui, sans-serif;
  margin: 1.5rem;
}
