/* Visible by default, including when JavaScript is disabled or unavailable. */
html[data-font-state="loading"]
  body:not(:has(> [data-application-start], > [data-authentication-start])),
html[data-font-state="loading"]
  body:not(:has(> [data-application-start], > [data-authentication-start]))
  * {
  visibility: hidden !important;
}
/* Loading may still finish later. Exclude web fonts entirely after fallback so
   there is no delayed swap, even when appearance tokens change with the theme. */
:root[data-font-state="fallback"] {
  --font-sans: Arial, sans-serif !important;
  --font-mono: monospace !important;
}
