.loading {
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px 0;
  text-align: center;
}

.description {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.worktreeList {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 340px;
  overflow-y: auto;
}

.worktreeRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
}

.worktreeRow:hover {
  background: var(--hover-bg);
}

.worktreeSelect {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.worktreeSelect input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.worktreeInfo {
  flex: 1;
  min-width: 0;
}

.worktreeHeader {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nameInput {
  background: var(--chat-input-bg);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  width: 160px;
  outline: none;
}

.nameInput:focus {
  border-color: var(--text-dim);
}

.nameInputInvalid {
  composes: nameInput;
  border-color: var(--status-stopped);
}

.badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--selected-bg);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worktreePath {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sizeBadge {
  composes: badge;
  background: transparent;
  border: 1px solid var(--divider);
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.deleteButton {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}

.deleteButton:hover:not(:disabled) {
  color: var(--status-stopped);
  background: var(--hover-bg);
}

.deleteButton:disabled {
  opacity: 0.4;
  cursor: default;
}

.confirmBox {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--status-stopped);
  border-radius: 6px;
  background: var(--selected-bg);
}

.confirmText {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.confirmActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirmError {
  font-size: 11px;
  color: var(--status-stopped);
  margin: 0 0 8px;
  word-break: break-word;
}
