body {
  background: #f0f1f3;
}

.profile-page {
  background:
    radial-gradient(circle at 50% -4%, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0.92) 26%, rgba(240, 241, 243, 0) 60%),
    #f0f1f3;
}

.profile-page .account-shell {
  --account-page-side: 15px;
  --account-card-gap: 10px;
}

.account-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f0f1f3;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --account-page-side: 20px;
  --account-card-radius: 8px;
  --account-card-gap: 18px;
  --account-form-side-padding: 30px;
  --account-form-row-height: 100px;
  --account-form-label-width: 56px;
  --account-form-label-size: 16px;
  --account-form-value-size: 16px;
  --account-form-line-height: 1.25;
  --account-settings-profile-gap: 20px;
  --account-settings-avatar-size: 94px;
  --account-settings-profile-text-size: 15px;
}

.settings-page .account-shell,
.account-security-page .account-shell {
  --account-page-side: 15px;
  --account-card-gap: 12px;
  --account-form-side-padding: 15px;
  --account-form-row-height: 54px;
  --account-form-label-width: 56px;
  --account-form-label-size: 16px;
  --account-form-value-size: 16px;
  --account-settings-profile-gap: 16px;
  --account-settings-avatar-size: 64px;
  --account-settings-profile-text-size: 16px;
}

.account-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--account-page-side) 20px;
}

.account-main--settings {
  padding-top: 18px;
}

.profile-topbar {
  display: flex;
  align-items: center;
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-brand img {
  width: 96px;
  height: auto;
}

.profile-brand span {
  color: #006843;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.profile-hero__avatar-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.profile-hero__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.settings-profile__avatar {
  width: var(--account-settings-avatar-size);
  height: var(--account-settings-avatar-size);
  border-radius: 50%;
  object-fit: cover;
}

.profile-hero__info h1 {
  color: #2b2b2b;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.profile-hero__info p {
  margin-top: 8px;
  color: #5e6168;
  font-size: 13px;
  line-height: 1.2;
}

.account-card {
  border-radius: var(--account-card-radius);
  background: #fff;
  box-shadow: none;
}

.account-card--orders {
  margin-top: 14px;
  padding: 16px 14px 12px;
}

.account-card--orders h2 {
  color: #2b2b2b;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.order-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.order-shortcut {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.order-shortcut strong {
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.icon {
  position: relative;
  width: 34px;
  height: 34px;
  color: #2f2f2f;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  position: absolute;
  right: -6px;
  top: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2437;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 600;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0 14px;
  margin-top: 10px;
}

.account-row__lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.account-row__lead strong,
.account-row__meta {
  color: #2b2b2b;
  font-size: 15px;
  line-height: 1.2;
}

.account-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.account-row::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 1.75px solid #2f2f2f;
  border-right: 1.75px solid #2f2f2f;
  transform: rotate(45deg);
}

.account-list {
  margin-top: 10px;
  overflow: hidden;
}

.account-list .account-row {
  margin-top: 0;
  min-height: 60px;
}

.account-list .account-row + .account-row {
  border-top: 1px solid rgba(17, 24, 39, 0.05);
}

.profile-footer {
  margin-top: auto;
  padding-top: 18px;
}

.logout-button {
  width: 100%;
  min-height: var(--h5-primary-button-height);
  border: 1.5px solid #cfd2d7;
  border-radius: var(--h5-primary-button-radius);
  background: transparent;
  color: #ff3b30;
  font-size: var(--h5-primary-button-size);
  line-height: 1.2;
}

.account-sub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 241, 243, 0.96);
  box-shadow: none;
}

.account-sub-header .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.account-sub-header .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: var(--account-settings-profile-gap);
  margin-top: 6px;
  margin-bottom: 18px;
}

.settings-profile p {
  color: #2b2b2b;
  font-size: var(--account-settings-profile-text-size);
  line-height: var(--account-form-line-height);
}

.settings-field {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--account-form-row-height);
  padding: 0 var(--account-form-side-padding);
}

.settings-field span {
  flex: 0 0 var(--account-form-label-width);
  color: #2b2b2b;
  font-size: var(--account-form-label-size);
  line-height: var(--account-form-line-height);
  font-weight: 500;
}

.settings-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #a9afb7;
  font-size: var(--account-form-value-size);
  line-height: var(--account-form-line-height);
}

.account-row--single {
  margin-top: 20px;
}

@media (max-width: 359px) {
  .account-shell {
    --account-page-side: 16px;
  }

  .profile-page .account-shell {
    --account-page-side: 12px;
  }

  .settings-page .account-shell,
  .account-security-page .account-shell {
    --account-page-side: 12px;
    --account-card-gap: 10px;
    --account-form-side-padding: 13px;
    --account-form-row-height: 50px;
    --account-form-label-width: 52px;
    --account-form-label-size: 15px;
    --account-form-value-size: 15px;
    --account-settings-profile-gap: 13px;
    --account-settings-avatar-size: 58px;
    --account-settings-profile-text-size: 15px;
  }

  .account-main {
    padding-inline: var(--account-page-side);
  }

  .profile-hero {
    gap: 12px;
  }

  .profile-hero__avatar {
    width: 64px;
    height: 64px;
  }

  .profile-hero__info h1 {
    font-size: 17px;
    white-space: normal;
  }

  .order-shortcuts {
    gap: 8px;
  }

  .order-shortcut strong,
  .account-row__lead strong,
  .account-row__meta {
    font-size: 14px;
  }

  .account-row {
    padding-inline: 18px;
  }

  .settings-field {
    padding-inline: var(--account-form-side-padding);
  }

  .logout-button {
    min-height: 52px;
    font-size: 15px;
  }
}
