.site-header .dashboard-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  background: var(--bg-button-primary);
  color: var(--text-button-primary);
  transition: background 0.15s;
}
.site-header .dashboard-btn:hover {
  background: var(--bg-button-primary-hover);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}
.nav-dropdown-trigger:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}
.nav-dropdown-trigger .caret { font-size: 0.625rem; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 4px;
  z-index: 100;
}
.nav-dropdown-menu-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu-inner a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-dropdown-menu-inner a:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.org-switcher-item--active {
  color: var(--text-primary) !important;
  font-weight: 500;
}

/* Mobile nav — base styles (hidden on desktop) */
.mobile-only { display: none; }
.mobile-menu-close { display: none; }
.mobile-menu-header { display: none; }
.mobile-separator {
  height: 1px;
  background: var(--border-default);
  margin: 0.5rem 0;
}
.mobile-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.mobile-theme-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 1.25rem 0.5rem;
}
.mobile-theme-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mobile-theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.mobile-theme-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.mobile-theme-btn svg { flex-shrink: 0; }

/* Hamburger dropdown — hidden on desktop */
.hamburger-dropdown { display: none; }

@media (max-width: 768px) {
  /* Base mobile visibility */
  .mobile-only { display: block; }
  .mobile-theme-switcher.mobile-only { display: flex; }
  .mobile-section-label {
    display: block;
    padding: 0.75rem 1.25rem 0.25rem;
  }

  /* App-specific mobile hides */
  .auth-section > .theme-toggle { display: none !important; }
  .user-menu-trigger span { display: none; }
  .user-menu-trigger .caret { display: none; }

  /* Base mobile menu header */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 0.75rem;
  }
  .mobile-menu-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .mobile-menu-header .mobile-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Base mobile menu close button */
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 10;
  }
  .mobile-menu-close:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
  }

  /* Hamburger dropdown — full-screen overlay */
  .hamburger-dropdown {
    display: block;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
  }
  .hamburger-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .hamburger-dropdown.open .nav-dropdown-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    z-index: 1000;
    background: var(--bg-surface);
  }
  .hamburger-dropdown .nav-dropdown-menu-inner {
    position: relative;
    min-width: unset;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 1rem;
    overflow: visible;
  }
  .hamburger-dropdown .nav-dropdown-menu-inner a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
  }
  .hamburger-dropdown .nav-dropdown-menu-inner a:hover {
    background: var(--bg-surface-hover);
  }
  /* Hamburger-specific overrides (differ from base) */
  .hamburger-dropdown .mobile-menu-header {
    justify-content: space-between;
  }
  .hamburger-dropdown .mobile-menu-close {
    position: static;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* User dropdown — full-screen overlay */
  .user-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .user-dropdown.open .nav-dropdown-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    z-index: 1000;
    background: var(--bg-surface);
  }
  .user-dropdown .nav-dropdown-menu-inner {
    min-width: unset;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 1rem;
    overflow: visible;
  }
  .user-dropdown .nav-dropdown-menu-inner a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
  }
  .user-dropdown .nav-dropdown-menu-inner a:hover {
    background: var(--bg-surface-hover);
  }

  /* Hide desktop nav and theme toggle on mobile */
  .site-nav { display: none !important; }
  .header-right > .theme-toggle { display: none !important; }
  .header-left { gap: 0.75rem !important; }
}
