/* Shared native scrollbar styling: rounded inset thumbs, with light/dark theme colors. */
:root {
    --st-scrollbar-track: #eef0f7;
    --st-scrollbar-thumb: #b8acd3;
    --st-scrollbar-hover: #9780bd;
    --st-scrollbar-active: #7e61a9;
}
html[data-bs-theme="dark"] {
    --st-scrollbar-track: #151d2a;
    --st-scrollbar-thumb: #625775;
    --st-scrollbar-hover: #8a76a3;
    --st-scrollbar-active: #ac91ce;
}
@supports selector(::-webkit-scrollbar) {
    /* Native standardized colors must stay auto here so Chromium uses the inset thumb rules. */
    html:root, html:root * { scrollbar-width: auto; scrollbar-color: auto; }
    html:root::-webkit-scrollbar, html:root *::-webkit-scrollbar { width:12px; height:12px; }
    html:root::-webkit-scrollbar-track, html:root *::-webkit-scrollbar-track { background:var(--st-scrollbar-track); border-radius:999px; }
    html:root::-webkit-scrollbar-thumb, html:root *::-webkit-scrollbar-thumb {
        background:var(--st-scrollbar-thumb);
        background-clip:padding-box;
        border:3px solid transparent;
        border-radius:999px;
        min-width:32px;
        min-height:32px;
    }
    html:root::-webkit-scrollbar-thumb:hover, html:root *::-webkit-scrollbar-thumb:hover { background-color:var(--st-scrollbar-hover); }
    html:root::-webkit-scrollbar-thumb:active, html:root *::-webkit-scrollbar-thumb:active { background-color:var(--st-scrollbar-active); }
    html:root::-webkit-scrollbar-corner, html:root *::-webkit-scrollbar-corner { background:transparent; }
    html:root::-webkit-scrollbar-button, html:root *::-webkit-scrollbar-button { display:none; width:0; height:0; }
}
@supports not selector(::-webkit-scrollbar) {
    html:root, html:root * { scrollbar-width:thin; scrollbar-color:var(--st-scrollbar-thumb) var(--st-scrollbar-track); }
}
@media(forced-colors:active) {
    html:root, html:root * { scrollbar-color:auto; }
}
