/**
 * Critical CSS for initial app skeleton
 * Prevents flash of unstyled content
 * Loaded via <link rel="stylesheet"> so CSP nonce works
 */
html {
  background: #ffffff;
}
html.dark {
  background: #0f172a;
}
body {
  margin: 0;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: inherit;
  color: #0f172a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
html.dark body {
  color: #f1f5f9;
}
#root {
  min-height: 100vh;
}
.app-skeleton {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
html.dark .app-skeleton {
  background: #0f172a;
}
.app-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
html.dark .app-spinner {
  border-color: #334155;
  border-top-color: #3b82f6;
}
.app-skeleton-logo {
  margin-bottom: 16px;
}
.noscript-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}