html.has-overlay-scrollbar { scrollbar-width: none; scrollbar-gutter: auto; }
html.has-overlay-scrollbar::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.overlay-scrollbar-dragging { scroll-behavior: auto !important; user-select: none; }

.site-scrollbar {
  position: fixed;
  top: 4px;
  right: 2px;
  bottom: 4px;
  z-index: 1000;
  width: 16px;
  background: transparent;
}
.site-scrollbar[hidden] { display: none; }
.site-scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.site-scrollbar__thumb::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .15s ease;
  content: '';
}
.site-scrollbar:hover .site-scrollbar__thumb::before,
.site-scrollbar__thumb:focus-visible::before,
.site-scrollbar--dragging .site-scrollbar__thumb::before { background: rgba(255, 255, 255, .7); }
.site-scrollbar--dragging .site-scrollbar__thumb { cursor: grabbing; }
.site-scrollbar__thumb:focus-visible::before { outline: 2px solid #6effa5; outline-offset: 2px; }

@media (forced-colors: active) {
  html { scrollbar-gutter: stable; }
  html.has-overlay-scrollbar { scrollbar-width: auto; scrollbar-gutter: stable; }
  html.has-overlay-scrollbar::-webkit-scrollbar { display: revert; width: auto; height: auto; }
  .site-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-scrollbar__thumb::before { transition: none; }
}
