:root {
  color-scheme: light;
  --ink: #0b0e12;
  --muted: #596170;
  --line: #e1e4e8;
  --orange: #ff620b;
  --action: #009daf;
  --action-hover: #007f90;
  --blue: #3566a8;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  gap: 20px;
}
a {
  color: var(--muted);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand strong {
  color: var(--ink);
  font-weight: 750;
}
.brand span {
  color: #687181;
  font-weight: 400;
}
header > a:last-child {
  font-size: 15px;
}
main {
  max-width: 1600px;
  margin: auto;
}
.intro {
  padding: 42px 4% 0;
}
h1 {
  font-size: clamp(36px, 4.35vw, 66px);
  line-height: 1.1;
  letter-spacing: -2.4px;
  margin: 0 0 10px;
  font-weight: 750;
}
.subtitle {
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1.4;
  color: #363d48;
  margin: 0 0 32px;
}
.actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
button {
  line-height: 1.2;
  font-family: inherit;
  font-size: 20px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 56px;
  padding: 14px 36px;
  border-radius: 10px;
  background: var(--action);
  color: #fff;
  min-width: 280px;
}
button:not(.secondary):hover {
  background: var(--action-hover);
}
.secondary:hover {
  filter: brightness(0.96);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #225eb0;
  outline-offset: 5px;
}
button:focus-visible {
  outline-color: #008494;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  min-width: 0;
  font-size: 16px;
}
button[hidden],
[hidden] {
  display: none !important;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
}
#status {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
  min-height: 21px;
}
#status.error {
  color: #b63216;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 8px 4% 34px;
}
.metrics > div {
  padding: 4px 12% 4px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.metrics > div:first-child {
  padding-left: 0;
  border: 0;
}
.metrics h2 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 8px;
}
.metrics output {
  font-size: clamp(36px, 3.25vw, 50px);
  line-height: 1.1;
  display: block;
  font-weight: 500;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.metrics span {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  font-weight: 650;
  margin: 0 0 12px;
}
.chart-section {
  margin: 0 4% 44px;
}
.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.chart-heading p {
  margin: 0;
  font-size: 13px;
  display: flex;
  gap: 20px;
}
.down-key {
  color: #b94300;
}
.up-key {
  color: var(--blue);
}
.chart {
  height: 270px;
  position: relative;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#empty-chart {
  position: absolute;
  left: 65px;
  right: 0;
  top: 45%;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.details {
  border-top: 1px solid var(--line);
  padding: 28px 4% 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
}
.details > div + div {
  padding-left: 8%;
  border-left: 1px solid var(--line);
}
.details h2 {
  font-size: 18px;
}
.details p,
dl {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 16px;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
summary {
  font-size: 14px;
  margin-top: 18px;
  color: var(--muted);
  cursor: pointer;
}
details p {
  font-size: 14px !important;
  margin-top: 10px !important;
}
@media (min-width: 1600px) {
  header {
    padding-left: max(4%, calc((100vw - 1472px) / 2));
    padding-right: max(4%, calc((100vw - 1472px) / 2));
  }
}
@media (max-width: 640px) {
  header {
    padding: 0 22px;
    height: 60px;
  }
  .intro {
    padding: 32px 22px 0;
  }
  h1 {
    letter-spacing: -1.4px;
    font-size: 39px;
    max-width: 360px;
  }
  .subtitle {
    font-size: 19px;
    margin-bottom: 26px;
    max-width: 320px;
  }
  button {
    min-width: 0;
    width: 100%;
    font-size: 18px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .note {
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
    margin: 24px 22px 28px;
  }
  .metrics > div {
    padding-left: 24px;
  }
  .metrics > div:nth-child(3) {
    padding-left: 0;
    border: 0;
  }
  .metrics output {
    font-size: clamp(28px, 8.3vw, 38px);
  }
  .chart-section {
    margin: 0 22px 28px;
  }
  .chart {
    height: 240px;
  }
  .chart-heading {
    flex-wrap: wrap;
    gap: 0;
  }
  .chart-heading p {
    margin-bottom: 8px;
  }
  h2 {
    font-size: 18px;
  }
  #empty-chart {
    left: 64px;
    font-size: 12px;
  }
  .details {
    padding: 24px 22px 30px;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .details > div + div {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  dl {
    grid-template-columns: 120px 1fr;
    font-size: 14px;
  }
  .details p {
    font-size: 14px;
  }
}
