/* GitHub dark theme palette (canonical via crypto/推特简报/website/style.css) */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-hover: #1c2128;
  --border: #30363d;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
header h1 { font-size: 18px; font-weight: 600; margin: 0; }
.dim { color: var(--text-dim); font-weight: 400; }
.mono { font-family: var(--mono); }

.health {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.health.active { color: var(--green); border-color: var(--green); }
.health.dead   { color: var(--red);   border-color: var(--red); }

main { padding: 16px 24px 60px; max-width: 1400px; margin: 0 auto; }

.grid {
  display: grid; gap: 12px;
  margin-bottom: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
}
.card.wide { margin-bottom: 16px; }
.card h2 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }

.kpi-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  margin: 4px 0 2px;
}
.kpi-sub { font-size: 12px; color: var(--text-dim); }

.pos { color: var(--green); }
.neg { color: var(--red); }
.warn { color: var(--yellow); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table th, table td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table th { font-weight: 600; color: var(--text-dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; }
table td { font-family: var(--mono); }
table .num { text-align: right; }
table tbody tr:hover { background: var(--bg-hover); }

footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 8px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
}
