/* OverlayScrollbars 2: transparent tracks and quiet, theme-aware handles. */
.os-theme-opsu {
  --os-size: 9px;
  --os-padding-perpendicular: 2px;
  --os-padding-axis: 3px;
  --os-track-border-radius: 999px;
  --os-track-bg: transparent;
  --os-track-bg-hover: transparent;
  --os-track-bg-active: transparent;
  --os-track-border: none;
  --os-track-border-hover: none;
  --os-track-border-active: none;
  --os-handle-border-radius: 999px;
  --os-handle-bg: rgba(124, 58, 237, .32);
  --os-handle-bg-hover: rgba(124, 58, 237, .48);
  --os-handle-bg-active: rgba(124, 58, 237, .58);
  --os-handle-border: none;
  --os-handle-border-hover: none;
  --os-handle-border-active: none;
  --os-handle-min-size: 28px;
}
html[data-theme="dark"] .os-theme-opsu {
  --os-handle-bg: rgba(196, 161, 255, .27);
  --os-handle-bg-hover: rgba(196, 161, 255, .43);
  --os-handle-bg-active: rgba(196, 161, 255, .55);
}
/* Keep this above older preview-only handle colors. */
#viewerContent .os-theme-opsu .os-scrollbar-handle {
  background: var(--os-handle-bg);
}
#viewerContent .os-theme-opsu:hover .os-scrollbar-handle {
  background: var(--os-handle-bg-hover);
}
#viewerContent .os-theme-opsu:active .os-scrollbar-handle {
  background: var(--os-handle-bg-active);
}
/* The page instance uses html as its viewport and keeps native window APIs.
   Its inline overflow setting must not override the preview background lock. */
html.viewer-open[data-overlayscrollbars] {
  overflow: hidden !important;
}
html.viewer-open .work-page-scrollbar {
  display: none !important;
}
#nav > .os-scrollbar,
#groupCovers > .os-scrollbar,
#mobileYearMenu > .os-scrollbar {
  flex: none;
}
dialog.modal[data-overlayscrollbars] {
  position: absolute;
}
@media (max-width:760px) {
  .os-theme-opsu {
    --os-size: 8px;
    --os-padding-perpendicular: 2px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .os-theme-opsu,
  .os-theme-opsu .os-scrollbar-handle {
    transition: none;
  }
}
