.page-mode-toggle-wrapper {
  position: relative;
}

.page-mode-toggle {
  /* inherits from .action-btn */
}

.page-mode-selector-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 160px;
  z-index: var(--z-popover);
  animation: pageModeFadeInScale var(--transition-fast);
}

@keyframes pageModeFadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.page-mode-selector-header {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

.page-mode-selector-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}

.page-mode-list {
  padding: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-mode-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.page-mode-item:hover {
  background-color: var(--color-bg-tertiary);
}

.page-mode-item.active {
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
}

.page-mode-item-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.page-mode-item-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-ui);
}
