/* SyncRow — compact status + action buttons at bottom of Changes tab */
.syncRow {
  border-top: 1px solid var(--border);
  padding: 6px 12px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* Status line: branch, ahead/behind, changed count, stash count */
.statusLine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-sm);
  font-family: var(--font-ui);
  color: var(--fg-secondary);
  overflow: hidden;
}

.branch {
  font-weight: 500;
  color: var(--fg-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.detached {
  color: var(--warning);
  font-style: italic;
}

.ahead {
  color: var(--success);
}

.behind {
  color: var(--error);
}

.changed {
  color: var(--fg-muted);
}

.stash {
  color: var(--fg-muted);
}

/* Action buttons row */
.actions {
  display: flex;
  gap: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-secondary);
  font-size: var(--font-xs);
  font-family: var(--font-ui);
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}

.btn:hover:not(:disabled) {
  background: var(--bg-highlight);
  color: var(--fg-primary);
}

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

.btnIcon {
  display: inline-flex;
  align-items: center;
  width: 14px;
  height: 14px;
}

.btnIcon svg {
  width: 14px;
  height: 14px;
}

.btnRunning {
  color: var(--accent);
  border-color: var(--accent);
}

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

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--fg-muted);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

/* Feedback message */
.feedback {
  font-size: var(--font-xs);
  font-family: var(--font-ui);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedbackSuccess {
  color: var(--success);
}

.feedbackError {
  color: var(--error);
}
