:root {
  /* Match the shared PulseFeedIsland's `bg-[var(--bg-primary,...)]` fallback to the campaign warm-dark
     so the sticky filter bar blends into the body instead of showing as a cool-dark strip. */
  --bg-primary: #1a1210;
  --bg: #1a1210;
  --bg-elev: #2a1d1f;
  --bg-elev-2: #332425;
  --line: #3a2825;
  --ink: #fffdf7;
  --ink-soft: #cfb9af;
  --ink-muted: #7a6560;
  --accent: #f8501d;
  --accent-hover: #f44601;
  --pass: #4ade80;
  --pass-soft: rgba(74, 222, 128, 0.15);
  --flag: #f87171;
  --flag-soft: rgba(248, 113, 113, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 150ms;
}

.nav-links a:hover { color: var(--ink); }

.brand-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

a.nav-cta {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background 150ms;
  text-decoration: none;
}

a.nav-cta:hover {
  background: var(--accent-hover);
  color: white;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.loading, .error {
  color: var(--ink-muted);
  text-align: center;
  padding: 80px 0;
}

.error { color: var(--flag); }

.hero {
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-desc {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 720px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.metric {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.metric-label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.reviews h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.muted { color: var(--ink-muted); font-size: 14px; }

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.review {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.verdict {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verdict-pass { background: var(--pass-soft); color: var(--pass); }
.verdict-flag { background: var(--flag-soft); color: var(--flag); }

.flag-cat {
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--bg-elev-2);
  padding: 2px 8px;
  border-radius: 4px;
}

.review-prompt, .review-output {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.review-prompt strong, .review-output strong {
  color: var(--ink);
  font-weight: 600;
}

.reasoning {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.reasoning summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
}

.reasoning p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

/* Recent disagreements section */
.disagreements {
  margin-top: 32px;
}
.disagreements h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--ink);
}
.disagreement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.disagreement {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.dis-trace {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}
.dis-model {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 10px;
}
.dis-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dis-side {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-elev-2);
}
/* No verdict accent on the side panels — colored 'Passed' / 'Flagged'
   text in the head is enough; anything else read as AI-template chrome. */
.dis-side-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.dis-label {
  font-weight: 600;
  font-size: 14px;
}
.dis-label-pass { color: var(--pass); }
.dis-label-flag { color: var(--flag); }
.dis-count { color: var(--ink-muted); font-size: 13px; }
.dis-reviewer-block {
  margin-bottom: 12px;
}
.dis-reviewer-block:last-of-type { margin-bottom: 0; }
.dis-reviewer-head {
  font-size: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.dis-reviewer {
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
  font-size: 12px;
}
.dis-flag-cat {
  font-size: 11px;
  color: var(--ink-muted);
}
.dis-feedback {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  white-space: pre-wrap;
}
@media (max-width: 640px) {
  .dis-split { grid-template-columns: 1fr; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 24px;
  text-align: center;
}
.site-footer p { margin: 0; font-size: 13px; }
