body.social-confirm-page > .body {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

/* Let the white main fill the shared growing wrapper on short account pages. */
body.social-confirm-page > .body > .ds-page-content {
  display: flex;
  flex-direction: column;
}

body.social-confirm-page .social-confirm {
  width: 100%;
  display: flex;
  flex: 1 0 auto;
  align-items: flex-start;
  padding: clamp(64px, 7vw, 104px) var(--ft-shell-pad) 80px;
  background: #fff;
}

body.social-confirm-page .social-confirm-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

body.social-confirm-page .social-confirm h1 {
  margin: 0;
  color: var(--ft-ink);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.04em;
}

body.social-confirm-page .social-confirm p {
  margin: 22px 0 0;
  color: #2f3b40;
  font-size: 20px;
  line-height: 1.55;
}

body.social-confirm-page .social-confirm form {
  margin-top: 28px;
}

body.social-confirm-page .social-confirm-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid var(--ft-green);
  border-radius: 8px;
  background: var(--ft-green);
  color: var(--ft-on-green);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

body.social-confirm-page .social-confirm-action:hover,
body.social-confirm-page .social-confirm-action:focus-visible {
  border-color: var(--ft-green-dark);
  background: var(--ft-green-dark);
  color: var(--ft-on-green);
}

body.social-confirm-page .ds-footer {
  margin-top: auto;
}

body.social-confirm-page .social-confirm-action:active {
  border-color: var(--ft-green-active);
  background: var(--ft-green-active);
}

@media (max-width: 991px) {
  body.social-confirm-page > .body {
    min-height: calc(100vh - 72px);
  }
}

@media (max-width: 767px) {
  body.social-confirm-page .social-confirm {
    padding: 52px 16px 64px;
  }

  body.social-confirm-page .social-confirm h1 {
    font-size: 38px;
  }

  body.social-confirm-page .social-confirm p {
    font-size: 17px;
  }
}

/* Account utility pages. Keep the shared shell and marketing pages untouched. */
body.account-recovery-page .social-confirm-inner { width: min(680px, 100%); }
body.account-recovery-page .social-confirm h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em; }
body.account-recovery-page .social-confirm p { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
body.account-recovery-page .social-confirm form { margin-top: 24px; }
body.account-recovery-page .login > label { display: block; margin-bottom: 8px; color: var(--ft-ink); font-size: 14px; font-weight: 600; }
body.account-recovery-page .login .input-row { display: block; margin: 0 0 20px; }
body.account-recovery-page .login .input-wrap { width: 100%; }
body.account-recovery-page .login input:not([type="hidden"]) { width: 100%; min-height: 48px; border: 1px solid var(--ft-line); border-radius: 8px; padding: 12px 16px; }
body.account-recovery-page .login input:focus-visible { border-color: var(--ft-green); outline: 2px solid rgba(var(--ft-green-rgb), .24); outline-offset: 2px; }
body.account-recovery-page .login .input-wrap.error input { border-color: #b42318; }
body.account-recovery-page .social-confirm .google-policy { font-size: 12px; color: var(--ft-muted); }
body.account-recovery-page .social-confirm .ds-btn { margin: 20px 0 0; text-transform: none; }

.ds-account-settings { padding: 48px 0 64px; }
.ds-account-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.ds-account-heading h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 750; color: var(--ft-ink); }
.ds-account-heading p, .ds-account-section-heading p { margin: 0; color: var(--ft-muted); font-size: 16px; line-height: 1.6; }
.ds-account-heading > a { display: inline-flex; align-items: center; min-height: 44px; }
.ds-account-settings .ds-account-section { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 40px; padding: 28px; margin-bottom: 24px; border: 1px solid var(--ft-line); border-radius: 12px; background: #fff; }
.ds-account-section h2 { margin: 0 0 10px; color: var(--ft-ink); font-size: 20px; line-height: 1.4; font-weight: 700; }
.ds-account-fields { min-width: 0; }
.ds-account-field { min-width: 0; margin: 0 0 20px; }
.ds-account-field:last-child { margin-bottom: 0; }
.ds-account-field > label, .ds-account-choices > legend { display: block; width: 100%; margin: 0 0 8px; padding: 0; color: var(--ft-ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
.ds-account-settings .ds-account-field .ds-account-control { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ft-line); border-radius: 8px; background: #fff; color: var(--ft-ink); font: inherit; font-size: 16px; line-height: 1.5; }
.ds-account-settings .ds-account-field textarea { min-height: 128px; resize: vertical; }
.ds-account-settings .ds-account-control::placeholder { color: var(--ft-muted); opacity: 1; }
.ds-account-help { display: block; margin: 8px 0 0; color: var(--ft-muted); font-size: 14px; line-height: 1.6; }
.ds-account-settings .has-error .ds-account-control,
.ds-account-settings.ds-form .has-error .ds-account-control:focus { border-color: #d92d20 !important; }
.ds-account-errors { margin: 8px 0 0; padding: 0; color: #b42318; list-style: none; font-size: 14px; line-height: 1.5; }
.ds-account-error-summary { padding: 20px; margin-bottom: 24px; border: 1px solid #f0b4ae; border-radius: 8px; background: #fff7f6; color: var(--ft-ink); }
.ds-account-error-summary h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; }
.ds-account-error-summary ul { margin: 0; padding-left: 20px; }
.ds-account-error-summary a { color: #b42318; }
.ds-account-choices { padding: 0; border: 0; }
.ds-account-choices > label { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-size: 16px; font-weight: 400; cursor: pointer; }
.ds-account-choices input[type="radio"] { appearance: none; display: inline-block; position: static !important; z-index: auto; width: 18px !important; height: 18px !important; flex: 0 0 18px; margin: 0; padding: 0; border: 2px solid #98a2b3; border-radius: 50%; background: #fff; opacity: 1; accent-color: var(--ft-green); cursor: pointer; }
.ds-account-choices input[type="radio"]:checked { border-color: var(--ft-green); background: radial-gradient(circle, var(--ft-green) 0 4px, #fff 4.5px); }
.ds-account-choices input[type="radio"]:focus-visible { outline: 3px solid var(--ft-green); outline-offset: 3px; }
.ds-account-newsletter > label { gap: 14px; margin-top: 10px; padding: 16px; border: 1px solid var(--ft-line); border-radius: 8px; }
.ds-account-newsletter > label:has(input:checked) { border-color: var(--ft-green); background: var(--ft-green-soft); }
.ds-account-newsletter > label:hover { border-color: var(--ft-green); }
.ds-account-newsletter strong { display: block; color: var(--ft-ink); font-size: 16px; font-weight: 600; }
.ds-account-newsletter small { display: block; margin-top: 4px; color: var(--ft-muted); font-size: 14px; line-height: 1.5; }
.ds-account-settings .upload-zone { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; width: 100%; min-height: 88px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.ds-account-photo { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--ft-line); border-radius: 50%; }
.ds-account-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-account-settings .upload-zone.dz-started .ds-account-photo { display: none; }
.ds-account-settings .upload-zone .dz-message { display: block !important; flex: 1 1 180px; width: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: left; }
.ds-account-settings .upload-zone .dz-message::before { content: none; }
.ds-account-settings .upload-zone .dz-button { min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--ft-line); border-radius: 8px; font-size: 14px; font-weight: 600; white-space: normal; }
.ds-account-settings .upload-zone .dz-preview { min-height: 72px; margin: 0; order: -1; }
.ds-account-settings .upload-zone .dz-preview .dz-image { width: 72px; height: 72px; border-radius: 50%; }
.ds-account-settings .upload-zone .dz-preview .dz-image img { width: 100%; height: 100%; object-fit: cover; }
.ds-account-upload-status:empty { display: none; }
.ds-account-upload-status.has-error { color: #b42318; }
.ds-account-settings .ds-account-provider { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.ds-account-provider + .ds-account-provider { border-top: 1px solid var(--ft-line); }
.ds-account-provider > span { font-size: 16px; font-weight: 600; }
.ds-account-provider form { margin: 0; }
.ds-account-save { display: flex; justify-content: flex-end; }
.ds-account-settings .ds-btn-secondary, .ds-account-profile .ds-btn-secondary { border-color: var(--ft-line); background: #fff !important; color: var(--ft-green) !important; -webkit-text-fill-color: var(--ft-green) !important; box-shadow: none; text-decoration: none !important; }
.ds-account-settings .ds-btn-secondary:hover, .ds-account-profile .ds-btn-secondary:hover { background: var(--ft-green-soft) !important; border-color: var(--ft-green); }
.ds-account-settings .ds-btn::before, .ds-account-profile .ds-btn::before { content: none !important; }
.ds-account-settings .ds-btn, .ds-account-profile .ds-btn { text-transform: none; }
/* The shared dropdown rule otherwise disables this plugin's visible popup. */
body.account-settings-page .datepicker-dropdown { pointer-events: auto; }
body.account-settings-page .datepicker-dropdown :is(.prev, .next).disabled { visibility: hidden; }
body.account-settings-page .datepicker-dropdown :is(td, span).active { border-color: var(--ft-green); background: var(--ft-green) !important; color: var(--ft-on-green); text-shadow: none; }

/* Profile identity uses the shared compact hero; tabs keep Bootstrap behaviour. */
.ds-account-profile { padding-bottom: 64px; }
.ds-account-profile .ds-account-identity { display: flex; align-items: flex-start; gap: 24px; }
.ds-account-avatar { flex: 0 0 88px; width: 88px; height: 88px; overflow: hidden; border: 1px solid var(--ft-line); border-radius: 50%; background: #fff; }
.ds-account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-account-identity-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ds-account-identity h1 { margin: 0 0 8px; color: var(--ft-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 750; line-height: 1.2; }
.ds-account-identity-copy p { margin: 8px 0 0; color: var(--ft-muted); font-size: 16px; line-height: 1.6; }
.ds-account-identity-copy .ds-account-username { margin: 0; font-size: 14px; }
.ds-account-badge { display: inline-flex; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 13px; line-height: 20px; }
.ds-account-blog { display: block; width: fit-content; margin-top: 12px; font-size: 14px; }
.ds-account-actions { flex: 0 0 auto; margin: 0; }
.ds-account-profile .ds-account-actions .ds-btn { min-width: 132px; margin: 0; }
.ds-account-activity-heading { margin: 0 0 16px; color: var(--ft-ink); font-size: 24px; line-height: 1.4; font-weight: 700; }
.ds-account-tabs { margin: 0 0 28px; padding: 6px; overflow-x: auto; }
.ds-account-tabs .nav-tabs { display: flex; flex-wrap: nowrap; gap: 6px; width: max-content; min-width: 100%; margin: 0; border: 0; }
.ds-account-tabs .nav-item { float: none; margin: 0; }
.ds-account-profile .ds-account-tabs [role="tab"] { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ft-muted); font-size: 14px; font-weight: 600; line-height: 22px; text-decoration: none !important; white-space: nowrap; }
.ds-account-profile .ds-account-tabs [role="tab"]:hover, .ds-account-profile .ds-account-tabs [role="tab"].active { border-color: var(--ft-green-band-back); background: var(--ft-green-soft); color: var(--ft-ink); }
.ds-account-profile .tab-content { min-width: 0; }
.ds-account-profile .tab-pane { outline-offset: 4px; }
.ds-account-profile .archive-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ds-account-profile .archive-list > li { width: 100%; min-width: 0; margin: 0; padding: 0; }
.ds-account-profile .card { max-width: 100%; }
/* Shared server/AJAX markup, scoped to the two company tabs. */
.ds-account-profile :is(#tab-like, #tab-submit) .archive-list > li { display: flex; }
.ds-account-profile :is(#tab-like, #tab-submit) .card { display: flex; flex-direction: column; width: 100%; height: auto; margin: 0; border: 1px solid var(--ft-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: none; text-decoration: none; }
.ds-account-profile :is(#tab-like, #tab-submit) .card:hover { border-color: var(--ft-green); box-shadow: 0 6px 20px rgba(20, 35, 30, .07); }
.ds-account-profile :is(#tab-like, #tab-submit) .card:focus-visible { outline: 2px solid var(--ft-green); outline-offset: 3px; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-image { position: relative; width: 100%; height: auto; padding: 0; overflow: visible; background: none; text-align: left; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-image picture { display: block; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-image img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-image .label { position: static; display: inline-flex; max-width: calc(100% - 40px); margin: 20px 20px 0; padding: 4px 8px; border-radius: 4px; background: var(--ft-green-soft); color: var(--ft-green-text); font-size: 13px; line-height: 20px; text-transform: none; white-space: normal; overflow-wrap: anywhere; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-image .label strong { color: inherit; font-weight: 600; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-image .label .em { display: none; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-block { flex: 1; min-height: 0 !important; padding: 16px 20px 20px; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-block h4 { height: auto; margin: 0 0 10px; color: var(--ft-ink); font-size: 20px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-block p { height: auto; margin: 0; color: var(--ft-muted); font-size: 15px; line-height: 1.6; opacity: 1; overflow-wrap: anywhere; }
.ds-account-profile :is(#tab-like, #tab-submit) .card-meta { margin-top: 16px; }
.ds-account-empty { padding: 40px 24px; border: 1px solid var(--ft-line); border-radius: 12px; text-align: center; }
.ds-account-empty p { margin: 0; color: var(--ft-muted); font-size: 16px; line-height: 1.6; }
.ds-account-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }

@media (max-width: 1023px) {
  .ds-account-settings .ds-account-section { grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 24px; padding: 24px; }
  .ds-account-profile .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ds-account-settings { padding: 32px 0 48px; }
  .ds-account-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .ds-account-settings .ds-account-section { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .ds-account-save .ds-btn { width: 100%; }
  .ds-account-profile .ds-account-identity { flex-wrap: wrap; gap: 16px; }
  .ds-account-avatar { width: 64px; height: 64px; flex-basis: 64px; }
  .ds-account-identity-copy { flex-basis: calc(100% - 80px); }
  .ds-account-actions { flex-basis: 100%; }
  .ds-account-profile .archive-list { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
  .ds-account-choices input[type="radio"], .ds-account-choices input[type="radio"]:checked { appearance: auto; background: none; }
  .ds-account-newsletter > label:has(input:checked) { border-color: Highlight; }
}
