:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #627084;
  --line: #d9e0e8;
  --blue: #2563eb;
  --green: #17803d;
  --amber: #b7791f;
  --red: #c24132;
  --violet: #6d28d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 48px) 22px;
  background: #102033;
  color: #fff;
}

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

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 10px 0 0;
  color: #d6e4f3;
  font-size: 17px;
  line-height: 1.45;
}

.links {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.links a {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

main {
  width: min(1280px, calc(100% - 32px));
  margin: 22px auto 40px;
}

.proof,
.summary,
.meta,
.controls,
.table-wrap {
  margin-bottom: 18px;
}

.proof {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof h2 {
  margin: 0;
  font-size: 20px;
}

.proof ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof li {
  padding: 10px 12px;
  border-left: 4px solid var(--blue);
  background: #f1f6ff;
  border-radius: 4px;
  font-weight: 650;
}

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

.metric {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span,
.meta span,
.controls span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.metric--ok {
  border-top: 4px solid var(--green);
}

.metric--warn {
  border-top: 4px solid var(--amber);
}

.metric--bad {
  border-top: 4px solid var(--red);
}

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

.meta div,
.controls label {
  min-width: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meta strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid #bac6d3;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.controls label:first-child {
  grid-column: span 2;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

th {
  background: #edf2f7;
  color: #354253;
  font-size: 12px;
  text-transform: uppercase;
}

th button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-transform: inherit;
}

tbody tr:hover {
  background: #f8fbff;
}

.status {
  display: inline-block;
  min-width: 76px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.status--healthy {
  background: var(--green);
}

.status--stale {
  background: var(--amber);
}

.status--missing {
  background: var(--violet);
}

.status--anomaly {
  background: var(--red);
}

.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.flag {
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef2f6;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

@media (max-width: 860px) {
  .topbar,
  .proof,
  .meta,
  .controls {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

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

  .controls label:first-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 20px, 1280px);
  }

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