/* Cloudflare preview is a data mode, not a separate visual system. */
html.nv-cloudflare-preview-auth .dash-header__center,
html.nv-cloudflare-preview-auth .dash-wallet__actions,
html.nv-cloudflare-preview-auth .dash-quick--actions,
html.nv-cloudflare-preview-auth .dash-floating-chat {
  display: none !important;
}

html.nv-cloudflare-preview-auth .nv-preview-demo-label {
  margin: 0;
}

html.nv-cloudflare-preview-auth .dash-accounts.is-preview-loading .dash-account-row {
  color: transparent;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--color-text-primary) 5%, transparent) 50%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: cf-preview-dashboard-loading 1.35s ease-in-out infinite;
}

html.nv-cloudflare-preview-auth .dash-accounts.is-preview-loading img,
html.nv-cloudflare-preview-auth .dash-accounts.is-preview-loading svg {
  opacity: 0;
}

html.nv-cloudflare-preview-auth body[data-nucleus-dashboard-state="loading"] .dash-activity-list {
  opacity: 0;
}

html.nv-cloudflare-preview-auth body[data-preview-dataset="owner"] .dash-month-summary,
html.nv-cloudflare-preview-auth body[data-preview-dataset="owner"] .dash-cashflow,
html.nv-cloudflare-preview-auth body[data-preview-dataset="owner"] .dash-spending,
html.nv-cloudflare-preview-auth body[data-preview-dataset="owner"] .dash-upcoming {
  display: none;
}

@keyframes cf-preview-dashboard-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.nv-cloudflare-preview-auth .dash-accounts.is-preview-loading .dash-account-row {
    animation: none;
  }
}
