.list-pagination-shell {
    padding: 1rem;
    border-top: 1px solid var(--app-border, #e2e8f0);
}

.list-pagination-shell--top {
    border-top: 0;
    border-bottom: 1px solid var(--app-border, #e2e8f0);
}

.list-pagination-shell .pagination,
.app-page-shell .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem;
    margin: 0;
}

.list-pagination-shell .page-link,
.app-page-shell .pagination .page-link {
    min-width: 2.25rem;
    border: 1px solid var(--app-border, #e2e8f0);
    border-radius: 8px !important;
    background: var(--app-surface, #fff);
    color: #334155;
    text-align: center;
    box-shadow: none;
}

.list-pagination-shell .page-link:hover,
.list-pagination-shell .page-link:focus,
.app-page-shell .pagination .page-link:hover,
.app-page-shell .pagination .page-link:focus {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.list-pagination-shell .page-item.active .page-link,
.app-page-shell .pagination .page-item.active .page-link {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.list-pagination-shell .page-item.disabled .page-link,
.app-page-shell .pagination .page-item.disabled .page-link {
    background: var(--app-bg, #f8fafc);
    color: var(--app-muted, #64748b);
    opacity: .7;
}

.list-pagination-shell--compact {
    padding: .65rem .5rem;
}

.list-pagination-shell--compact .pagination {
    gap: .2rem;
}

.list-pagination-shell--compact .page-link {
    min-width: 1.9rem;
    padding: .25rem .45rem;
    font-size: .78rem;
}

.app-back-to-top {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 1040;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

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

.app-back-to-top:hover {
    background: #1d4ed8;
    color: #fff;
}

.app-back-to-top:focus-visible {
    outline: 3px solid rgba(96, 165, 250, .55);
    outline-offset: 3px;
}

html[data-theme="dark"] .list-pagination-shell .page-link,
html[data-theme="dark"] .app-page-shell .pagination .page-link {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

html[data-theme="dark"] .list-pagination-shell .page-link:hover,
html[data-theme="dark"] .list-pagination-shell .page-link:focus,
html[data-theme="dark"] .app-page-shell .pagination .page-link:hover,
html[data-theme="dark"] .app-page-shell .pagination .page-link:focus {
    border-color: #60a5fa;
    background: #1e3a5f;
    color: #bfdbfe;
}

html[data-theme="dark"] .list-pagination-shell .page-item.active .page-link,
html[data-theme="dark"] .app-page-shell .pagination .page-item.active .page-link {
    border-color: #3b82f6;
    background: #2563eb;
    color: #fff;
}

html[data-theme="dark"] .list-pagination-shell .page-item.disabled .page-link,
html[data-theme="dark"] .app-page-shell .pagination .page-item.disabled .page-link {
    border-color: #334155;
    background: #111827;
    color: #64748b;
}
