:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --ink: #1c2938;
  --muted: #687585;
  --accent: #365ce6;
  --line: #e6e9ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 max(6%, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
}
.logo {
  background: var(--accent);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-right: 11px;
  font-size: 25px;
}
.brand-dot {
  color: var(--accent);
}
.badge {
  font-size: 12px;
  color: var(--muted);
  background: #f5f6f8;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 30px;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 58px 0 24px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 13px;
}
h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -1.6px;
  font-weight: 700;
}
.subtitle {
  margin: 16px 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.generator {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 28px;
}
.generator-icon {
  align-self: flex-start;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #eef1ff;
  border-radius: 12px;
  font-size: 32px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0;
}
.generator h2 {
  font-size: 17px;
}
.generator p,
.occupancy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0 15px;
}
.generator-content {
  flex: 1;
  min-width: 0;
}
.quantity-label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}
input {
  max-width: 100%;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
}
input:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.button {
  padding: 13px 19px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button span {
  margin-left: 18px;
}
.prototype-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 3px 38px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
}
.dataset {
  font-size: 11px;
  color: var(--muted);
}
.dataset > span {
  color: var(--accent);
  margin-right: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  padding: 24px 22px;
}
.stat-index {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.stat h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 22px 0 8px;
}
.stat .number {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -1.3px;
  color: var(--ink);
}
.number small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.occupancy {
  margin-top: 20px;
  padding: 28px;
}
.occupancy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.occupancy h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.occupancy p {
  margin-bottom: 23px;
}
.occupancy strong {
  font-size: 30px;
  color: var(--accent);
  font-weight: 650;
  letter-spacing: -1px;
}
.occupancy strong span {
  font-size: 17px;
  margin-left: 3px;
}
.meter {
  height: 16px;
  background: #edf0f5;
  border-radius: 5px;
  overflow: hidden;
}
.meter > span {
  display: block;
  width: 19.97%;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.legend {
  margin-top: 17px;
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.legend > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 3px;
}
.occupied {
  background: var(--accent);
}
.empty {
  background: #e5e9f0;
}
.legend b {
  color: var(--ink);
  font-weight: 600;
}
.legend .total {
  margin-left: auto;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 1200px) {
  main {
    padding-left: 6%;
    padding-right: 6%;
  }
}
@media (max-width: 800px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .generator {
    flex-wrap: wrap;
  }
  .button {
    margin-left: 75px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  main {
    padding-top: 35px;
  }
  .topbar {
    height: 70px;
  }
  .generator {
    padding: 20px;
    gap: 15px;
  }
  .generator-icon {
    display: none;
  }
  .button {
    margin-left: 0;
    width: 100%;
  }
  .generator-content {
    flex-basis: 100%;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px 14px;
  }
  .stat .number {
    font-size: 28px;
  }
  .occupancy {
    padding: 20px;
  }
  .occupancy-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .occupancy strong {
    margin-bottom: 15px;
  }
  .legend {
    gap: 12px;
  }
  .legend .total {
    margin-left: 0;
    width: 100%;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}

input[type="number"] {
  width: 220px;
  padding: 11px 13px;
  border: 1px solid #dce1eb;
  border-radius: 8px;
  color: var(--ink);
  background: #f6f7fb;
  font-size: 15px;
}
.button {
  cursor: pointer;
}
#generation-status {
  color: var(--muted);
}
