/* FuelCore V511 — visible, calm dashboard refresh transaction. */
@keyframes fd-dashboard-refresh-sweep {
  from {
    background-position: 180% 50%;
  }
  to {
    background-position: -80% 50%;
  }
}

@keyframes fd-dashboard-refresh-commit {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 1;
  }
}

html.fd-dashboard-refresh-active body #app > .app-shell::before {
  position: absolute;
  z-index: 12;
  top: calc(env(safe-area-inset-top) + 69px);
  right: 18px;
  left: 18px;
  display: block !important;
  height: 3px;
  content: '' !important;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 69, 58, 0.2) 24%, #ff453a 50%, rgba(255, 69, 58, 0.2) 76%, transparent 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(255, 69, 58, 0.62);
  animation: fd-dashboard-refresh-sweep 1.15s linear infinite;
}

html body #app .app-content.fd-dashboard-refresh-commit {
  animation: fd-dashboard-refresh-commit 180ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  html.fd-dashboard-refresh-active body #app > .app-shell::before {
    animation: none;
    background-position: 50% 50%;
  }

  html body #app .app-content.fd-dashboard-refresh-commit {
    animation: none;
  }
}
