/* topbar.css */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

body.light .topbar {
  background: rgba(245,245,245,.65);
}

.brand {
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
}

.nav {
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  color: var(--muted);
  transition: all 0.2s;
}

.nav a.active {
  background: rgba(79,124,255,.18);
  color: var(--text);
}