/* Shared by the viewport and nested scrollers, including horizontal tables and timelines. */
:root {
  --studio-scroll-thumb: #66647e;
  --studio-scroll-thumb-hover: #8b86ad;
  --studio-scroll-thumb-active: #a39ac7;
}

@media not (forced-colors: active) {
  @supports not selector(::-webkit-scrollbar) {
    :where(*) {
      scrollbar-width: thin;
      scrollbar-color: var(--studio-scroll-thumb) transparent;
    }
  }

  @supports selector(::-webkit-scrollbar) {
    :where(*)::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    :where(*)::-webkit-scrollbar-track,
    :where(*)::-webkit-scrollbar-corner {
      background: transparent;
    }

    :where(*)::-webkit-scrollbar-button {
      display: none;
    }

    :where(*)::-webkit-scrollbar-thumb {
      min-width: 28px;
      min-height: 28px;
      border: 2px solid transparent;
      border-radius: 999px;
      background: var(--studio-scroll-thumb) padding-box;
    }

    :where(*)::-webkit-scrollbar-thumb:hover {
      background-color: var(--studio-scroll-thumb-hover);
    }

    :where(*)::-webkit-scrollbar-thumb:active {
      background-color: var(--studio-scroll-thumb-active);
    }
  }
}
