/* Keep touch controls responsive and avoid synthetic hover/transform lag on phones and tablets. */
html,body { touch-action:manipulation; }
button,a,input,select,textarea,label,[role="button"] { touch-action:manipulation; }
@media (hover:none), (pointer:coarse) {
  html body button,html body a,html body .btn,html body .btn-primary,html body .btn-danger,html body .btn-action,html body .btn-submit,html body .btn-post,html body .btn-sm,html body .action-btn,html body .nav-item,html body .tab,html body select {
    transition:background-color .08s ease,border-color .08s ease,color .08s ease !important;
    -webkit-tap-highlight-color:transparent;
  }
  html body button:hover,html body a:hover,html body .btn:hover,html body .btn-primary:hover,html body .btn-danger:hover,html body .btn-action:hover,html body .btn-submit:hover,html body .btn-post:hover,html body .btn-sm:hover,html body .action-btn:hover,html body .nav-item:hover,html body .tab:hover {
    transform:none !important;
    box-shadow:none !important;
  }
  html body button:active,html body a:active,html body .btn:active,html body .btn-primary:active,html body .btn-danger:active,html body .btn-action:active,html body .btn-submit:active,html body .btn-post:active,html body .btn-sm:active,html body .action-btn:active,html body .nav-item:active,html body .tab:active {
    transform:scale(.985) !important;
    transition:transform .06s ease-out,background-color .06s ease-out !important;
  }
  html body .bottom-nav .nav-item { transition:color .06s ease,background-color .06s ease !important; }
}
/* Keep bottom-app navigation changes immediate on touch screens. */
@media (hover:none), (pointer:coarse) {
  html body .bottom-nav .nav-item,
  html body .bottom-nav .nav-fab {
    transition:color .06s ease,background-color .06s ease,border-color .06s ease !important;
    -webkit-tap-highlight-color:transparent;
  }
  html body .bottom-nav .nav-item:hover,
  html body .bottom-nav .nav-fab:hover {
    transform:none !important;
    box-shadow:none !important;
  }
  html body .bottom-nav .nav-item:active,
  html body .bottom-nav .nav-fab:active {
    transform:none !important;
    transition:background-color .04s ease,color .04s ease !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  button,a,.btn,.btn-primary,.btn-danger,.btn-action,.btn-submit,.btn-post,.btn-sm,.action-btn,.nav-item,.tab,select {
    transition:none !important;
    animation:none !important;
    scroll-behavior:auto !important;
  }
}
