:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f6;
  color: #17211d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

h2 {
  font-size: 1rem;
}

.eyebrow {
  margin-bottom: 8px;
  color: #b3372d;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted,
td {
  color: #62706a;
}

button,
input {
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  font: inherit;
}

button {
  min-height: 42px;
  padding: 0 14px;
  background: #17211d;
  color: white;
  font-weight: 850;
  cursor: pointer;
}

button:hover {
  background: #b3372d;
}

input {
  width: min(420px, 100%);
  min-height: 42px;
  padding: 0 12px;
  background: white;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel,
.card {
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 25px rgba(23, 33, 29, 0.06);
}

.panel {
  padding: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.card {
  padding: 14px;
}

.card span {
  display: block;
  color: #62706a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 9px 6px;
  border-bottom: 1px solid #edf2ef;
  text-align: left;
  vertical-align: top;
}

th {
  color: #17211d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ok {
  color: #167149;
  font-weight: 850;
}

.warn {
  color: #b3372d;
  font-weight: 850;
}

@media (max-width: 820px) {
  header,
  .grid {
    display: block;
  }

  header button {
    margin-top: 14px;
  }

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

  .grid .panel + .panel {
    margin-top: 12px;
  }
}
