.topnav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.topnav-brand {
  margin: 0;
  font: 700 18px/1 var(--font-display);
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.topnav-brand b { color: var(--accent); font-weight: 700; }

.topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s, border-color .12s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

.topnav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tax-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.tax-btn svg { display: block; }
.tax-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 479px) {
  .topnav-inner { gap: 14px; padding: 0 12px; }
  .topnav-brand { font-size: 16px; }
  .nav-link { padding: 0 6px; font-size: 12px; }
}

@media (max-width: 359px) {
  .topnav-inner { gap: 10px; padding: 0 8px; }
  .topnav-brand { font-size: 14px; }
  .nav-link { padding: 0 5px; font-size: 11px; }
}
