.projects-panel-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 8px;
  flex: 1 1 auto;
  min-height: 0;
  container-type: inline-size;
  --project-row-label-width: 72px;
}

/* Section Header - consistent header for Project/Build sections */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 2px 0;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 50%, transparent);
}

/* Section Labels - sub-headers within panels */
.section-label {
  font-family: var(--vscode-font-family, var(--font-sans));
  font-size: var(--font-size-xxs);
  font-weight: 600;
  color: var(--vscode-descriptionForeground, var(--text-muted));
}

.section-label.has-tooltip {
  position: relative;
  cursor: help;
  display: inline-block;
}

.section-label.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--vscode-editorHoverWidget-background, var(--bg-secondary));
  border: 1px solid var(--vscode-editorHoverWidget-border, var(--border-subtle));
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: var(--font-size-xs);
  color: var(--vscode-editorHoverWidget-foreground, var(--text-primary));
  white-space: normal;
  width: calc(100cqw - 16px);
  max-width: none;
  box-sizing: border-box;
  line-height: 1.4;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease-out;
  transition-delay: 0s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.section-label.has-tooltip:hover::after {
  opacity: 1;
  transition-delay: 0.15s;
}

/* Project Section */
.project-section {
  display: flex;
  flex-direction: column;
}

/* Project Selector Row */
.project-selector-row {
  display: grid;
  grid-template-columns: var(--project-row-label-width) minmax(0, 1fr) auto;
  column-gap: 6px;
  align-items: center;
}

/* Inline section labels - shared style for consistent alignment */
.project-selector-row .section-label,
.build-targets .section-label {
  flex: 0 0 auto;
  justify-self: start;
}

/* Legacy - Project Display (keeping for potential future use) */
.project-display-icon {
  color: var(--ctp-blue);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.project-display-name {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-display-path {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.new-project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.new-project-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Project Combobox - True input-style combobox */
.project-combobox {
  position: relative;
  flex: 1;
  min-width: 0;
}

.combobox-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-xs);
  min-height: 26px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  transition: background-color 0.15s ease;
}

.combobox-input-wrapper:hover {
  background: var(--bg-hover);
}

.combobox-input-wrapper.open,
.combobox-input-wrapper:focus-within {
  background: var(--bg-tertiary);
}

.combobox-icon {
  color: var(--ctp-blue);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.combobox-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  outline: none;
}

.combobox-input::placeholder {
  color: var(--text-muted);
}

.combobox-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.combobox-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.chevron {
  transition: transform 0.15s ease;
}

.chevron.open {
  transform: rotate(180deg);
}

/* Combobox Dropdown */
.combobox-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--vscode-dropdown-background, #1e1e2e);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.combobox-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
}

.combobox-empty {
  padding: var(--spacing-sm);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* Combobox option - single-line layout: icon | name | path | check */
.combobox-option {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 6px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 0.1s ease;
}

.combobox-option:hover,
.combobox-option.highlighted {
  background: var(--bg-tertiary);
}

.combobox-option.active {
  background: color-mix(in srgb, var(--ctp-blue) 15%, var(--bg-tertiary));
}

.combobox-option.highlighted.active {
  background: color-mix(in srgb, var(--ctp-blue) 25%, var(--bg-tertiary));
}

.combobox-option .option-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.combobox-option-name {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combobox-option-path {
  flex: 1;
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.check-icon {
  color: var(--ctp-blue);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.combobox-footer {
  padding: 4px;
  border-top: 1px solid var(--border-subtle);
}

.combobox-create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 6px;
  border: 1px dashed var(--border-default);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.combobox-create-btn:hover {
  border-color: var(--ctp-blue);
  color: var(--ctp-blue);
  background: color-mix(in srgb, var(--ctp-blue) 8%, transparent);
}

/* Builds Section - uses subtle vertical separation */
.builds-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-xs);
  border-top: 1px solid color-mix(in srgb, var(--border-subtle) 50%, transparent);
  flex: 1 1 auto;
  min-height: 0;
}

/* Build targets (target selector) */
.build-targets {
  display: grid;
  grid-template-columns: var(--project-row-label-width) minmax(0, 1fr) auto;
  column-gap: 6px;
  align-items: center;
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 50%, transparent);
}

.builds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
  padding: 2px 0;
}

.builds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: var(--ctp-yellow);
  color: var(--ctp-base);
  font-size: var(--font-size-xxs);
  font-weight: 600;
}

/* Target Selector - combobox style */
.target-selector-row {
  display: flex;
  gap: var(--spacing-xs);
  align-items: stretch;
}

