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

body {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #557267;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 32px;
}

.controls {
  display: flex;
  gap: 8px;
}

input,
button {
  height: 40px;
  border: 1px solid #c9d0ca;
  border-radius: 8px;
  background: #ffffff;
  color: #18231f;
  font: inherit;
  padding: 0 12px;
}

button {
  background: #256f5b;
  color: #ffffff;
  border-color: #256f5b;
  font-weight: 700;
}

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

.metrics article,
.panel {
  background: #ffffff;
  border: 1px solid #dce2dc;
  border-radius: 8px;
}

.metrics article {
  padding: 16px;
}

.metrics span {
  display: block;
  color: #66736e;
  font-size: 13px;
  margin-bottom: 8px;
}

.metrics strong {
  font-size: 28px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e9e5;
}

#status {
  color: #66736e;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0ed;
}

th {
  color: #66736e;
  font-size: 13px;
}

td:nth-child(2),
td:nth-child(3),
th:nth-child(2),
th:nth-child(3) {
  text-align: right;
}

@media (max-width: 720px) {
  .topbar,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

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