/* First-paint and React loading states share this small, local stylesheet. */
.cheza-loading {
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #fff;
  color: #18181b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  color-scheme: light;
}
.cheza-loading--compact { min-height: 50vh; }
.cheza-loading__content { width: 100%; max-width: 320px; }
.cheza-loading__mark {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  place-items: center;
}
.cheza-loading__mark::before,
.cheza-loading__mark::after {
  position: absolute;
  inset: 0;
  border: 2px solid #f4f4f5;
  border-radius: 50%;
  content: "";
}
.cheza-loading__mark::after {
  border-color: #ed1c24 transparent transparent;
  animation: cheza-loading-orbit 1.8s linear infinite;
}
.cheza-loading__logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.cheza-loading__brand {
  margin: 0;
  color: #18181b;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.2;
}
.cheza-loading__brand span { color: #ed1c24; }
.cheza-loading__tagline { margin: 10px 0 0; color: #71717a; font-size: 14px; line-height: 1.6; }
.cheza-loading__track {
  position: relative;
  overflow: hidden;
  width: 112px;
  height: 3px;
  margin: 32px auto 16px;
  border-radius: 999px;
  background: #f4f4f5;
}
.cheza-loading__track::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #ed1c24;
  content: "";
  transform: translateX(-100%);
  animation: cheza-loading-sweep 1.8s ease-in-out infinite;
}
.cheza-loading__status { margin: 0; color: #71717a; font-size: 12px; line-height: 1.5; }
.cheza-loading__retry { min-height: 44px; margin-top: 20px; padding: 10px 24px; border: 0; border-radius: 10px; background: #ed1c24; color: white; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.cheza-loading__retry:focus-visible { outline: 3px solid #18181b; outline-offset: 3px; }
@keyframes cheza-loading-orbit { to { transform: rotate(360deg); } }
@keyframes cheza-loading-sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .cheza-loading__mark::after,
  .cheza-loading__track::after { animation: none; }
  .cheza-loading__track::after { transform: scaleX(.4); }
}
