:root {
  --bg: #1e1f26;
  --panel: #282a36;
  --panel2: #31333f;
  --line: #3a3d4d;
  --txt: #e6e7ee;
  --muted: #9aa0b4;
  --accent: #5aa0ff;
  --accent2: #3a7bd5;
  --danger: #e0555b;
}

* { box-sizing: border-box }

body {
  margin: 0;
  font: 14px/1.5 system-ui, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #23252f, var(--bg));
  color: var(--txt);
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 5;
}

header #logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px #0006;
}
header h1 { font-size: 17px; margin: 0; font-weight: 600 }
header .sub { color: var(--muted); font-size: 12px }
header .sp { flex: 1 }

button {
  background: var(--panel2);
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
button:hover { filter: brightness(1.15) }
button.primary { background: var(--accent2); border-color: var(--accent) }

.wrap { max-width: 1100px; margin: 0 auto; padding: 30px 26px 60px }

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

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: var(--txt);
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px #0006;
}
.tile .ic {
  width: 88px; height: 88px;
  border-radius: 20px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #12131a;
}
.tile .ic img { width: 100%; height: 100%; object-fit: cover }
.tile .nm { font-weight: 600; font-size: 14px; text-align: center; line-height: 1.25 }
.tile .ds { color: var(--muted); font-size: 11px; text-align: center; margin-top: -6px }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.empty h2 { color: var(--txt); font-weight: 600; margin: 0 0 8px }
.empty code { background: var(--panel2); padding: 2px 6px; border-radius: 5px; color: #cdd3e6 }

.pill {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.pill.ok { color: #66CC5C; border-color: #66CC5C }
.pill.bad { color: var(--danger); border-color: var(--danger) }

.hint { color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.6 }
.hint code { background: var(--panel2); padding: 1px 5px; border-radius: 4px }
