:root {
  color-scheme: light;
  --ink: #1d2522;
  --muted: #637169;
  --line: #d9dfdb;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --green: #0f766e;
  --blue: #255d8f;
  --amber: #9a5b00;
  --shadow: 0 18px 44px rgba(29, 37, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 32px;
  align-items: end;
  padding: 42px 0 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.status-panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-panel span,
.status-panel small {
  display: block;
}

.status-panel span {
  font-size: 52px;
  font-weight: 800;
  color: var(--green);
}

.status-panel small {
  color: var(--muted);
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}

.metric-grid article,
.toolbar,
.table-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
}

.metric-grid article {
  padding: 16px;
}

.metric-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-grid strong {
  font-size: 17px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 220px));
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 11px;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.downloads a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
}

.table-wrap {
  margin-bottom: 40px;
  overflow: hidden;
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.table-meta strong {
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f5f1;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td a {
  color: var(--blue);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  color: #fff;
  font-weight: 800;
}

.badge-a {
  background: var(--green);
}

.badge-b {
  background: var(--amber);
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .metric-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 980px;
  }
}