.target-combobox {
  position: relative;
  flex: 1;
  min-width: 0;
}

.target-combobox-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 var(--spacing-xs);
  min-height: 26px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  overflow: hidden;
}

.target-combobox-trigger:hover:not(:disabled) {
  background: var(--bg-hover);
}

.target-combobox-trigger.open {
  background: var(--bg-tertiary);
}

.target-combobox-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.target-combobox-trigger .target-icon {
  color: var(--ctp-blue);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.target-trigger-name {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.target-combobox-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.target-combobox-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--vscode-dropdown-background, #1e1e2e);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.target-combobox-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 2px;
}

.target-option {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 6px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 0.1s ease;
}

.target-option:hover,
.target-option.highlighted {
  background: var(--bg-tertiary);
}

.target-option.active {
  background: color-mix(in srgb, var(--ctp-blue) 15%, var(--bg-tertiary));
}

.target-option .option-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.target-option-name {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.target-option-entry {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.create-target-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.create-target-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.create-target-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.target-selector-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Project Description - inline text like package summaries */
.project-description {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 2px 0;
  margin-top: 2px;
}

.project-description .description-text {
  flex: 1;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-description .description-placeholder {
  color: var(--text-muted);
  font-style: italic;
  cursor: pointer;
}

.project-description .description-placeholder:hover {
  color: var(--text-secondary);
}

.project-description .description-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all 0.15s ease;
}

.project-description:hover .description-edit-btn {
  opacity: 1;
}

.project-description .description-edit-btn:hover {
  color: var(--ctp-blue);
}

.project-description.editing {
  padding: 0;
}

.project-description .description-input {
  width: 100%;
  padding: 4px 6px;
  font-size: var(--font-size-xs);
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--ctp-blue);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 32px;
  font-family: inherit;
  outline: none;
}

.project-description .description-input::placeholder {
  color: var(--text-muted);
}

/* Build Controls - Build (2x) + MFG Data (1x) */
.build-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  padding-top: var(--spacing-xs);
  border-top: 1px solid var(--border-subtle);
}

/* Global actions row - Build All (2x) and MFG Data (1x) below project selector */
.global-actions-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  margin-top: var(--spacing-xs);
}

.global-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ato-orange);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.global-action-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ato-orange) 10%, var(--bg-tertiary));
  color: var(--ato-orange);
}

.global-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.global-action-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Secondary global action - not orange outlined */
.global-action-btn.secondary {
  border-color: var(--border-subtle);
}

.global-action-btn.secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

/* Action buttons row - tab-bar style layout */
.build-actions-row {
  display: flex;
  gap: 0;
  padding: 0;
  height: 28px;
  min-height: 28px;
  width: 100%;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: fit-content;
  height: 100%;
  padding: 0 12px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.action-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.action-btn .action-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-btn:hover:not(:disabled) {
  background: var(--bg-hover) !important;
  color: var(--text-primary);
}

.action-btn.primary {
  color: var(--ato-orange) !important;
}

.action-btn.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ato-orange) 12%, transparent) !important;
  color: var(--ato-orange) !important;
}

