@media (forced-colors: none) {
    :root {
        --scroll-thumb: color-mix(in srgb, var(--text-primary, #273649) 30%, transparent);
        --scroll-thumb-active: color-mix(in srgb, var(--text-primary, #273649) 52%, transparent);
    }

    * {
        scrollbar-width: thin;
        scrollbar-color: var(--scroll-thumb) transparent;
    }

    *:not(html):is(:hover, :focus-within) {
        scrollbar-color: var(--scroll-thumb-active) transparent;
    }

    @supports selector(::-webkit-scrollbar) {
        *, *:not(html):is(:hover, :focus-within) {
            scrollbar-width: auto;
            scrollbar-color: auto;
        }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
        ::-webkit-scrollbar-button { display: none; }

        ::-webkit-scrollbar-thumb {
            min-width: 24px;
            min-height: 24px;
            border: 2px solid transparent;
            border-radius: 999px;
            background: var(--scroll-thumb) padding-box;
        }

        ::-webkit-scrollbar-thumb:hover,
        ::-webkit-scrollbar-thumb:active,
        *:not(html):is(:hover, :focus-within)::-webkit-scrollbar-thumb {
            background-color: var(--scroll-thumb-active);
        }
    }
}
