/* =============================================================================
 * AI Panel: mode toggle (Console / Chat tab bar)
 * Ported from scitex-cloud global-ai-chat/03-mode-toggle.css
 * ============================================================================= */

.stx-shell-ai-mode-toggle {
  display: flex;
  gap: 0;
  margin-left: 0;
  margin-right: auto;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.stx-shell-ai-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--text-muted, #8b949e);
  padding: 6px 10px 4px;
  border-radius: 0;
  font-size: 9px;
  line-height: 1;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.stx-shell-ai-mode-btn i {
  font-size: 14px;
}

.stx-shell-ai-mode-btn:hover {
  color: var(--text-primary);
}

.stx-shell-ai-mode-btn.active {
  color: var(--text-primary);
  background: none;
  border-bottom-color: var(--workspace-icon-primary, #5a9a7e);
}

/* View switching — hidden by default, active view fills available height */
.stx-shell-ai-view {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.stx-shell-ai-view.active {
  display: flex;
}
