.topnav { background: var(--navy-dark); color: white; padding: 12px 28px; min-height: 70px; display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-logo { width: 32px; height: 32px; background: var(--red); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.brand-sub { color: #9CA3AF; font-weight: 500; font-size: 12px; margin-left: 4px; }

/* Feature switcher (replaces static brand when >1 feature is registered) */
.feature-switcher { position: relative; }
.feature-switcher-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 12px 6px 6px;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.feature-switcher-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.feature-switcher-btn .caret { color: #9CA3AF; font-size: 11px; margin-left: 2px; }
.feature-switcher-btn .brand-sub { font-weight: 500; font-size: 12px; }

.feature-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: white; color: var(--text);
  border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.24);
  z-index: 200;
  display: none;
}
.feature-menu.open { display: block; }
.feature-menu a {
  display: block; padding: 10px 12px; border-radius: 6px;
  text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 600;
  transition: background 0.12s;
}
.feature-menu a .sub { display: block; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 2px; }
.feature-menu a:hover { background: var(--bg); }
.feature-menu a.active { background: var(--bg); color: var(--navy); }

.nav-tabs { display: flex; gap: 4px; }
.nav-tab { padding: 7px 16px; border-radius: 7px; color: #D1D5DB; text-decoration: none; font-size: 13px; font-weight: 500; transition: all 0.15s; }
.nav-tab.active { background: rgba(255,255,255,0.12); color: white; font-weight: 600; }
.nav-tab:hover { background: rgba(255,255,255,0.08); color: white; }

.nav-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.badge-internal { background: rgba(255,255,255,0.08); color: #D1D5DB; padding: 4px 9px; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }

.user-pill { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 10px; background: rgba(255,255,255,0.06); border-radius: 999px; cursor: pointer; border: none; color: inherit; font-family: inherit; transition: background 0.15s; }
.user-pill:hover { background: rgba(255,255,255,0.12); }
.user-pill > .user-text { text-align: left; }
.user-name { font-size: 12px; color: white; }
.user-role { font-size: 11px; color: #9CA3AF; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--indigo)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 11px; flex-shrink: 0; }
