@font-face {
  font-family: Jakarta;
  src: url(/jakarta.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font:
    100% Jakarta,
    system-ui,
    sans-serif;
  color: #163c34;
  background: #f5f8f6;
  --green: #006951;
  --line: #d6e2dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
header,
footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem max(5vw, calc((100vw - 68rem) / 2));
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  font-size: 1.25rem;
  letter-spacing: -0.06em;
}
.brand img {
  object-fit: contain;
}
.divider {
  height: 1.5rem;
  border-left: 1px solid var(--line);
}
header > span:last-of-type {
  color: #526760;
  font-size: 0.92rem;
}
header button {
  margin-left: auto;
}
main {
  width: min(90%, 68rem);
  margin: clamp(2rem, 6vw, 5rem) auto;
  flex: 1;
}
footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 0.9rem;
}
a {
  color: var(--green);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
  margin: 0 0 0.85rem;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0;
}
p {
  line-height: 1.6;
  color: #4e645c;
}
.login {
  max-width: 30rem;
  margin: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 1.35rem;
  padding: clamp(1.5rem, 4vw, 2.7rem);
}
.login h1 {
  font-size: 2.25rem;
}
form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
input,
button {
  font: inherit;
}
label {
  font-weight: 650;
  font-size: 0.92rem;
}
input {
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.82rem;
  border: 1px solid #95afa2;
  border-radius: 0.45rem;
  background: #fff;
  color: inherit;
}
button {
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  background: var(--green);
  padding: 0.7rem 1.15rem;
  color: white;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #ca8504;
  outline-offset: 3px;
}
.quiet,
.codes button {
  background: #e7f2eb;
  color: #145740;
}
.top,
.codes,
.row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top {
  justify-content: space-between;
}
.codes {
  flex-wrap: wrap;
  margin: 0.8rem 0 2rem;
}
.codes button {
  font-size: 0.9rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats article,
.chart {
  background: white;
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 1rem;
}
.stats h2 {
  font-weight: 550;
  font-size: 0.95rem;
}
.stats strong {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.055em;
}
.stats .total {
  background: #124337;
  color: white;
}
.chart {
  margin-top: 1rem;
}
.chart h3 {
  font-size: 1rem;
}
.row {
  display: grid;
  grid-template-columns: 5.5rem 1fr minmax(5rem, auto);
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.row output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 0.65rem;
  background: #edf3ef;
  border-radius: 0.35rem;
  overflow: hidden;
}
.bar {
  display: block;
  height: 100%;
  background: #369476;
}
.negative {
  background: #a64231;
}
#message {
  text-align: center;
}
#updated {
  font-size: 0.9rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 40rem) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .total {
    grid-column: 1/-1;
  }
  .stats article,
  .chart {
    padding: 1rem;
  }
  .row {
    gap: 0.5rem;
  }
  .top h1 {
    margin: 0;
  }
  .login {
    padding: 1.4rem;
  }
  header,
  footer {
    padding: 1rem 5%;
  }
}
