@font-face {
  font-family: Gotham;
  src: url(/brand.ttf) format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #17232b;
  --muted: #506371;
  --edge: #dce3e8;
  --brand: #126079;
  --wash: #e4f3f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101519;
    --card: #1a2127;
    --ink: #eff5f7;
    --muted: #acbcc5;
    --edge: #303c45;
    --brand: #66c8e7;
    --wash: #203943;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 12px max(5vw, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--edge);
  background: var(--card);
  gap: 14px;
}
.brand {
  font:
    18px Gotham,
    system-ui;
  display: flex;
  align-items: center;
  gap: 10px;
}
main {
  max-width: 1152px;
  margin: auto;
  padding: 36px max(4vw, 20px) 60px;
}
#gate {
  max-width: 480px;
  margin: clamp(40px, 12vh, 130px) auto;
}
h1 {
  font:
    clamp(28px, 4vw, 42px)/1.16 Gotham,
    system-ui;
  margin: 12px 0 18px;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.rule {
  background: var(--brand);
  height: 4px;
  width: 42px;
  border-radius: 4px;
}
p,
.caption {
  color: var(--muted);
}
button,
select,
.primary {
  font: inherit;
  border: 1px solid var(--edge);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
}
.primary {
  display: inline-flex;
  gap: 22px;
  margin: 10px 0;
  background: #126079;
  color: white;
  font-weight: 650;
  border: 0;
  text-decoration: none;
  padding: 12px 20px;
}
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.65;
}
nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav button {
  border-color: transparent;
  background: transparent;
}
nav button[aria-current="page"] {
  background: var(--wash);
  color: var(--brand);
  font-weight: 650;
}
.heading,
#account {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.heading {
  margin: 24px 0;
}
.heading h1 {
  margin: 0;
}
.heading label {
  font-size: 14px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 14px;
}
.metric {
  font:
    clamp(26px, 4vw, 38px) Gotham,
    system-ui;
  display: block;
  margin-top: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: start;
}
th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--edge);
  text-align: start;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
tr:last-child td {
  border: 0;
}
th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.scroll {
  overflow: auto;
}
.chart {
  width: 100%;
  height: 155px;
  color: var(--brand);
}
.bar {
  fill: currentColor;
}
.small {
  font-size: 13px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
}
.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 550px) {
  header {
    padding: 12px 16px;
  }
  main {
    padding: 22px 14px 48px;
  }
  .heading {
    align-items: start;
  }
  .heading label {
    font-size: 0;
  }
  .heading select {
    font-size: 14px;
  }
  .card {
    padding: 14px;
  }
  .brand {
    font-size: 16px;
  }
  #account {
    gap: 5px;
    font-size: 13px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards .card:first-child {
    grid-column: 1/-1;
  }
  .cards .card {
    margin-bottom: 0;
  }
  .cards {
    margin-bottom: 14px;
  }
  button {
    font-size: 14px;
  }
  th,
  td {
    font-size: 14px;
  }
}
