/* Scrollbars across the app, as in b-gym (src/app/globals.css): thin and light, shown only while scrolling, like macOS
   overlay scrollbars. Styling a scrollbar turns off the browser's own fade-out, so the thumb is transparent by default and
   /utilities/scrollbar-activity.js adds .is-scrolling to whatever is being scrolled (the page, a modal, a table, a list)
   for as long as it moves.
   The universal selector has no specificity: elements that hide their scrollbar (the side menu, scrollbar-width: none) or
   keep one always visible (the document upload's top scrollbar, survey themes) keep their own rules. */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.is-scrolling {
  scrollbar-color: rgba(140, 152, 164, .45) transparent;
}
/* Browsers that use ::-webkit-scrollbar instead (older Safari). */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 8px;
}
.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(140, 152, 164, .45);
}
