.benchmark-results {
  --lb-accent: #3275c9;
  --lb-tint: #edf5ff;
  --lb-border: #d9e4f1;
  --lb-bar: #9db8d8;
}
.happyrobot .benchmark-results {
  --lb-accent: #20231b;
  --lb-tint: #f2f5e7;
  --lb-border: #dfe3d4;
  --lb-bar: #a6afa0;
}
.article-body .lb-disclosure {
  padding: 14px 18px;
  margin: 0 0 24px;
  background: var(--lb-tint);
  border: 1px solid var(--lb-border);
  color: #43546a;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
}
.happyrobot .lb-disclosure { color: #464c3d; }
.lb-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; margin: 26px 0; }
.lb-controls label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.lb-controls label { flex: 0 1 260px; min-width: 210px; }
.lb-select { position: relative; display: block; width: 100%; min-width: 0; }
.lb-select-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 15px;
  border: 1px solid var(--lb-border);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.lb-select-trigger::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.lb-select-trigger:hover { border-color: var(--lb-accent); }
.lb-select-trigger[aria-expanded='true'] { border-color: var(--lb-accent); box-shadow: 0 0 0 3px var(--lb-tint); }
.lb-select-trigger[aria-expanded='true']::after { margin-top: 4px; transform: rotate(225deg); }
.lb-select-trigger:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 3px; }
.lb-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: block;
  padding: 6px;
  max-height: min(330px, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--lb-border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px #171c2420, 0 2px 6px #171c2408;
  color: var(--ink);
  font: 400 14px/1.45 var(--font);
}
.lb-select-menu[hidden] { display: none; }
.lb-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 10px 11px;
  border-radius: 4px;
  cursor: pointer;
}
.lb-select-option:hover, .lb-select-option.active { background: var(--lb-tint); }
.lb-select-option[aria-selected='true'] { color: var(--lb-accent); font-weight: 500; }
.lb-select-option[aria-selected='true']::after { content: '✓'; font-size: 15px; }
.lb-controls select {
  font: 15px/1.5 var(--font);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 32px 8px 12px;
  color: var(--ink);
  background-color: var(--paper);
  max-width: 100%;
}
.lb-chart { border: 1px solid var(--lb-border); border-radius: 4px; padding: 26px 22px 20px; margin: 0; }
.lb-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 24px; font-size: 16px; }
.lb-chart figcaption small { color: var(--muted); font-size: 12px; }
.lb-chart-row { display: grid; grid-template-columns: 165px minmax(0, 1fr) 52px; gap: 16px; align-items: center; margin: 20px 0; font-size: 14px; }
.lb-chart-row strong { font-size: 14px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.lb-chart-label { line-height: 1.4; }
.lb-chart-label small { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; color: var(--muted); }
.lb-track { height: 25px; background: repeating-linear-gradient(90deg, #f0f2f5 0, #f0f2f5 calc(25% - 1px), #dfe4ea calc(25% - 1px), #dfe4ea 25%); overflow: hidden; border-radius: 2px; }
.lb-bar { height: 100%; display: block; background: var(--lb-bar); border-radius: 2px; }
.lb-chart-row.featured .lb-bar { background: var(--lb-accent); }
.happyrobot .lb-chart-row.featured .lb-bar { background: #bdce91; }
.lb-chart-row.featured .lb-chart-label { font-weight: 500; }
.lb-axis { margin-left: 181px; margin-right: 68px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.lb-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; margin: 24px 0 0; }
.lb-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-table caption { text-align: left; padding: 18px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.lb-table th, .lb-table td { padding: 17px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.lb-table thead th { background: #f8f9fb; color: #657080; font-size: 11px; font-weight: 400; }
.lb-table thead th:first-child, .lb-table thead th:nth-child(2), .lb-table tbody th { text-align: left; }
.lb-table tbody th { min-width: 165px; font-weight: 500; }
.lb-table tbody th small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.lb-table tbody tr:last-child > * { border-bottom: 0; }
.lb-table .featured { background: var(--lb-tint); }
.lb-table button { background: transparent; border: 0; color: inherit; padding: 0; font: inherit; cursor: pointer; white-space: nowrap; }
.lb-table button:hover { color: var(--ink); }
.lb-table button span { white-space: pre; }
.lb-table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.lb-download { background: none; border: 0; padding: 0; color: var(--lb-accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.article-body .lb-method p { font-size: 15px; line-height: 1.65; margin: 18px 0 0; }
.lb-method { margin-top: 22px; }
.lb-method summary { font-size: 15px; cursor: pointer; }
.lb-routing { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.lb-routing summary { font-size: 15px; cursor: pointer; }
.article-body .lb-routing p { margin: 18px 0; font-size: 15px; line-height: 1.65; }
.lb-routing-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
.lb-routing table { border-collapse: collapse; width: 100%; min-width: 430px; font-size: 14px; }
.lb-routing caption { text-align: left; padding: 15px; font-size: 12px; color: var(--muted); }
.lb-routing th, .lb-routing td { text-align: left; padding: 14px; border-top: 1px solid var(--line); font-weight: 400; }
.lb-routing thead { background: #f8f9fb; font-size: 12px; color: var(--muted); }
.lb-routing td:last-child, .lb-routing thead th:last-child { text-align: right; }
.article-body .lb-routing .lb-routing-note { font-size: 13px; color: var(--muted); }
.lb-definitions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 22px 0 0; }
.lb-definitions dt { font-size: 14px; font-weight: 500; }
.lb-definitions dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 650px) {
  .lb-controls { gap: 12px; }
  .lb-controls label { flex: 1 1 145px; min-width: 0; }
  .lb-chart { padding: 20px 14px; }
  .lb-chart figcaption { display: grid; gap: 6px; }
  .lb-chart-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px 12px; margin: 20px 0; }
  .lb-chart-label { grid-column: 1; }
  .lb-chart-row strong { grid-column: 2; grid-row: 1; }
  .lb-track { grid-column: 1 / -1; height: 22px; }
  .lb-axis { margin: 0; }
  .lb-definitions { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lb-controls label { flex-basis: 100%; }
  .lb-select-trigger { min-height: 48px; }
}
