body {
  margin: 0;
}

.preload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: #fafaf9;
}

.preload-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 32px;
}

/* Neutral preloader by default (STORY-002-004): the logo `<img>` stays [hidden] unless the pre-boot
   script found a cached brand for this host; the dark background follows the pre-applied theme class. */
.app-dark .preload-container {
  background: #0c0a09;
}

.preload-spinner {
  width: 200px;
  height: 3px;
  background: #e7e5e4;
  border-radius: 3px;
  overflow: hidden;
}

.preload-bar {
  width: 40%;
  height: 100%;
  background: #0ea5e9;
  border-radius: 3px;
  animation: slideBar 1.4s ease-in-out infinite;
}

@keyframes slideBar {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(-100%);
  }
}
