.tabs
{
    position: fixed;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 100px 6px 6px;
    background: var(--glass-panel-bg);
    backdrop-filter: var(--glass-panel-blur);
    -webkit-backdrop-filter: var(--glass-panel-blur);
    border: var(--glass-panel-border);
    border-radius: 999px;
    box-shadow: var(--glass-panel-shadow);
    max-width: min(96vw, 720px);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 382px)
{
    .tabs
    {
        width: calc(100vw - 64px);
        justify-content: center;
    }

    .tabs .fixed-search
    {
        right: 52px;
    }

    .tabs .fixed-add
    {
        right: 4px;
    }
}

.tabs::-webkit-scrollbar
{
    display: none;
}

.tabs button
{
    appearance: none;
    border: 0;
    background: color-mix(in oklab, #fff 14%, transparent);
    border: 1px solid color-mix(in oklab, #fff 20%, transparent);
    color: var(--muted-custom);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;

    transition: color .2s, background .2s, transform .2s, box-shadow .2s, border-color .2s;
}

.tabs button:hover
{
    transform: translateY(-1px);
    background: color-mix(in oklab, #fff 20%, transparent);
    border-color: color-mix(in oklab, #fff 30%, transparent);
}

.tabs button:active
{
    transform: translateY(0);
}

.tabs button:focus-visible
{
    outline: 2px solid color-mix(in oklab, var(--accent-custom) 40%, transparent);
    outline-offset: 2px;
    border-radius: 999px;
}

.tabs button.active
{
    color: #fff;
    background: linear-gradient(180deg, color-mix(in oklab, var(--accent-custom) 84%, #fff 16%), color-mix(in oklab, var(--accent-2-custom) 86%, #000 14%));
    box-shadow: 0 6px 14px color-mix(in oklab, var(--accent-custom) 20%, #000 0%);
}
