.stats-hero { background: var(--ink); color: white; text-align: center; padding: 60px 0; }
.stats-hero .eyebrow { color: #c8dfbd; margin-bottom: 12px; }
.stats-hero h1 { margin-bottom: 12px; }
.stats-hero p:last-child { color: #e1ebe0; margin: auto; max-width: 650px; }
.stats-content { padding-top: 32px; padding-bottom: 56px; }
.stats-cards, .stats-charts { display: grid; gap: 18px; margin-bottom: 22px; }
.stats-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-card, .stats-panel { border: 1px solid var(--line); background: white; border-radius: 13px; padding: clamp(16px, 3vw, 24px); }
.stats-card strong, .stats-card span { display: block; }
.stats-card strong { color: var(--green); font-size: clamp(25px, 4vw, 38px); line-height: 1.15; margin-bottom: 6px; }
.stats-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.stats-panel h2, .stats-method h2 { font-size: 25px; line-height: 1.2; margin: 0 0 8px; }
.stats-panel > p, .stats-method p { color: var(--muted); font-size: 14px; }
.stats-bars { padding: 0; list-style: none; margin: 18px 0 0; }
.stats-bars li { margin-bottom: 10px; }
.stats-bars li > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.stats-bars strong { white-space: nowrap; }
.stats-bars meter { display: block; width: 100%; height: 12px; }
.stats-bars meter::-webkit-meter-bar { background: #eaf0e4; border: 0; border-radius: 20px; }
.stats-bars meter::-webkit-meter-optimum-value { background: var(--green); border-radius: 20px; }
.stats-bars meter::-moz-meter-bar { background: var(--green); border-radius: 20px; }
.stats-note { background: #eaf0e4; border-radius: 8px; padding: 14px; margin-top: 24px; font-size: 14px; }
.stats-note p { margin: 4px 0 0; }
.stats-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin: 18px 0; }
.stats-controls[hidden] { display: none; }
.stats-controls label { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; }
.stats-controls input, .stats-controls select { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: white; border: 1px solid #bac8b8; border-radius: 6px; padding: 9px; }
.stats-scroll { overflow: auto; max-height: 640px; }
.stats-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.stats-scroll table { border-collapse: separate; border-spacing: 0; min-width: 760px; width: 100%; font-size: 13px; }
.stats-scroll th, .stats-scroll td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px; }
.stats-scroll thead th { position: sticky; top: 0; background: #eaf0e4; }
.stats-scroll tbody th { font-weight: 600; }
.stats-scroll tbody tr:nth-child(even) { background: #f7f8f2; }
.stats-scroll time, .stats-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-number.positive { color: #216449; }
.stats-number.negative { color: #a32e39; }
.stats-method { padding-top: 30px; max-width: 790px; }
nav [aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 700px) {
  .stats-main { padding-top: 44px; }
  .stats-hero { padding: 38px 0; }
  .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats-charts, .stats-controls { grid-template-columns: 1fr; }
}

.stats-perf {
  background: #162b2a;
  color: #f7f8f2;
  border-radius: 13px;
  padding: clamp(17px, 4vw, 30px);
  margin-bottom: 22px;
}
.stats-perf > .eyebrow, .perf-box .eyebrow { color: #a7dab9; margin-bottom: 6px; }
.stats-perf h2 { margin: 0 0 6px; line-height: 1.18; font-size: clamp(27px, 4vw, 38px); }
.perf-intro, .perf-box p { color: #d8e5dd; }
.perf-grid, .perf-details { display: grid; gap: 12px; }
.perf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perf-details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.perf-tile, .perf-box { background: #203b36; border: 1px solid #47665b; border-radius: 10px; padding: clamp(11px, 2vw, 18px); }
.perf-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; line-height: 1.35; }
.perf-tile > span { font-size: 13px; font-weight: 600; }
.perf-tile strong, .perf-benchmark { color: #91e3af; font-size: clamp(19px, 3.4vw, 33px); font-variant-numeric: tabular-nums; }
.perf-tile.down strong { color: #ffaaa7; }
.perf-tile small, .perf-donut small { color: #d2e3d9; font-size: 11px; }
.perf-box h3 { margin: 0 0 10px; line-height: 1.35; }
.perf-box p { font-size: 14px; margin: 0 0 10px; }
.perf-box p:last-child { margin-bottom: 0; }
.perf-box .perf-benchmark { color: #91e3af; font-size: clamp(21px, 3vw, 30px); font-weight: 600; }
.perf-donut { display: grid; place-items: center; width: 118px; aspect-ratio: 1; border-radius: 50%; margin: 12px auto; background: conic-gradient(#91e3af 0 var(--positive-share), #ffaaa7 var(--positive-share) 100%); }
.perf-donut > span { display: grid; align-content: center; justify-items: center; width: 84px; aspect-ratio: 1; border-radius: 50%; background: #203b36; line-height: 1.3; }
.perf-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; font-size: 13px; }
.perf-legend li::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #91e3af; }
.perf-legend li + li::before { background: #ffaaa7; }
@media (max-width: 850px) { .perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .perf-details { grid-template-columns: 1fr; } }

.stats-table-panel { margin-bottom: 22px; }
