.lb-page {
  background: var(--paper, #fbfdf9);
  color: var(--text, #36483f);
  font-family: var(--sans, Inter, sans-serif);
}
.lb-page [hidden] { display: none !important; }
.lb-container { width: min(var(--site-width, 74rem), calc(100% - 3rem)); margin-inline: auto; }
.lb-page :is(h1, h2, p, figure) { margin: 0; }
.lb-page h1, .lb-page h2 { color: var(--ink); font-family: var(--serif); }
.lb-hero { background: #f2f6ee; border-bottom: 1px solid var(--rule); }
.lb-hero-inner { padding-block: clamp(.95rem, 1.65vw, 1.4rem); }
.lb-hero-copy { min-width: 0; }
.lb-hero-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; }
.lb-hero h1 { font-size: clamp(1.7rem, 2.65vw, 2.35rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 550; }
.lb-hero-edition {
  display: inline-flex; align-items: center; padding: .15rem .5rem;
  border: 1px solid #c2d5c4; border-radius: 999px; background: #e5efe3;
  color: #1c573c; font: 580 .74rem/1.25 var(--mono); white-space: nowrap;
}
.lb-hero p { max-width: 60rem; margin-top: .4rem; line-height: 1.42; font-size: .94rem; color: var(--quiet); }
.lb-page a { color: var(--accent); text-underline-offset: .2em; }
.lb-content { padding-block: 0 3rem; }
.lb-editions { display: flex; align-items: stretch; gap: 1.5rem; border-bottom: 1px solid var(--rule); }
.lb-editions a {
  display: inline-flex; align-items: baseline; gap: .42rem; padding: .82rem 0 .74rem; border-bottom: 3px solid transparent;
  font-size: .93rem; line-height: 1.35; color: var(--quiet); text-decoration: none; white-space: nowrap;
}
.lb-editions a[aria-current] { border-color: var(--accent); color: var(--accent); }
.lb-editions strong { font-weight: 600; }
.lb-editions a span { font-size: .78rem; }
.lb-editions a:hover { color: var(--accent); }
.lb-reference { margin-left: auto; font-size: .83rem; font-weight: 600; flex: 0 0 auto; white-space: nowrap; }
.lb-table-notes a { font-size: .9rem; font-weight: 600; flex: 0 0 auto; }
.lb-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; padding: .75rem 0 .65rem; }
.lb-tools input, .lb-tools select {
  height: 2.35rem; border: 1px solid #b8cbbe; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: .88rem;
}
.lb-search { position: relative; width: min(17.5rem, 100%); }
.lb-tools input { width: 100%; padding: .3rem .6rem .3rem 2.15rem; }
.lb-search::before, .lb-search::after { content: ''; position: absolute; pointer-events: none; }
.lb-search::before { width: .72rem; height: .72rem; left: .8rem; top: .72rem; border: 1.5px solid var(--quiet); border-radius: 50%; }
.lb-search::after { width: .42rem; height: 1.5px; left: 1.38rem; top: 1.44rem; background: var(--quiet); transform: rotate(45deg); }
.lb-selector { position: relative; }
.lb-selector::after { content: ''; position: absolute; right: .85rem; top: .84rem; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.lb-selector select { appearance: none; max-width: 100%; padding: .3rem 2.15rem .3rem .75rem; }
#lb-count { margin-left: auto; color: var(--quiet); font: .83rem/1.5 var(--mono); }
.lb-table-frame { width: 100%; overflow: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.lb-table { width: 100%; border-collapse: collapse; color: var(--ink); line-height: 1.35; }
.lb-table :is(th, td) { padding: .85rem 1.05rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.lb-table tbody tr:last-child > * { border-bottom: 0; }
.lb-table tbody tr:hover { background: #f5f9f4; }
.lb-table thead th { background: #edf3eb; font-size: .87rem; font-weight: 600; color: var(--quiet); }
.lb-table .lb-number { text-align: right; white-space: nowrap; }
.lb-number button {
  color: inherit; border: none; padding: .3rem .1rem; background: transparent; font: inherit; white-space: normal;
  cursor: pointer; line-height: 1.35; min-height: 2rem; text-align: right;
}
.lb-number button::after { content: '↕'; display: inline; margin-left: .2em; font-family: var(--sans); opacity: .78; }
.lb-number[aria-sort='descending'] button::after { content: '↓'; }
.lb-number[aria-sort='ascending'] button::after { content: '↑'; }
.lb-number[aria-sort] button, .lb-number button:hover { color: var(--accent); }
.lb-number[aria-sort] button { font-weight: 700; }
.lb-table td.lb-number, .lb-table td.lb-rank { font: .94rem/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.lb-table td.lb-rank { color: var(--quiet); }
.lb-table td.lb-selected { color: var(--accent); font-weight: 650; }
.lb-score-track { display: block; height: .2rem; width: 3.65rem; margin: .28rem 0 0 auto; background: #e3ece3; }
.lb-score-track > span { display: block; height: 100%; background: #72a286; }
.lb-table tbody tr:first-child .lb-score-track > span { background: var(--accent); }
.lb-model { min-width: 12rem; font-size: 1rem; font-weight: 600; }
.lb-model-content { display: flex; gap: .6rem; align-items: center; }
.lb-model-badge { flex: 0 0 1.8rem; height: 1.8rem; width: 1.8rem; display: grid; place-items: center; border: 1px solid var(--rule); background: white; border-radius: 5px; font: 500 .77rem/1 var(--mono); color: var(--quiet); }
.lb-model-badge img { width: 1.3rem; height: 1.3rem; object-fit: contain; }
.lb-model small { display: block; margin-top: .15rem; font-weight: 400; font-size: .83rem; color: var(--quiet); }
.lb-model small a { text-decoration-thickness: 1px; }
.lb-date { font-size: .86rem; color: var(--quiet); white-space: nowrap; }
.lb-empty, #lb-load:not([hidden]) { padding: 1.25rem .5rem; line-height: 1.6; }
.lb-empty button, #lb-load button { border: none; background: none; padding: .25rem 0; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; font: inherit; cursor: pointer; }
.lb-table-notes { display: flex; gap: 1rem; justify-content: space-between; align-items: start; padding: .85rem .05rem; color: var(--quiet); }
.lb-table-notes p { font-size: .89rem; line-height: 1.5; }
#lb-note[hidden] + a { margin-inline-start: auto; }
.lb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .lb-editions { gap: 1.15rem; }
  .lb-editions a { flex-direction: column; gap: .08rem; }
  .lb-table :is(th, td) { padding: .8rem; }
}
@media (max-width: 540px) {
  .lb-container { width: calc(100% - 2rem); }
  .lb-hero-heading { gap: .25rem .45rem; }
  .lb-hero h1 { font-size: 1.55rem; }
  .lb-hero-edition { font-size: .7rem; padding: .12rem .42rem; }
  .lb-reference { font-size: .78rem; }
  .lb-editions { gap: .3rem; justify-content: space-between; }
  .lb-editions a { font-size: .88rem; }
  .lb-editions a span { font-size: .75rem; }
  .lb-tools { gap: .45rem; padding: .65rem 0 .55rem; }
  .lb-search { width: 100%; }
  .lb-table-notes { flex-direction: column; gap: .4rem; }
}

.lb-view > :is(.sc-section, .cmp-section):first-child { margin-block-start: .15rem; }
.lb-view, .lb-view .cmp-section { scroll-margin-top: 1.5rem; }
@media (max-width: 650px) {
  .lb-selector select { font-size: .85rem; }
}
