/* The first-step transitions only affect the arriving view and pressed control. */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-ap-reduced-motion="on"]) :is(button, [role="button"], input[type="submit"], .button, summary) {
    transition-property: scale, filter, background-color, color, border-color;
    transition-duration: 80ms;
    transition-timing-function: ease-out;
  }
  :root:not([data-ap-reduced-motion="on"]) :is(button, [role="button"], input[type="submit"], .button, summary):not(:disabled):not([aria-disabled="true"]):active {
    scale: .97;
    filter: brightness(.94);
  }
  :root:not([data-ap-reduced-motion="on"]) :is([role="tabpanel"]:not([hidden]), main.training-root > .card:first-child, body > main:not(.main):not(.training-root)) {
    animation: wb-content-in 200ms ease-out;
  }
  :root:not([data-ap-reduced-motion="on"]) :is(.modal.open, .tr-confirm-backdrop:not(.tr-confirm-exit-backdrop)),
  :root:not([data-ap-reduced-motion="on"]) dialog[open]::backdrop {
    animation: wb-backdrop-in 150ms ease-out;
  }
  :root:not([data-ap-reduced-motion="on"]) :is(.modal.open .modal-box, .tr-confirm-dialog:not(.tr-confirm-exit-dialog), dialog[open]:not(.lh-mobile-dialog)) {
    animation: wb-dialog-in 200ms ease-out;
  }
  :root:not([data-ap-reduced-motion="on"]) #toast {
    transition: opacity 200ms ease-out, transform 200ms ease-out;
  }
  :root:not([data-ap-reduced-motion="on"]) #toast.show {transition-duration: 220ms; pointer-events: auto}
}
@keyframes wb-content-in {from {opacity: .35; translate: 0 4px} to {opacity: 1; translate: 0 0}}
@keyframes wb-backdrop-in {from {opacity: 0} to {opacity: 1}}
@keyframes wb-dialog-in {from {opacity: .2; scale: .98} to {opacity: 1; scale: 1}}
#toast.show {pointer-events: auto}
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after, dialog::backdrop {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
