:root {
  --bg: #0e1117;
  --surface: #161b22;
  --surface-2: #1c2330;
  --border: #2d333b;
  --fg: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --purple: #a371f7;
  --gold: #b39051;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between;
}
h1 { font-size: 20px; margin: 0; }
.subtitle { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
input, select {
  background: var(--surface); color: var(--fg); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; font-size: 13px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.only-live { color: var(--muted); font-size: 13px; display: flex; gap: 4px; align-items: center; }

.grid {
  max-width: 1280px; margin: 0 auto; padding: 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.name { font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; word-break: break-all; }
.name:hover { text-decoration: underline; }
.badge-private, .badge-fork, .badge-archived {
  font-size: 10px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted);
}
.badge-archived { color: var(--yellow); border-color: var(--yellow); }
.deploy { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.deploy.vps { background: rgba(63,185,80,.15); color: var(--green); }
.deploy.vercel { background: rgba(210,153,34,.15); color: var(--yellow); }
.deploy.azure { background: rgba(88,166,255,.15); color: var(--accent); }
.deploy.none { background: var(--surface-2); color: var(--muted); }
.desc { margin: 0; color: var(--muted); font-size: 13px; min-height: 1.4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.lang { display: flex; gap: 5px; align-items: center; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.pushed { margin-left: auto; }
.dashboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.stat { text-align: center; }
.stat-num { display: block; font-weight: 700; font-size: 15px; }
.stat-label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.health { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.health.live .health-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.health.down .health-dot { background: var(--red); }
.health.live { color: var(--green); }
.health.down { color: var(--red); }
a.health-link { color: inherit; text-decoration: none; }
a.health-link:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
