/* Scrollbars (scrollbars.js draws them). Once the script has started (.sb-on), a panel's own bar from the browser is
   drawn clear but keeps the room it takes, so panels lay out as they always have, and the site's groove and slider lie
   over that room. The page's own bar is taken away instead (the browser clips anything drawn over it), and the page
   keeps the same 14px of room with padding while it scrolls (.sb-root), the groove lying in it. Bars hidden on purpose
   (scrollbar-width: none) stay hidden.
   The groove is a darkened channel with a light shadow along its top; the slider fills its width exactly, a
   short raised slab lit along one edge, and takes the player's colour under the pointer and in the hand. */
.sb-on ::-webkit-scrollbar { width: 14px; height: 14px; background: transparent; }
.sb-on ::-webkit-scrollbar-track, .sb-on ::-webkit-scrollbar-thumb, .sb-on ::-webkit-scrollbar-corner { background: transparent; }
.sb-on ::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  .sb-on * { scrollbar-color: transparent transparent; }
}
html.sb-on { scrollbar-width: none; }
html.sb-on::-webkit-scrollbar { width: 0; height: 0; }
html.sb-root { padding-right: 14px; }

.sb-groove { position: fixed; z-index: 2147483000; box-sizing: border-box; border-radius: var(--radius); opacity: 0; pointer-events: none; touch-action: none;
  background: color-mix(in srgb, var(--shade) 62%, var(--bg));
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .4);
  transition: opacity 240ms ease; }
.sb-groove.on { opacity: 1; pointer-events: auto; }
.sb-thumb { position: absolute; left: 0; top: 0; width: 100%; height: 44px; box-sizing: border-box; border-radius: inherit; will-change: transform;
  background-color: color-mix(in srgb, var(--text) 28%, var(--surface-3));
  background-image: linear-gradient(90deg, rgb(255 255 255 / .1), transparent 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 -1px 0 rgb(0 0 0 / .35);
  transition: background-color 160ms ease; }
.sb-x .sb-thumb { width: 44px; height: 100%; background-image: linear-gradient(180deg, rgb(255 255 255 / .1), transparent 70%); }
.sb-groove:hover .sb-thumb { background-color: color-mix(in srgb, var(--accent) 55%, var(--surface-3)); }
.sb-groove.dragging .sb-thumb { background-color: var(--accent); }
