:root {
  color-scheme: light;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #64748b;
  --border: #d9dee7;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

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

.site-header,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 40px 0 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.about,
.filters,
.table-wrap,
.status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.about-toggle {
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font: inherit;
  font-weight: 700;
}

.about-panel {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}

dt {
  font-weight: 700;
  margin-bottom: 6px;
}

dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hidden {
  display: none;
}

.filters {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
}

.status {
  margin-top: 18px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

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

th:nth-child(4),
th:nth-child(6),
td:nth-child(4),
td:nth-child(6) {
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

th button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.code {
  font-weight: 800;
}

.subtext,
.segments {
  color: var(--muted);
  font-size: 13px;
}

.class-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.value {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header {
    display: block;
    padding-top: 28px;
  }

  .updated {
    margin-top: 12px;
  }

  h1 {
    font-size: 30px;
  }

  dl,
  .filters {
    grid-template-columns: 1fr;
  }
}
