/* R25: small student/form corrections; retain the R10 layouts and palette. */
/* A breadcrumb's current-page span must shrink too, not only its anchor. */
.user-v36 .learning-breadcrumbs > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* File errors belong to the upload control, with a visible state and readable hint. */
.user-v36 .homework-dropzone .field-help {
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.user-v36 .homework-dropzone.is-invalid-field {
  border-style: solid;
  border-color: #923e2f;
  background: #fff5ef;
}
.user-v36 .homework-dropzone > .field-error {
  display: block;
  margin-top: 12px;
  text-align: left;
}
.user-v36 .homework-ai-form > .is-invalid-field textarea {
  border-color: #923e2f;
}
.user-v36 .homework-ai-form .field-error {
  font-size: .875rem;
  line-height: 1.6;
}

/* The action remains easy to hit beside a long filename. */
.user-v36.submission-page .file-list li > span { min-width: 0; }
.user-v36.submission-page .file-list .submission-file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  color: var(--green-dark);
  background: var(--surface);
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
.user-v36.submission-page .submission-file-download:hover {
  background: var(--mint-soft);
  border-color: var(--green);
}
.user-v36 .homework-submitted-files a > small { white-space: nowrap; }
