/* ═══ TOPBAR ═══ */
.topbar {
  height: 46px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
  gap: 0;
  position: relative;
  z-index: 200;
}

/* ─── Logo ─── */
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 14px;
  flex-shrink: 0;
}
.topbar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(108,142,191,0.15), rgba(240,185,11,0.08));
  border: 1px solid rgba(108,142,191,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.topbar-logo-p {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-accent { color: var(--accent); }
.topbar-logo-sub {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ─── Divider ─── */
.topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}

/* ─── Nav ─── */
.topbar-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  height: 100%;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 14px;
  cursor: pointer;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.topbar-item:hover  { color: #e5e7eb; background: transparent; }
.topbar-item.active { color: #ffffff; border-bottom-color: #3b82f6; background: transparent; }
.topbar-icon  { display: none; }
.topbar-label { font-size: 13px; font-weight: 500; letter-spacing: 0.5px; }

.topbar-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(108,142,191,0.15);
  color: var(--dim);
  min-width: 16px;
  text-align: center;
}
.topbar-badge.alert {
  background: rgba(246,70,93,0.15);
  color: var(--red);
}

/* ─── Right ─── */
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
