.shell { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }
.header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brand { font-size: 20px; font-weight: 800; color: var(--accent-strong); text-decoration: none; }
.brand span { color: var(--text); }
.theme-toggle { margin-left: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; color: var(--text); }
.search { width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 14px; font-size: 16px; color: var(--text); margin-bottom: 14px; }
.search::placeholder { color: var(--muted); }

/* Pills stretch to fill the row evenly — no ragged trailing gap. */
.nav-pills { display: flex; gap: 8px; margin-bottom: 26px; }
.nav-pills a { flex: 1 1 0; text-align: center; white-space: nowrap;
  padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.nav-pills a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-dropdown { display: none; }

.group { margin-bottom: 26px; }
.group h2 { font-size: 17px; margin: 0 0 14px; text-align: center; }
.group h2 .count { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Tiles grow to fill each row edge-to-edge (killing side dead space), capped so
   lone tiles don't blow up; partial rows center. */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tile { flex: 1 1 150px; max-width: 210px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 10px; text-align: center; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30, 58, 95, .16); }
.tile .icon { font-size: 24px; }
.tile .name { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--accent-strong); }
.tile.coming { opacity: .5; }

@media (max-width: 720px) {
  .nav-pills { display: none; }
  .nav-dropdown { display: block; width: 100%; margin-bottom: 20px; padding: 12px 14px;
    font-size: 16px; font-weight: 700; border-radius: 10px; background: var(--surface);
    border: 1px solid var(--border); color: var(--text); }
  .tile { flex: 1 1 calc(50% - 6px); max-width: calc(50% - 6px); }
}
