/* Isolated member-area layout. Loaded after the legacy public stylesheet. */
pre:has(#sofcep-member-profile-app),
pre:has(#sofcep-member-documents-app),
pre:has(.sofcep-member-account),
pre:has(.sofcep-auth-shell) {
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  white-space: normal !important;
}

pre:has(#sofcep-member-profile-app) > code,
pre:has(#sofcep-member-documents-app) > code,
pre:has(.sofcep-member-account) > code,
pre:has(.sofcep-auth-shell) > code {
  display: block !important;
  color: inherit !important;
  font: inherit !important;
  white-space: normal !important;
}

body .sofcep-account-shell {
  margin: 12px auto !important;
  max-width: 920px !important;
  padding: 0 !important;
}

body .sofcep-account-shell > .sofcep-account-nav {
  margin: 0 0 8px !important;
  min-height: 38px !important;
  padding: 4px 6px !important;
}

body .sofcep-account-shell > .sofcep-account-panel {
  min-height: 0 !important;
  padding: 14px 16px !important;
}

body .sofcep-account-shell .sofcep-account-heading,
body .sofcep-account-shell .sofcep-account-heading > * {
  min-height: 0 !important;
}

body .sofcep-account-shell .sofcep-account-heading {
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
}

body .sofcep-account-shell .sofcep-account-kicker {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

body .sofcep-account-shell .sofcep-account-heading h2 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 23px !important;
  line-height: 1.2 !important;
}

body .sofcep-account-shell .sofcep-account-heading p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body .sofcep-profile-page .sofcep-profile-intro {
  align-items: center !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1fr) 250px !important;
  margin: 0 0 10px !important;
  min-height: 0 !important;
  padding: 0 0 10px !important;
}

body .sofcep-profile-page .sofcep-profile-intro .sofcep-account-heading {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .sofcep-profile-page .sofcep-profile-photo-editor {
  gap: 9px !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 7px !important;
}

body .sofcep-profile-page .sofcep-profile-photo-preview {
  height: 58px !important;
  width: 58px !important;
}

body .sofcep-profile-page .sofcep-photo-button {
  min-height: 30px !important;
  padding: 0 9px !important;
}

body .sofcep-profile-page .sofcep-form-section {
  margin: 0 0 8px !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
}

body .sofcep-profile-page .sofcep-form-section h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

body .sofcep-profile-page .sofcep-form-grid {
  gap: 8px 12px !important;
}

body .sofcep-profile-page .sofcep-field,
body .sofcep-profile-page .sofcep-field > * {
  min-height: 0;
}

body .sofcep-profile-page .sofcep-field label {
  margin: 0 0 3px !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

body .sofcep-profile-page .sofcep-field input {
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 9px !important;
}

body .sofcep-profile-page .sofcep-field textarea {
  min-height: 60px !important;
  padding: 7px 9px !important;
}

body .sofcep-documents-page .sofcep-documents-years {
  gap: 8px !important;
}

body .sofcep-documents-page .sofcep-documents-year {
  margin: 0 !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
}

body .sofcep-documents-page .sofcep-documents-year h3 {
  margin: 0 0 7px !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
}

body .sofcep-documents-page .sofcep-documents-group {
  margin: 0 0 8px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body .sofcep-documents-page .sofcep-documents-group h4 {
  margin: 0 0 5px !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

body .sofcep-documents-page .sofcep-document-row {
  min-height: 40px !important;
  padding: 6px 9px !important;
}

@media (max-width: 720px) {
  body .sofcep-profile-page .sofcep-profile-intro {
    grid-template-columns: 1fr !important;
  }

  body .sofcep-profile-page .sofcep-profile-photo-editor {
    max-width: 320px !important;
  }
}

/* ID-scoped reset wins over the legacy KLEO/WPBakery page selectors. */
html body #sofcep-member-profile-app,
html body #sofcep-member-documents-app {
  margin: 8px auto !important;
  padding: 0 !important;
}

html body #sofcep-member-profile-app > .sofcep-account-nav,
html body #sofcep-member-documents-app > .sofcep-account-nav {
  margin: 0 !important;
  min-height: 34px !important;
  padding: 3px 5px !important;
}

html body #sofcep-member-profile-app > .sofcep-account-panel,
html body #sofcep-member-documents-app > .sofcep-account-panel {
  height: auto !important;
  margin: 6px 0 0 !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
}

html body #sofcep-member-profile-app .sofcep-profile-form,
html body #sofcep-member-documents-app .sofcep-documents-years {
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html body #sofcep-member-profile-app .sofcep-profile-intro {
  height: auto !important;
  margin: 0 0 7px !important;
  min-height: 0 !important;
  padding: 0 0 7px !important;
}

html body #sofcep-member-profile-app .sofcep-account-heading,
html body #sofcep-member-documents-app .sofcep-account-heading {
  height: auto !important;
  margin: 0 0 7px !important;
  min-height: 0 !important;
  padding: 0 0 7px !important;
}

html body #sofcep-member-profile-app .sofcep-profile-intro .sofcep-account-heading {
  margin: 0 !important;
  padding: 0 !important;
}

html body #sofcep-member-profile-app .sofcep-account-heading > *,
html body #sofcep-member-documents-app .sofcep-account-heading > * {
  height: auto !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
}

html body #sofcep-member-profile-app .sofcep-profile-photo-editor {
  height: auto !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 6px !important;
}

html body #sofcep-member-profile-app .sofcep-form-section {
  height: auto !important;
  margin: 0 0 6px !important;
  min-height: 0 !important;
  padding: 8px 10px !important;
}

html body #sofcep-member-profile-app .sofcep-form-section h3 {
  height: auto !important;
  margin: 0 0 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html body #sofcep-member-documents-app .sofcep-documents-year {
  height: auto !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 8px 10px !important;
}

html body #sofcep-member-documents-app .sofcep-documents-year h3,
html body #sofcep-member-documents-app .sofcep-documents-group h4 {
  height: auto !important;
  margin: 0 0 5px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html body #sofcep-member-documents-app .sofcep-documents-group {
  height: auto !important;
  margin: 0 0 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
}
