/* FuelDash R109 — keep one stable startup surface visible until the first render burst settles. */
html.fd-app-starting,
html.fd-app-starting body {
  overflow: hidden !important;
  background: var(--fd-page-bg, #050505) !important;
}

html.fd-app-starting #app {
  min-height: 100dvh;
  visibility: hidden;
}

html.fd-render-quiet :where(#app, #app *) {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

.fd-startup-cover {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--fd-page-bg, #050505);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  contain: layout paint style;
}

.fd-startup-cover .fd-fast-shell {
  min-height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.fd-startup-cover.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
}

html.fd-app-ready #app {
  visibility: visible;
}

html[data-fd-theme="light"] .fd-startup-cover {
  background: #f5f5f7;
}

html[data-fd-theme="light"] .fd-startup-cover .fd-fast-kicker,
html[data-fd-theme="light"] .fd-startup-cover .fd-fast-line {
  background: rgba(24,24,27,.11);
}

html[data-fd-theme="light"] .fd-startup-cover .fd-fast-title {
  background: rgba(24,24,27,.15);
}

html[data-fd-theme="light"] .fd-startup-cover .fd-fast-card {
  border-color: rgba(25,25,28,.10);
  background: rgba(255,255,255,.68);
}

html[data-fd-theme="light"] .fd-startup-cover .fd-fast-nav {
  border-color: rgba(25,25,28,.12);
  background: rgba(247,247,249,.90);
}

html[data-fd-theme="light"] .fd-startup-cover .fd-fast-nav span {
  color: rgba(25,25,28,.58);
}

html[data-fd-theme="light"] .fd-startup-cover .fd-fast-nav span:first-child {
  color: #ff3b30;
}

@media (prefers-reduced-motion: reduce) {
  .fd-startup-cover.is-leaving {
    transition-duration: 1ms;
  }
}
