.staff-assessment-editor input:not([type="radio"]):not([type="checkbox"]),
.staff-assessment-editor select,
.staff-assessment-editor button {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
.staff-assessment-editor fieldset {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
.staff-assessment-editor label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  #view > .surface:has(.staff-assessment-editor) {
    padding-inline: 14px;
  }
  .surface:has(.staff-assessment-editor) .surface:has(.staff-assessment-editor) {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .staff-assessment-editor {
    width: 100%;
    min-width: 0;
  }
}
.profile-form-readonly {
  width: 100%;
  min-width: 0;
}
.profile-form-readonly .profile-form-readonly__answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
}
.profile-form-readonly .profile-form-readonly__answers:empty {
  display: none;
}
.profile-form-readonly .profile-form-readonly__answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 6px 16px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #dbe4ed);
}
.profile-form-readonly .profile-form-readonly__answer--compact {
  grid-template-columns: minmax(0, 1fr) auto;
}
.profile-form-readonly .profile-form-readonly__answer--full {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
}
.profile-form-readonly dt,
.profile-form-readonly dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.profile-form-readonly dt {
  font-weight: 650;
  line-height: 1.45;
}
.profile-form-readonly dd {
  line-height: 1.55;
  white-space: pre-wrap;
}
.profile-form-readonly .profile-form-readonly__answer--compact dd {
  font-weight: 550;
}
.profile-form-readonly .profile-form-readonly__answer--narrative dd {
  line-height: 1.65;
}
.profile-form-readonly .profile-form-readonly__answer--file a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .profile-form-readonly .profile-form-readonly__answers {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .profile-form-readonly .profile-form-readonly__answer {
    padding: 9px 0;
  }
}

.profile-form-readonly .profile-form-readonly__guidance {
  margin: 6px 0 0;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .profile-source-forms:has(.profile-form-readonly),
  .surface:has(> .profile-source-forms .profile-form-readonly),
  .profile-source-forms .surface:has(> .profile-form-readonly) {
    padding-inline: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* New Source306 v5 views only; original packets and other forms keep their rules. */
.source-consent-editor input:not([type="radio"]):not([type="checkbox"]),
.source-consent-editor select,
.source-consent-editor button,
.surface:has(> .source-consent-readonly) > form input:not([type="radio"]):not([type="checkbox"]),
.surface:has(> .source-consent-readonly) > form select,
.surface:has(> .source-consent-readonly) > form button {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
.source-consent-editor fieldset {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
.source-consent-editor label.check,
.surface:has(> .source-consent-readonly) > form label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .surface:has(.source-consent-editor, .source-consent-readonly) {
    padding-inline: 14px;
  }
  .surface:has(.source-consent-editor, .source-consent-readonly) .surface:has(.source-consent-editor, .source-consent-readonly) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .source-consent-editor,
  .source-consent-readonly {
    width: 100%;
    min-width: 0;
  }
}

/* Source267 v4 only: spacious coordination controls; existing forms unchanged. */
.source267-coordination-editor input:not([type="checkbox"]):not([type="radio"]),
.source267-coordination-editor select,
.source267-coordination-editor button,
.surface:has(> .source267-coordination-readonly) button {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
.source267-coordination-editor fieldset {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
.source267-coordination-editor legend,
.source267-coordination-editor button {
  overflow-wrap: anywhere;
  white-space: normal;
}
.source267-coordination-editor label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  box-sizing: border-box;
}
@media (max-width: 680px) {
  .surface:has(.source267-coordination-editor, .source267-coordination-readonly) {
    padding-inline: 14px;
  }
  .surface:has(.source267-coordination-editor, .source267-coordination-readonly) .surface:has(.source267-coordination-editor, .source267-coordination-readonly) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .source267-coordination-editor,
  .source267-coordination-readonly {
    width: 100%;
    min-width: 0;
  }
  .source267-coordination-editor fieldset {
    padding: 12px 0;
    border-inline: 0;
    border-bottom: 0;
  }
}

/* Source310 v3 upload-only authoring; retained versions keep their original form. */
.staff-contract-editor input,
.staff-contract-editor button,
.staff-contract-editor select {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 680px) {
  .surface:has(.staff-contract-editor, .staff-contract-readonly) { padding-inline: 14px; }
  .surface:has(.staff-contract-editor, .staff-contract-readonly) .surface:has(.staff-contract-editor, .staff-contract-readonly) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .staff-contract-editor, .staff-contract-readonly { width: 100%; min-width: 0; }
}

/* Shared profile form authoring: remove nested mobile padding without changing other surfaces. */
.profile-form-editor {
  width: 100%;
  min-width: 0;
}
.profile-form-editor input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.profile-form-editor select,
.profile-form-editor textarea,
.profile-form-editor button {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}
.profile-form-editor fieldset {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
.profile-form-editor legend,
.profile-form-editor button {
  overflow-wrap: anywhere;
  white-space: normal;
}
.profile-form-editor label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .surface:has(.profile-form-editor) { padding-inline: 14px; }
  .surface:has(.profile-form-editor) .surface:has(.profile-form-editor) {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* Keep only the optional Source242 evidence inside its narrow profile column. */
@media (max-width: 680px) {
  .source242-signature-evidence,
  .source242-signature-evidence .flow,
  .source242-signature-evidence form {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .source242-signature-evidence p {
    overflow-wrap: anywhere;
  }
}
