.main-content,
.main .content {
  animation: app-page-in 420ms var(--motion-ease) backwards;
}

.sidebar-logo .logo-icon img,
.brand-logo {
  transition: transform 320ms var(--motion-ease);
}

.sidebar-logo:hover .logo-icon img,
.brand-logo:hover {
  transform: scale(1.025);
}

button:not(:disabled),
a.btn-primary,
a.btn-secondary,
.quick-action {
  transform-origin: center;
}

button:not(:disabled):active,
a.btn-primary:active,
a.btn-secondary:active,
.quick-action:active {
  transform: scale(0.975);
}

dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  animation: app-dialog-in 260ms var(--motion-ease) both;
}

dialog[open]::backdrop {
  animation: app-backdrop-in 220ms ease-out both;
}

.status-dot,
.online-dot,
.health-dot {
  box-shadow: 0 0 0 0 currentColor;
  animation: app-status-pulse 2.4s ease-out infinite;
}

@keyframes app-page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes app-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes app-status-pulse {
  0%, 55% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 32%, transparent); }
  100% { box-shadow: 0 0 0 7px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .main-content,
  .main .content,
  dialog[open],
  dialog[open]::backdrop,
  .status-dot,
  .online-dot,
  .health-dot {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
