.list-back-to-top {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 30;
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 94%, transparent);
    color: #fff;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.list-back-to-top:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 64%, #fff);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .list-page .topbar {
        will-change: transform;
        transition: transform .24s ease, box-shadow .24s ease;
    }

    .list-page .menu-jump {
        will-change: transform;
        transition: transform .24s ease, box-shadow .24s ease;
    }

    .list-page.list-header-hidden .topbar {
        transform: translateY(calc(-100% - 2px));
        box-shadow: none;
    }

    .list-page.list-header-hidden .menu-jump {
        transform: translateY(calc(-1 * var(--list-header-height, 0px) - 2px));
    }

    .list-back-to-top {
        display: grid;
    }

    .list-back-to-top.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .list-page .topbar,
    .list-page .menu-jump,
    .list-back-to-top {
        transition: none;
    }
}
