/* Shared mouse feedback keeps each control's base/selected palette and gradients.
   Inset tint also makes transparent and monochrome icon buttons visibly respond. */
@media (hover: hover) and (pointer: fine) {
  :is(button, [role="button"], a.primary-button, a.secondary-button):not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    box-shadow: inset 0 0 0 999px rgba(8, 24, 12, .20) !important;
    filter: brightness(.94) !important;
  }
  html[data-theme="dark"] :is(button, [role="button"], a.primary-button, a.secondary-button):not(:disabled):not([aria-disabled="true"]):hover:not(:active),
  body.counter-mode :is(button, [role="button"]):not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    box-shadow: inset 0 0 0 999px rgba(186, 218, 150, .17) !important;
    filter: brightness(1.08) !important;
  }
  /* The counter's header and dropdowns keep their light surfaces. */
  body.counter-mode .counts-header :is(button, [role="button"]):not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    box-shadow: inset 0 0 0 999px rgba(8, 24, 12, .20) !important;
    filter: brightness(.94) !important;
  }
}
