/* Page scrollbars only: keep native scrolling and existing widget scrollbars. */
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
    html {
        --page-scroll-thumb: rgba(186, 188, 191, .5);
        --page-scroll-thumb-hover: rgba(204, 205, 208, .72);
        --page-scroll-track: #555455;
    }
    html.public-site {
        --page-scroll-thumb: rgba(97, 104, 99, .38);
        --page-scroll-thumb-hover: rgba(80, 88, 83, .6);
        --page-scroll-track: #efeee8;
    }
    html, body, .app-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--page-scroll-thumb) transparent;
    }
    /* Chromium prioritizes scrollbar-width over ::-webkit-scrollbar.
       Reset it here so the actual gutter stays 6px and has no native arrows. */
    @supports selector(::-webkit-scrollbar) {
        html, body, .app-scroll { scrollbar-width: auto; scrollbar-color: auto; }
        :is(html, body, .app-scroll)::-webkit-scrollbar {
            width: 6px;
            height: 6px;
            background: var(--page-scroll-track);
        }
        :is(html, body, .app-scroll)::-webkit-scrollbar-track {
            background: transparent;
            border: 0;
        }
        :is(html, body, .app-scroll)::-webkit-scrollbar-thumb {
            min-height: 32px;
            background: var(--page-scroll-thumb);
            border: 1px solid transparent;
            background-clip: padding-box;
            border-radius: 999px;
        }
        :is(html, body, .app-scroll)::-webkit-scrollbar-thumb:hover {
            background-color: var(--page-scroll-thumb-hover);
        }
        :is(html, body, .app-scroll)::-webkit-scrollbar-button {
            display: none;
            width: 0;
            height: 0;
        }
        :is(html, body, .app-scroll)::-webkit-scrollbar-corner { background: transparent; }
    }
}
