/* Local attempt outcomes: readable context, inline errors and recovery. */
#outcome-form {
  min-width: 0;
  color: #34415a;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#outcome-form .outcome-context {
  min-width: 0;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f5f2fb;
  border: 1px solid #e1d7f1;
  border-radius: 7px;
}

#outcome-form .outcome-context strong {
  display: block;
  color: #49365f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

#outcome-form .outcome-context p {
  margin: 7px 0;
  color: #34415a;
  font-size: 15px;
  line-height: 1.65;
}

#outcome-form .form-help,
#outcome-form .outcome-context small {
  display: block;
  color: #52607a;
  font-size: 13px;
  line-height: 1.7;
}

#outcome-form .field {
  min-width: 0;
  color: #34415a;
  font-size: 15px;
  line-height: 1.6;
}

#outcome-form input,
#outcome-form select,
#outcome-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  font-size: 16px;
  color: #283851;
  background-color: #fff;
  border-color: #bbc5d5;
}

#outcome-form textarea {
  min-height: 115px;
  line-height: 1.65;
  resize: vertical;
}

#outcome-form input[type="datetime-local"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

#outcome-form #outcome-error {
  color: #a13546;
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0;
}

#outcome-form #outcome-error:empty {
  margin: 0;
}

#outcome-form .outcome-recovery {
  margin: 12px 0 18px;
}

#outcome-form [hidden] {
  display: none !important;
}

#outcome-form .button {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

#outcome-form .button.secondary {
  color: #42516c;
}

#outcome-form .form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 480px) {
  #outcome-form .form-footer .button,
  #outcome-form .outcome-recovery .button {
    flex-basis: 100%;
    width: 100%;
    justify-content: center;
  }
}

/* The existing mobile history cards keep the same columns and reading order. */
@media (max-width: 760px) {
  #cati-history tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #cati-history tbody td {
    min-width: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #35435d;
  }

  #cati-history .cell-title {
    font-size: 15px;
    line-height: 1.6;
  }

  #cati-history .cell-subtitle,
  #cati-history tbody td.cell-subtitle,
  #cati-history td[data-label]::before,
  #cati-history .form-help {
    font-size: 13px;
    line-height: 1.65;
    color: #52607a;
  }

  #cati-history .badge {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #cati-history .field {
    min-width: 0;
    font-size: 15px;
    color: #34415a;
  }

  #cati-history select {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    font-size: 16px;
    color: #283851;
  }

  #cati-history .button {
    min-height: 44px;
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
