#ghCard {
  margin-bottom: 1rem;
}
.gh-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
}
.gh-card.has-bad {
  border-color: #fca5a5;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08);
}
.gh-head {
  font-weight: 700;
  color: var(--text-main, #1e293b);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.gh-head i {
  color: var(--primary, #1e3a8a);
}
.gh-sub {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}
.gh-badge {
  background: #b91c1c;
  color: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.76rem;
}
.gh-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.gh-row {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fbfcfe;
}
.gh-row.offline {
  background: #fef2f2;
  border-color: #fecaca;
}
.gh-row.never {
  background: #f8fafc;
}
.gh-gate b {
  font-size: 0.95rem;
}
.gh-gate span {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}
.gh-gate .gh-site {
  background: #eef2f7;
  border-radius: 6px;
  padding: 0 6px;
}
.gh-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.gh-st,
.gh-dev {
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.gh-st.on {
  background: #dcfce7;
  color: #166534;
}
.gh-st.offl {
  background: #b91c1c;
  color: #fff;
}
.gh-st.never {
  background: #e2e8f0;
  color: #475569;
}
.gh-dev.ok {
  background: #f0fdf4;
  color: #15803d;
}
.gh-dev.bad {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
}
.gh-dev.off {
  background: #f1f5f9;
  color: #64748b;
}
.gh-sub2 {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
}
.gh-row.offline .gh-sub2 {
  color: #991b1b;
}
