/* ============================================================
   Component: topbar
   ============================================================ */
.app-topbar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--space-4);
}

.tb-burger {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); color: var(--text);
}
.tb-burger:hover { background: var(--bg); }

.tb-title { font-size: var(--fs-lg); font-weight: 700; white-space: nowrap; }

.tb-search {
  display: none; align-items: center; gap: var(--space-2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px var(--space-4);
  min-width: 280px; color: var(--text-muted);
}
.tb-search svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.tb-search input { border: none; background: none; outline: none; width: 100%; color: var(--text); }

.tb-spacer { flex: 1; }

.tb-icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); color: var(--text-muted);
}
.tb-icon-btn:hover { background: var(--bg); color: var(--text); }
.tb-icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tb-user {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 4px 6px 4px 4px; border-radius: var(--radius-full);
  cursor: pointer;
}
.tb-user:hover { background: var(--bg); }
.tb-avatar {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700;
}
.tb-username { font-size: var(--fs-sm); font-weight: 600; }

@media (min-width: 768px) {
  .tb-search { display: flex; }
}
@media (min-width: 1024px) {
  .tb-burger { display: none; }
  .app-topbar { padding: 0 var(--space-8); }
}
