/* Public leaderboard only. Shared report, homepage and tool styles stay independent. */
.lb-page { background: #fff; color: var(--ink); padding-bottom: 52px; }
.lb-page .container { width: min(1200px, calc(100% - 64px)); }
.lb-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(110deg, #f7faff 5%, #edf4ff 100%); }
.lb-hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 64%; background-image: linear-gradient(#c7d9fc55 1px, transparent 1px), linear-gradient(90deg, #c7d9fc55 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.lb-hero-inner { position: relative; display: flex; align-items: center; gap: 28px; padding-block: 54px 48px; min-height: 325px; }
.lb-hero-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.lb-eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: .045em; }
.lb-hero h1 { margin: 0 0 15px; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.35; letter-spacing: -.045em; font-weight: 800; }
.lb-intro { margin: 0 0 5px; color: #4d5f7a; font-size: 17px; line-height: 1.75; }
.lb-hero-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.lb-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 29px; }
.lb-search { display: flex; gap: 9px; flex: 1 1 420px; max-width: 590px; }
.lb-search-input { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; padding: 0 15px; background: #fff; border: 1px solid #cfd9eb; border-radius: 8px; box-shadow: 0 4px 12px #264a8703; }
.lb-search-input > .icon { width: 19px; height: 19px; color: #74839b; flex-shrink: 0; }
.lb-search-input input { display: block; min-width: 0; width: 100%; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.lb-search-input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.lb-search .button, .lb-check-site { min-height: 49px; padding: 12px 19px; white-space: nowrap; font-size: 13px; }
.lb-page .lb-check-site { color: var(--accent); border-color: #9ab7f7; background: #ffffffd9; }
.lb-hero-art { display: flex; align-items: center; justify-content: flex-end; flex-direction: column; align-self: stretch; flex: 0 0 235px; padding-top: 8px; }
.lb-trophy { width: 113px; height: 117px; color: var(--accent); margin-left: 33px; margin-bottom: 7px; }
.lb-bars { display: flex; align-items: flex-end; gap: 10px; height: 105px; }
.lb-bars span { display: block; width: 53px; border-radius: 9px 9px 0 0; background: linear-gradient(#a6c7ff, #dce9ff); }
.lb-bars span:nth-child(1) { height: 39px; }
.lb-bars span:nth-child(2) { height: 66px; }
.lb-bars span:nth-child(3) { height: 98px; }
.lb-content { padding-top: 33px; }
.lb-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 9px; }
.lb-tabs a { padding: 11px 18px; border: 1px solid #e0e6ef; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.lb-tabs a[aria-current] { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 5px 11px #3569e818; }
.lb-tabs a:not([aria-current]):hover { background: var(--accent-soft); color: var(--accent); }
.lb-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.lb-period-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.lb-period-form select { max-width: 145px; border: 1px solid #d9e1ed; border-radius: 8px; padding: 10px 29px 10px 12px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; }
.lb-filter-submit { padding: 7px 3px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.lb-filter-submit:hover { text-decoration: underline; }
.lb-rules-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; white-space: nowrap; }
.lb-summary-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 18px; margin: 16px 0 26px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.lb-summary-line p { margin: 0; }
.lb-summary-line > span { color: #657590; }
.lb-podium { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0 0 28px; }
.lb-podium-card { flex: 1 1 0; min-width: 0; position: relative; padding: 22px 24px; border: 1px solid #dfe6f0; border-radius: 13px; background: #fff; box-shadow: 0 6px 20px #243d6a05; }
.lb-podium-card.is-leading { background: linear-gradient(120deg, #f8fbff, #edf4ff); border-color: #7097f9; box-shadow: 0 6px 20px #3569e80d; }
.lb-medal { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 33px; margin-bottom: 18px; color: #96691a; }
.lb-medal::before, .lb-medal::after { content: ""; position: absolute; z-index: 0; bottom: 0; width: 9px; height: 14px; background: #f0c357; }
.lb-medal::before { left: 5px; transform: rotate(15deg); }
.lb-medal::after { right: 5px; transform: rotate(-15deg); }
.lb-medal span { position: relative; z-index: 1; display: grid; place-items: center; align-self: flex-start; width: 27px; height: 27px; border: 3px solid #f4d27c; border-radius: 50%; background: #ffedb8; color: #92641c; box-shadow: 0 0 0 1px #d8ad4d; font-size: 14px; line-height: 1; font-weight: 750; }
.lb-medal-2 span { border-color: #e1e7ef; background: #eff3f9; color: #60748b; box-shadow: 0 0 0 1px #b4c1d0; }
.lb-medal-2::before, .lb-medal-2::after { background: #b4c1d0; }
.lb-medal-3 span { border-color: #efcca7; background: #fff0de; color: #9a6131; box-shadow: 0 0 0 1px #d7a16c; }
.lb-medal-3::before, .lb-medal-3::after { background: #d7a16c; }
.lb-card-site { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.lb-site-letter { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; background: #e9f0ff; border: 1px solid #dce6fb; border-radius: 9px; color: var(--accent); font-weight: 700; font-size: 23px; line-height: 1; }
.lb-card-site > div, .lb-row-site > div { flex: 1; min-width: 0; }
.lb-card-site h3 { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 700; }
.lb-card-site h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); overflow-wrap: anywhere; }
.lb-card-site p { margin: 4px 0 0; color: #65738c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.lb-card-score { display: flex; align-items: baseline; gap: 7px; margin-top: 23px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lb-card-score strong { font-size: 43px; color: var(--accent); font-weight: 750; letter-spacing: -1.5px; }
.lb-card-score > span { color: #8a96ad; font-size: 17px; }
.lb-score-caption { margin: 4px 0 0; color: #596a85; font-size: 13px; line-height: 1.6; }
.lb-card-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; padding-top: 17px; margin-top: 18px; border-top: 1px solid #dde5f2; color: #52647f; font-size: 12px; }
.lb-card-facts p { display: flex; align-items: center; gap: 7px; width: 100%; margin: 0; }
.lb-card-facts .icon { height: 16px; width: 16px; flex-shrink: 0; }
.lb-card-facts b { color: #334762; font-weight: 600; }
.lb-manual-badge { display: inline-flex; padding: 4px 9px; background: #fff5df; color: #8e641c; border-radius: 6px; line-height: 1.5; }
.lb-issue-badge { display: inline-flex; padding: 4px 9px; background: #edf3ff; color: #526b93; border-radius: 6px; line-height: 1.5; }
.lb-issue-badge.has-issues { background: #fff2e7; color: #956319; }
.lb-sample-state { display: inline-block; color: #8190a7; font-size: 10px; line-height: 1.5; }
.lb-table .lb-sample-state { display: block; margin-top: 3px; }
.lb-card-facts time { display: inline-flex; align-items: center; gap: 5px; color: #758198; font-size: 11px; }
.lb-text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; line-height: 1.5; font-weight: 600; }
.lb-text-link .icon { width: 17px; height: 17px; }
.lb-card-report { margin-top: 22px; }
.lb-table-panel { padding: 23px 23px 10px; border: 1px solid #dfe6f0; border-radius: 13px; background: #fff; box-shadow: 0 4px 15px #243d6a03; }
.lb-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.lb-table-heading h2 { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 750; }
.lb-table-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lb-table-scroll { overflow-x: auto; scrollbar-width: thin; }
.lb-table { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.lb-table th { padding: 13px 10px; border: 0; background: #f1f4f9; color: #283b58; font-size: 12px; font-weight: 650; text-align: left; }
.lb-table th:first-child { width: 55px; border-radius: 7px 0 0 7px; }
.lb-table th:nth-child(2) { width: 29%; }
.lb-table th:nth-child(3) { width: 102px; }
.lb-table th:nth-child(4), .lb-table th:nth-child(5) { width: 80px; }
.lb-table th:nth-child(6) { width: 88px; }
.lb-table th:nth-child(7) { width: 111px; }
.lb-table th:last-child { width: 74px; border-radius: 0 7px 7px 0; }
.lb-table td { vertical-align: middle; padding: 19px 10px; border: 0; border-bottom: 1px solid #e9eef6; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-rank-number { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-row-site { display: flex; align-items: center; gap: 11px; }
.lb-row-site .lb-site-letter { flex-basis: 36px; width: 36px; height: 36px; border-radius: 8px; font-size: 20px; }
.lb-site-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-weight: 650; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.lb-site-name:hover, .lb-card-site h3 a:hover { color: var(--accent); }
.lb-site-host { display: block; margin-top: 2px; color: #718098; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.lb-table-score { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-table-score strong { font-size: 22px; font-weight: 750; color: var(--accent); }
.lb-table-score small { font-size: 11px; color: #8a96ad; }
.lb-count, .lb-attention, .lb-table time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-count { color: #4f607a; }
.lb-attention { color: #956319; font-weight: 600; }
.lb-table time { color: #566680; font-size: 12px; }
.lb-query-summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 22px; }
.lb-query-summary p { margin: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.lb-query-summary p span { color: var(--muted); font-size: 12px; }
.lb-query-summary > a { flex-shrink: 0; }
.lb-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 25px 0 18px; }
.lb-pagination > a, .lb-page-current { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 35px; padding: 6px 10px; border: 1px solid #dde5f1; border-radius: 7px; font-size: 13px; line-height: 1.3; color: var(--ink); }
.lb-pagination > a:hover { background: var(--accent-soft); border-color: #aac1f5; color: var(--accent); }
.lb-pagination > .lb-page-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-page-gap { color: #8a96ad; }
.lb-list-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.lb-rules { margin-top: 35px; padding: 25px 28px; background: #f0f5ff; border-radius: 13px; scroll-margin-top: 100px; }
.lb-rules h2 { margin: 0 0 22px; font-size: 23px; font-weight: 750; line-height: 1.5; }
.lb-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 23px; }
.lb-rule-grid > li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding-right: 23px; border-right: 1px solid #d4e0f5; }
.lb-rule-grid > li:last-child { padding-right: 0; border-right: 0; }
.lb-rule-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 13px; line-height: 1; }
.lb-rule-grid h3 { margin: 1px 0 6px; font-size: 15px; line-height: 1.6; font-weight: 700; }
.lb-rule-grid p { margin: 0; font-size: 12px; color: #66738d; line-height: 1.8; }
.lb-rules-note { padding-top: 17px; margin: 19px 0 0; border-top: 1px solid #dce6f7; color: #66738d; font-size: 11px; line-height: 1.85; }
.lb-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 24px; text-align: center; background: #f9fbff; border: 1px solid #e0e8f5; border-radius: 13px; }
.lb-empty > .icon { width: 40px; height: 40px; color: #7596d7; margin-bottom: 17px; }
.lb-empty h2 { margin: 0 0 12px; color: var(--ink); font-size: 23px; line-height: 1.5; }
.lb-empty > p { max-width: 640px; margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.lb-empty-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; }
.lb-page a:focus-visible, .lb-page button:focus-visible, .lb-page select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1100px) {
    .lb-hero-art { flex-basis: 170px; }
    .lb-hero-inner { gap: 20px; }
    .lb-search { flex-basis: 370px; }
    .lb-bars span { width: 44px; }
    .lb-podium { gap: 15px; }
    .lb-podium-card { padding: 20px; }
    .lb-card-site { gap: 10px; }
    .lb-card-site h3 { font-size: 16px; }
    .lb-rule-grid { gap: 18px; }
    .lb-rule-grid > li { gap: 9px; padding-right: 18px; }
}

@media (max-width: 800px) {
    .lb-page .container { width: calc(100% - 40px); }
    .lb-hero-inner { padding-block: 39px 36px; min-height: 0; }
    .lb-hero-art { display: none; }
    .lb-hero h1 { font-size: 38px; }
    .lb-hero-actions { margin-top: 24px; }
    .lb-search { flex-basis: 410px; max-width: none; }
    .lb-content { padding-top: 27px; }
    .lb-toolbar { gap: 15px; }
    .lb-filter-actions { gap: 15px; }
    .lb-podium { gap: 13px; }
    .lb-podium-card { padding: 18px 15px; }
    .lb-card-site { display: block; }
    .lb-card-site .lb-site-letter { margin-bottom: 12px; }
    .lb-card-site h3 a { min-height: 3.1em; }
    .lb-card-score strong { font-size: 37px; }
    .lb-card-score > span { font-size: 14px; }
    .lb-card-facts { gap: 8px; }
    .lb-table-panel { padding-inline: 18px; }
    .lb-rules { padding: 24px; }
    .lb-rule-grid { grid-template-columns: 1fr; gap: 20px; }
    .lb-rule-grid > li { padding-right: 0; border-right: 0; gap: 13px; }
    .lb-rule-grid h3 { font-size: 16px; }
    .lb-rule-grid p { font-size: 12px; }
}

@media (max-width: 600px) {
    .lb-page { padding-bottom: 35px; }
    .lb-page .container { width: calc(100% - 32px); }
    .lb-hero-inner { padding-block: 31px 29px; }
    .lb-eyebrow { font-size: 12px; margin-bottom: 12px; }
    .lb-hero h1 { font-size: clamp(29px, 8vw, 36px); margin-bottom: 13px; letter-spacing: -.04em; }
    .lb-intro { font-size: 15px; margin-bottom: 5px; }
    .lb-hero-note { font-size: 12px; }
    .lb-hero-actions { gap: 12px; margin-top: 23px; }
    .lb-search { flex-basis: 100%; gap: 7px; }
    .lb-search-input { gap: 7px; padding-inline: 10px; }
    .lb-search-input > .icon { width: 16px; height: 16px; }
    .lb-search-input input { font-size: 16px; padding-block: 12px; }
    .lb-search .button { font-size: 12px; padding-inline: 12px; min-height: 46px; }
    .lb-check-site { min-height: 42px; padding: 9px 14px; font-size: 12px; }
    .lb-toolbar { align-items: stretch; gap: 15px; }
    .lb-tabs { width: 100%; gap: 9px; }
    .lb-tabs a { flex: 1; padding: 10px 12px; font-size: 13px; text-align: center; }
    .lb-filter-actions { width: 100%; justify-content: space-between; gap: 10px; }
    .lb-period-form select { padding-block: 9px; font-size: 12px; }
    .lb-rules-link { font-size: 12px; }
    .lb-summary-line { display: block; margin-block: 15px 20px; font-size: 11px; line-height: 1.8; }
    .lb-summary-line > span { display: block; margin-top: 5px; }
    .lb-podium { flex-direction: column; gap: 14px; margin-bottom: 23px; }
    .lb-podium-card { padding: 21px; }
    .lb-medal { float: right; margin: 1px 0 0 9px; }
    .lb-card-site { display: flex; align-items: center; gap: 12px; }
    .lb-card-site .lb-site-letter { margin: 0; width: 43px; height: 43px; flex-basis: 43px; }
    .lb-card-site h3 { font-size: 16px; }
    .lb-card-site h3 a { min-height: 0; }
    .lb-card-score { margin-top: 19px; }
    .lb-card-score strong { font-size: 40px; }
    .lb-score-caption { font-size: 12px; }
    .lb-card-facts { gap: 9px 12px; margin-top: 16px; padding-top: 15px; }
    .lb-card-facts p { width: auto; flex: 1 1 auto; }
    .lb-card-facts time { width: 100%; margin-top: 1px; font-size: 11px; }
    .lb-card-report { margin-top: 17px; }
    .lb-table-panel { padding: 18px 0 0; overflow: hidden; }
    .lb-table-heading { display: block; margin: 0 18px 14px; }
    .lb-table-heading h2 { font-size: 21px; }
    .lb-table-heading p { font-size: 11px; margin-top: 6px; }
    .lb-table-scroll { overflow: visible; }
    .lb-table, .lb-table tbody { display: block; min-width: 0; }
    .lb-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .lb-table tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 15px; padding: 20px 18px; border-top: 1px solid #e5ebf4; }
    .lb-table td { display: block; padding: 0; border: 0; }
    .lb-table .lb-rank-cell { position: absolute; left: 18px; top: 24px; width: 24px; text-align: center; }
    .lb-rank-number { font-size: 17px; }
    .lb-table .lb-website-cell { grid-column: 1 / -1; padding-left: 36px; }
    .lb-row-site { gap: 10px; align-items: flex-start; }
    .lb-row-site .lb-site-letter { width: 33px; height: 33px; flex-basis: 33px; font-size: 19px; }
    .lb-site-name { font-size: 13px; }
    .lb-site-host { font-size: 11px; }
    .lb-table td[data-label]::before { display: block; content: attr(data-label); margin-bottom: 5px; color: #8090a5; font-size: 11px; line-height: 1.6; }
    .lb-table-score strong { font-size: 25px; line-height: 1.2; }
    .lb-count, .lb-attention { font-size: 13px; }
    .lb-table time { font-size: 12px; }
    .lb-report-cell { align-self: end; }
    .lb-report-cell .lb-text-link { justify-content: flex-end; width: 100%; min-height: 30px; }
    .lb-pagination { gap: 7px; margin-top: 21px; }
    .lb-pagination > a, .lb-page-current { min-width: 30px; min-height: 33px; padding-inline: 8px; font-size: 12px; }
    .lb-list-note { font-size: 11px; margin-top: 18px; text-align: left; }
    .lb-query-summary { align-items: flex-start; gap: 12px; }
    .lb-query-summary p { font-size: 13px; }
    .lb-query-summary p span { display: block; margin-top: 4px; font-size: 11px; }
    .lb-query-summary > a { font-size: 12px; }
    .lb-rules { margin-top: 26px; padding: 23px 20px; scroll-margin-top: 85px; }
    .lb-rules h2 { font-size: 22px; margin-bottom: 21px; }
    .lb-rule-grid { gap: 22px; }
    .lb-rule-grid h3 { font-size: 15px; }
    .lb-rules-note { font-size: 11px; }
    .lb-empty { padding: 35px 20px; }
    .lb-empty h2 { font-size: 20px; }
    .lb-empty > p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { .lb-page a, .lb-page button { transition: none; } }
@media print { .lb-hero { background: #fff; } .lb-hero-art, .lb-hero::after, .lb-hero-actions, .lb-toolbar, .lb-pagination { display: none; } .lb-podium-card, .lb-rules { break-inside: avoid; } .lb-page { padding-bottom: 0; } .lb-table-panel { box-shadow: none; } }
