/*
 * Shared account typography alignment.
 *
 * The two lazy password pages use the legacy uni-app navbar, while the
 * account subpages use .sgc-my-subpage-header.  Keep both scopes explicit so
 * unrelated task/order pages retain their existing typography.
 */

.username:has(.text_forget_password_notice) .u-navbar,
.username:has(.text_forget_password_notice) .u-navbar-fixed {
  min-height: 58px !important;
  height: 58px !important;
}

.username:has(.text_forget_password_notice) .u-navbar-inner {
  width: 100% !important;
  min-height: 58px !important;
  height: 58px !important;
}

.username:has(.text_forget_password_notice) .u-navbar-placeholder {
  min-height: 58px !important;
  height: 58px !important;
}

.username:has(.text_forget_password_notice) .u-navbar-content-title {
  left: 62px !important;
  right: 62px !important;
  width: auto !important;
  top: 0 !important;
  height: 58px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.username:has(.text_forget_password_notice) .u-title,
.username:has(.text_forget_password_notice) .u-navbar-content-title .u-title {
  height: 58px !important;
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 58px !important;
  letter-spacing: 0;
}

.username:has(.text_forget_password_notice) .u-back-wrap {
  height: 58px !important;
  min-height: 58px !important;
  align-items: center !important;
  padding: 0 14px 0 20px !important;
}

.username:has(.text_forget_password_notice) .u-back-wrap .u-icon-wrap,
.username:has(.text_forget_password_notice) .u-back-wrap .u-icon,
.username:has(.text_forget_password_notice) .u-back-wrap .u-icon__icon {
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
  line-height: 1 !important;
}

.username:has(.text_forget_password_notice) > .header {
  margin-top: 8px;
  padding-top: 0;
  padding-bottom: 9px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.sgc-my-shell[data-view="profile"] .sgc-my-subpage-header,
.sgc-my-shell[data-view="account-details"] .sgc-my-subpage-header {
  min-height: 58px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.sgc-my-shell[data-view="profile"] .sgc-my-subpage-header h1,
.sgc-my-shell[data-view="account-details"] .sgc-my-subpage-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.sgc-my-shell[data-view="profile"] .sgc-my-subpage-content,
.sgc-my-shell[data-view="account-details"] .sgc-my-subpage-content {
  width: 100%;
  max-width: 465px;
  margin-right: auto;
  margin-left: auto;
}

.sgc-my-shell[data-view="profile"] .sgc-my-form-label,
.sgc-my-shell[data-view="account-details"] .sgc-my-form-label {
  font-size: 14px;
  line-height: 1.35;
}

.sgc-my-shell[data-view="profile"] .sgc-my-input,
.sgc-my-shell[data-view="account-details"] .sgc-my-input {
  font-size: 14px;
  line-height: 1.4;
}

.sgc-my-shell[data-view="profile"] .sgc-my-notice,
.sgc-my-shell[data-view="account-details"] .sgc-my-notice {
  font-size: 13px;
  line-height: 1.55;
}

.sgc-my-shell[data-view="profile"] .sgc-my-filters button,
.sgc-my-shell[data-view="account-details"] .sgc-my-filters button {
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 430px) {
  .username:has(.text_forget_password_notice) .u-title,
  .username:has(.text_forget_password_notice) .u-navbar-content-title .u-title {
    font-size: 20px !important;
  }

  .username:has(.text_forget_password_notice) > .header {
    margin-top: 6px;
    font-size: 17px;
  }
}
