:root {
  --bg: #f6f7f8;
  --surface: #fff;
  --surface-2: #eef0f2;
  --fg: #191c1f;
  --muted: #5c636a;
  --primary: #0f9d58;
  --primary-fg: #f4fff8;
  --border: #e4e7ea;
  --up: #0f9d58;
  --down: #d94032;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 0 0 1px rgba(25, 28, 31, 0.06), 0 1px 2px rgba(25, 28, 31, 0.04);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font);
}
a { color: var(--primary); text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--fg); font-weight: 600; }
.mark {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--primary); color: var(--primary-fg);
  display: grid; place-items: center; font-size: 0.875rem; font-weight: 700;
}
nav.desk { display: none; gap: 0.25rem; }
nav.desk a {
  color: var(--muted); padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
}
nav.desk a:hover, nav.desk a.on { background: var(--surface-2); color: var(--fg); }
.burger {
  width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--fg);
  display: grid; place-items: center;
}
nav.mob { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 0.5rem 1rem 0.75rem; }
nav.mob.open { display: block; }
nav.mob a { display: flex; align-items: center; min-height: 2.75rem; color: var(--fg); font-weight: 500; }
main { padding: 1.5rem 0 2.5rem; }
footer.bot { border-top: 1px solid var(--border); background: var(--surface); padding: 2rem 0; color: var(--muted); font-size: 0.875rem; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 3rem); margin: 0.5rem 0 0; letter-spacing: -0.03em; max-width: 36rem; }
.kicker { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.lede { color: var(--muted); max-width: 36rem; }
.grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  nav.desk { display: flex; }
  .burger { display: none; }
  nav.mob, nav.mob.open { display: none; }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  main { padding: 2.5rem 0; }
}
.card {
  background: var(--surface); border-radius: 0.75rem; padding: 1rem;
  box-shadow: var(--shadow);
}
.card h3, .card h2 { margin: 0; }
.muted { color: var(--muted); font-size: 0.875rem; }
.xs { color: var(--muted); font-size: 0.75rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; background: var(--surface); border-radius: 0.75rem; box-shadow: var(--shadow); }
input[type="number"], input[type="search"], input[type="text"] {
  width: 100%; height: 2.75rem; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0 0.75rem; background: var(--surface); color: var(--fg); font: inherit;
}
label span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); margin-bottom: 0.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 0.5rem;
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow); font-weight: 500;
}
.chip.on { background: var(--primary); color: var(--primary-fg); box-shadow: none; }
.stat { background: var(--surface-2); border-radius: 0.5rem; padding: 0.75rem; }
.stat b { display: block; font-family: var(--mono); font-size: 1.125rem; font-weight: 500; margin-top: 0.25rem; }
.stat b.hi { color: var(--primary); }
.copy {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem;
  border: 0; border-radius: 0.5rem; background: var(--surface-2); font-family: var(--mono); font-size: 0.875rem;
}
.tabs { display: flex; border-bottom: 1px solid var(--border); margin: 0.75rem 0 1rem; }
.tab {
  height: 2.75rem; padding: 0 1rem; border: 0; background: transparent;
  font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent;
}
.tab.on { color: var(--fg); border-bottom-color: var(--primary); }
.btn {
  height: 2.75rem; padding: 0 1.25rem; border: 0; border-radius: 0.5rem;
  background: var(--primary); color: var(--primary-fg); font-weight: 600; white-space: nowrap;
}
.btn:disabled { opacity: 0.4; }
.suggest { position: relative; }
.suggest ul {
  position: absolute; z-index: 8; left: 0; right: 0; max-height: 16rem; overflow: auto;
  margin: 0.25rem 0 0; padding: 0.25rem 0; list-style: none;
  background: var(--surface); border-radius: 0.5rem; box-shadow: var(--shadow);
}
.suggest li button {
  width: 100%; height: 2.5rem; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0.75rem; font-size: 0.875rem; text-align: left;
}
.suggest li button:hover { background: var(--surface-2); }
.field { display: block; }
.field > span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); margin-bottom: 0.25rem; }
.row-search { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.row-search .grow { flex: 1; min-width: 12rem; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
