.lb-wrap {
    width: 100%;
    margin: 0 0 28px;
    padding: 22px 20px 26px;
    background:
        radial-gradient(ellipse 42% 80% at 100% 0%, rgba(37, 99, 235, 0.2), transparent 58%),
        #0c1224;
    color: #f8fafc;
}

.lb-inner {
    max-width: var(--mx-max, 1240px);
    margin: 0 auto;
}

.lb-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 13px;
}

.lb-crumb a {
    color: #cbd5e1;
    text-decoration: none;
}

.lb-crumb a:hover { color: #fff; }

.lb-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lb-wrap h1 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.lb-lead {
    max-width: 640px;
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 1.02rem;
    line-height: 1.6;
}

.lb-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.lb-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lb-actions a:hover {
    color: #fff;
    border-color: rgba(125, 211, 252, 0.5);
}

.lb-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.lb-stats article {
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: #141c33;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.lb-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.lb-stat-top i { color: #67e8f9; }

.lb-stats strong {
    display: block;
    color: #fff;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.lb-free em {
    color: #94a3b8;
    font-style: normal;
    margin-right: 6px;
}

.lb-free { color: #22d3ee !important; }

.lb-stats article > span {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 13px;
}

.lb-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.lb-search {
    position: relative;
    flex: 1 1 auto;
}

.lb-search i,
.lb-sort i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.lb-search i { left: 16px; }

.lb-search input,
.lb-sort select {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #12182b;
    color: #e2e8f0;
    font: inherit;
    outline: none;
}

.lb-search input {
    padding: 0 16px 0 44px;
}

.lb-search input::placeholder { color: #64748b; }

.lb-search input:focus,
.lb-sort select:focus {
    border-color: rgba(125, 211, 252, 0.55);
}

.lb-sort {
    position: relative;
    flex: 0 0 180px;
}

.lb-sort select {
    appearance: none;
    padding: 0 36px 0 14px;
    cursor: pointer;
}

.lb-sort i { right: 14px; font-size: 12px; }

.lb-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
}

.lb-jump div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lb-letter {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #cbd5e1;
    font-weight: 700;
    cursor: pointer;
}

.lb-letter:hover { color: #fff; }

.lb-letter.is-active {
    background: #f8fafc;
    color: #0f172a;
}

.lb-count {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.lb-sr,
.hp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 980px) {
    .lb-top,
    .lb-tools { flex-direction: column; align-items: stretch; }
    .lb-actions { justify-content: flex-start; }
    .lb-stats { grid-template-columns: 1fr 1fr; }
    .lb-sort { flex-basis: auto; }
}

@media (max-width: 640px) {
    .lb-wrap { padding: 18px 16px 22px; }
    .lb-stats { grid-template-columns: 1fr; }
    .lb-actions a { width: 100%; justify-content: center; }
}

.pq-wrap {
    width: 100%;
    margin: 0;
    padding: 8px 20px 36px;
    background: #0b1220;
    color: #f8fafc;
}

.pq-inner { max-width: var(--mx-max, 1240px); margin: 0 auto; }

.pq-head,
.pq-create {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.pq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pq-head h2,
.pq-create h3 {
    margin: 0;
    color: #fff !important;
    font-weight: 800;
}

.pq-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.pq-head > div > p,
.pq-create p {
    max-width: 640px;
    margin: 8px 0 0;
    color: #94a3b8;
    line-height: 1.6;
}

.pq-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.pq-all:hover { color: #fff; border-color: rgba(125, 211, 252, 0.5); }

.pq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.pq-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
    background: #141c33;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.pq-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pq-card-top span {
    color: #67e8f9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.pq-card-top em {
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.pq-card h3 {
    margin: 0 0 8px;
    color: #fff !important;
    font-size: 1.15rem;
    line-height: 1.35;
}

.pq-by { margin: 0 0 14px; color: #94a3b8; font-size: 14px; }
.pq-by strong { color: #7dd3fc; font-weight: 700; }

.pq-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    color: #cbd5e1;
    font-size: 13px;
}

.pq-meta i { width: 14px; margin-right: 6px; color: #94a3b8; }
.pq-meta .fa-flag { color: #fb923c; }

.pq-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.pq-scores dt {
    color: #94a3b8;
    font-size: 12px;
}

.pq-scores dd {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.pq-top { color: #22d3ee !important; }

.pq-start {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-weight: 700;
    text-decoration: none;
}

.pq-start:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.pq-create {
    align-items: center;
    padding: 22px;
    border-radius: 18px;
    background: #141c33;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.pq-create h3 { font-size: 1.35rem; }

.pq-create-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.pq-bank,
.pq-csv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.pq-bank {
    color: #fff;
    background: linear-gradient(90deg, #7c3aed 0%, #6366f1 55%, #22d3ee 140%);
}

.pq-csv {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.pq-csv:hover { color: #fff; }

@media (max-width: 980px) {
    .pq-grid { grid-template-columns: 1fr; }
    .pq-head, .pq-create { flex-direction: column; align-items: flex-start; }
}

body.user-site:has(.lb-wrap) {
    background: #0b1220 !important;
}

body.user-site:has(.lb-wrap)::before,
body.user-site:has(.lb-wrap)::after {
    content: none;
}

html:has(.lb-wrap) { scroll-behavior: smooth; }

body.user-site:has(.lb-wrap) .footer,
body.user-site:has(.lb-wrap) .footer.mx-footer {
    margin-top: 0 !important;
}

body.user-site:has(.lb-wrap) .mx-browse-card,
body.user-site:has(.lb-wrap) .mx-info-block,
body.user-site:has(.lb-wrap) .mx-info-card,
body.user-site:has(.lb-wrap) .mx-info-mini,
body.user-site:has(.lb-wrap) .mx-info-tip,
body.user-site:has(.lb-wrap) .mx-info-step {
    background: #141c33;
    border-color: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    box-shadow: none;
}

body.user-site:has(.lb-wrap) .mx-browse-card-desc,
body.user-site:has(.lb-wrap) .mx-browse-card-desc--muted,
body.user-site:has(.lb-wrap) .mx-info-lead,
body.user-site:has(.lb-wrap) .mx-info-list li,
body.user-site:has(.lb-wrap) .mx-info-card p,
body.user-site:has(.lb-wrap) .mx-info-mini p,
body.user-site:has(.lb-wrap) .mx-info-tip p,
body.user-site:has(.lb-wrap) .mx-info-step p,
body.user-site:has(.lb-wrap) .mx-info-note,
body.user-site:has(.lb-wrap) .mx-section-eyebrow,
body.user-site:has(.lb-wrap) .mx-browse-empty-search,
body.user-site:has(.lb-wrap) .mx-browse-empty-search p {
    color: #94a3b8;
}

body.user-site:has(.lb-wrap) .mx-browse-card-cta { color: #7dd3fc; }
body.user-site:has(.lb-wrap) .mx-category-rating,
body.user-site:has(.lb-wrap) .mx-category-rating span { color: #e2e8f0; }

body.user-site:has(.lb-wrap) .mx-browse-card-foot,
body.user-site:has(.lb-wrap) .mx-info-note {
    border-color: rgba(148, 163, 184, 0.16);
}

body.user-site:has(.lb-wrap) .mx-info-head h2,
body.user-site:has(.lb-wrap) .mx-info-card h3,
body.user-site:has(.lb-wrap) .mx-info-mini h3,
body.user-site:has(.lb-wrap) .mx-info-tip h3,
body.user-site:has(.lb-wrap) .mx-info-step h3,
body.user-site:has(.lb-wrap) .mx-info-note strong {
    color: #fff !important;
}

body.user-site:has(.lb-wrap) .mx-info-list i,
body.user-site:has(.lb-wrap) .mx-info-note i { color: #4ade80; }

body.user-site:has(.lb-wrap) .mx-browse-share {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.24);
}

body.user-site:has(.lb-wrap) .mx-score-range.is-excellent { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); }
body.user-site:has(.lb-wrap) .mx-score-range.is-good { color: #67e8f9; background: rgba(6, 182, 212, 0.12); }
body.user-site:has(.lb-wrap) .mx-score-range.is-average { color: #fdba74; background: rgba(249, 115, 22, 0.12); }
body.user-site:has(.lb-wrap) .mx-score-range.is-low { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }

body.user-site:has(.lb-wrap) .mx-browse-item:hover .mx-browse-card,
body.user-site:has(.lb-wrap) .mx-info-card:hover,
body.user-site:has(.lb-wrap) .pq-card:hover {
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.28);
}

.pq-card,
.pq-start,
.pq-bank,
.pq-csv,
.lb-actions a,
.lb-letter {
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.pq-card:hover { transform: translateY(-4px); }
.pq-bank:hover, .lb-actions a:hover { transform: translateY(-2px); }
.pq-bank:active, .pq-start:active, .lb-actions a:active { transform: translateY(1px) scale(0.98); }

.lb-motion .lb-rise {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    transition-delay: calc(var(--lb-d, 0) * 45ms), 0s, 0s, 0s;
}

.lb-motion .lb-rise.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html:has(.lb-wrap) { scroll-behavior: auto; }
    .lb-motion .lb-rise,
    .lb-motion .lb-rise.is-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    body.user-site:has(.lb-wrap) .mx-browse-item:hover,
    .pq-card:hover,
    .pq-bank:hover { transform: none; }
}
