/* The sidebar hook is rendered for signed-in players, outside demo. */
.sidebar[data-menu-scroll-preview="1"] {
  scrollbar-width: thin;
  scrollbar-color: #b7cbbd transparent;
  scrollbar-gutter: stable;
}

/* Rounded native scrollbar in Chrome, Edge and Safari. */
@supports selector(::-webkit-scrollbar) {
  .sidebar[data-menu-scroll-preview="1"] {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar {
    width: 10px;
    background: transparent;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-track {
    margin-block: 12px;
    background: transparent;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: #b7cbbd;
    background-clip: padding-box;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-thumb:hover {
    background-color: #8fae9b;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-thumb:active {
    background-color: #6e947f;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-corner {
    background: transparent;
  }
}

@media (forced-colors: active) {
  .sidebar[data-menu-scroll-preview="1"] {
    scrollbar-color: auto;
  }
  .sidebar[data-menu-scroll-preview="1"]::-webkit-scrollbar-thumb {
    background-color: ButtonText;
  }
}
