/*
  Pre-JS boot indicator for the admin panel. CSS only and linked from index.html, so a CSP with
  style-src 'self' (ADM-4) allows it. The colours equal the design system tokens neutral-50 (page),
  neutral-600 (text) and primary (spinner); React replaces #root's content at its first commit.
  The one sanctioned hex exception; src/__tests__/unit/assets/boot-css-tokens.test.ts keeps it equal to tokens.ts.
*/
.qa-boot {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #475569;
  font:
    14px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
.qa-boot-spinner {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 4px solid #5033d7;
  border-top-color: transparent;
  border-radius: 50%;
  animation: qa-boot-spin 1s linear infinite;
}
.qa-boot-slow {
  position: absolute;
  top: calc(50% + 32px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  visibility: hidden;
  animation: qa-boot-reveal 1ms linear 20s both;
}
.qa-boot-slow a {
  color: #5033d7;
}
@keyframes qa-boot-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes qa-boot-reveal {
  from {
    visibility: hidden;
  }
  to {
    visibility: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qa-boot-spinner {
    animation: none;
  }
}
