.lb {
  --lb-ink: var(--admin-ink, #15231f);
  --lb-muted: var(--admin-muted, #718079);
  --lb-line: var(--admin-line, #dce5e0);
  --lb-surface: var(--admin-panel, #fff);
  --lb-soft: var(--admin-soft, #edf3ef);
  --lb-green: var(--admin-accent, #0b6b4f);
  min-width: 0;
  color: var(--lb-ink);
}
.lb [hidden] { display: none !important; }
.lb-context, .lb-table-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.lb-table-heading h3 { margin: 5px 0 0; letter-spacing: -.04em; }
.lb-table-heading h3 { font-size: 20px; }
.lb-search-hint { margin: 6px 0 0; color: var(--lb-muted); font-size: 10px; line-height: 1.45; }
.lb-kicker { margin: 0; color: var(--lb-green); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.lb-subtitle { margin: 7px 0 0; color: var(--lb-muted); font-size: 13px; line-height: 1.55; }
.lb-status { color: var(--lb-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.lb-filters { display: grid; grid-template-columns: minmax(160px, 1.1fr) repeat(2, minmax(140px, .8fr)) minmax(130px, .7fr) auto; align-items: end; gap: 11px; margin: 22px 0 16px; padding: 15px; border: 1px solid var(--lb-line); border-radius: 16px; background: var(--lb-surface); }
.lb-filters label { display: grid; gap: 6px; min-width: 0; color: var(--lb-ink); font-size: 11px; font-weight: 650; }
.lb-filters :is(input, select), .lb-search input, .lb-page-size select { width: 100%; min-width: 0; min-height: 41px; padding: 9px 10px; border: 1px solid var(--lb-line); border-radius: 10px; background: var(--lb-surface); color: var(--lb-ink); font: inherit; font-size: 12px; }
.lb-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid var(--lb-line); border-radius: 10px; background: var(--lb-surface); color: var(--lb-ink); font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.lb-button:hover:not(:disabled) { border-color: var(--lb-green); background: var(--lb-soft); }
.lb-button:disabled { opacity: .55; cursor: wait; }
.lb-button.lb-primary { border-color: var(--lb-green); background: var(--lb-green); color: #fff; }
.lb-summary { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0 2px 17px; color: var(--lb-muted); font-size: 10px; }
.lb-summary span { font-variant-numeric: tabular-nums; }
.lb-summary strong { color: var(--lb-ink); }
.lb-podium { min-width: 0; }
.lb-podium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 15px; }
.lb-podium-card { position: relative; min-width: 0; overflow: hidden; padding: 17px; border: 1px solid #29415f; border-radius: 18px; background: linear-gradient(145deg, #152841, #0b1729 82%); color: #f5f7fa; box-shadow: 0 17px 32px -26px rgb(6 18 36 / .65); }
.lb-podium-card::before { position: absolute; top: -68px; right: -50px; width: 155px; height: 155px; border: 1px solid color-mix(in srgb, var(--lb-medal-color) 28%, transparent); border-radius: 50%; content: ""; }
.lb-place-1 { --lb-medal-color: #e4b84e; border-color: #866a2f; background: radial-gradient(ellipse at 82% 0%, rgb(207 159 55 / .20), transparent 42%), linear-gradient(145deg, #1c2c43, #0c1728 82%); }
.lb-place-2 { --lb-medal-color: #bdc8d4; }
.lb-place-3 { --lb-medal-color: #bc805d; }
.lb-card-top, .lb-rank { position: relative; display: flex; align-items: center; }
.lb-card-top { justify-content: space-between; min-height: 24px; }
.lb-rank { gap: 6px; color: var(--lb-medal-color); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.lb-rank svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.lb-medal { display: block; width: 12px; height: 12px; border: 2px solid var(--lb-medal-color); border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lb-medal-color) 14%, transparent); }
.lb-profile { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; margin: 13px 0 16px; }
.lb-avatar, .lb-row-avatar { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--lb-medal-color) 57%, #fff); border-radius: 50%; background: color-mix(in srgb, var(--lb-medal-color) 20%, #18273a); color: #fff; font-weight: 800; }
.lb-avatar { width: 44px; height: 44px; font-size: 14px; }
.lb-name-wrap { display: grid; min-width: 0; gap: 3px; }
.lb-name { overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.lb-alias { color: #aebdce; font-size: 10px; }
.lb-metrics { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lb-metric { min-width: 0; padding: 9px 10px; border: 1px solid rgb(222 233 245 / .09); border-radius: 11px; background: rgb(255 255 255 / .045); }
.lb-metric span { display: block; margin-bottom: 5px; color: #aab9cb; font-size: 9px; }
.lb-metric strong { display: block; overflow: hidden; color: #f7f8fa; font-size: 14px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.lb .positive { color: var(--positive); }
.lb .negative { color: var(--negative); }
.lb .lb-metric strong.positive { color: color-mix(in srgb, var(--positive) 55%, white); }
.lb .lb-metric strong.negative { color: color-mix(in srgb, var(--negative) 55%, white); }
.lb-empty { display: grid; justify-items: center; gap: 6px; padding: 29px 16px; border: 1px dashed var(--lb-line); border-radius: 15px; color: var(--lb-muted); text-align: center; font-size: 11px; }
.lb-empty strong { color: var(--lb-ink); font-size: 13px; }
.lb-table-section { min-width: 0; margin-top: 31px; }
.lb-search { display: flex; width: min(100%, 360px); gap: 7px; }
.lb-search input { flex: 1 1 190px; }
.lb-table-wrap { max-width: 100%; margin-top: 13px; overflow-x: auto; border: 1px solid var(--lb-line); border-radius: 14px; background: var(--lb-surface); scrollbar-width: thin; }
.lb-table-wrap:focus-visible, .lb :is(button, a, input, select):focus-visible { outline: 3px solid var(--lb-green); outline-offset: 2px; }
.lb-table-wrap table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: left; font-size: 11px; }
.lb-table-wrap th, .lb-table-wrap td { padding: 11px 13px; border-bottom: 1px solid var(--lb-line); vertical-align: middle; white-space: nowrap; }
.lb-table-wrap thead th { background: var(--lb-soft); color: var(--lb-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.lb-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.lb-table-wrap tbody td { font-variant-numeric: tabular-nums; }
.lb-table-wrap tbody th { color: var(--lb-ink); font-size: 11px; font-weight: 650; }
.lb-rank-cell { color: var(--lb-muted); font-weight: 750; }
.lb-row-person { display: inline-flex; align-items: center; gap: 8px; }
.lb-row-avatar { width: 27px; height: 27px; border-color: var(--lb-line); background: var(--lb-soft); color: var(--lb-green); font-size: 10px; }
.lb-row-person > span:last-child { display: grid; gap: 2px; }
.lb-row-alias { color: var(--lb-muted); font-size: 9px; font-weight: 450; }
.lb-pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lb-page-info { margin-right: auto; color: var(--lb-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.lb-page-size { display: inline-flex; align-items: center; gap: 6px; color: var(--lb-muted); font-size: 10px; }
.lb-page-size select { width: auto; min-height: 36px; padding: 6px 8px; }
.lb-note { margin: 18px 1px 0; color: var(--lb-muted); font-size: 10px; line-height: 1.65; }
.lb-error { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; padding: 13px 14px; border: 1px solid color-mix(in srgb, #b42318 30%, var(--lb-line)); border-radius: 12px; color: var(--negative, #b42318); font-size: 12px; }
.lb-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 900px) {
  .lb-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-filters .lb-primary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lb-context, .lb-table-heading { align-items: flex-start; flex-direction: column; }
  .lb-status { align-self: flex-end; }
  .lb-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .lb-filters .lb-primary { grid-column: 1 / -1; }
  .lb-podium-grid { grid-template-columns: 1fr; gap: 10px; }
  .lb-podium-card { padding: 14px; }
  .lb-profile { margin: 10px 0 13px; }
  .lb-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .lb-metric { padding: 9px; }
  .lb-metric span { min-height: 0; font-size: 10px; line-height: 1.25; }
  .lb-metric strong { font-size: 14px; }
  .lb-search { width: 100%; }
  .lb-pagination { justify-content: center; }
  .lb-page-info { width: 100%; margin: 0 0 3px; text-align: center; }
}
@media (max-width: 380px) {
  .lb-filters { grid-template-columns: 1fr; }
  .lb-filters .lb-primary { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .lb *, .lb *::before, .lb *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
