:root {
  --paper: #f7f6f1;
  --ink: #182c30;
  --green: #245e52;
  --line: #d9ded6;
  --muted: #607273;
  --accent: #c27343;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header,
main,
footer {
  width: min(1280px, calc(100% - 64px));
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.hero {
  padding: 68px 0 46px;
  max-width: 850px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.055em;
  line-height: 1.15;
  margin: 0 0 28px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 22px;
}
.intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button:hover,
.button:hover {
  border-color: var(--green);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
label.button:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.source {
  font-size: 12px;
  color: var(--accent);
  margin: 18px 0 0;
}
#error {
  color: #ab352c;
}
.workspace {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  padding: 38px 0;
}
.controls {
  border-right: 1px solid var(--line);
  padding-right: 30px;
}
.controls label {
  display: block;
  font-size: 12px;
  margin: 18px 0;
  color: var(--muted);
}
input,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.stat {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  font-size: 27px;
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.legend {
  font-size: 11px;
  color: var(--muted);
}
.chart {
  margin: 4px 0 32px;
}
.chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 130px;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  margin: 15px 0;
}
.bar-track {
  height: 17px;
  background: #e6e9e2;
  border-radius: 2px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: var(--green);
}
.over .bar {
  background: #a8b0aa;
}
.chart-value {
  text-align: right;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
  text-align: left;
}
caption {
  text-align: left;
  font-weight: 600;
  padding: 0 0 12px;
}
th {
  color: var(--muted);
  font-weight: 500;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  padding-left: 0;
}
.status {
  color: var(--green);
}
.status.over {
  color: #89563a;
}
.next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: 64px 0;
}
.next p {
  color: var(--muted);
  max-width: 550px;
}
.next ol {
  list-style: decimal-leading-zero;
  padding-left: 30px;
  margin: 0;
}
.next li {
  padding: 0 0 18px 10px;
}
.next strong,
.next span {
  display: block;
}
.next span {
  font-size: 13px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 25px 0 38px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .controls {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
  .controls h2,
  .controls > .eyebrow,
  .controls > .muted {
    grid-column: 1/-1;
  }
  .controls label {
    margin: 0;
  }
  .next {
    gap: 36px;
  }
}
@media (max-width: 560px) {
  header,
  main,
  footer {
    width: calc(100% - 32px);
  }
  header {
    gap: 14px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  .hero {
    padding-top: 42px;
  }
  .summary {
    gap: 12px;
  }
  .stat strong {
    font-size: 21px;
  }
  .chart-heading {
    display: block;
  }
  .chart-row {
    grid-template-columns: 95px 1fr 92px;
    gap: 8px;
  }
  .next {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
  }
  footer {
    display: block;
  }
  .controls {
    gap: 16px;
  }
  .legend {
    display: block;
    margin-bottom: 18px;
  }
}

input[hidden]{display:none}
