/* ── Dev menu bar (development only) ── */
.dev-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-pinned);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: #1e1b4b;
  color: #e0e7ff;
  font-size: 0.6875rem;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  height: 32px;
}

.dev-menu~.app-layout,
.dev-menu~.survey-layout {
  padding-top: 32px;
}

.dev-menu~.app-layout>.sidebar {
  top: 32px;
}

.dev-menu-label {
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  padding: 0.125rem 0.375rem;
  background: rgba(165, 180, 252, 0.15);
  border-radius: 3px;
  flex-shrink: 0;
}

.dev-menu-buttons {
  display: flex;
  gap: 0.25rem;
}

.dev-menu-btn {
  appearance: none;
  border: 1px solid rgba(165, 180, 252, 0.25);
  background: transparent;
  color: #c7d2fe;
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dev-menu-btn:hover {
  background: rgba(165, 180, 252, 0.15);
  border-color: rgba(165, 180, 252, 0.4);
  color: #e0e7ff;
}

.dev-menu-btn--active {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
}

.dev-menu-btn--active:hover {
  background: #4338ca;
}

.dev-menu-btn--clear {
  border-color: rgba(252, 165, 165, 0.3);
  color: #fca5a5;
}

.dev-menu-btn--clear:hover {
  background: rgba(252, 165, 165, 0.15);
  border-color: rgba(252, 165, 165, 0.5);
  color: #fecaca;
}

.dev-menu-spacer {
  flex: 1;
}

.dev-menu-user-switcher {
  position: relative;
}

.dev-menu-current-user {
  appearance: none;
  border: 1px solid rgba(165, 180, 252, 0.25);
  background: rgba(165, 180, 252, 0.1);
  color: #e0e7ff;
  padding: 0.1875rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dev-menu-current-user:hover {
  background: rgba(165, 180, 252, 0.2);
  border-color: rgba(165, 180, 252, 0.4);
}

.dev-menu-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  background: #1e1b4b;
  border: 1px solid rgba(165, 180, 252, 0.2);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 0.25rem;
  z-index: var(--z-dev-dropdown);
  max-height: 320px;
  overflow-y: auto;
}

.dev-menu-user-dropdown.is-open {
  display: block;
}

.dev-menu-user-option {
  appearance: none;
  border: none;
  background: transparent;
  color: #c7d2fe;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.0625rem;
  width: 100%;
  text-align: left;
  transition: background 0.1s ease;
}

.dev-menu-user-option:hover:not(:disabled) {
  background: rgba(165, 180, 252, 0.15);
  color: #e0e7ff;
}

.dev-menu-user-option--active {
  background: rgba(79, 70, 229, 0.3);
  color: #e0e7ff;
  cursor: default;
}

.dev-menu-user-name {
  font-weight: 500;
  line-height: 1.3;
}

.dev-menu-user-email {
  font-size: 0.5625rem;
  color: #a5b4fc;
  opacity: 0.7;
  line-height: 1.3;
}
