:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e8eaee;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #4f46e5;
  --ok: #16a34a;
  --ok-bg: #dcfce7;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.head { margin-bottom: 28px; }

.head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .5px;
}

.head-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.head-sub strong {
  color: var(--brand);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
  border-color: #d9dce3;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef0ff;
  color: var(--brand);
  font-size: 20px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.appid {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.empty {
  grid-column: 1 / -1;
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  .wrap { padding: 28px 16px 48px; }
  .head h1 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
}
