/* Keep selection colors visible under the pointer, including on chart cells. */
@media (hover: hover) and (pointer: fine) {
  body :is(button, select, summary):not(:disabled):not([aria-disabled="true"]):hover {
    box-shadow: inset 0 0 0 1px #a7c5ee8c, inset 0 0 0 100vmax #9cbff31c;
  }

  body :is(input:not([type="hidden"]), textarea):enabled:not(:focus):hover {
    border-color: #839cbf;
  }

  body a[href]:not([aria-disabled="true"]):hover {
    text-decoration: none;
    color: #d3e5ff;
  }

  body :is(.nav-wrap nav, .nav-actions, .profile-tabs, .ops-tabs, .rail nav, .dock) a[href]:hover,
  body a:is(.app-line, .rowline, .golink):hover {
    background-color: #a0c4ff18;
  }

  body .app-card[onclick]:hover,
  body .gallery a[href]:hover img,
  body .shots button:enabled:hover img {
    outline: 1px solid #89a5cf;
    outline-offset: -1px;
  }

  body .watch-basis .basis-detail summary:hover {
    background-color: #31514c;
    box-shadow: inset 0 0 0 1px #81c5b6;
  }
}

body :is(a[href], button, select, input, textarea, summary):focus-visible {
  outline: 2px solid #accbff;
  outline-offset: -2px;
}

body :is(button, select, input):disabled { cursor: default; }
