:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #5f6b7d;
  --border: #e2e6ec;
  --accent: #2f6fde;
  --accent-soft: #e8f0fd;
  --ok: #1e8e4f;
  --ok-soft: #e4f5ec;
  --bad: #c9372c;
  --bad-soft: #fbe9e7;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --card: #1d2128;
    --text: #e6e9ee;
    --muted: #9aa4b2;
    --border: #2d333d;
    --accent: #6b9cf0;
    --accent-soft: #233149;
    --ok: #4cc283;
    --ok-soft: #1c3428;
    --bad: #f0786d;
    --bad-soft: #3d2220;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
header.top {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
header.top .inner, main {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}
header.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
header.top a.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; }
nav a:hover, nav a.active { color: var(--accent); }
h1 { font-size: 1.7rem; margin: 24px 0 4px; }
p.lead { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
button, .btn {
  font: inherit;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .btn.secondary { background: transparent; color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 32px 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
@media (max-width: 560px) {
  nav a { margin: 0 12px 0 0; }
  .hide-mobile { display: none; }
}
