::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-overlay);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-base);
}

@media (hover: hover) {
    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-primary);
    }
}

.scroll, .chat-messages, .tab-content, .modal-body, .emoji-selector-content, #input {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-overlay) transparent;
}

.ripple-clip {
    position: fixed;
    overflow: hidden;
    pointer-events: none;
    z-index: 2147483000;
}

.ripple-clip > i {
    position: absolute;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1), opacity 75ms linear;
}

.ripple-clip.on > i {
    opacity: 1;
}

.ripple-clip.off > i {
    opacity: 0;
    transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms linear;
}

@supports selector(::-webkit-scrollbar) {
    html.phone,
    html.phone * {
        scrollbar-width: auto !important;
        scrollbar-color: auto !important;
    }

    html.phone::-webkit-scrollbar,
    html.phone ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    html.phone::-webkit-scrollbar-track,
    html.phone ::-webkit-scrollbar-track {
        background: transparent;
    }

    html.phone::-webkit-scrollbar-thumb,
    html.phone ::-webkit-scrollbar-thumb {
        background: var(--bg-overlay);
        border: none;
        border-radius: 0;
    }
}