:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
}
body {
  margin: 0;
  background: #0b0e13;
  color: #e5e8ef;
}
#app {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
#side {
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #28313d;
  overflow: auto;
}
#main {
  min-width: 0;
}
#ctxbar {
  padding: 16px 28px;
  border-bottom: 1px solid #28313d;
  position: sticky;
  top: 0;
  background: #0b0e13;
  z-index: 3;
  display: flex;
  justify-content: space-between;
}
#view {
  padding: 26px;
}
h1 {
  font-size: 19px;
}
h2 {
  font-size: 23px;
}
nav {
  display: grid;
  gap: 3px;
  margin: 24px 0;
}
nav a {
  padding: 8px;
  color: #a9b5c7;
  text-decoration: none;
}
nav a[aria-current] {
  color: #ffb547;
  background: #1b2029;
}
label {
  display: block;
  margin: 14px 0;
  font-size: 13px;
}
select,
input {
  width: 100%;
  background: #161c25;
  color: #e5e8ef;
  border: 1px solid #384456;
  padding: 8px;
  margin-top: 5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #242d38;
}
th {
  font-size: 12px;
  color: #a9b5c7;
}
button {
  background: #1c2635;
  border: 1px solid #42516a;
  color: #ffd18a;
  padding: 7px 12px;
  cursor: pointer;
}
a {
  color: #ffc065;
}
p {
  line-height: 1.7;
}
#drawer:not([hidden]) {
  display: block;
  position: fixed;
  right: 0;
  top: 0;
  width: min(440px, 100%);
  height: 100%;
  background: #151c27;
  z-index: 20;
  padding: 25px;
  box-shadow: 0 0 0 100vw #0008;
  overflow: auto;
}
#drawer[hidden] {
  display: none;
}
dt {
  color: #a9b5c7;
  font-size: 12px;
  margin-top: 18px;
}
dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.chart {
  width: 100%;
  height: 230px;
  background: #101722;
}
.chart path {
  fill: none;
  stroke: #ffb547;
  stroke-width: 2;
}
.chart circle {
  fill: #ffb547;
  cursor: pointer;
}
.note {
  color: #a9b5c7;
  font-size: 13px;
}
.map {
  height: 580px;
  max-width: 100%;
  background: #101722;
}
.map path {
  stroke: #657186;
  stroke-width: 0.04;
  cursor: pointer;
}
.value {
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.error {
  color: #ff9999;
}
#loading {
  font-size: 12px;
  color: #a9b5c7;
}
@media (max-width: 720px) {
  #app {
    grid-template-columns: 1fr;
  }
  #side {
    position: static;
    width: auto;
    height: auto;
    border: 0;
    padding: 14px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 0;
  }
  #filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  #view {
    padding: 16px;
  }
  #ctxbar {
    padding: 12px;
  }
  table {
    font-size: 13px;
  }
  #drawer:not([hidden]) {
    width: 100%;
  }
}
#drawer:not([hidden]) {
  transform: none;
}
#side {
  transform: none;
  width: auto;
}
@media (max-width: 720px) {
  #side {
    transform: none;
    position: static;
    inset: auto;
    box-shadow: none;
  }
}

#attribution {
  padding: 20px 26px;
  border-top: 1px solid #28313d;
  font-size: 12px;
  color: #a9b5c7;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
