:root {
  --bg: #0b0f14;
  --card: #121a24;
  --border: #1e2a3a;
  --text: #e8eef6;
  --muted: #8fa3bc;
  --pass: #22c55e;
  --fail: #ef4444;
  --warn: #f59e0b;
  --skip: #64748b;
  --accent: #38bdf8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 1.25rem; }
header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.sub { color: var(--muted); margin: 0; font-size: 0.9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
button, .btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
}
button.primary, .btn.primary { background: #0ea5e9; border-color: #0284c7; color: #041018; font-weight: 600; }
.status-bar {
  padding: 0.65rem 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.status-bar.pass { border-color: #166534; background: #052e1622; }
.status-bar.fail { border-color: #991b1b; background: #450a0a33; }
.status-bar.loading { border-color: var(--border); color: var(--muted); }
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.section { margin-bottom: 1.25rem; }
.section h2 { font-size: 1rem; margin: 0 0 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
}
.metric .label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.metric .value { font-size: 1.35rem; font-weight: 600; margin-top: 0.15rem; word-break: break-word; }
.metric .value.small { font-size: 1rem; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge.pass { background: #14532d; color: #bbf7d0; }
.badge.fail { background: #7f1d1d; color: #fecaca; }
.badge.stale { background: #78350f; color: #fde68a; }
.badge.skip { background: #334155; color: #cbd5e1; }
.proof-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.proof-row:last-child { border-bottom: none; }
.proof-id { font-weight: 700; color: var(--accent); }
.proof-detail { color: var(--muted); font-size: 0.85rem; }
footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
footer a { color: var(--accent); }
.raw { background: #05080c; padding: 1rem; overflow: auto; font-size: 0.75rem; border-radius: 0.375rem; max-height: 24rem; }
.hidden { display: none; }
.institutional-banner {
  background: linear-gradient(90deg, #0c4a6e, #164e63);
  border: 1px solid #155e75;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
