.target-motif-status,
.target-motif-field > .submission-field-error {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0.4rem 0 0;
  padding: 0.4em 0.7em;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.target-motif-status {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.target-motif-status:empty {
  display: none;
}

.target-motif-status[data-valid="true"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.target-motif-status[data-valid="true"]::before {
  content: "\2713";
  flex: none;
  font-weight: 700;
}

.target-motif-field > .submission-field-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
