/* Scrollbars that match the dark theme: square, thin, hairline-grey thumb that
   turns the orange accent on hover. Values mirror the chat tokens
   (--border, --muted-foreground, --primary) so it works on pages that do not
   load chat.css. */
:root {
  --sb-track: transparent;
  --sb-thumb: oklch(0.445 0.01 260);
  --sb-thumb-hover: oklch(0.775 0.145 57);
  color-scheme: dark;
}

/* Chromium, Safari, Edge */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: var(--sb-track);
}

::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: var(--sb-thumb-hover);
  background-clip: content-box;
}

/* Firefox has no hover state for its scrollbar, so keep it thin and neutral. */
@supports (-moz-appearance: none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
  }
}
