:root {
  --bg: #f5f2ea;
  --ink: #171717;
  --muted: #6d675c;
  --line: #d7d0c2;
  --panel: #fffdf7;
  --accent: #0f766e;
  --accent-2: #b45309;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Hiragino Sans", sans-serif;
}

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

.topbar,
.section-heading,
.metrics,
form {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 74px);
  line-height: 0.95;
}

h2 {
  font-size: 24px;
}

.status-pill {
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-weight: 800;
  background: #e7c46b;
}

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

.metrics article {
  min-height: 104px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metrics span,
td span,
small,
.section-heading p {
  color: var(--muted);
}

.metrics strong {
  font-size: 38px;
  line-height: 1;
}

.workbench {
  background: var(--panel);
  border: 1px solid var(--line);
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading > p {
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td strong,
td span,
td small,
td a {
  display: block;
}

td small {
  margin-top: 4px;
  line-height: 1.45;
}

.score {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #f7d778;
  font-weight: 900;
}

a {
  color: var(--accent);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

form {
  gap: 8px;
  align-items: stretch;
}

select,
button {
  min-height: 36px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

select {
  min-width: 116px;
  padding: 0 8px;
}

button {
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent);
}

@media (max-width: 760px) {
  .topbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

