/* Shared Operations Hub navigation polish - v2.25 */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: fr-nav-out 90ms ease-out both;
}
::view-transition-new(root) {
  animation: fr-nav-in 140ms ease-out both;
}
@keyframes fr-nav-out { to { opacity: .92; } }
@keyframes fr-nav-in { from { opacity: .92; } to { opacity: 1; } }

body {
  transition: opacity 90ms ease-out;
}
body.fr-nav-leaving {
  opacity: .94;
}

.fr-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none !important;
}
.fr-home-button .fr-home-icon {
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

.fr-section-enter {
  animation: fr-section-enter 150ms ease-out both;
}
@keyframes fr-section-enter {
  from { opacity: .78; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

/* When a shared Supabase session exists, don't flash a login card while
   the destination page restores that session. */
html.fr-shared-session-pending .auth-shell:not(.hidden) {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .fr-section-enter { animation: none !important; }
  body { transition: none !important; }
}
