:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #132d30;
  background: #f3f6f5;
  line-height: 1.45;
  --teal: #125c55;
  --muted: #4e6668;
  --line: #d6e2df;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible, .file-button:focus-within { outline: 3px solid #138c80; outline-offset: 3px; }
.shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.masthead { background: #112f31; color: #fff; }
.masthead-inner, .brand, .page-heading, .panel-heading, .panel-footer, .table-tools, .pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.masthead-inner, .page-heading, .panel-heading, .panel-footer { justify-content: space-between; }
.masthead-inner { min-height: 72px; padding-block: 10px; }
.brand { font-size: 1rem; font-weight: 750; }
.brand-secondary { font-weight: 550; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #9bccbf;
  border-radius: 8px;
  color: #baf1db;
  font-size: 1.2rem;
}
.mode { color: #d0e9e2; font-size: .82rem; white-space: nowrap; }
main { padding-block: 28px 56px; }
.sections { display: flex; gap: 6px; margin-bottom: 22px; }
.sections button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 650;
}
.sections button:hover, .sections button[aria-pressed="true"] { background: #dbece6; color: #104d46; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: 1.12rem; }
.muted { color: var(--muted); font-size: .9rem; }
#csv-help { margin-top: 10px; }
.file-button, .secondary, .search input {
  border-radius: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
}
.file-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 650;
  white-space: nowrap;
}
.file-button:hover { background: #0e4b45; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.secondary { background: #fff; color: var(--teal); }
.secondary:hover:not(:disabled) { background: #edf7f3; }
.search input { width: min(100%, 200px); color: inherit; background: #fff; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.metrics > div, .panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.metrics > div { padding: 15px 18px; }
.metrics dt { color: var(--muted); font-size: .85rem; }
.metrics dd { margin-top: 4px; font-size: 1.75rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.panel-heading, .panel-footer { padding: 16px 18px; }
.source { min-width: 0; overflow-wrap: anywhere; }
.table-tools { flex-wrap: wrap; }
.error { padding: 10px 18px; color: #852f25; background: #fff0ed; }
.table-scroll { overflow: auto; }
.table-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 18px; border-block-end: 1px solid var(--line); vertical-align: top; }
th { background: #eaf2ef; color: #284e4d; font-size: .82rem; }
td { font-size: .9rem; overflow-wrap: anywhere; }
th.numeric, td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.panel-footer { color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .metrics { gap: 6px; }
  .metrics > div { padding: 10px; }
  .metrics dt { font-size: .75rem; }
  .metrics dd { font-size: 1.3rem; }
  th, td { min-width: 110px; padding-inline: 12px; }
  .panel-footer { flex-wrap: wrap; }
}
