:root {
  color: #18212a;
  background: #eef2f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
textarea {
  font: inherit;
}

.app {
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px;
}

.topbar,
.panel,
.metric {
  border: 1px solid #d4dedb;
  border-radius: 8px;
  background: #ffffff;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.panel {
  padding: 16px;
}

.current {
  display: grid;
  gap: 14px;
}

.sectionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 94px;
  padding: 14px;
}

.metric span,
.eyebrow,
.label {
  display: block;
  margin: 0 0 6px;
  color: #66777a;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  color: #132018;
  font-size: 24px;
  line-height: 1.1;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: 0;
}

.muted {
  margin-top: 8px;
  color: #536468;
  font-size: 15px;
  line-height: 1.42;
}

.small {
  font-size: 13px;
}

.mono {
  overflow-wrap: anywhere;
  color: #24343a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.badge {
  flex: 0 0 auto;
  min-width: 70px;
  border-radius: 999px;
  padding: 8px 10px;
  background: #e8eceb;
  color: #445154;
  text-align: center;
  font-size: 12px;
  font-weight: 760;
}

.badge.good {
  background: #dff4e9;
  color: #0e6540;
}

.badge.warn {
  background: #fff1d5;
  color: #7a5200;
}

.controlRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

button {
  min-height: 48px;
  border: 1px solid #aebfbd;
  border-radius: 8px;
  background: #ffffff;
  color: #172326;
  font-weight: 760;
}

button.primary {
  border-color: #12615a;
  background: #12615a;
  color: #ffffff;
}

button.smallButton {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

button:active {
  transform: translateY(1px);
}

textarea {
  display: block;
  width: 100%;
  min-height: 86px;
  margin-top: 12px;
  border: 1px solid #c8d4d1;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  color: #18212a;
  background: #fbfcfc;
}

.list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  border: 1px solid #dce5e2;
  border-radius: 8px;
  padding: 12px;
  background: #f8faf9;
}

.list strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.list span {
  grid-column: 1 / -1;
  color: #5d6d70;
  font-size: 13px;
}

@media (min-width: 680px) {
  .app {
    padding: 22px;
  }

  .summaryGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .app {
    padding: 10px;
  }

  .topbar {
    flex-direction: column;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 19px;
  }

  .controlRow {
    grid-template-columns: 1fr;
  }
}
