/*
 * GENERATED from packages/shared/styles/scrollbar.css by `pnpm scrollbar:sync`. Do not edit.
 * The same scrollbars as the dashboard, scoped to .showhub-app so wp-admin is untouched.
 */

.showhub-app {
  /* Geometry: the bar is --sh-scroll-size wide; the thumb is inset on both sides, so the visible
     pill is size - 2 * inset (6px) and grows to size - 2 * inset-hover (8px) on hover. */
  --sh-scroll-size: 14px;
  --sh-scroll-inset: 4px;
  --sh-scroll-inset-hover: 3px;
  --sh-scroll-min: 44px;

  /* Thumb at rest, hovered and dragged: top/bottom stops of the gradient. */
  --sh-scroll-thumb-top: color-mix(in oklab, var(--sh-accent) 46%, var(--sh-bg-panel-2));
  --sh-scroll-thumb-bottom: color-mix(in oklab, var(--sh-accent) 28%, var(--sh-bg-panel-2));
  --sh-scroll-hover-top: var(--sh-accent);
  --sh-scroll-hover-bottom: color-mix(in oklab, var(--sh-accent) 60%, var(--sh-bg-panel-2));
  --sh-scroll-active-top: color-mix(in oklab, var(--sh-accent) 68%, var(--sh-cream));
  --sh-scroll-active-bottom: var(--sh-accent);

  /* Thin light edge around the thumb, and the rail down the track. */
  --sh-scroll-bevel: color-mix(in oklab, var(--sh-cream) 20%, transparent);
  --sh-scroll-rail: color-mix(in oklab, var(--sh-border) 90%, transparent);

  /* Firefox can only show one solid color. */
  --sh-scroll-solid: color-mix(in oklab, var(--sh-accent) 42%, var(--sh-bg-panel-2));
}

.showhub-app *::-webkit-scrollbar {
  width: var(--sh-scroll-size);
  height: var(--sh-scroll-size);
}

.showhub-app *::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.showhub-app *::-webkit-scrollbar-corner {
  background: transparent;
}

.showhub-app *::-webkit-scrollbar-track {
  background-color: transparent;
}

/* The rail: a 2px line down the middle of the track. */
.showhub-app *::-webkit-scrollbar-track:vertical {
  background-image: linear-gradient(
    90deg,
    transparent calc(50% - 1px),
    var(--sh-scroll-rail) calc(50% - 1px) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  background-repeat: no-repeat;
}

.showhub-app *::-webkit-scrollbar-track:horizontal {
  background-image: linear-gradient(
    180deg,
    transparent calc(50% - 1px),
    var(--sh-scroll-rail) calc(50% - 1px) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  background-repeat: no-repeat;
}

/* A transparent border plus background-clip floats the pill inside the bar. */
.showhub-app *::-webkit-scrollbar-thumb {
  min-width: var(--sh-scroll-min);
  min-height: var(--sh-scroll-min);
  border: var(--sh-scroll-inset) solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px var(--sh-scroll-bevel);
}

.showhub-app *::-webkit-scrollbar-thumb:vertical {
  background-image: linear-gradient(180deg, var(--sh-scroll-thumb-top), var(--sh-scroll-thumb-bottom));
}

.showhub-app *::-webkit-scrollbar-thumb:horizontal {
  background-image: linear-gradient(90deg, var(--sh-scroll-thumb-top), var(--sh-scroll-thumb-bottom));
}

.showhub-app *::-webkit-scrollbar-thumb:hover {
  border-width: var(--sh-scroll-inset-hover);
}

.showhub-app *::-webkit-scrollbar-thumb:vertical:hover {
  background-image: linear-gradient(180deg, var(--sh-scroll-hover-top), var(--sh-scroll-hover-bottom));
}

.showhub-app *::-webkit-scrollbar-thumb:horizontal:hover {
  background-image: linear-gradient(90deg, var(--sh-scroll-hover-top), var(--sh-scroll-hover-bottom));
}

.showhub-app *::-webkit-scrollbar-thumb:vertical:active {
  background-image: linear-gradient(180deg, var(--sh-scroll-active-top), var(--sh-scroll-active-bottom));
}

.showhub-app *::-webkit-scrollbar-thumb:horizontal:active {
  background-image: linear-gradient(90deg, var(--sh-scroll-active-top), var(--sh-scroll-active-bottom));
}

@supports not selector(::-webkit-scrollbar) {
  .showhub-app {
    scrollbar-width: thin;
    scrollbar-color: var(--sh-scroll-solid) transparent;
  }
}