.action-btn.primary.needs-migration {
  color: var(--ctp-yellow, #f9e2af) !important;
}

.action-btn.primary.needs-migration:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ctp-yellow, #f9e2af) 12%, transparent) !important;
  color: var(--ctp-yellow, #f9e2af) !important;
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Vertical divider between buttons */
.action-divider {
  width: 1px;
  height: 12px;
  align-self: center;
  background: var(--border-subtle);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Migration error display */
.migration-error {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-top: 6px;
  background: color-mix(in srgb, var(--ctp-red, #f38ba8) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ctp-red, #f38ba8) 40%, transparent);
  border-radius: var(--radius-sm);
  color: var(--ctp-red, #f38ba8);
  font-size: var(--font-size-xs);
}

.migration-error svg {
  flex-shrink: 0;
}

.migration-error .error-message {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.migration-error .dismiss-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  opacity: 0.7;
}

.migration-error .dismiss-btn:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--ctp-red, #f38ba8) 20%, transparent);
}

/* Hide labels when container is narrow */
@container (max-width: 280px) {
  .action-btn .action-label {
    display: none;
  }

  .action-btn {
    padding: 0 8px;
  }
}

/* Legacy - keep for backwards compatibility */
.build-outputs {
  display: none;
}

.control-btn {
  display: none;
}

/* Build Queue - matches Variables panel table styling */
.build-queue-section {
  margin-top: 2px;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.build-queue-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 3px 0;
  border: none;
  background: transparent;
  color: var(--vscode-descriptionForeground, var(--text-muted));
  font-family: var(--vscode-font-family, var(--font-sans));
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.build-queue-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.toggle-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.toggle-chevron.open {
  transform: rotate(180deg);
}

.build-queue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  margin-left: auto;
  border-radius: 7px;
  background: var(--ctp-yellow);
  color: var(--ctp-base);
  font-size: var(--font-size-xxs);
  font-weight: 600;
}

.build-queue-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.build-queue-empty {
  padding: var(--spacing-xs);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Build queue items - expandable with stages */
.build-queue-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.build-queue-item.expanded {
  background: var(--bg-tertiary);
}

.build-queue-item .build-queue-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.build-queue-item .build-queue-header:hover {
  background: var(--bg-tertiary);
}

.build-queue-item.expanded .build-queue-header:hover {
  background: var(--bg-secondary);
}

.build-queue-item.building .build-queue-header {
  background: var(--ato-orange-subtle);
}

.build-queue-item.queued {
  opacity: 0.7;
}

.build-expand-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.build-expand-icon.open {
  transform: rotate(180deg);
}

.build-queue-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.build-queue-target {
  font-size: var(--font-size-xs);
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.build-queue-stage {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.build-failed-hint {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  margin-left: var(--spacing-sm);
  padding-left: var(--spacing-sm);
  border-left: 1px solid var(--border-subtle);
}

.build-failed-hint .show-logs-link {
  color: var(--ctp-red);
  text-decoration: underline;
  cursor: pointer;
}

.build-failed-hint .show-logs-link:hover {
  color: var(--text-primary);
}

.build-queue-status {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-queue-meta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  gap: 6px;
}

.build-queue-counter {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-queue-time {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-queue-progress {
  width: 48px;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.build-queue-progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--ctp-yellow) 0%,
    var(--ato-orange) 50%,
    var(--ctp-yellow) 100%
  );
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Glowing effect for active progress bar */
.build-queue-item.building .build-queue-progress {
  box-shadow: 0 0 8px rgba(249, 226, 175, 0.3);
}

.build-queue-item.building .build-queue-progress-bar {
  box-shadow: 0 0 6px rgba(249, 226, 175, 0.5);
}

/* Build complete animations */
@keyframes build-complete-success {
  0% {
    background: rgba(166, 227, 161, 0.3);
    box-shadow: 0 0 12px rgba(166, 227, 161, 0.4);
  }
  50% {
    background: rgba(166, 227, 161, 0.15);
    box-shadow: 0 0 6px rgba(166, 227, 161, 0.2);
  }
  100% {
    background: rgba(166, 227, 161, 0.08);
    box-shadow: none;
  }
}

@keyframes build-complete-failed {
  0% {
    background: rgba(243, 139, 168, 0.3);
    box-shadow: 0 0 12px rgba(243, 139, 168, 0.4);
  }
  50% {
    background: rgba(243, 139, 168, 0.15);
    box-shadow: 0 0 6px rgba(243, 139, 168, 0.2);
  }
  100% {
    background: rgba(243, 139, 168, 0.08);
    box-shadow: none;
  }
}

@keyframes build-complete-warning {
  0% {
    background: rgba(249, 226, 175, 0.3);
    box-shadow: 0 0 12px rgba(249, 226, 175, 0.4);
  }
  50% {
    background: rgba(249, 226, 175, 0.15);
    box-shadow: 0 0 6px rgba(249, 226, 175, 0.2);
  }
  100% {
    background: rgba(249, 226, 175, 0.08);
    box-shadow: none;
  }
}

/* Apply completion animation - triggered via .just-completed class */
.build-queue-item.success.just-completed {
  animation: build-complete-success 0.6s ease-out forwards;
}

.build-queue-item.failed.just-completed {
  animation: build-complete-failed 0.6s ease-out forwards;
}

.build-queue-item.warning.just-completed {
  animation: build-complete-warning 0.6s ease-out forwards;
}

/* Status icon pop animation for completion */
@keyframes status-icon-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.build-queue-item.just-completed .status-icon {
  animation: status-icon-pop 0.4s ease-out forwards;
}

.build-queue-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.1s ease;
}

.build-queue-cancel:hover {
  background: var(--ctp-red);
  color: var(--ctp-base);
}

/* Build stages list */
.build-stages {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px 6px 20px;
  margin-top: 2px;
  border-top: 1px solid var(--border-subtle);
}

.build-stages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 4px 4px;
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-stages-title {
  font-weight: 600;
  color: var(--text-secondary);
}

.build-stages-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.build-stages-total {
  color: var(--text-muted);
}

.build-stages-empty {
  padding: 2px 4px;
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-stage {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  font-size: var(--font-size-xxs);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.build-stage:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.build-queue-logs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.1s;
}

.build-queue-header:hover .build-queue-logs-btn {
  opacity: 1;
}

.build-queue-logs-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}


.build-stage .stage-icon {
  flex-shrink: 0;
  width: 10px;
  text-align: center;
}

.build-stage .stage-icon.success {
  color: var(--ctp-green);
}

.build-stage .stage-icon.failed {
  color: var(--ctp-red);
}

.build-stage .stage-icon.warning {
  color: var(--ctp-yellow);
}

.build-stage .stage-icon.running,
.build-stage .status-icon.running,
.build-stage .status-icon.building {
  color: var(--ato-orange);
}

.build-stage .stage-icon.skipped,
.build-stage .stage-icon.pending {
  color: var(--text-muted);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.build-stage .stage-name {
  flex: 1;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-stage .stage-time {
  flex-shrink: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-stage.success .stage-name {
  color: var(--text-secondary);
}

.build-stage.failed .stage-name,
.build-stage.error .stage-name {
  color: var(--ctp-red);
}

.build-stage.warning .stage-name {
  color: var(--ctp-yellow);
}

.build-stage.running .stage-name,
.build-stage.building .stage-name {
  color: var(--ato-orange);
}

/* New Project/Target Forms */
.new-project-form,
.new-target-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ctp-blue);
  background: var(--bg-secondary);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.form-close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(243, 139, 168, 0.1);
  border: 1px solid var(--ctp-red);
  color: var(--ctp-red);
  font-size: var(--font-size-xs);
  line-height: 1.4;
}

.form-error svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-field label {
  font-size: var(--font-size-xxs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field label .required {
  color: var(--ctp-red);
}

.form-path-input {
  display: flex;
  gap: 4px;
}

.form-path-input input {
  flex: 1;
  min-width: 0;
}

.form-browse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.form-browse-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--ctp-blue);
}

.form-browse-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ctp-blue);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field textarea {
  resize: vertical;
  min-height: 40px;
}

.form-hint {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-style: italic;
}

.form-hint.status-exists {
  color: var(--ctp-green);
}

.form-hint.status-create {
  color: var(--ctp-yellow);
}

.form-hint.status-error {
  color: var(--ctp-red);
}

/* Entry field with autocomplete */
.entry-field .entry-input-wrapper {
  position: relative;
}

.entry-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

.entry-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--font-size-xs);
  text-align: left;
  cursor: pointer;
}

.entry-suggestion:hover,
.entry-suggestion.highlighted {
  background: var(--bg-tertiary);
}

.entry-suggestion .suggestion-name {
  font-weight: 500;
  color: var(--text-primary);
}

.entry-suggestion .suggestion-file {
  font-size: var(--font-size-xxs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 2px;
}

.form-btn {
  padding: 5px 10px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.form-btn.secondary {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
}

.form-btn.secondary:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-btn.primary {
  border: 1px solid var(--ctp-blue);
  background: var(--ctp-blue);
  color: var(--ctp-base);
}

.form-btn.primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

.form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Build Status Icons */
.status-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.status-icon.success {
  color: var(--ctp-green);
}

.status-icon.failed {
  color: var(--ctp-red);
}

.status-icon.warning {
  color: var(--ctp-yellow);
}

.status-icon.cancelled {
  color: var(--text-muted);
}

/* Build queue item status - subtle backgrounds like Variables panel */
.build-queue-item.success {
  background: rgba(166, 227, 161, 0.08);
}

.build-queue-item.success:hover {
  background: rgba(166, 227, 161, 0.15);
}

.build-queue-item.failed {
  background: rgba(243, 139, 168, 0.08);
}

.build-queue-item.failed:hover {
  background: rgba(243, 139, 168, 0.15);
}

.build-queue-item.warning {
  background: rgba(249, 226, 175, 0.08);
}

.build-queue-item.warning:hover {
  background: rgba(249, 226, 175, 0.15);
}

.build-queue-item.cancelled {
  opacity: 0.6;
}

/* Spinner animation */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Legacy styles for backwards compatibility */
.active-project-header,
.create-project-btn,
.active-project-row,
.active-project-select {
  display: none;
}
