/* Shared motion: presentation only, never delays actions or changes focus. */
:root { --motion-fast:120ms; --motion-enter:180ms; --motion-ease:cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion:no-preference) {
  :where(button, .btn, input, select, textarea, [role="tab"]) { transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease; }
  :where(button, .btn):active:not(:disabled) { translate:0 1px; }
  :where(.panel.active, .tab-panel:not([hidden]), [role="tabpanel"]:not([hidden]), [data-portal-panel]:not([hidden])) { animation:helios-reveal var(--motion-enter) var(--motion-ease); }
  :where(dialog[open], .modal-box, .modal-dialog, .drawer.open) { animation:helios-dialog var(--motion-enter) var(--motion-ease); }
  dialog[open]::backdrop { animation:helios-reveal var(--motion-fast) ease; }
  :where(.bb-t, .undo-toast, [role="status"]) { animation:helios-reveal var(--motion-enter) ease; }
  .bb-t--success::before { animation:helios-check var(--motion-enter) var(--motion-ease); }
  :where(.dashboard-charts svg, .dashboard-charts canvas, .performance-chart) { animation:helios-reveal 200ms ease; }
  button[aria-busy="true"]::after { animation:helios-pulse 1s ease-in-out infinite; }
  .skeleton-line { animation:helios-pulse 1.4s ease-in-out infinite; }
}
:where(button, a, input, select, textarea, [role="tab"]):focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.bb-t--success::before { content:"✓"; flex:none; font-weight:700; }
button[aria-busy="true"] { cursor:progress; }
button[aria-busy="true"]::after { content:"…"; display:inline-block; margin-inline-start:.4em; }
.skeleton-line { background:var(--border, currentColor); opacity:.35; }
@keyframes helios-reveal { from { opacity:.65; } to { opacity:1; } }
@keyframes helios-dialog { from { opacity:.65; translate:0 4px; } to { opacity:1; translate:0 0; } }
@keyframes helios-check { from { opacity:.5; scale:.85; } to { opacity:1; scale:1; } }
@keyframes helios-pulse { 50% { opacity:.6; } }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media print { *, *::before, *::after { animation:none !important; transition:none !important; } }
