:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --panel: #ffffff;
  --text: #25211b;
  --muted: #6b655d;
  --line: #ded7ca;
  --accent: #176b6b;
  --accent-soft: #d9eeee;
  --warn: #9a4f18;
  --danger: #9f2f2f;
  --danger-soft: #fae6e2;
  --success: #2f6d3e;
  --success-soft: #e4f1e6;
  --pending: #7a5a16;
  --pending-soft: #f7edcf;
}

* {
  box-sizing: border-box;
}

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

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

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.page-header p:last-child {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
}

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

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.stats dd {
  margin-top: 6px;
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.word-cloud-section {
  display: grid;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  gap: 6px;
}

.section-header .eyebrow {
  margin: 0;
}

h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.word-cloud-item {
  display: inline-flex;
  min-height: 32px;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 750;
  line-height: 1.2;
}

.word-cloud-item-1 {
  font-size: 0.95rem;
}

.word-cloud-item-2 {
  font-size: 1.1rem;
}

.word-cloud-item-3 {
  font-size: 1.3rem;
}

.word-cloud-item-4 {
  font-size: 1.55rem;
}

.word-cloud-item-5 {
  font-size: 1.85rem;
}

.word-count {
  color: var(--muted);
  font-size: 0.75em;
  font-weight: 700;
}

.report-list {
  display: grid;
  gap: 16px;
  padding-top: 28px;
}

.report {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-denied {
  background: #fff8f6;
  border-left: 6px solid var(--danger);
  border-color: #e7b8ae;
}

.report-removed {
  background: #f8fcf8;
  border-left: 6px solid var(--success);
  border-color: #b8d7bf;
}

.report-pending {
  background: #fffaf0;
  border-left: 6px solid var(--pending);
  border-color: #e5cf8d;
}

.report-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.report-header h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.badge-review {
  background: #f6e4c8;
  color: var(--warn);
}

.badge-reason {
  background: #f1ede4;
  color: var(--muted);
}

.username {
  color: var(--text);
}

.result-pill {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.result-pill-denied {
  background: var(--danger-soft);
  color: var(--danger);
}

.result-pill-removed {
  background: var(--success-soft);
  color: var(--success);
}

.result-pill-pending {
  background: var(--pending-soft);
  color: var(--pending);
}

blockquote {
  margin: 16px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  color: #3b352d;
  font-size: 1.15rem;
}

.report-details {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metadata-facts,
.metadata-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
}

.metadata-facts {
  grid-template-columns: 1fr;
}

.metadata-timeline div,
.metadata-facts div {
  min-width: 0;
}

.metadata-facts dd,
.metadata-timeline dd {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.metadata-timeline dd {
  color: #3b352d;
}

.duration {
  display: inline-flex;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 700;
}

.source-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 28px 0;
  }

  .page-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats,
  .report-details {
    grid-template-columns: 1fr;
  }

  .metadata-facts {
    grid-template-columns: 1fr;
  }

  .report {
    padding: 18px;
  }

  .report-header {
    display: grid;
  }

  .result-pill {
    width: fit-content;
  }

  .word-cloud-item-5 {
    font-size: 1.45rem;
  }
}
