:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #eef2f8;
  background: #10151e;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 24px 32px 40px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 30px;
  border-bottom: 1px solid #313b4d;
}
.brand {
  font-size: 20px;
  color: #eff6ff;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.badge,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #9ae5c9;
  font-weight: 750;
}
.badge {
  border: 1px solid #3b7666;
  border-radius: 20px;
  padding: 6px 10px;
}
.hero {
  padding: 42px 0 24px;
}
h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 18px 0;
}
.intro {
  max-width: 600px;
  color: #b8c4d8;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
button,
.button,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #4a576c;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  background: #182231;
  color: #edf3fb;
}
.button {
  background: #b2f3d8;
  color: #10221b;
  font-weight: 750;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.button:focus-within {
  outline: 2px solid white;
  outline-offset: 3px;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b2f3d8;
  outline-offset: 3px;
}
#source {
  font-size: 12px;
  color: #b8c4d8;
}
#error {
  background: #542e32;
  color: #ffdfe3;
  padding: 12px;
  border-radius: 8px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 24px 0;
}
.filters label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #b8c4d8;
}
select {
  background: #192231;
  border: 1px solid #44516a;
  border-radius: 8px;
  color: #f0f4fc;
  padding: 10px;
  min-width: 210px;
  font-size: 13px;
}
.filters p {
  margin-left: auto;
  color: #b8c4d8;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metrics article,
.panel {
  border: 1px solid #344054;
  border-radius: 12px;
  background: #192231;
  padding: 22px;
}
.metrics article span {
  color: #bdc9dd;
  font-size: 12px;
  display: block;
}
.metrics strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 10px 0;
}
.metrics small {
  font-size: 11px;
  color: #bdc9dd;
}
.metrics article:nth-child(2) strong {
  color: #ffc58d;
}
.panels {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.panel h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.panel p {
  font-size: 13px;
  color: #bdc9dd;
  line-height: 1.7;
  margin: 0 0 20px;
}
.chart {
  display: grid;
  gap: 12px;
}
.bar {
  display: grid;
  grid-template-columns: 115px 1fr 28px;
  align-items: center;
  gap: 12px;
  border: none;
  padding: 0;
  background: none;
  color: #dbe7f8;
  text-align: left;
}
.bar span {
  font-size: 12px;
}
.bar-track {
  height: 10px;
  background: #28384c;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #91d8c0;
  display: block;
  border-radius: 4px;
}
.bar:nth-child(2n) .bar-fill {
  background: #95baf4;
}
.bar strong {
  font-size: 12px;
  text-align: right;
}
.insight {
  background: linear-gradient(135deg, #1e3a34, #192231);
  border-color: #3f6a60;
}
.insight h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 22px 0 16px;
}
.insight .method {
  font-size: 12px;
  border-top: 1px solid #43605b;
  padding-top: 18px;
  margin-bottom: 0;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
td,
th {
  padding: 13px 14px;
  border-bottom: 1px solid #344054;
  text-align: left;
}
th {
  color: #bdc9dd;
  font-weight: 500;
}
td:first-child {
  font-weight: 700;
  color: #eef5ff;
}
td:last-child {
  color: #aeead1;
}
tr[data-late] td:last-child {
  color: #ffc58d;
}
footer {
  color: #aebcd2;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 24px;
  max-width: 740px;
}
a {
  color: #9ae5c9;
}
footer a {
  display: block;
}
@media (max-width: 760px) {
  main {
    padding: 18px;
  }
  .badge {
    font-size: 9px;
  }
  .hero {
    padding-top: 28px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics article {
    padding: 16px;
  }
  .metrics strong {
    font-size: 30px;
  }
  .panels {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label {
    flex: 1;
    min-width: 0;
  }
  select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .filters p {
    width: 100%;
    margin: 0;
  }
  .bar {
    grid-template-columns: 105px 1fr 24px;
  }
  .panel {
    padding: 18px;
  }
}
