/* Shown inside #root until React mounts (see index.html). */
.boot-skeleton {
  box-sizing: border-box;
  max-width: 28rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.boot-skeleton-bar {
  display: block;
  height: 0.72rem;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  opacity: 0.55;
  animation: boot-skeleton-pulse 1.2s ease-in-out infinite;
}

.boot-skeleton-bar--wide {
  width: 88%;
}

.boot-skeleton-bar--mid {
  width: 64%;
}

.boot-skeleton-bar--narrow {
  width: 40%;
}

@keyframes boot-skeleton-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-skeleton-bar {
    animation: none;
  }
}

/* Pre-React boot failure (boot-watchdog.js). */
.boot-error-static {
  box-sizing: border-box;
  max-width: 24rem;
  margin: 3rem auto 0;
  padding: 1.25rem;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
}

.boot-error-static-card {
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.boot-error-static-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.boot-error-static-text {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0.75;
}

.boot-error-static-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.55rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--accent, #4f46e5);
  color: #fff;
  cursor: pointer;
}

.boot-error-static-btn--secondary {
  font-weight: 500;
  background: transparent;
  color: var(--accent, #4f46e5);
  border: 1px solid color-mix(in srgb, var(--accent, #4f46e5) 45%, transparent);
}
