:root {
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e4e4e7;
  --bg: #ffffff;
  --accent: #2563eb;
  --stale: #d97706;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  color: var(--fg);
  background: var(--bg);
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }

.status { font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live    { background: #22c55e; }
.dot-stale   { background: var(--stale); }
.dot-offline { background: #ef4444; }
.dot-unknown { background: #a1a1aa; }

#stale-banner  { background: #fef3c7; border: 1px solid #fbbf24; padding: 0.5rem; border-radius: 4px; margin-bottom: 1rem; }
#offline-banner { background: #f4f4f5; border: 1px solid var(--border); padding: 0.5rem; border-radius: 4px; margin-bottom: 1rem; color: var(--muted); }

.kanban {
  display: grid;
  grid-template-columns: repeat(8, minmax(130px, 1fr));
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.kanban-col { background: #f9fafb; border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; min-height: 160px; }
.kanban-col h3 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem 0; letter-spacing: 0.03em; }
.card { background: white; border: 1px solid var(--border); border-radius: 4px; padding: 0.4rem; margin-bottom: 0.4rem; font-size: 0.8rem; text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--accent); }
.card-sbr { font-weight: 600; color: var(--accent); font-family: ui-monospace, monospace; font-size: 0.7rem; }
.card-title { margin-top: 2px; line-height: 1.2; }
.card-meta { margin-top: 4px; font-size: 0.7rem; color: var(--muted); display: flex; justify-content: space-between; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid white; margin-left: -4px; }
.avatar-stack img:first-child { margin-left: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
section { border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; }
section h2 { font-size: 0.9rem; font-weight: 600; margin: 0.5rem 0; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
section h2:first-child { margin-top: 0; }

ul { list-style: none; padding: 0; margin: 0; }
li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
li:last-child { border-bottom: none; }

.priority-P0 { font-weight: 600; color: #b91c1c; font-size: 0.7rem; margin-right: 0.4rem; }
.priority-P1 { color: #b45309; font-size: 0.7rem; margin-right: 0.4rem; }

.contributor-row { display: flex; justify-content: space-between; cursor: pointer; padding: 0.5rem 0; }
.contributor-row:hover { color: var(--accent); }
.contributor-detail { display: none; padding: 0.5rem 0 0.75rem 1.5rem; font-size: 0.8rem; color: var(--muted); }
.contributor-detail.open { display: block; }
.contributor-detail a { color: var(--fg); text-decoration: none; }
.contributor-detail a:hover { color: var(--accent); }

#contributors { margin-top: 1rem; }
