:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #191b1f;
  --muted: #687076;
  --line: #d9d6cc;
  --accent: #167c80;
  --accent-strong: #0f595c;
  --warn: #b45309;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
}

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

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 20px 48px;
}

.hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  padding: 44px 0 32px;
}

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

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}

.status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 18px;
}

.status div {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.status div:first-child {
  padding-top: 0;
}

.status div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

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

.metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metrics span {
  display: block;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 8px;
}

.metrics p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 0;
}

.panel {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 26px;
}

.panelHeader {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.signals {
  display: grid;
  gap: 12px;
}

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

.sourceGroup,
.signal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sourceGroup h3,
.signal h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.sourceGroup ul {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.45;
  list-style: none;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 0;
}

.sourceGroup li {
  overflow-wrap: anywhere;
}

.sourceCount {
  color: var(--accent-strong);
  display: block;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 12px;
}

.sourceMuted {
  color: var(--muted);
  margin-bottom: 0;
}

.signal p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.signalMeta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
}

.signalMeta a {
  color: var(--accent-strong);
}

.empty {
  background: #fff8e8;
  border: 1px solid #efd9a0;
  border-radius: 8px;
  color: var(--warn);
  line-height: 1.6;
  padding: 18px;
}

@media (max-width: 760px) {
  .hero,
  .metrics,
  .sourceGrid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .panelHeader {
    align-items: stretch;
    flex-direction: column;
  }
}
