html.custom-scrollbar-enabled {
    scrollbar-width: none;
}

html.custom-scrollbar-enabled::-webkit-scrollbar,
html.custom-scrollbar-enabled body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.custom-scrollbar-dragging {
    cursor: default;
    user-select: none;
}

.page-scrollbar {
    position: fixed;
    top: 1rem;
    bottom: 1rem;
    right: 0.125rem;
    width: 1.125rem;
    z-index: 2147483647;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-scrollbar.is-visible {
    opacity: 1;
}

.page-scrollbar__rail {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-scrollbar__thumb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.375rem;
    min-height: 3.5rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.34);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: default;
    touch-action: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.page-scrollbar__thumb:hover {
    background: rgba(100, 116, 139, 0.52);
}

.page-scrollbar__thumb:active {
    background: rgba(71, 85, 105, 0.68);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.page-scrollbar__thumb::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -0.375rem;
    right: -0.375rem;
}
