/* A quiet native fallback also works before scripts and on touch devices. */
html { scrollbar-color: #93545d #000; scrollbar-width: thin; }
html::-webkit-scrollbar { width: 6px; height: 6px; }
html::-webkit-scrollbar-track { background: #000; }
html::-webkit-scrollbar-thumb { background: #93545d; border-radius: 6px; }

/* Enabled in the head, before the first page layout and header measurement. */
html.mgn-scrollbar-enabled { scrollbar-width: none; scrollbar-gutter: auto; }
html.mgn-scrollbar-enabled::-webkit-scrollbar { display: none; width: 0; height: 0; }
.site-scrollbar {
    position: fixed;
    inset: 83px 0 0 auto;
    z-index: 1045;
    width: 12px;
    border: 0;
    padding: 0;
    background: transparent;
    touch-action: none;
    pointer-events: none;
    outline: none;
    contain: layout style;
    overflow: hidden;
    opacity: 0;
    transition: opacity 350ms ease;
}
.site-scrollbar:is(.is-active, .is-dragging, .is-keyboard-focused) { opacity: 1; }
.site-scrollbar[hidden] { display: none !important; }
.site-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    pointer-events: none;
    cursor: grab;
    outline: none;
    transform: translateY(var(--scrollbar-position, 0px));
}
.site-scrollbar:is(.is-active, .is-dragging, .is-keyboard-focused) .site-scrollbar-thumb { pointer-events: auto; }
.site-scrollbar-thumb svg { position: absolute; top: 0; right: 2px; width: 4px; height: 100%; overflow: visible; pointer-events: none; }
.site-scrollbar:is(.is-active, .is-dragging, .is-keyboard-focused) .site-scrollbar-thumb svg { pointer-events: auto; }
.site-scrollbar-thumb path { fill: none; stroke-linecap: round; }
.site-scrollbar-base { stroke: #93545d; stroke-width: 2; opacity: 1; }
.site-scrollbar.is-dragging .site-scrollbar-thumb { cursor: grabbing; }
html.mgn-scrollbar-dragging, html.mgn-scrollbar-dragging * { cursor: grabbing !important; user-select: none !important; }
.site-scrollbar-controls { position: fixed; right: 14px; bottom: 14px; z-index: 1045; display: grid; gap: 4px; }
.site-scrollbar-controls[hidden] { display: none !important; }
.site-scrollbar-controls button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #b98a92; cursor: pointer; outline: none; }
.site-scrollbar-controls button::before { content: ""; position: absolute; inset: 3px; border: 1px solid #393939; border-radius: 50%; background: #090909ed; transition: border-color 180ms ease, background-color 180ms ease; }
.site-scrollbar-controls button:is(:hover, :focus-visible)::before { border-color: #888; background: #151515; }
.site-scrollbar-controls button svg { position: relative; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .site-scrollbar { transition: none; }
    .site-scrollbar-controls button::before { transition: none; }
}
@media (forced-colors: active) {
    html { scrollbar-color: auto; scrollbar-width: auto; }
    .site-scrollbar, .site-scrollbar-controls { display: none !important; }
}
