body.benchmark {
  margin: 0;
  background: var(--site-background, #f3f6f8);
  color: #172532;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}
.benchmark main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.2rem max(1rem, 3vw) 5rem;
}
.benchmark header.bench-head {
  background: var(--site-dark, #19384c);
  color: white;
  padding: 1.5rem max(1rem, 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bench-head h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.12;
}
.benchmark .bench-head {
  border-bottom: 4px solid var(--site-primary, #30708c);
}
.bench-head .site-logo {
  max-width: 150px;
  max-height: 50px;
  object-fit: contain;
}
.bench-head .site-brand,
.bench-head nav,
.bench-actions,
.score-line,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.bench-head a {
  color: white;
}
.benchmark main a {
  color: var(--site-dark, #164769);
  text-decoration: underline;
}
.benchmark h2,
.benchmark h3 {
  line-height: 1.2;
  margin: 0.2rem 0 0.8rem;
  color: var(--site-dark, #17394c);
}
.benchmark .panel,
.benchmark details.bench-section {
  background: var(--site-surface, #fff);
  border: 1px solid #bccbd2;
  border-radius: 12px;
  padding: clamp(0.9rem, 2vw, 1.5rem);
  margin: 1rem 0;
}
.benchmark details.bench-section > summary {
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--site-dark, #17394c);
}
.benchmark .hint,
.benchmark small {
  color: #485863;
  font-size: 0.92rem;
}
.benchmark input:not([type='checkbox']),
.benchmark select,
.benchmark textarea {
  box-sizing: border-box;
  font: inherit;
  max-width: 100%;
  border: 1px solid #879ca8;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  background: white;
  color: #12232f;
}
.benchmark .filter-row {
  align-items: end;
}
.benchmark label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}
.benchmark label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.6rem 0;
  font-weight: 400;
}
.benchmark label.check input {
  flex: 0 0 auto;
  margin-top: 0.38rem;
  width: 1.1rem;
  height: 1.1rem;
}
.benchmark button,
.benchmark .button {
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 650;
  padding: 0.55rem 1rem;
  background: var(--site-dark, #183f55);
  color: white;
  cursor: pointer;
  text-decoration: none;
}
.benchmark button.secondary,
.benchmark .button.secondary {
  background: #fff;
  color: #193548;
  border-color: #a2b4bc;
}
.benchmark button:disabled {
  opacity: 0.55;
  cursor: default;
}
.benchmark [hidden] {
  display: none !important;
}
.benchmark :focus-visible {
  outline: 3px solid #2268a3;
  outline-offset: 2px;
}
.benchmark .error {
  color: #942225;
  font-weight: 650;
}
.benchmark #message:not(:empty) {
  position: sticky;
  top: 0.35rem;
  z-index: 5;
  background: #fff;
  border: 1px solid #b2c4cd;
  border-radius: 7px;
  padding: 0.65rem 1rem;
}
.benchmark .rank {
  border-radius: 1rem;
  padding: 0.15rem 0.65rem;
  color: #17232d;
  font-size: 0.86rem;
  font-weight: 700;
}
.benchmark .score-line {
  gap: 0.35rem 0.8rem;
  margin: 0.65rem 0;
}
.benchmark .score-line strong {
  font-variant-numeric: tabular-nums;
}
.benchmark .metric-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.35fr) minmax(6rem, 0.65fr) minmax(9rem, 1fr);
  gap: 0.65rem 1rem;
  align-items: center;
  border-top: 1px solid #d7e0e4;
  padding: 0.65rem 0;
}
.metric-row input {
  width: 100%;
}
.metric-row small {
  display: block;
}
.benchmark .table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.benchmark table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.benchmark th,
.benchmark td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid #d7e0e4;
  text-align: left;
  white-space: nowrap;
}
.benchmark th {
  color: #3a5360;
}
.benchmark .fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 0.9rem 0;
}
.benchmark .share-code {
  max-width: 9rem;
  height: auto;
}
.benchmark .share-link {
  overflow-wrap: anywhere;
}
.benchmark .subsection {
  margin-top: 1.1rem;
}
.benchmark .editor-row {
  padding: 0.8rem 0;
  border-top: 1px solid #cbd6da;
}
.benchmark .chart {
  display: block;
  width: 100%;
  max-height: 13rem;
  color: var(--site-dark, #17384b);
}
.benchmark .chart text {
  fill: currentColor;
  font: 12px system-ui;
}
@media (max-width: 640px) {
  .benchmark .metric-row {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 0.65fr);
  }
  .metric-row .metric-target {
    grid-column: 1/-1;
  }
  .benchmark .filter-row > * {
    max-width: 100%;
  }
}
@media print {
  .benchmark .no-print,
  .benchmark header nav,
  #message {
    display: none !important;
  }
  .benchmark main {
    padding: 0;
    max-width: none;
  }
  .benchmark .panel,
  .benchmark details.bench-section {
    border: 0;
    padding: 0.4rem;
    margin: 0.35rem 0;
  }
  .metric-row {
    break-inside: avoid;
  }
  .benchmark details::details-content {
    display: contents;
  }
  .benchmark .table-scroll {
    overflow: visible;
  }
}
