/* Consortium partner inline-create modal (the dialog shell, header and actions
   are modals.css's shared M3 dialog), plus the attach-rows layout used on the
   project edit form. */
.cp-modal-error { margin: 0 0 0.75rem; }

/* Attached-partner rows on the project edit form: the partner <select> grows
   and the remove control sits beside it, rather than being pushed to the page
   edge by a grid. */
.cp-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  max-width: 42rem;
  margin-bottom: 0.75rem;
}
.cp-row .form-field { flex: 1 1 auto; }
.cp-row-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem; /* line the controls up with the select, not its label */
}

/* "Add partner" gets a little breathing room from the rows and the lead select. */
.cp-add-partner { margin: 0.25rem 0 0; }

/* The contract-lead select reads as one field, not a full-width bar. */
.cp-lead-field {
  margin-top: 1.5rem;
  max-width: 28rem;
}
