:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2230;
  --muted: #5f6b7d;
  --border: #e2e6ec;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 14px rgba(20, 30, 50, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --card: #1b2029;
    --text: #e8ebf1;
    --muted: #9aa4b5;
    --border: #2a313d;
    --accent: #818cf8;
    --accent-text: #0f1220;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
[hidden] { display: none !important; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--card);
}
.brand { font-weight: 650; letter-spacing: .01em; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
main { max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; }
h1 { font-size: 26px; margin: 0 0 6px; font-weight: 650; }
.sub { color: var(--muted); margin: 0 0 24px; }
.welcome { max-width: 460px; margin: 10vh auto 0; text-align: center; }
.welcome p { color: var(--muted); }
button {
  font: inherit; cursor: pointer; border-radius: 10px; padding: 10px 18px; border: 1px solid transparent;
}
button.primary { background: var(--accent); color: var(--accent-text); font-weight: 600; margin-top: 8px; }
button.ghost { background: transparent; border-color: var(--border); color: var(--text); padding: 6px 12px; }
button:focus-visible, a.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
a.tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 20px 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .12s, border-color .12s;
}
a.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: #fff;
}
.icon img { width: 44px; height: 44px; object-fit: contain; }
.icon.mono { color: #fff; font-weight: 700; font-size: 24px; }
.title { font-weight: 600; }
.desc { color: var(--muted); font-size: 13px; line-height: 1.35; }
.note { color: var(--muted); font-size: 14px; }
.loading { color: var(--muted); text-align: center; margin-top: 10vh; }
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  main { padding: 24px 16px 40px; }
}
