.cs-rail {
  --cs-size: 2px;
  --cs-size-hover: 10px;
  --cs-hit: 14px;
  --cs-fade: rgba(247, 245, 241, 0.96);
}

.cs-page {
  scrollbar-width: none;
}

.cs-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cs-host {
  scrollbar-width: none;
}

.cs-host::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cs-shell {
  position: relative;
}

.cs-shell.has-more-right::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4.5rem;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--cs-fade));
}

.cs-rail-root {
  position: relative;
}

.cs-rail {
  position: absolute;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  display: flex;
}

.cs-rail--x {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cs-hit);
  align-items: flex-end;
}

.cs-rail--y {
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--cs-hit);
  justify-content: flex-end;
}

.cs-rail--page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--cs-hit);
  z-index: 9998;
  pointer-events: auto;
  justify-content: flex-end;
}

.cs-thumb {
  background: rgba(18, 20, 22, 0.3);
  border-radius: 0;
  will-change: transform, width, height;
  transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
}

.cs-rail--y .cs-thumb {
  width: var(--cs-size);
  min-height: 24px;
}

.cs-rail--x .cs-thumb {
  height: var(--cs-size);
  min-width: 24px;
}

.cs-rail-root.is-cs-scrolling .cs-rail,
.cs-rail-root.is-cs-hover .cs-rail,
.cs-rail-root.is-cs-dragging .cs-rail {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.cs-rail--page {
  opacity: 0;
}

html.cs-page.is-cs-scrolling .cs-rail--page,
html.cs-page.is-cs-hover .cs-rail--page,
html.cs-page.is-cs-dragging .cs-rail--page {
  opacity: 1;
}

.cs-rail-root.is-cs-hover .cs-rail--y .cs-thumb,
.cs-rail-root.is-cs-dragging .cs-rail--y .cs-thumb,
html.cs-page.is-cs-hover .cs-rail--page .cs-thumb,
html.cs-page.is-cs-dragging .cs-rail--page .cs-thumb {
  width: var(--cs-size-hover);
  background: rgba(18, 20, 22, 0.55);
}

.cs-rail-root.is-cs-hover .cs-rail--x .cs-thumb,
.cs-rail-root.is-cs-dragging .cs-rail--x .cs-thumb {
  height: var(--cs-size-hover);
  background: rgba(18, 20, 22, 0.55);
}

[data-cs-theme="dark"] .cs-thumb {
  background: rgba(255, 255, 255, 0.3);
}

[data-cs-theme="dark"].is-cs-hover .cs-rail--y .cs-thumb,
[data-cs-theme="dark"].is-cs-dragging .cs-rail--y .cs-thumb,
[data-cs-theme="dark"] .cs-rail.is-cs-hover .cs-thumb {
  background: rgba(255, 255, 255, 0.55);
}
