:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --badge-bg: #fef3c7;
  --badge-text: #92400e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Menu bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  padding: 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.brand { display: flex; align-items: center; }
.logo { height: 40px; width: auto; display: block; }

.menu { display: flex; gap: 1.25rem; }
.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--text); }
.menu a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Page */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1 { margin: 0 0 0.25rem; font-size: 1.75rem; }
.subtitle { margin: 0 0 2rem; color: var(--muted); }

/* 3 x 3 card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  min-height: 160px;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.85;
}

.card h2 { margin: 0; font-size: 1.1rem; color: var(--muted); }

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

/* Smaller screens */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 1rem; }
  .content { padding: 1.5rem 1rem; }
}
