:root {
  color-scheme: dark;
  font-family: Inter,system-ui,sans-serif;
  background: #0e1310;
  color: #e9f0e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header {
  border-bottom: 1px solid #324137;
  background: #131b16;
}

.bar,main {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}

.bar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #afc0b3;
  font-size: .85rem;
}

.brand {
  font-size: 1.12rem;
  letter-spacing: .13em;
  color: #eff8ed;
}

.brand span {
  color: #b5f17d;
}

main {
  padding-bottom: max(24px,env(safe-area-inset-bottom));
}

.top,.heading,.toolbar,.chart-foot,footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top {
  margin: 28px 0 18px;
}

h1,h2,p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem,5vw,3.4rem);
  letter-spacing: -.065em;
}

h2 {
  margin: 5px 0;
  font-size: clamp(1.35rem,3vw,2rem);
  letter-spacing: -.045em;
}

label,.toolbar,.note,footer,small,.chart-foot,#status {
  font-size: .84rem;
  color: #b4c3b8;
}

select,button {
  color: inherit;
  background: #202b23;
  font: inherit;
  border: 1px solid #435547;
  border-radius: 6px;
  min-height: 38px;
  padding: 4px 10px;
}

select {
  color: #e9f0e9;
  max-width: 100%;
}

button {
  cursor: pointer;
}

button[aria-pressed=true] {
  background: #b7ee80;
  color: #132118;
  border-color: #b7ee80;
}

.chart-panel,.research {
  background: #18201a;
  border: 1px solid #344537;
  border-radius: 14px;
  padding: clamp(16px,3vw,30px);
  margin-bottom: 18px;
}

.eyebrow {
  font: 600 .76rem ui-monospace,monospace;
  color: #b7ee80;
  letter-spacing: .12em;
}

.quote {
  text-align: right;
}

.quote strong {
  display: block;
  font: 600 2rem ui-monospace,monospace;
}

.quote small {
  display: block;
}

.toolbar {
  margin: 22px 0 12px;
}

.toolbar strong {
  color: #d7edc9;
}

#ranges {
  display: flex;
  gap: 4px;
}

canvas {
  display: block;
  width: 100%;
  height: 225px;
}

.chart-foot {
  margin-top: 9px;
  font-family: ui-monospace,monospace;
}

.research p {
  line-height: 1.55;
  max-width: 800px;
  color: #bccbc0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  border: 1px solid #354538;
  background: #354538;
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0 20px;
}

.metrics div {
  padding: 16px;
  background: #121a14;
}

.metrics strong {
  display: block;
  margin-top: 7px;
  font: 600 1.55rem ui-monospace,monospace;
}

.pos {
  color: #b7ee80;
}

.neg {
  color: #ffa495;
}

.scroll {
  max-height: 360px;
  overflow: auto;
}

summary {
  cursor: pointer;
  padding: 8px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
  font-variant-numeric: tabular-nums;
}

th,td {
  text-align: right;
  white-space: nowrap;
  padding: 10px 6px;
  border-bottom: 1px solid #344537;
}

th:first-child,td:first-child {
  text-align: left;
}

.note {
  margin-top: 12px;
}

a {
  color: #b7ee80;
}

#status:not(:empty) {
  margin-bottom: 12px;
}

footer {
  padding: 3px 2px 10px;
}

button:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 2px solid #b7ee80;
  outline-offset: 2px;
}

@media(max-width:620px) {
  .bar,main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .top {
    margin-top: 18px;
  }
  .top>div {
    width: 100%;
  }
  .top select {
    width: calc(100% - 44px);
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .quote {
    text-align: left;
  }
  .toolbar {
    gap: 9px;
  }
  .heading {
    align-items: flex-start;
  }
  canvas {
    height: 185px;
  }
  .quote strong {
    font-size: 1.45rem;
  }
  .chart-foot {
    gap: 6px;
  }
  .chart-foot span {
    min-height: 1em;
  }
}
