/* Inner scroll areas retain native scrolling; only their thumb hides when idle. */
:root.auto-scrollbars,
:root.auto-scrollbars * {
  scrollbar-color: auto;
  scrollbar-width: auto;
}

/* Chromium's native scrollbar-color would override the transparent WebKit parts. */
@supports not selector(::-webkit-scrollbar) {
  :root.auto-scrollbars,
  :root.auto-scrollbars * {
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
  }
  :root.auto-scrollbars.is-scrollbar-active,
  :root.auto-scrollbars .is-scrollbar-active {
    scrollbar-color: #7c8d83 transparent;
  }
}

:root.auto-scrollbars::-webkit-scrollbar,
:root.auto-scrollbars *::-webkit-scrollbar {
  background: transparent;
  height: 8px;
  width: 8px;
}
:root.auto-scrollbars::-webkit-scrollbar-track,
:root.auto-scrollbars *::-webkit-scrollbar-track,
:root.auto-scrollbars::-webkit-scrollbar-corner,
:root.auto-scrollbars *::-webkit-scrollbar-corner {
  background: transparent;
  border: 0;
  box-shadow: none;
}
:root.auto-scrollbars::-webkit-scrollbar-button,
:root.auto-scrollbars *::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}
:root.auto-scrollbars::-webkit-scrollbar-thumb,
:root.auto-scrollbars *::-webkit-scrollbar-thumb {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}
:root.auto-scrollbars.is-scrollbar-active::-webkit-scrollbar-thumb,
:root.auto-scrollbars .is-scrollbar-active::-webkit-scrollbar-thumb {
  background: #7c8d83;
}

/* Overlay the viewport thumb so Windows does not reserve a white page gutter. */
:root.auto-scrollbars {
  scrollbar-width: none;
}
:root.auto-scrollbars::-webkit-scrollbar {
  height: 0;
  width: 0;
}
.app-page-scrollbar {
  bottom: 0;
  pointer-events: none;
  position: fixed;
  right: 1px;
  top: 0;
  width: 7px;
  z-index: 2147483000;
}
.app-page-scrollbar--horizontal {
  bottom: 1px;
  height: 7px;
  left: 0;
  right: 0;
  top: auto;
  width: auto;
}
.app-page-scrollbar[hidden] {
  display: none;
}
.app-page-scrollbar__thumb {
  background: #7c8d83;
  border-radius: 999px;
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  touch-action: none;
  width: 100%;
}
:root.is-scrollbar-active .app-page-scrollbar__thumb {
  opacity: 1;
  pointer-events: auto;
}
:root.is-scrollbar-active .app-page-scrollbar {
  pointer-events: auto;
}
