.profile-screen {
  background: #f7f7f7;
  color: #191919;
}

.profile-page {
  min-height: 220cqw;
  padding-bottom: 25cqw;
  font-family: "PingFang SC", "Alibaba PuHuiTi", "Microsoft YaHei", sans-serif;
}

.profile-page h1,
.profile-page h2,
.profile-page p {
  margin: 0;
}

.profile-page button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.profile-hero {
  position: relative;
  height: 50.4cqw;
  overflow: hidden;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.profile-hero-actions {
  position: absolute;
  z-index: 2;
  top: clamp(40px, 10.667cqw, 46px);
  right: clamp(12px, 3.2cqw, 16px);
  display: flex;
  align-items: center;
  gap: 3px;
}

.profile-page .profile-hero-action {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.profile-hero-action img {
  display: block;
  width: 24px;
  height: 24px;
}

.profile-message-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: var(--profile-accent);
}

.profile-message-dot[hidden] {
  display: none;
}

.profile-avatar,
.profile-member-icon {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
}

.profile-avatar {
  top: 25.067cqw;
  left: 5.867cqw;
  width: 18.667cqw;
  height: 18.667cqw;
}

.profile-avatar img,
.profile-member-icon img {
  position: absolute;
  display: block;
  width: 100cqw;
  max-width: none;
  height: 216cqw;
  object-fit: fill;
  pointer-events: none;
}

.profile-avatar img {
  top: -25.333cqw;
  left: -6.153cqw;
}

.profile-avatar.has-custom-avatar img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  position: absolute;
  top: 25.333cqw;
  left: 27.467cqw;
}

.profile-identity h1 {
  color: #333;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 6.4cqw;
  font-weight: 500;
  line-height: 8cqw;
}

.profile-identity > p {
  margin-top: 0.533cqw;
  color: #333;
  font-size: 2.667cqw;
  line-height: 3.733cqw;
}

.profile-badges {
  display: flex;
  gap: 1.067cqw;
  margin-top: 1.6cqw;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.533cqw;
  height: 4.8cqw;
  padding: 0.533cqw 1.333cqw;
  border-radius: 0.8cqw;
  background: #f3f4f4;
  color: #131218;
  font-size: 2.667cqw;
  line-height: 3.733cqw;
  white-space: nowrap;
}

.profile-badge img {
  display: block;
  width: 3.2cqw;
  height: 3.2cqw;
}

.profile-badge:first-child img {
  filter: grayscale(1) contrast(1.2);
}

.profile-open-settings {
  position: absolute;
  top: 39.467cqw;
  right: 3.2cqw;
  display: grid;
  place-items: center;
  width: 8cqw;
  height: 8cqw;
  border-radius: 50%;
}

.profile-open-settings img {
  display: block;
  width: 1.333cqw;
  height: 2.476cqw;
}

.profile-page .profile-membership {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 10.667cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.667cqw;
  width: calc(100% - 9.067cqw);
  height: 20cqw;
  margin: 1.333cqw 4.533cqw 0;
  padding: 0 3.2cqw;
  border: 0.267cqw solid rgba(214, 180, 104, 0.72);
  border-radius: 3.2cqw;
  background: #173f3c;
  box-shadow: 0 2.133cqw 5.333cqw rgba(23, 63, 60, 0.16);
}

.profile-member-icon {
  position: static;
  display: block;
  width: 10.667cqw;
  height: 10.667cqw;
  border: 0.267cqw solid rgba(233, 195, 109, 0.58);
  background: #f2f3ef;
  box-shadow: 0 0.8cqw 2.667cqw rgba(0, 0, 0, 0.12);
}

.profile-member-icon img {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-member-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.profile-member-eyebrow {
  color: #e9c36d;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 2.133cqw;
  font-weight: 500;
  line-height: 2.933cqw;
  letter-spacing: 0.12em;
}

.profile-member-copy strong {
  margin-top: 0.267cqw;
  color: #fffdf7;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 4.267cqw;
  font-weight: 500;
  line-height: 5.6cqw;
}

.profile-member-copy small {
  overflow: hidden;
  margin-top: 0.267cqw;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 2.667cqw;
  line-height: 3.733cqw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-member-action {
  display: flex;
  flex: none;
  min-width: 20.8cqw;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #173f3c;
  white-space: nowrap;
}

.profile-member-action > span {
  display: inline-flex;
  min-height: 8.533cqw;
  align-items: center;
  justify-content: center;
  gap: 1.333cqw;
  padding: 0 2.667cqw;
  border-radius: 999px;
  background: #e9c36d;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 3.2cqw;
  font-weight: 500;
  line-height: 4.267cqw;
}

.profile-member-action > span img {
  display: block;
  width: 1.333cqw;
  height: 2.476cqw;
  transform: scaleX(-1);
}

.profile-card-link img,
.profile-service-row > img:last-child {
  display: block;
  width: 1.333cqw;
  height: 2.476cqw;
  transform: scaleX(-1);
}

.profile-open-settings img {
  transform: scaleX(-1);
}

.profile-card {
  width: calc(100% - 9.067cqw);
  margin-right: 4.533cqw;
  margin-left: 4.533cqw;
  border-radius: 2.667cqw;
  background: #fff;
  box-shadow: 0 1.067cqw 2.667cqw rgba(28, 38, 38, 0.025);
}

.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12.8cqw;
  padding: 0 3.733cqw;
}

.profile-card-heading h2 {
  color: #414141;
  font-size: 4.267cqw;
  font-weight: 500;
  line-height: 5.867cqw;
}

.profile-card-link {
  display: inline-flex;
  align-items: center;
  gap: 1.333cqw;
  color: #989898 !important;
  font-size: 3.2cqw !important;
  white-space: nowrap;
}

.profile-orders {
  height: 30.667cqw;
  margin-top: 4cqw;
}

.profile-orders .profile-card-heading {
  height: 12.267cqw;
  padding-top: 0.533cqw;
}

.profile-order-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 1.333cqw;
}

.profile-order-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3.2cqw;
  color: rgba(51, 51, 51, 0.82) !important;
  font-size: 3.2cqw !important;
  line-height: 4.267cqw;
  text-align: center !important;
  white-space: nowrap;
}

.profile-order-item > img {
  display: block;
  width: 5.867cqw;
  height: 5.867cqw;
}

.profile-order-badge {
  position: absolute;
  top: -1.6cqw;
  left: calc(50% + 1.067cqw);
  display: inline-flex;
  min-width: 4.267cqw;
  height: 4.267cqw;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 0.8cqw;
  border: 0.533cqw solid #fff;
  border-radius: 999px;
  background: #d12f2f;
  box-shadow: 0 0.533cqw 0.8cqw rgba(99, 25, 19, 0.2);
}

.profile-order-badge b {
  color: #fff;
  font-size: 2.4cqw;
  font-weight: 600;
  line-height: 1;
}

.profile-business {
  height: 30.133cqw;
  margin-top: 2.667cqw;
  border-radius: 2.133cqw;
}

.profile-business .profile-card-heading {
  height: 12.267cqw;
}

.profile-business .profile-card-heading h2 {
  color: #191919;
}

.profile-business-grid {
  display: grid;
  grid-template-columns: repeat(5, 9.6cqw);
  justify-content: center;
  column-gap: 8cqw;
}

.profile-business-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3.2cqw;
  color: rgba(51, 51, 51, 0.8) !important;
  font-size: 3.2cqw !important;
  line-height: 4.267cqw;
  text-align: center !important;
  white-space: nowrap;
}

.profile-business-item img {
  display: block;
  width: 5.867cqw;
  height: 5.867cqw;
}

.profile-services {
  height: auto;
  margin-top: 2.667cqw;
  border-radius: 2.133cqw;
}

.profile-services .profile-card-heading {
  height: 10cqw;
}

.profile-service-list {
  padding: 0 2.667cqw;
}

.profile-service-row {
  position: relative;
  display: grid;
  grid-template-columns: 7.2cqw 1fr 5.333cqw;
  align-items: center;
  width: 100%;
  height: 12.8cqw;
  color: #4b4b4b !important;
  font-size: 3.733cqw !important;
}

.profile-page .profile-service-row {
  padding: 0 1.333cqw;
  font-weight: 600;
  line-height: 5.067cqw;
}

.profile-service-row::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.267cqw;
  background: rgba(18, 40, 45, 0.09);
  content: "";
  transform: scaleY(0.5);
}

.profile-service-row:last-child::after {
  display: none;
}

.profile-service-row > img:first-child {
  display: block;
  width: 5.333cqw;
  height: 5.333cqw;
}

.profile-service-row > img:last-child {
  justify-self: end;
}

.profile-page button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.533cqw rgba(31, 74, 75, 0.22);
}

.profile-page button:active {
  filter: brightness(0.96);
}

.profile-status-frame {
  display: none;
}

/* Profile secondary pages: production design system */

.phone {
  --profile-brand: #153d3f;
  --profile-brand-strong: #0f3032;
  --profile-brand-soft: #eaf1ef;
  --profile-accent: #a8342b;
  --profile-accent-soft: #fbefec;
  --profile-success: #256653;
  --profile-success-soft: #e8f3ee;
  --profile-warning: #9b4b2f;
  --profile-warning-soft: #fbf0e9;
  --profile-ink: #182323;
  --profile-text: #354342;
  --profile-muted: #6c7877;
  --profile-placeholder: #777f7e;
  --profile-line: rgba(21, 61, 63, 0.1);
  --profile-line-strong: rgba(21, 61, 63, 0.16);
  --profile-surface: #fff;
  --profile-canvas: #f4f6f4;
  --profile-gutter: 16px;
  --profile-radius-sm: 6px;
  --profile-radius-md: 8px;
  --profile-radius-lg: 12px;
  --profile-shadow-sm: 0 1px 4px rgba(19, 44, 43, 0.035);
  --profile-safe-bottom: 30px;
  --profile-z-sticky: 10;
  --profile-z-dialog: 40;
}

.profile-detail-screen {
  background: var(--profile-canvas);
  color: var(--profile-ink);
  container-type: inline-size;
}

.profile-detail-page {
  display: flex;
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
  background: var(--profile-canvas);
  color: var(--profile-ink);
  font-family: "PingFang SC", "Alibaba PuHuiTi", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-kerning: normal;
  line-height: 1.5;
}

.profile-detail-page *,
.profile-detail-page *::before,
.profile-detail-page *::after {
  box-sizing: border-box;
}

.profile-detail-page h1,
.profile-detail-page h2,
.profile-detail-page p,
.profile-detail-page dl,
.profile-detail-page dd,
.profile-detail-page ol,
.profile-detail-page figure,
.profile-detail-page fieldset {
  margin: 0;
}

.profile-detail-page button,
.profile-detail-page input,
.profile-detail-page textarea,
.profile-detail-page select {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.profile-detail-page button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
}

.profile-detail-page button:disabled,
.profile-detail-page .is-disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.profile-detail-page textarea {
  resize: vertical;
}

.profile-detail-page input::placeholder,
.profile-detail-page textarea::placeholder {
  color: var(--profile-placeholder);
  opacity: 1;
}

.profile-detail-page button:focus-visible,
.profile-detail-page input:focus-visible,
.profile-detail-page textarea:focus-visible,
.profile-detail-page select:focus-visible,
.profile-detail-page summary:focus-visible,
.profile-detail-page [tabindex]:focus-visible {
  outline: 2px solid #2c686a;
  outline-offset: 2px;
}

.profile-detail-page button:active:not(:disabled) {
  filter: brightness(0.96);
  transform: translateY(1px);
}

.profile-detail-header {
  position: sticky;
  top: 0;
  z-index: var(--profile-z-sticky);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 92px;
  flex: none;
  align-items: end;
  padding: 48px 12px 0;
  border-bottom: 1px solid var(--profile-line);
  background: rgba(250, 251, 249, 0.96);
  backdrop-filter: blur(12px);
}

.profile-detail-header > div {
  display: grid;
  min-width: 0;
  height: 44px;
  place-items: center;
  text-align: center;
}

.profile-detail-header p {
  display: none;
}

.profile-detail-header h1 {
  overflow: hidden;
  color: #161d1d;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-detail-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  align-self: end;
  border-radius: var(--profile-radius-md) !important;
}

.profile-detail-back img {
  display: block;
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.profile-detail-header-spacer {
  display: block;
  width: 44px;
  height: 44px;
}

.profile-detail-summary {
  display: none !important;
}

.profile-detail-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 12px var(--profile-gutter) 32px;
}

.profile-detail-content[data-profile-page="profile-settings"],
.profile-detail-content[data-profile-page="profile-feedback"] {
  --profile-gutter: 22px;
}

.profile-detail-content[data-profile-page="profile-verify"] {
  --profile-gutter: 14px;
  gap: 10px;
  padding-top: 10px;
}

.profile-detail-content[data-profile-page="profile-orders"],
.profile-detail-content[data-profile-page="profile-favorites"] {
  --profile-gutter: 10px;
}

.profile-content-profile-orders {
  --profile-gutter: 12px !important;
  gap: 10px;
  padding-top: 0;
}

.profile-content-profile-orders .profile-tabs {
  min-height: 44px;
  margin: 0 calc(var(--profile-gutter) * -1);
  padding: 0 4px;
}

.profile-content-profile-orders .profile-tabs button {
  min-width: 50px;
  height: 44px;
  padding: 0 2px;
  font-size: 12px;
}

.profile-content-profile-orders .profile-tabs button.active {
  font-size: 13px;
}

.profile-content-profile-orders .profile-tabs button::after {
  width: 28px;
  height: 3px;
}

.profile-subview {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.profile-page-toolbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: var(--profile-muted);
  font-size: 13px;
}

.profile-page-toolbar > button {
  display: inline-flex;
  min-width: 64px;
  height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 8px;
  border-radius: var(--profile-radius-md);
  color: var(--profile-brand);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.profile-page-toolbar > button.primary {
  background: transparent;
  color: var(--profile-brand);
}

.profile-page-toolbar > button[data-profile-action="new-submission"]::before,
.profile-page-toolbar > button[data-profile-action="new-activity"]::before {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--profile-brand-soft);
  content: "+";
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.profile-tabs {
  display: flex;
  min-height: 46px;
  flex: none;
  margin: -12px calc(var(--profile-gutter) * -1) 0;
  padding: 0 max(10px, var(--profile-gutter));
  overflow-x: auto;
  border-bottom: 1px solid var(--profile-line);
  background: var(--profile-surface);
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs button {
  position: relative;
  min-width: 60px;
  height: 46px;
  flex: 1 0 auto;
  padding: 0 10px;
  color: var(--profile-muted);
  font-size: 13px;
  white-space: nowrap;
}

.profile-tabs button::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
  transform: translateX(50%);
}

.profile-tabs button.active {
  color: var(--profile-brand-strong);
  font-weight: 600;
}

.profile-tabs button.active::after {
  background: var(--profile-brand);
}

.profile-list-group,
.profile-section,
.profile-form,
.profile-member-card,
.profile-comparison,
.profile-wallet-panel,
.profile-shop-preview,
.profile-coupon-card,
.profile-empty,
.profile-order-card,
.profile-order-detail-status,
.profile-detail-card {
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-content-profile-addresses .profile-list-group,
.profile-content-profile-favorites .profile-list-group,
.profile-content-profile-orders .profile-order-card,
.profile-content-profile-coupons .profile-coupon-card {
  box-shadow: none;
}

.profile-list-group {
  display: block;
}

.profile-message-list {
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-message-row {
  display: grid;
  width: 100%;
  min-height: 94px;
  grid-template-columns: 8px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px !important;
  border-bottom: 1px solid var(--profile-line) !important;
  text-align: left;
}

.profile-message-row:last-child {
  border-bottom: 0 !important;
}

.profile-message-row.is-unread {
  background: #f7faf8;
}

.profile-message-state {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6dcdb;
}

.profile-message-row.is-unread .profile-message-state {
  background: var(--profile-brand);
}

.profile-message-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-message-copy > strong {
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-message-copy > p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-message-copy > time {
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 17px;
}

.profile-list-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--profile-line) !important;
  text-align: left;
}

.profile-list-row:last-child {
  border-bottom: 0 !important;
}

button.profile-list-row:hover {
  background: #fafcfb;
}

.profile-list-row.is-default {
  background: #f7faf8;
}

.profile-row-main {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.profile-row-main > strong,
.profile-product-row strong {
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
}

.profile-row-main > small,
.profile-product-row small {
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
}

.profile-row-main .profile-status-pill {
  justify-self: start;
  margin-bottom: 2px;
}

.profile-row-chevron {
  position: relative;
  width: 20px;
  height: 44px;
  flex: none;
}

.profile-row-chevron::before {
  position: absolute;
  top: 50%;
  left: 5px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #87908f;
  border-right: 1.5px solid #87908f;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.profile-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1f0;
  color: #5e6968;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.profile-status-pill.is-green {
  background: var(--profile-success-soft);
  color: var(--profile-success);
}

.profile-status-pill.is-accent {
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
}

.profile-status-pill.is-warning {
  background: var(--profile-warning-soft);
  color: var(--profile-warning);
}

.profile-result-banner,
.profile-inline-notice {
  border-radius: var(--profile-radius-sm);
  font-size: 13px;
  line-height: 20px;
}

.profile-result-banner {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--profile-success-soft);
  color: #215b4b;
}

.profile-result-banner::before {
  position: absolute;
  top: 13px;
  left: 15px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--profile-success);
  color: #fff;
  content: "✓";
  font-size: 11px;
  font-weight: 700;
}

.profile-result-banner.is-warning {
  background: var(--profile-warning-soft);
  color: var(--profile-warning);
}

.profile-result-banner.is-warning::before {
  background: var(--profile-warning);
  content: "!";
}

.profile-inline-notice {
  padding: 10px 12px;
  background: #edf2f1;
  color: #4d6261;
}

.profile-video-upload {
  position: relative;
  min-height: 76px !important;
  cursor: pointer;
}

.profile-video-upload > input[type="file"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.profile-video-file {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  align-content: center;
  padding: 6px 42px 6px 0;
}

.profile-video-file.has-preview {
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
}

.profile-video-selected-thumb {
  display: block;
  width: 60px;
  height: 38px;
  grid-row: 1 / 3;
  overflow: hidden;
  align-self: center;
  border-radius: 6px;
  background: #dfe7e4;
}

.profile-video-selected-thumb video,
.profile-video-selected-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-video-file.has-preview > strong,
.profile-video-file.has-preview > small {
  grid-column: 2;
}

.profile-video-file.has-preview > strong {
  align-self: end;
}

.profile-video-file.has-preview > small {
  align-self: start;
}

.profile-video-file::after {
  position: absolute;
  top: 50%;
  right: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--profile-brand-soft);
  color: var(--profile-brand);
  content: "+";
  font-size: 18px;
  font-weight: 500;
  transform: translateY(-50%);
}

.profile-video-file > strong {
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-video-file > small {
  margin-top: 2px;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 17px;
}

.profile-video-edit {
  --trim-start-pct: 0%;
  --trim-end-pct: 100%;
  padding: 13px 14px 14px;
  border-bottom: 1px solid var(--profile-line);
  background: #fbfcfb;
}

.profile-video-edit-heading,
.profile-video-edit-title,
.profile-video-trim-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-video-edit-heading {
  margin-bottom: 12px;
}

.profile-video-edit-heading strong {
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.profile-video-edit-heading span {
  color: var(--profile-brand);
  font-size: 11px;
  line-height: 18px;
}

.profile-video-edit-title strong {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.profile-video-edit-title span {
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 18px;
}

.profile-video-trim {
  padding: 11px 12px 9px;
  border: 1px solid rgba(21, 61, 63, 0.1);
  border-radius: 10px;
  background: #fff;
}

.profile-video-trim-times {
  margin-top: 9px;
}

.profile-video-trim-times span {
  display: grid;
  gap: 1px;
}

.profile-video-trim-times span:last-child {
  text-align: right;
}

.profile-video-trim-times small {
  color: var(--profile-muted);
  font-size: 10px;
  line-height: 15px;
}

.profile-video-trim-times output {
  color: var(--profile-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 20px;
}

.profile-video-trim-range {
  position: relative;
  height: 58px;
  margin: 7px 0 6px;
  overflow: hidden;
  border-radius: 7px;
  background: #d8dfdd;
}

.profile-video-trim-thumbnails {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-video-trim-thumbnails i {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, #cfd8d5, #e5eae8);
  background-position: center;
  background-size: cover;
}

.profile-video-trim-thumbnails i:last-child {
  border-right: 0;
}

.profile-video-trim-mask,
.profile-video-trim-selection {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.profile-video-trim-mask {
  z-index: 1;
  background: rgba(17, 28, 27, 0.58);
}

.profile-video-trim-mask.is-before {
  left: 0;
  width: var(--trim-start-pct);
}

.profile-video-trim-mask.is-after {
  right: 0;
  width: calc(100% - var(--trim-end-pct));
}

.profile-video-trim-selection {
  z-index: 2;
  left: var(--trim-start-pct);
  width: calc(var(--trim-end-pct) - var(--trim-start-pct));
  border-block: 2px solid var(--profile-brand);
}

.profile-video-trim-selection > i {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 12px;
  background: var(--profile-brand);
}

.profile-video-trim-selection > i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
  transform: translate(-50%, -50%);
}

.profile-video-trim-selection > .is-start {
  left: -2px;
  border-radius: 5px 0 0 5px;
}

.profile-video-trim-selection > .is-end {
  right: -2px;
  border-radius: 0 5px 5px 0;
}

.profile-video-trim-range input[type="range"] {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 58px;
  margin: 0;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  pointer-events: none;
}

.profile-video-trim-range input[type="range"]::-webkit-slider-runnable-track {
  height: 58px;
  background: transparent;
}

.profile-video-trim-range input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 58px;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
}

.profile-video-trim-range input[type="range"]::-moz-range-track {
  height: 58px;
  background: transparent;
}

.profile-video-trim-range input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 58px;
  border: 0;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
}

.profile-video-trim-range:has(input[type="range"]:focus-visible) {
  box-shadow: 0 0 0 3px rgba(21, 61, 63, 0.14);
}

.profile-video-trim > p,
.profile-video-cover > p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 10px;
  line-height: 16px;
}

.profile-video-cover {
  margin-top: 12px;
}

.profile-video-cover-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 150px;
  margin-top: 8px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: #e9eeec;
  color: #7c8986;
  font-size: 12px;
  line-height: 18px;
}

.profile-video-cover-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-video-cover-preview em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(18, 35, 34, 0.68);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
}

.profile-video-cover-range {
  display: flex;
  min-height: 34px;
  align-items: center;
  margin-top: 3px;
}

.profile-video-cover-range input[type="range"] {
  width: 100%;
  height: 34px;
  margin: 0;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  accent-color: var(--profile-brand);
  cursor: pointer;
}

.profile-video-cover-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: #cfd9d6;
}

.profile-video-cover-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--profile-brand);
  box-shadow: 0 0 0 1px rgba(21, 61, 63, 0.28);
}

.profile-video-cover-range input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #cfd9d6;
}

.profile-video-cover-range input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--profile-brand);
  box-shadow: 0 0 0 1px rgba(21, 61, 63, 0.28);
}

.profile-video-cover-range input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(21, 61, 63, 0.16), 0 0 0 1px var(--profile-brand);
}

.profile-video-edit-error {
  display: block;
  color: var(--profile-accent);
  font-size: 11px;
  line-height: 16px;
}

.profile-video-edit-error:not(:empty) {
  margin-top: 8px;
}

.profile-video-edit.has-error .profile-video-trim {
  border-color: rgba(171, 76, 55, 0.42);
}

.profile-video-edit.is-disabled .profile-video-edit-heading span,
.profile-video-edit.is-disabled .profile-video-edit-title span,
.profile-video-edit.is-disabled .profile-video-trim-times output {
  color: var(--profile-muted);
}

.profile-video-edit.is-disabled .profile-video-trim-selection {
  border-color: #9caaa6;
}

.profile-video-edit.is-disabled .profile-video-trim-selection > i {
  background: #9caaa6;
}

.profile-video-edit.is-disabled .profile-video-cover-preview {
  background: #eef2f1;
}

.profile-video-edit.is-disabled .profile-video-cover-range {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .profile-video-trim-selection,
  .profile-video-trim-mask {
    transition: none;
  }
}

.profile-video-cover-row {
  display: grid;
  min-height: 72px;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 14px;
  line-height: 20px;
}

.profile-video-cover-control {
  display: grid;
  min-width: 0;
  min-height: 58px !important;
  grid-template-columns: 72px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--profile-ink);
  text-align: left;
}

.profile-video-cover-control.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.profile-video-cover-thumb {
  position: relative;
  display: grid;
  width: 72px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  background: #e9eeec;
  color: var(--profile-muted);
  font-size: 10px;
  line-height: 15px;
}

.profile-video-cover-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-video-cover-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.profile-video-cover-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-video-cover-copy small {
  color: var(--profile-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
}

.profile-video-cover-row > small {
  grid-column: 2;
  color: var(--profile-accent);
  font-size: 11px;
  line-height: 16px;
}

.profile-video-cover-row > small:empty {
  display: none;
}

.profile-video-cover-control[aria-invalid="true"] .profile-video-cover-copy strong {
  color: var(--profile-accent);
}

.profile-cover-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: var(--profile-z-dialog);
  display: flex;
  align-items: flex-end;
  background: rgba(8, 18, 18, 0.44);
}

.profile-cover-sheet {
  width: 100%;
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(8, 24, 23, 0.16);
}

.profile-cover-sheet header h2 {
  color: var(--profile-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.profile-cover-sheet header p {
  margin-top: 2px;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-cover-sheet-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #e6ebe9;
}

.profile-cover-sheet-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover-sheet-preview span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(18, 35, 34, 0.68);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

.profile-cover-sheet-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 20px;
}

.profile-cover-sheet-time output {
  color: var(--profile-brand);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.profile-cover-sheet > input[type="range"] {
  width: 100%;
  height: 38px;
  margin: 3px 0 0;
  accent-color: var(--profile-brand);
}

.profile-cover-sheet footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.profile-cover-sheet footer button {
  min-height: 44px;
  border: 1px solid var(--profile-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--profile-text);
  font-size: 14px;
}

.profile-cover-sheet footer button.primary {
  border-color: var(--profile-brand);
  background: var(--profile-brand);
  color: #fff;
}

.profile-video-association-note {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--profile-line);
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 19px;
}

.profile-video-association-note strong {
  color: var(--profile-text);
  font-size: 14px;
  font-weight: 400;
}

.profile-form:has(.profile-association-surname-row) {
  position: relative;
  overflow: visible;
}

.profile-publish-select-row {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 56px;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 14px;
  line-height: 20px;
}

.profile-publish-select-row:has(.profile-publish-category-dropdown[open]) {
  z-index: var(--profile-z-sticky);
}

.profile-publish-select-control {
  position: relative;
  min-width: 0;
}

.profile-form .profile-publish-category-dropdown summary {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 0;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--profile-ink);
  font-size: 16px;
  line-height: 22px;
}

.profile-form .profile-publish-category-dropdown summary::after {
  top: 16px;
  right: 5px;
}

.profile-form .profile-publish-category-dropdown[open] summary::after {
  top: 19px;
}

.profile-form .profile-publish-category-dropdown summary:focus-visible,
.profile-form .profile-publish-category-dropdown[open] summary {
  padding-left: 10px;
  border: 0 !important;
  background: #f5f8f7 !important;
  color: var(--profile-brand);
  box-shadow: inset 0 0 0 1px rgba(21, 61, 63, 0.24) !important;
}

.profile-form .profile-publish-category-menu {
  top: 48px;
  right: 0;
  left: auto;
  width: 220px;
  max-width: calc(100cqw - 28px);
  padding: 5px;
  border: 1px solid rgba(21, 61, 63, 0.08);
  box-shadow: 0 6px 14px rgba(18, 35, 34, 0.13);
}

.profile-form .profile-publish-category-menu button {
  min-height: 44px;
  overflow: hidden;
  font-size: 14px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-publish-select-error {
  display: block;
  color: var(--profile-accent);
  font-size: 11px;
  line-height: 16px;
}

.profile-publish-select-error:empty {
  display: none;
}

.profile-publish-select-row [data-field-trigger="category"][aria-invalid="true"] {
  color: var(--profile-accent);
  box-shadow: inset 0 -1px 0 var(--profile-accent);
}

.profile-association-surname-row {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 56px;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 14px;
  line-height: 20px;
}

.profile-association-surname-row.is-empty {
  min-height: 76px;
  padding-block: 8px;
}

.profile-association-surname-row:has(.profile-publish-surname-dropdown[open]) {
  z-index: var(--profile-z-sticky);
}

.profile-association-surname-label {
  align-self: center;
}

.profile-association-surname-control {
  position: relative;
  min-width: 0;
}

.profile-association-surname-value {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.profile-publish-surname-dropdown summary,
.profile-association-surname-empty {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  border: 1px solid rgba(21, 61, 63, 0.13) !important;
  border-radius: 10px !important;
  background: #f5f8f7 !important;
}

.profile-publish-surname-dropdown summary {
  padding: 0 38px 0 12px;
}

.profile-publish-surname-dropdown summary::after {
  top: 16px;
  right: 15px;
}

.profile-publish-surname-dropdown[open] summary::after {
  top: 19px;
}

.profile-association-surname-copy {
  min-width: 0;
}

.profile-association-surname-copy strong {
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-publish-surname-menu {
  top: 50px;
  padding: 5px;
  border: 1px solid rgba(21, 61, 63, 0.08);
  box-shadow: 0 6px 14px rgba(18, 35, 34, 0.13);
}

.profile-publish-surname-menu button {
  display: flex;
  min-height: 44px;
  align-items: center;
}

.profile-association-surname-hint,
.profile-association-surname-error {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
}

.profile-association-surname-hint {
  color: var(--profile-muted);
}

.profile-association-surname-error {
  color: var(--profile-accent);
}

.profile-association-surname-error:empty {
  display: none;
}

.profile-association-surname-empty {
  padding: 0 12px;
  color: var(--profile-muted);
  font-size: 14px;
}

.profile-association-surname-row [data-field-trigger="surname"][aria-invalid="true"] {
  color: var(--profile-accent);
  box-shadow: none;
}

.profile-video-rights {
  margin: 0 14px;
  padding: 4px 0 6px;
  border-top: 1px solid var(--profile-line);
}

.profile-detail-actions,
.profile-card-actions,
.profile-bottom-bar,
.profile-order-card-foot > div,
.profile-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-detail-actions {
  margin-top: 12px;
}

.profile-detail-actions > button,
.profile-card-actions > button,
.profile-bottom-bar > button,
.profile-order-card-foot button,
.profile-dialog-actions button,
.profile-wide-button,
.profile-form > button {
  min-height: 44px;
  flex: 1;
  padding: 0 14px;
  border-radius: var(--profile-radius-md) !important;
  background: #edf2f1 !important;
  color: var(--profile-brand) !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.profile-detail-actions > button.primary,
.profile-card-actions > button.primary,
.profile-bottom-bar > button.primary,
.profile-order-card-foot button.primary,
.profile-dialog-actions button.primary,
.profile-wide-button.primary,
.profile-form > button.primary {
  background: var(--profile-brand) !important;
  color: #fff !important;
}

.profile-detail-actions > button.is-simulated,
.profile-order-card-foot button.is-simulated {
  border: 1px solid rgba(21, 61, 63, 0.22) !important;
  background: var(--profile-brand-soft) !important;
  color: var(--profile-brand) !important;
  box-shadow: inset 0 0 0 1px rgba(21, 61, 63, 0.04);
}

.profile-bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: calc(var(--profile-z-sticky) - 1);
  min-height: calc(60px + var(--profile-safe-bottom));
  flex: none;
  margin: auto calc(var(--profile-gutter) * -1) 0;
  padding: 8px var(--profile-gutter) calc(8px + var(--profile-safe-bottom));
  border-top: 1px solid var(--profile-line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 8px rgba(18, 35, 34, 0.05);
}

.profile-bottom-bar > .profile-check {
  min-width: 74px;
  flex: none;
}

.profile-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: calc(var(--profile-z-sticky) - 1);
  min-height: calc(60px + var(--profile-safe-bottom));
  margin: auto calc(var(--profile-gutter) * -1) 0;
  padding: 8px var(--profile-gutter) calc(8px + var(--profile-safe-bottom));
  border-top: 1px solid var(--profile-line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 8px rgba(18, 35, 34, 0.05);
}

.profile-detail-content:has(.profile-bottom-bar, .profile-sticky-actions) {
  padding-bottom: 0;
}

.profile-form {
  display: block;
}

.profile-form > label,
.profile-settings-fields > label {
  display: grid;
  min-height: 56px;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 14px;
  line-height: 20px;
}

.profile-form > label:last-of-type,
.profile-settings-fields > label:last-of-type {
  border-bottom: 0;
}

.profile-form > label:has(textarea),
.profile-settings-fields > label:has(textarea) {
  align-items: start;
  padding-top: 14px;
  padding-bottom: 10px;
}

.profile-form > label > input:not([type="file"]):not([type="checkbox"]),
.profile-form > label > select,
.profile-form > label > textarea,
.profile-settings-fields > label > input:not([type="file"]):not([type="checkbox"]),
.profile-settings-fields > label > select,
.profile-settings-fields > label > textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 0;
  color: var(--profile-ink);
  font-size: 16px;
  line-height: 22px;
}

.profile-form > label > textarea,
.profile-settings-fields > label > textarea {
  min-height: 92px;
}

.profile-form > label > small,
.profile-settings-fields > label > small {
  min-height: 0;
  grid-column: 2;
  color: var(--profile-accent);
  font-size: 12px;
  line-height: 18px;
}

.profile-form > label > small:empty,
.profile-settings-fields > label > small:empty {
  display: none;
}

.profile-form input[aria-invalid="true"],
.profile-form textarea[aria-invalid="true"],
.profile-form select[aria-invalid="true"],
.profile-verify-card input[aria-invalid="true"] {
  color: var(--profile-accent);
  box-shadow: inset 0 -1px 0 var(--profile-accent);
}

.profile-form > button {
  width: calc(100% - 28px);
  margin: 12px 14px 14px;
}

.profile-account-actions {
  padding-top: 4px;
}

.profile-account-actions .profile-logout-button {
  width: 100%;
  min-height: 48px;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
  color: var(--profile-accent);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.profile-avatar-editor {
  min-height: 78px !important;
}

.profile-avatar-editor > strong {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--profile-brand);
  font-size: 13px;
  font-weight: 500;
}

.profile-avatar-editor img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-editor em {
  font-style: normal;
}

.profile-avatar-editor input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.profile-detail-content[data-profile-page="profile-settings"] {
  gap: 14px;
  padding-top: 16px;
}

.profile-settings-form {
  display: flex;
  overflow: visible;
  flex-direction: column;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-settings-fields {
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-settings-fields > label {
  min-height: 60px;
  grid-template-columns: 74px minmax(0, 1fr);
  padding-right: 16px;
  padding-left: 16px;
}

.profile-settings-fields > .profile-avatar-editor {
  min-height: 76px !important;
}

.profile-settings-fields > label:has(textarea) {
  min-height: 112px;
  padding-top: 14px;
  padding-bottom: 12px;
}

.profile-settings-fields > label > textarea {
  min-height: 82px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.profile-settings-fields > .profile-editable-row {
  cursor: text;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.profile-settings-fields > .profile-editable-row:focus-within {
  background: rgba(21, 61, 63, 0.035);
  box-shadow: inset 2px 0 0 var(--profile-brand);
}

.profile-settings-form + .profile-account-actions {
  padding-top: 0;
}

.profile-switch-row {
  grid-template-columns: 1fr auto !important;
}

.profile-switch-row input[type="checkbox"] {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #c9cfcd;
  appearance: none;
  transition: background 160ms ease;
}

.profile-switch-row input[type="checkbox"]::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 30, 30, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.profile-switch-row input[type="checkbox"]:checked {
  background: var(--profile-brand);
}

.profile-switch-row input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

.profile-settings-section {
  display: grid;
  gap: 8px;
}

.profile-settings-section > h2 {
  margin: 0;
  padding: 0 2px;
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.profile-settings-menu {
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-settings-link {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 11px 16px !important;
  border-bottom: 1px solid var(--profile-line) !important;
  text-align: left;
}

.profile-settings-link:last-child {
  border-bottom: 0 !important;
}

.profile-settings-link:hover {
  background: #fafcfb;
}

.profile-settings-link-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.profile-settings-link-copy strong {
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.profile-settings-link-copy small {
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-link-tail {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}

.profile-settings-link-tail em {
  max-width: 108px;
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-account-footnote,
.profile-privacy-summary p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 19px;
}

.profile-phone-current,
.profile-privacy-summary {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-phone-current > span {
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-phone-current > strong {
  color: var(--profile-brand-strong);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.profile-phone-current > p {
  margin: 1px 0 0;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 20px;
}

.profile-account-form {
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-account-form > label {
  grid-template-columns: 84px minmax(0, 1fr);
}

.profile-account-code-row {
  grid-template-columns: 84px minmax(0, 1fr) 100px !important;
}

.profile-account-code-row > button {
  min-height: 36px;
  padding: 0 8px !important;
  border-radius: 6px !important;
  background: var(--profile-brand-soft) !important;
  color: var(--profile-brand) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.profile-account-code-row > button:disabled {
  background: #f1f3f2 !important;
  color: #8a9493 !important;
}

.profile-account-code-row > small {
  grid-column: 2 / 4 !important;
}

.profile-account-form > .profile-wide-button {
  min-height: 46px;
  margin-top: 16px;
}

.profile-account-footnote {
  padding: 0 2px;
  text-align: center;
}

.profile-privacy-summary strong {
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.profile-privacy-boundary {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: var(--profile-radius-md);
  background: var(--profile-brand-soft);
}

.profile-privacy-boundary strong {
  color: var(--profile-brand-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.profile-privacy-boundary p {
  margin: 0;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 21px;
}

.profile-upload {
  position: relative;
  cursor: pointer;
}

.profile-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.profile-upload > span {
  color: var(--profile-muted);
  font-size: 12px;
  text-align: right;
}

.profile-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px;
}

.profile-image-preview:empty {
  display: none;
}

.profile-image-preview figure {
  width: 76px;
}

.profile-image-preview img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: var(--profile-radius-sm);
  object-fit: cover;
}

.profile-image-preview figcaption {
  margin-top: 4px;
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-section {
  padding: 0 16px;
}

.profile-section > h2 {
  padding: 15px 0 11px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.profile-section > p {
  padding: 14px 0;
  color: var(--profile-text);
  font-size: 14px;
  line-height: 22px;
}

.profile-readonly-list > p {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 13px;
  line-height: 20px;
}

.profile-readonly-list > p:last-child {
  border-bottom: 0;
}

.profile-readonly-list > p > strong {
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
}

.profile-readonly-list > p > span {
  color: var(--profile-muted);
  font-size: 12px;
}

.profile-detail-card {
  padding: 16px;
}

.profile-detail-card > strong {
  display: block;
  margin-top: 10px;
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 23px;
}

.profile-detail-card > p {
  margin-top: 8px;
  color: var(--profile-text);
  font-size: 14px;
  line-height: 22px;
}

details.profile-detail-card {
  overflow: visible;
}

details.profile-detail-card summary {
  position: relative;
  min-height: 44px;
  padding: 11px 28px 11px 0;
  color: var(--profile-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

details.profile-detail-card summary::-webkit-details-marker {
  display: none;
}

details.profile-detail-card summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--profile-muted);
  border-bottom: 1.5px solid var(--profile-muted);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

details.profile-detail-card[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

details.profile-detail-card p {
  padding: 0 0 12px;
}

.profile-member-card,
.profile-wallet-panel,
.profile-shop-preview {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: var(--profile-brand);
  box-shadow: none;
  color: #fff;
}

.profile-member-card::after,
.profile-wallet-panel::after,
.profile-shop-preview::after {
  position: absolute;
  top: -42px;
  right: -30px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.profile-member-card > span,
.profile-wallet-panel > span,
.profile-shop-preview > span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 18px;
}

.profile-member-card > strong,
.profile-wallet-panel > strong,
.profile-shop-preview > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.profile-wallet-panel > strong {
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 40px;
}

.profile-member-card > p,
.profile-wallet-panel > p,
.profile-shop-preview > p {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 20px;
}

.profile-wallet-panel > button {
  position: absolute;
  right: 16px;
  bottom: 18px;
  min-width: 88px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--profile-radius-md);
  background: #fff;
  color: var(--profile-brand);
  font-size: 14px;
  font-weight: 600;
}

/* Figma 168:3357 · withdrawal flow */

.profile-detail-page:has(.profile-content-profile-wallet[data-profile-mode="withdraw"], .profile-content-profile-wallet[data-profile-mode="withdraw-records"]) .profile-detail-header {
  border-bottom-color: #eeeeee;
  background: rgba(255, 255, 255, 0.98);
}

.profile-content-profile-wallet[data-profile-mode="withdraw"] {
  --profile-gutter: 10px;
  gap: 0;
  padding: 5px 10px 28px;
  background: #f6f6f6;
}

.profile-withdraw-page,
.profile-withdraw-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-withdraw-page {
  gap: 10px;
}

.profile-withdraw-methods {
  display: flex;
  width: 100%;
  min-height: 61px;
  flex: none;
  align-items: stretch;
  padding: 0 5px;
  overflow-x: auto;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 43, 42, 0.02);
  scrollbar-width: none;
}

.profile-withdraw-methods::-webkit-scrollbar {
  display: none;
}

.profile-withdraw-methods > button {
  position: relative;
  min-width: 67px;
  min-height: 61px;
  flex: 0 0 auto;
  padding: 0 8px;
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.profile-withdraw-methods > button:nth-child(3) {
  min-width: 58px;
}

.profile-withdraw-methods > button:nth-child(n + 4) {
  min-width: 88px;
}

.profile-withdraw-methods > button::after {
  position: absolute;
  right: 50%;
  bottom: 10px;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  content: "";
  transform: translateX(50%);
}

.profile-withdraw-methods > button.active {
  color: var(--profile-brand);
  font-weight: 500;
}

.profile-withdraw-methods > button.active::after {
  background: var(--profile-brand);
}

.profile-withdraw-form {
  gap: 10px;
}

.profile-withdraw-account-card,
.profile-withdraw-amount-card {
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 43, 42, 0.02);
}

.profile-withdraw-field {
  display: grid;
  min-height: 48px;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  font-size: 13px;
  line-height: 20px;
}

.profile-withdraw-field:last-child {
  border-bottom: 0;
}

.profile-withdraw-field > input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 0;
  color: #333333;
  font-size: 16px;
  line-height: 22px;
}

.profile-withdraw-field > input::placeholder {
  color: #777777;
}

.profile-withdraw-field > small,
.profile-withdraw-upload-field > small,
.profile-withdraw-amount-card > small {
  color: var(--profile-accent);
  font-size: 12px;
  line-height: 18px;
}

.profile-withdraw-field > small {
  grid-column: 2;
  padding-bottom: 5px;
}

.profile-withdraw-field > small:empty,
.profile-withdraw-upload-field > small:empty,
.profile-withdraw-amount-card > small:empty {
  display: none;
}

.profile-withdraw-field > input[aria-invalid="true"] {
  color: var(--profile-accent);
  box-shadow: inset 0 -1px 0 var(--profile-accent);
}

.profile-withdraw-upload-field {
  position: relative;
  display: grid;
  min-height: 120px;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  padding: 14px 12px 12px;
  color: #333333;
  font-size: 13px;
  line-height: 20px;
}

.profile-withdraw-upload-field > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-withdraw-upload-field > input[type="hidden"] {
  display: none;
}

.profile-withdraw-upload-control {
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.profile-withdraw-upload-control[aria-invalid="true"] .profile-withdraw-upload-box {
  border-color: var(--profile-accent);
}

.profile-withdraw-upload-box {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #b9bfbe;
  border-radius: 4px;
  background: #ffffff;
}

.profile-withdraw-upload-box > img {
  display: block;
  width: 30px;
  height: 30px;
}

.profile-withdraw-upload-box.has-image {
  border-style: solid;
}

.profile-withdraw-upload-box.has-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-withdraw-upload-control > small {
  color: #777777;
  font-size: 11px;
  line-height: 18px;
}

.profile-withdraw-upload-field > small {
  grid-column: 2;
  padding-top: 4px;
}

.profile-withdraw-amount-card {
  min-height: 116px;
  padding: 12px 12px 8px;
}

.profile-withdraw-amount-card > p {
  color: #777777;
  font-size: 12px;
  line-height: 18px;
}

.profile-withdraw-amount-card > p > strong {
  color: #333333;
  font-weight: 400;
}

.profile-withdraw-amount-row {
  display: grid;
  min-height: 65px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
}

.profile-withdraw-amount-row > span {
  color: #333333;
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
}

.profile-withdraw-amount-row > input {
  width: 100%;
  min-width: 0;
  height: 56px;
  color: #333333;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 40px;
}

.profile-withdraw-amount-row > input::placeholder {
  color: #bbc2ca;
}

.profile-withdraw-amount-row > input[aria-invalid="true"] {
  color: var(--profile-accent);
}

.profile-withdraw-amount-row > button {
  min-width: 76px;
  min-height: 44px;
  padding-left: 8px;
  color: var(--profile-brand);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.profile-withdraw-amount-card > small {
  display: block;
  padding-top: 5px;
}

.profile-withdraw-submit {
  width: calc(100% - 20px);
  min-height: 44px !important;
  margin: 2px 10px 0;
  border-radius: 999px !important;
  background: var(--profile-brand) !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(21, 61, 63, 0.1);
}

.profile-withdraw-rule-note {
  padding: 0 10px;
  color: #aaaaaa;
  font-size: 11px;
  line-height: 18px;
}

.profile-withdraw-record-link {
  display: inline-flex;
  min-height: 44px;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: #777777;
  font-size: 13px;
  line-height: 20px;
}

.profile-withdraw-record-link > img {
  display: block;
  width: 18px;
  height: 18px;
}

.profile-content-profile-wallet[data-profile-mode="withdraw-records"] {
  --profile-gutter: 0px;
  gap: 0;
  padding: 0 0 32px;
  background: #f6f6f6;
}

.profile-withdraw-records-page {
  min-height: 100%;
}

.profile-withdraw-record-list {
  display: block;
  background: #ffffff;
}

.profile-withdraw-record {
  display: grid;
  min-height: 61px;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 4px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
}

.profile-withdraw-record-time,
.profile-withdraw-record-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-withdraw-record-time {
  align-items: center;
  color: #777777;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
}

.profile-withdraw-record-time > small {
  color: #aaaaaa;
  font-size: 10px;
}

.profile-withdraw-record-main > strong {
  overflow: hidden;
  color: #333333;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-withdraw-record-main > small {
  width: max-content;
  color: #777777;
  font-size: 11px;
  line-height: 18px;
}

.profile-withdraw-record-main > small.is-success {
  color: var(--profile-success);
}

.profile-withdraw-record-main > small.is-failed {
  color: var(--profile-accent);
}

.profile-withdraw-record-main > small.is-processing {
  color: var(--profile-warning);
}

.profile-withdraw-record-amount {
  color: #999999;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.profile-withdraw-empty {
  display: flex;
  min-height: 440px;
  align-items: center;
  flex-direction: column;
  padding: 132px 20px 24px;
  text-align: center;
}

.profile-withdraw-empty > img {
  display: block;
  width: 170px;
  height: 126px;
  object-fit: cover;
  object-position: center 36%;
  mix-blend-mode: multiply;
}

.profile-withdraw-empty > strong {
  margin-top: 10px;
  color: #777777;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.profile-withdraw-empty > p {
  margin-top: 5px;
  color: #aaaaaa;
  font-size: 12px;
  line-height: 18px;
}

html.view-h5 .profile-content-profile-wallet[data-profile-mode="withdraw"] {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

html.view-h5 .profile-content-profile-wallet[data-profile-mode="withdraw-records"] {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.profile-comparison {
  display: grid;
}

.profile-comparison > div {
  display: grid;
  min-height: 48px;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 12px;
}

.profile-comparison > div:first-child {
  background: #f8faf9;
  color: var(--profile-muted);
}

.profile-comparison > div:last-child {
  border-bottom: 0;
}

.profile-comparison strong {
  color: var(--profile-success);
  font-weight: 600;
}

.profile-comparison em {
  color: var(--profile-muted);
  font-style: normal;
}

.profile-product-row {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.profile-product-row > img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: var(--profile-radius-sm);
  object-fit: cover;
}

.profile-product-row > span {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.profile-favorite-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0;
  border-radius: var(--profile-radius-sm);
  background: var(--profile-brand-soft);
  color: var(--profile-brand);
  font-family: "STSong", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

.profile-content-profile-favorites .profile-list-row {
  min-height: 76px;
  padding: 12px 14px !important;
}

.profile-content-profile-favorites .profile-row-main:has(.profile-favorite-mark) {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}

.profile-content-profile-favorites .profile-row-main:has(.profile-favorite-mark) .profile-favorite-mark {
  grid-row: 1 / span 2;
}

.profile-content-profile-favorites .profile-row-main:has(.profile-favorite-mark) > strong,
.profile-content-profile-favorites .profile-row-main:has(.profile-favorite-mark) > small {
  min-width: 0;
  grid-column: 2;
}

.profile-content-profile-favorites .profile-row-main:has(.profile-favorite-mark) > strong {
  align-self: end;
}

.profile-content-profile-favorites .profile-row-main:has(.profile-favorite-mark) > small {
  align-self: start;
}

.profile-address-row .profile-row-main:has(.profile-status-pill) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.profile-address-row .profile-row-main:has(.profile-status-pill) .profile-status-pill {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
}

.profile-address-row .profile-row-main:has(.profile-status-pill) > strong {
  min-width: 0;
  grid-row: 1;
  grid-column: 2;
}

.profile-address-row .profile-row-main:has(.profile-status-pill) > small {
  min-width: 0;
  grid-column: 1 / -1;
}

.profile-list-caption {
  margin: -2px 4px 0 !important;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-detail-page:has(.profile-content-profile-addresses) .profile-detail-header {
  min-height: 88px;
  padding: 44px 4px 0;
  border-bottom: 0;
  background: #fff;
  backdrop-filter: none;
}

.profile-detail-page:has(.profile-content-profile-addresses) .profile-detail-header h1 {
  color: rgba(0, 0, 0, 0.9);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
}

.profile-detail-page:has(.profile-content-profile-addresses) .profile-detail-back img {
  width: 9px;
  height: 17px;
}

.profile-content-profile-addresses {
  background: #f5f5f5;
}

.profile-content-profile-addresses[data-profile-mode="list"] {
  --profile-gutter: 15px;
  gap: 10px;
  padding: 10px var(--profile-gutter) 0;
}

.profile-content-profile-addresses[data-profile-mode="create"],
.profile-content-profile-addresses[data-profile-mode="edit"] {
  --profile-gutter: 12px;
  gap: 0;
  padding: 14px var(--profile-gutter) 0;
}

.profile-address-list {
  display: grid;
  gap: 10px;
  background: transparent;
}

.profile-address-card {
  position: relative;
  display: block;
  width: 100%;
  height: 76px;
  min-height: 76px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  text-align: left;
}

.profile-address-select {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px 50px 10px 38px !important;
  border: 0;
  background: transparent;
  text-align: left;
}

.profile-address-select-icon {
  position: absolute;
  top: 29px;
  left: 10px;
  display: block;
  width: 18px;
  height: 18px;
}

.profile-address-card-copy {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  justify-content: space-between;
  flex-direction: column;
}

.profile-address-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 4px;
}

.profile-address-card-heading strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-address-default-pill {
  display: inline-flex;
  min-width: 30px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0 5px;
  border-radius: 3px;
  background: #e2efed;
  color: #204a46;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
}

.profile-address-card-copy > small {
  overflow: hidden;
  color: #999;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-address-edit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 20px 0 0 12px;
  border: 0;
  background: transparent;
  color: #204a46;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
}

.profile-address-subview {
  min-height: 0;
  gap: 10px;
}

.profile-address-form {
  display: grid;
  gap: 10px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-address-fields {
  height: 223px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.profile-address-fields > label {
  position: relative;
  display: grid;
  height: 55.75px;
  grid-template-columns: 81px minmax(0, 1fr);
  align-items: center;
  padding: 0 15px;
  color: #333;
}

.profile-address-fields > label:not(:last-child)::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 20px;
  height: 1px;
  background: #f7f8f9;
  content: "";
}

.profile-address-fields > label > span {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.profile-address-fields > label > input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.profile-address-fields > label > input::placeholder {
  color: #555;
  opacity: 1;
}

.profile-address-region-field > input[type="hidden"] {
  display: none;
}

.profile-address-region-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 44px;
  align-items: center;
  padding: 0 22px 0 0;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
}

.profile-address-region-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-address-region-trigger::after {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8a9391;
  border-bottom: 1.5px solid #8a9391;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.profile-address-region-trigger.is-placeholder {
  color: #555;
}

.profile-address-region-trigger[aria-invalid="true"] {
  color: var(--profile-accent);
}

.profile-address-region-trigger:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(32, 74, 70, 0.32);
  outline-offset: 1px;
}

.profile-address-fields > label > small {
  position: absolute;
  right: 12px;
  bottom: 1px;
  left: 96px;
  overflow: hidden;
  color: #a8342b;
  font-size: 9px;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-address-fields > label > small:empty {
  display: none;
}

.profile-region-picker-backdrop {
  position: absolute;
  inset: 0;
  z-index: calc(var(--profile-z-dialog) + 2);
  display: flex;
  align-items: flex-end;
  background: rgba(8, 18, 18, 0.42);
}

.profile-region-picker {
  display: flex;
  width: 100%;
  height: min(430px, 58%);
  min-height: 390px;
  flex-direction: column;
  padding-bottom: var(--profile-safe-bottom);
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -6px 18px rgba(8, 24, 23, 0.12);
  animation: profile-region-picker-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-region-picker > header {
  display: grid;
  min-height: 54px;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #eef0ef;
}

.profile-region-picker > header h2 {
  margin: 0;
  color: #1f2928;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.profile-region-picker > header button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #687371;
  font-size: 14px;
}

.profile-region-picker > header .profile-region-confirm {
  color: #204a46;
  font-weight: 600;
}

.profile-region-picker > header .profile-region-confirm:disabled {
  color: #aeb6b4;
}

.profile-region-tabs {
  display: flex;
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid #eef0ef;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-region-tabs::-webkit-scrollbar {
  display: none;
}

.profile-region-tabs button {
  position: relative;
  min-width: 82px;
  min-height: 48px;
  flex: 1 0 auto;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #66716f;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.profile-region-tabs button.is-active {
  color: #204a46;
  font-weight: 600;
  box-shadow: inset 0 -2px #204a46;
}

.profile-region-tabs button:disabled {
  color: #b5bcba;
}

.profile-region-options {
  min-height: 0;
  flex: 1 1 auto;
  padding: 4px 0 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile-region-options button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 48px 0 24px;
  border: 0;
  background: #fff;
  color: #303a39;
  font-size: 14px;
  text-align: left;
}

.profile-region-options button.is-selected {
  background: #f1f6f5;
  color: #204a46;
  font-weight: 600;
}

.profile-region-options button.is-selected::after {
  position: absolute;
  top: 17px;
  right: 25px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #204a46;
  border-bottom: 2px solid #204a46;
  content: "";
  transform: rotate(45deg);
}

.profile-region-picker button:active {
  background-color: #edf3f1;
}

.profile-region-picker button:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(32, 74, 70, 0.42);
  outline-offset: -3px;
}

.phone.has-profile-region-picker .profile-detail-screen {
  overflow: hidden;
}

@keyframes profile-region-picker-in {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-region-picker {
    animation: none;
  }
}

.profile-address-form > .profile-address-default {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 15px;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.profile-address-default input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: none;
  padding: 0;
  border: 0;
  background: url("./assets/figma-addresses-1571054/default-empty.svg") center / 19px 19px no-repeat;
  appearance: none;
}

.profile-address-default input[type="checkbox"]:checked {
  background-image: url("./assets/figma-addresses-1571054/default-selected.svg");
}

.profile-content-profile-addresses .profile-bottom-bar {
  min-height: 86px;
  align-items: flex-start;
  margin: auto calc(var(--profile-gutter) * -1) 0;
  padding: 0 12px 42px;
  border-top: 0;
  background: #f5f5f5;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-content-profile-addresses .profile-bottom-bar > button {
  height: 44px;
  min-height: 44px;
  border-radius: 25px !important;
  font-size: 13px;
  font-weight: 600;
}

.profile-content-profile-addresses .profile-empty {
  min-height: 182px;
  box-shadow: none;
}

.profile-manage-row {
  cursor: pointer;
}

.profile-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-check {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--profile-text);
  cursor: pointer;
  font-size: 13px;
}

span.profile-check {
  position: relative;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  flex: none;
  border: 1px solid #aeb8b6;
  border-radius: 50%;
  background: #fff;
}

.profile-check-input:checked + span.profile-check {
  border-color: var(--profile-brand);
  background: var(--profile-brand);
}

.profile-check-input:checked + span.profile-check::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.profile-bottom-bar > label.profile-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--profile-brand);
}

.profile-detail-page:has(.profile-content-profile-coupons) .profile-detail-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  border-bottom: 0;
  background: #ffffff;
  backdrop-filter: none;
}

.profile-detail-page:has(.profile-content-profile-coupons) .profile-detail-back {
  grid-column: 1;
  grid-row: 1;
  border-radius: var(--profile-radius-md) !important;
}

.profile-detail-page:has(.profile-content-profile-coupons) .profile-detail-back img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.profile-detail-page:has(.profile-content-profile-coupons) .profile-detail-header > div {
  grid-column: 2;
  grid-row: 1;
}

.profile-detail-page:has(.profile-content-profile-coupons) .profile-detail-header-spacer {
  grid-column: 3;
  grid-row: 1;
}

.profile-content-profile-coupons {
  --profile-gutter: 0px;
  gap: 0;
  padding: 0 0 32px;
  background: #f6f6f6;
}

.profile-coupon-tabs {
  display: grid;
  width: 100%;
  height: 40px;
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #ffffff;
}

.profile-coupon-tabs > button {
  position: relative;
  min-width: 0;
  min-height: 40px;
  padding: 0 4px;
  color: #333333;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.profile-coupon-tabs > button.active {
  color: var(--profile-brand);
  font-weight: 600;
}

.profile-coupon-tabs > button.active::after {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 50px;
  height: 2px;
  border-radius: 1px;
  background: var(--profile-brand);
  content: "";
  transform: translateX(-50%);
}

.profile-coupon-list {
  display: grid;
  width: 100%;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  padding: 10px;
}

.profile-content-profile-coupons .profile-coupon-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 136px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
}

.profile-coupon-main {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  height: 100px;
  grid-template-columns: 99px minmax(0, 1fr);
}

.profile-coupon-value {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: url("./assets/figma-order-confirm-156554/coupon-shape.svg") center / 100% 100% no-repeat;
  color: #ffffff;
}

.profile-coupon-value > span {
  display: flex;
  height: 40px;
  align-items: baseline;
  justify-content: center;
}

.profile-coupon-value i {
  margin-right: 2px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
}

.profile-coupon-value b {
  font-size: 30px;
  font-weight: 500;
  line-height: 40px;
}

.profile-coupon-value em {
  margin-top: -1px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

.profile-coupon-copy {
  position: relative;
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 0 84px 0 10px;
}

.profile-coupon-copy strong,
.profile-coupon-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-coupon-copy strong {
  margin-bottom: 5px;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.profile-coupon-copy small {
  color: #777777;
  font-size: 10px;
  font-weight: 400;
  line-height: 19px;
}

.profile-coupon-use,
.profile-coupon-state {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.profile-detail-page .profile-coupon-use {
  width: 64px;
  min-width: 64px;
  height: 30px;
  min-height: 30px;
  padding: 0 !important;
  border: 1px solid var(--profile-accent) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: var(--profile-accent) !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.profile-coupon-state {
  min-width: 64px;
  color: #929997;
  font-size: 12px;
  line-height: 30px;
  text-align: center;
}

.profile-content-profile-coupons .profile-coupon-card.is-unavailable {
  opacity: 0.62;
}

.profile-coupon-rules {
  border-top: 1px solid #f2f2f2;
  background: #ffffff;
}

.profile-coupon-rules > summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #555555;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
  list-style: none;
}

.profile-coupon-rules > summary::-webkit-details-marker {
  display: none;
}

.profile-coupon-rules > summary img {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.profile-coupon-rules[open] > summary img {
  transform: rotate(-90deg);
}

.profile-coupon-rules > p {
  margin: -2px 0 0;
  padding: 0 10px 10px;
  color: #777777;
  font-size: 11px;
  line-height: 18px;
}

.profile-coupon-end {
  padding: 4px 0 10px;
  color: #999999;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.profile-coupon-empty {
  padding: 64px 16px;
  color: var(--profile-muted);
  font-size: 14px;
  text-align: center;
}

html.view-h5 .profile-content-profile-coupons {
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.profile-order-list,
.profile-detail-list {
  display: grid;
  gap: 10px;
}

.profile-order-card {
  border: 1px solid rgba(21, 61, 63, 0.035);
  border-radius: var(--profile-radius-md);
  background: #fff;
  box-shadow: none;
}

.profile-order-main {
  display: block;
  width: 100%;
  min-height: 0 !important;
  padding: 0 10px !important;
  text-align: left;
}

.profile-order-top {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-order-top > strong {
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-top > em {
  color: var(--profile-brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.profile-order-state.is-accent {
  color: var(--profile-accent);
}

.profile-order-state.is-muted {
  color: var(--profile-muted);
}

.profile-order-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-height: 110px;
  padding: 11px 0;
}

.profile-order-body > img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: var(--profile-radius-sm);
  object-fit: cover;
}

.profile-order-body > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1px 0;
}

.profile-order-body b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-order-body small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-order-product-meta {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.profile-order-product-meta > em {
  overflow: hidden;
  color: var(--profile-accent);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-product-meta > em::first-letter {
  font-size: 13px;
}

.profile-order-product-meta > i {
  color: var(--profile-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 20px;
}

.profile-order-progress {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  margin: 0 10px 4px;
  padding: 0 10px;
  border-radius: var(--profile-radius-sm);
  background: var(--profile-canvas);
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-order-progress > strong {
  flex: none;
  color: var(--profile-ink);
  font-weight: 500;
}

.profile-order-progress > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-total {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 10px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-muted);
  font-size: 12px;
}

.profile-order-total > strong {
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.profile-order-card-foot {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 10px;
}

.profile-order-card-foot > small {
  min-width: 0;
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-card-foot > div {
  flex: none;
  justify-content: flex-end;
}

.profile-order-card-foot button {
  position: relative;
  isolation: isolate;
  min-width: 78px;
  min-height: 44px;
  flex: none;
  padding: 0 13px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--profile-muted) !important;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.profile-order-card-foot button::before {
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid rgba(21, 61, 63, 0.3);
  border-radius: 17px;
  background: #fff;
  content: "";
}

.profile-order-card-foot button.primary {
  border: 0 !important;
  background: transparent !important;
  color: var(--profile-brand) !important;
  box-shadow: none;
}

.profile-order-card-foot button.primary::before {
  border-color: var(--profile-brand);
}

.profile-order-card-foot button.is-simulated {
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none;
}

.profile-order-card-foot button.is-simulated::before {
  border-color: var(--profile-brand);
  background: var(--profile-brand);
}

.profile-order-detail-status {
  position: relative;
  display: grid;
  min-height: 84px;
  align-content: center;
  padding: 12px 16px 12px 26px;
  border: 1px solid rgba(21, 61, 63, 0.075);
  background: #edf3f1;
  box-shadow: none;
  color: var(--profile-brand);
}

.profile-order-detail-status::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--profile-brand);
  content: "";
}

.profile-order-detail-status > span {
  color: #5c7472;
  font-size: 12px;
}

.profile-order-detail-status > strong {
  display: block;
  margin-top: 2px;
  color: var(--profile-brand-strong);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.profile-order-detail-status > p {
  margin-top: 3px;
  color: #516765;
  font-size: 12px;
  line-height: 18px;
}

.profile-order-detail-sheet {
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-order-card.is-detail {
  padding: 0 13px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-order-card.is-detail .profile-order-top {
  min-height: 42px;
}

.profile-order-card.is-detail .profile-order-top > em {
  color: var(--profile-muted);
  font-size: 11px;
  font-weight: 400;
}

.profile-order-card.is-detail .profile-order-body {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 9px 0;
}

.profile-order-card.is-detail .profile-order-body > img {
  width: 76px;
  height: 76px;
}

.profile-price-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--profile-line);
  color: var(--profile-text);
  font-size: 13px;
}

.profile-price-row > strong {
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
}

.profile-timeline {
  padding: 9px 0 11px 18px;
  color: var(--profile-text);
}

.profile-timeline li {
  position: relative;
  padding: 0 0 8px 14px;
  font-size: 13px;
  line-height: 20px;
}

.profile-order-detail-block {
  padding: 0 13px;
  border-top: 8px solid var(--profile-canvas);
}

.profile-order-detail-block > h2 {
  padding: 11px 0 8px;
  border-bottom: 1px solid var(--profile-line);
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.profile-order-detail-block > p {
  padding: 11px 0;
  color: var(--profile-text);
  font-size: 13px;
  line-height: 21px;
}

/* Figma 161:2180 — 订单详情 */
.profile-content-profile-orders.is-order-detail {
  --profile-gutter: 12px !important;
  gap: 0;
  padding: 0 var(--profile-gutter);
  background: #f8f8f8;
}

.profile-order-detail-layout {
  --order-detail-primary: #204a46;
  --order-detail-accent: #a8342b;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  color: #414141;
}

.profile-order-detail-status {
  position: relative;
  display: block;
  align-content: start;
  width: auto;
  height: 100px;
  min-height: 100px;
  margin: 5px calc(var(--profile-gutter) * -1) 0;
  padding: 10px 22px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: var(--order-detail-primary);
  box-shadow: none;
  color: #fff;
}

.profile-order-detail-status::before {
  content: none;
}

.profile-order-detail-status > strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
}

.profile-order-detail-status > p {
  margin-top: 3px;
  color: #fff;
  font-size: 12px;
  line-height: 17px;
}

.profile-order-detail-layout[data-order-status="cancelled"] .profile-order-detail-status {
  background: #6f7777;
}

.profile-order-address-card,
.profile-order-detail-product,
.profile-order-amount-card,
.profile-order-message-card,
.profile-order-info-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.profile-order-address-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 81px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: -40px;
  padding: 9px 15px;
}

.profile-order-address-card > img {
  display: block;
  width: 24px;
  height: 24px;
}

.profile-order-address-card > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.profile-order-address-card strong {
  overflow: hidden;
  color: #333;
  font-size: 15px;
  font-weight: 400;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-address-card p {
  display: -webkit-box;
  overflow: hidden;
  color: #646464;
  font-size: 12px;
  line-height: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-order-detail-product {
  min-height: 143px;
}

.profile-order-detail-number {
  display: flex;
  min-height: 39px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.profile-order-detail-product-body {
  display: grid;
  min-height: 104px;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 11px;
  padding: 4px 10px 10px;
}

.profile-order-detail-product-body > img {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
}

.profile-order-detail-product-body > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 5px;
}

.profile-order-detail-product-body > div > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-order-detail-product-body small {
  margin-top: 3px;
  overflow: hidden;
  color: #88888a;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-detail-product-body span {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.profile-order-detail-product-body b {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.profile-order-detail-product-body i {
  color: #88888a;
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
}

.profile-order-amount-card {
  min-height: 145px;
  padding: 7px 10px 5px;
}

.profile-order-amount-card dl,
.profile-order-info-card dl {
  margin: 0;
}

.profile-order-amount-card dl > div {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-order-amount-card dt,
.profile-order-amount-card dd,
.profile-order-info-card dt,
.profile-order-info-card dd {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.profile-order-amount-card dd {
  color: #414141;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.profile-order-amount-card > p > strong {
  color: var(--order-detail-primary);
}

.profile-order-amount-card dd.is-accent {
  color: var(--order-detail-accent);
}

.profile-order-amount-card > p {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #414141;
  font-size: 13px;
}

.profile-order-amount-card > p > strong {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.profile-order-message-card {
  display: grid;
  min-height: 40px;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  padding: 0 10px;
  font-size: 14px;
  line-height: 20px;
}

.profile-order-message-card > p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-info-card {
  min-height: 160px;
  padding: 5px 10px;
}

.profile-order-info-card dl > div {
  display: grid;
  min-height: 30px;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
}

.profile-order-info-card dd {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-detail-actions.profile-sticky-actions {
  display: flex;
  width: auto;
  min-height: calc(43px + var(--profile-safe-bottom));
  align-items: flex-start;
  justify-content: flex-end;
  gap: 17px;
  margin: auto calc(var(--profile-gutter) * -1) 0;
  padding: 8px 13px calc(5px + var(--profile-safe-bottom));
  border-top: 1px solid #fcfcfc;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-order-detail-actions.profile-sticky-actions > button {
  width: 90px;
  min-width: 90px;
  height: 30px;
  min-height: 30px;
  flex: none;
  padding: 0 12px;
  border: 1px solid #efefef !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #3f444d !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.profile-order-detail-actions.profile-sticky-actions > button.is-primary {
  border-color: var(--order-detail-primary) !important;
  background: var(--order-detail-primary) !important;
  color: #fff !important;
}

.profile-detail-page:has(.profile-order-detail-layout) .profile-detail-header.app-detail-header {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  height: 84px;
  min-height: 84px;
  padding: 44px 12px 0;
  border-bottom: 0;
  background: #fff;
  backdrop-filter: none;
}

.profile-detail-page:has(.profile-order-detail-layout) .profile-detail-header > .app-detail-back,
.profile-detail-page:has(.profile-order-detail-layout) .profile-detail-header > .app-detail-title-wrap,
.profile-detail-page:has(.profile-order-detail-layout) .profile-detail-header > .app-detail-spacer {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.profile-detail-page:has(.profile-order-detail-layout) .profile-detail-header > .app-detail-title-wrap {
  width: auto;
}

html.view-h5 .profile-detail-page:has(.profile-order-detail-layout) .profile-detail-header.app-detail-header {
  height: calc(40px + env(safe-area-inset-top, 0px));
  min-height: calc(40px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

.phone:has(.profile-order-logistics-page) .statusbar,
.phone:has(.profile-order-logistics-page).is-scrolled .statusbar {
  background: #204a46;
  box-shadow: none;
  color: #fff;
}

.phone:has(.profile-order-logistics-page) .profile-status-frame {
  filter: brightness(0) invert(1);
}

.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header.app-detail-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  height: 88px;
  min-height: 88px;
  padding: 44px 10px 0;
  border-bottom: 0;
  background: #204a46;
  backdrop-filter: none;
}

.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header > .app-detail-back,
.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header > .app-detail-title-wrap,
.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header > .app-detail-spacer {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header > .app-detail-title-wrap {
  width: auto;
}

.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header h1 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.profile-detail-page:has(.profile-order-logistics-page) .profile-detail-back img {
  filter: none;
}

.profile-content-profile-orders[data-profile-mode="logistics"] {
  --profile-gutter: 15px !important;
  display: block;
  padding: 10px var(--profile-gutter) 34px;
  background: linear-gradient(to bottom, #204a46 101px, #f8f8f8 101px);
}

.profile-order-logistics-page {
  min-height: 610px;
}

.profile-order-logistics-card {
  min-height: 610px;
  padding: 0 12px 26px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.profile-logistics-carrier {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e6e6e8;
}

.profile-logistics-carrier > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.profile-logistics-carrier-logo {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
}

.profile-logistics-carrier-logo img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.profile-logistics-carrier strong,
.profile-logistics-carrier span:not(.profile-logistics-carrier-logo) {
  color: #111;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.profile-logistics-carrier > button {
  width: 44px;
  min-width: 44px;
  height: 36px;
  min-height: 36px;
  flex: none;
  border-radius: 18px !important;
  background: #f5f5f5 !important;
  color: #4b5655 !important;
  font-size: 12px;
}

.profile-logistics-address {
  position: relative;
  display: grid;
  min-height: 75px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  padding-top: 13px;
}

.profile-logistics-address::after {
  position: absolute;
  top: 24px;
  bottom: -1px;
  left: 5px;
  border-left: 1px dashed #d5dcda;
  content: "";
}

.profile-logistics-address > span {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  margin-left: 2px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #204a46;
  box-shadow: 0 0 0 1px rgba(32, 74, 70, 0.24);
}

.profile-logistics-address p {
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.profile-logistics-address strong {
  font-weight: 500;
}

.profile-logistics-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-logistics-timeline > li {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 0 0 17px;
}

.profile-logistics-timeline > li::after {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  border-left: 1px dashed #d5dcda;
  content: "";
}

.profile-logistics-timeline > li:last-child::after {
  display: none;
}

.profile-logistics-marker {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  margin-left: 2px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d9dfdd;
}

.profile-logistics-timeline > li.is-current .profile-logistics-marker {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  margin-left: 0;
  border: 3px solid #dfece9;
  background: #204a46;
}

.profile-logistics-event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  font-size: 12px;
  line-height: 18px;
}

.profile-logistics-event-meta strong {
  font-size: 13px;
  font-weight: 500;
}

.profile-logistics-event-meta time {
  font-style: normal;
}

.profile-logistics-event-copy {
  margin-top: 3px !important;
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.profile-logistics-timeline > li.is-current .profile-logistics-event-meta {
  color: #204a46;
}

.profile-logistics-timeline > li.is-current .profile-logistics-event-copy {
  color: #333;
}

html.view-h5 .profile-detail-page:has(.profile-order-logistics-page) .profile-detail-header.app-detail-header {
  height: calc(44px + env(safe-area-inset-top, 0px));
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

.profile-detail-page:has(.profile-order-review-page) .profile-detail-header.app-detail-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  height: 88px;
  min-height: 88px;
  padding: 44px 10px 0;
  border-bottom: 0;
  background: #fff;
  backdrop-filter: none;
}

.profile-detail-page:has(.profile-order-review-page) .profile-detail-header > .app-detail-back,
.profile-detail-page:has(.profile-order-review-page) .profile-detail-header > .app-detail-title-wrap,
.profile-detail-page:has(.profile-order-review-page) .profile-detail-header > .app-detail-spacer {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.profile-detail-page:has(.profile-order-review-page) .profile-detail-header > .app-detail-title-wrap {
  width: auto;
}

.profile-content-profile-orders[data-profile-mode="review"] {
  --profile-gutter: 15px !important;
  gap: 0;
  padding: 10px var(--profile-gutter) 0;
  background: #f8f8f8;
}

.profile-order-review-page {
  display: flex;
  min-width: 0;
  min-height: 724px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.profile-order-review-product {
  min-height: 150px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.profile-order-review-store {
  display: flex;
  height: 38px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.profile-order-review-product-body {
  display: grid;
  min-width: 0;
  height: 112px;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.profile-order-review-product-body > img {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 4px;
  object-fit: cover;
}

.profile-order-review-product-body > div {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(36px, auto) 20px 1fr;
  align-items: start;
}

.profile-order-review-product-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-order-review-product-body small {
  color: #88888a;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.profile-order-review-product-body span {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.profile-order-review-product-body b {
  color: #a8342b;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.profile-order-review-product-body i {
  color: #88888a;
  font-size: 13px;
  font-style: normal;
  line-height: 20px;
}

.profile-order-review-score {
  display: grid;
  gap: 10px;
}

.profile-order-review-score > div {
  display: grid;
  height: 47px;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  background: #fff;
}

.profile-order-review-score > div > span {
  color: #444;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}

.profile-order-review-stars {
  display: flex;
  height: 44px;
  align-items: center;
}

.profile-order-review-stars > input {
  display: none;
}

.profile-order-review-stars > button {
  display: grid;
  width: 20px;
  min-width: 20px;
  height: 44px;
  min-height: 44px;
  place-items: center;
}

.profile-order-review-stars > button img {
  display: block;
  width: 13px;
  height: 13px;
  filter: grayscale(1);
  opacity: 0.2;
}

.profile-order-review-stars > button.is-selected img {
  filter: none;
  opacity: 1;
}

.profile-order-review-copy {
  position: relative;
  display: block;
  height: 157px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.profile-order-review-copy > img {
  position: absolute;
  top: 18px;
  left: 10px;
  display: block;
  width: 12px;
  height: 12px;
  filter: grayscale(1) sepia(0.7) hue-rotate(105deg) saturate(2.4) brightness(0.55);
}

.profile-order-review-copy > textarea {
  width: 100%;
  height: 157px;
  padding: 15px 12px 30px 27px;
  border: 1px solid transparent;
  border-radius: 5px;
  outline: 0;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  resize: none;
}

.profile-order-review-copy > textarea::placeholder {
  color: #bcbcbc;
}

.profile-order-review-copy > textarea[aria-invalid="true"] {
  border-color: rgba(168, 52, 43, 0.55);
}

.profile-order-review-copy > small {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: #a8342b;
  font-size: 11px;
  line-height: 16px;
}

.profile-order-review-media {
  height: 132px;
  padding: 12px 10px 10px;
  border-radius: 5px;
  background: #fff;
}

.profile-order-review-media > span {
  display: block;
  color: #666;
  font-size: 12px;
  line-height: 16px;
}

.profile-order-review-media-list {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.profile-order-review-upload,
.profile-order-review-preview {
  position: relative;
  width: 80px;
  height: 80px;
  flex: none;
  margin: 0;
  border-radius: 5px;
}

.profile-order-review-upload {
  display: grid;
  grid-template-rows: 44px 22px;
  place-items: end center;
  overflow: hidden;
  background: #f4f4f4;
  color: #666;
  cursor: pointer;
}

.profile-order-review-upload > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.profile-order-review-upload > img {
  display: block;
  width: 30px;
  height: 30px;
}

.profile-order-review-upload > span {
  align-self: start;
  font-size: 12px;
  line-height: 16px;
}

.profile-order-review-preview {
  border-radius: 8px;
}

.profile-order-review-preview[hidden] {
  display: none;
}

.profile-order-review-preview > img:first-child {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-order-review-preview > button {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
}

.profile-order-review-preview > button img {
  display: block;
  width: 17px;
  height: 17px;
}

.profile-order-review-submit {
  width: calc(100% - 6px);
  min-height: 40px !important;
  flex: none;
  margin: 0 3px var(--profile-safe-bottom);
  border-radius: 20px !important;
  background: #204a46 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 40px;
}

html.view-h5 .profile-detail-page:has(.profile-order-review-page) .profile-detail-header.app-detail-header {
  height: calc(44px + env(safe-area-inset-top, 0px));
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

html.view-h5 .profile-order-review-page {
  min-height: calc(724px - var(--profile-safe-bottom));
}

/* Figma 171:4454 — 申请退款，映射为项目墨绿色与本地商品素材 */
.profile-detail-page:has(.profile-refund-page) .profile-detail-header.app-detail-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  height: 88px;
  min-height: 88px;
  padding: 44px 10px 0;
  border-bottom: 1px solid rgba(21, 61, 63, 0.08);
  background: #fff;
  backdrop-filter: none;
}

.profile-detail-page:has(.profile-refund-page) .profile-detail-header > .app-detail-back,
.profile-detail-page:has(.profile-refund-page) .profile-detail-header > .app-detail-title-wrap,
.profile-detail-page:has(.profile-refund-page) .profile-detail-header > .app-detail-spacer {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.profile-detail-page:has(.profile-refund-page) .profile-detail-header > .app-detail-title-wrap {
  width: auto;
}

.profile-content-profile-orders[data-profile-mode="refund"],
.profile-content-profile-orders[data-profile-mode="refund-apply"] {
  --profile-gutter: 0 !important;
  gap: 0;
  padding: 0 0 28px;
  background: #f5f6f6;
}

.profile-refund-page {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  color: var(--profile-text);
}

.profile-refund-product {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #fff;
}

.profile-refund-product > img {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 4px;
  object-fit: cover;
}

.profile-refund-product > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-refund-product strong {
  display: -webkit-box;
  overflow: hidden;
  color: #2f3c3b;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-refund-product small,
.profile-refund-product span {
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-refund-type-list {
  background: #fff;
}

.profile-refund-type-list > button {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 11px 12px 12px;
  border-bottom: 1px solid rgba(21, 61, 63, 0.08);
  background: #fff;
  color: var(--profile-text);
  text-align: left;
}

.profile-refund-type-list > button:last-child {
  border-bottom: 0;
}

.profile-refund-type-list > button > span {
  display: grid;
  gap: 4px;
}

.profile-refund-type-list strong {
  color: #2f3c3b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.profile-refund-type-list small {
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 17px;
}

.profile-refund-type-list i,
.profile-refund-reason-trigger i {
  display: block;
  width: 8px;
  height: 8px;
  justify-self: center;
  border-right: 1.5px solid var(--profile-muted);
  border-bottom: 1.5px solid var(--profile-muted);
  transform: rotate(-45deg);
}

.profile-refund-fields {
  background: #fff;
}

.profile-refund-field {
  display: grid;
  min-height: 48px;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(21, 61, 63, 0.08);
  font-size: 13px;
  line-height: 20px;
}

.profile-refund-field > strong,
.profile-refund-field > .profile-refund-reason-trigger {
  justify-self: end;
}

.profile-refund-field > strong {
  color: #4d5b5a;
  font-size: 13px;
  font-weight: 400;
}

.profile-refund-field > strong.is-accent {
  color: var(--profile-brand);
  font-weight: 600;
}

.profile-refund-reason > small {
  display: none;
  grid-column: 1 / -1;
  padding: 0 0 7px 92px;
  color: #a8342b;
  font-size: 11px;
  line-height: 15px;
}

.profile-refund-reason > small:not(:empty) {
  display: block;
}

.profile-refund-reason {
  position: relative;
  z-index: calc(var(--profile-z-sticky) + 1);
}

.profile-refund-reason-trigger {
  display: grid;
  min-width: 118px;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px;
  padding: 0 2px 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--profile-text);
  font-size: 13px;
  text-align: right;
}

.profile-refund-reason-trigger.is-placeholder {
  color: var(--profile-muted);
}

.profile-refund-reason-trigger:focus-visible {
  outline: 2px solid rgba(21, 61, 63, 0.35);
  outline-offset: 1px;
}

.profile-refund-reason-trigger[aria-invalid="true"] {
  background: rgba(168, 52, 43, 0.06);
  color: #a8342b;
}

.profile-refund-note {
  display: grid;
  min-height: 92px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 12px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
}

.profile-refund-note textarea {
  width: 100%;
  height: 68px;
  padding: 8px 10px;
  border: 0;
  border-radius: 2px;
  outline: 0;
  background: #f7f8f8;
  color: var(--profile-text);
  font-size: 12px;
  line-height: 18px;
  resize: none;
}

.profile-refund-note textarea::placeholder {
  color: #889392;
}

.profile-refund-evidence {
  min-height: 142px;
  padding: 12px;
  background: #fff;
}

.profile-refund-evidence > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-refund-evidence strong {
  color: #2f3c3b;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.profile-refund-evidence > div:first-child small {
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-refund-evidence-list {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-refund-evidence-list::-webkit-scrollbar {
  display: none;
}

.profile-refund-upload,
.profile-refund-evidence-list figure {
  position: relative;
  width: 70px;
  min-width: 70px;
  height: 70px;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f5f4;
}

.profile-refund-upload {
  display: grid;
  grid-template-rows: 40px 20px;
  place-items: end center;
  color: var(--profile-muted);
  cursor: pointer;
}

.profile-refund-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.profile-refund-upload > span {
  color: var(--profile-brand);
  font-size: 24px;
  font-weight: 300;
  line-height: 30px;
}

.profile-refund-upload > small {
  align-self: start;
  font-size: 11px;
  line-height: 16px;
}

.profile-refund-evidence-list figure > img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.profile-refund-evidence-list figure > button {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 48, 50, 0.82);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.profile-refund-submit {
  width: calc(100% - 24px);
  min-height: 48px !important;
  flex: none;
  margin: 0 12px var(--profile-safe-bottom);
  border-radius: 24px !important;
  background: var(--profile-brand) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 48px;
}

html.view-h5 .profile-detail-page:has(.profile-refund-page) .profile-detail-header.app-detail-header {
  height: calc(44px + env(safe-area-inset-top, 0px));
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

.profile-refund-reason-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: 10px;
  z-index: calc(var(--profile-z-sticky) + 2);
  width: 148px;
  padding: 6px;
  border: 1px solid rgba(21, 61, 63, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(8, 24, 23, 0.12);
}

.profile-refund-reason-menu[hidden] {
  display: none;
}

.profile-refund-reason-menu > button {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.profile-refund-reason-menu > button:hover,
.profile-refund-reason-menu > button:focus-visible,
.profile-refund-reason-menu > button[aria-selected="true"] {
  outline: 0;
  background: var(--profile-brand-soft);
  color: var(--profile-brand-strong);
}

.profile-refund-reason-menu > button > i {
  color: var(--profile-brand);
  font-size: 15px;
  font-style: normal;
  text-align: center;
}

.profile-content-profile-orders .profile-section {
  padding: 0 13px;
}

.profile-content-profile-orders .profile-section > h2 {
  padding: 12px 0 8px;
  font-size: 15px;
  line-height: 22px;
}

.profile-content-profile-orders .profile-section > p {
  padding: 11px 0;
  font-size: 13px;
  line-height: 21px;
}

.profile-timeline li:last-child {
  padding-bottom: 0;
}

.profile-timeline li::marker {
  color: var(--profile-brand);
}

.profile-verify-card {
  width: min(100%, 331px);
  margin: -2px auto 0;
  padding: 4px 18px 16px;
  overflow: visible;
  border-radius: var(--profile-radius-sm);
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.profile-content-profile-verify .profile-verify-card {
  width: 100%;
  margin: 0;
  padding: 0 16px 16px;
  border: 1px solid rgba(21, 61, 63, 0.06);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(25, 43, 42, 0.05);
}

.profile-verify-intro {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-radius: 14px;
  background: var(--profile-brand);
  color: #fff;
}

.profile-verify-intro-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #d9ebe6;
  font-size: 22px;
  font-weight: 700;
}

.profile-verify-intro > div {
  display: grid;
  gap: 3px;
}

.profile-verify-intro strong {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 23px;
}

.profile-verify-intro > div > span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 19px;
}

.profile-verify-card-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--profile-line);
}

.profile-verify-card-head h2,
.profile-verify-card-head p {
  margin: 0;
}

.profile-verify-card-head h2 {
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.profile-verify-card-head p {
  margin-top: 2px;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 16px;
}

.profile-verify-card-head > span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--profile-accent);
  font-size: 10px;
  line-height: 16px;
}

.profile-verify-card > label {
  position: relative;
  display: grid;
  min-height: 56px;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(26, 27, 29, 0.06);
  color: #323437;
  font-size: 14px;
  font-weight: 500;
}

.profile-content-profile-verify .profile-verify-card > label {
  min-height: 58px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.profile-content-profile-verify .profile-verify-card > label:focus-within {
  border-bottom-color: rgba(21, 61, 63, 0.26);
}

.profile-verify-card > label > span::before {
  margin-right: 1px;
  color: var(--profile-accent);
  content: "*";
}

.profile-verify-card > label > input {
  width: 100%;
  min-width: 0;
  height: 44px;
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 400;
}

.profile-verify-card > label > small {
  display: none;
  grid-column: 2;
  padding: 0 0 6px;
  color: var(--profile-accent);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
}

.profile-verify-card > label > small:not(:empty) {
  display: block;
}

.profile-verify-card > label:has(small:not(:empty)) {
  padding-top: 6px;
}

.profile-code-row {
  grid-template-columns: 80px minmax(0, 1fr) 92px !important;
}

.profile-content-profile-verify .profile-code-row {
  grid-template-columns: 72px minmax(0, 1fr) 88px !important;
}

.profile-code-row > button {
  position: relative;
  min-width: 92px;
  height: 44px;
  padding-left: 12px;
  color: var(--profile-brand);
  font-size: 13px;
  white-space: nowrap;
}

.profile-content-profile-verify .profile-code-row > button {
  min-width: 88px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--profile-brand-soft);
  font-size: 12px;
  text-align: center;
}

.profile-content-profile-verify .profile-code-row > button:disabled {
  background: #f1f3f2;
  color: #98a09f;
}

.profile-content-profile-verify .profile-code-row > button::before {
  display: none;
}

.profile-code-row > button::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background: var(--profile-line-strong);
  content: "";
}

.profile-code-row > small {
  grid-column: 2 / span 2 !important;
}

.profile-agree {
  display: grid;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  padding-top: 5px;
}

.profile-agree-check {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-left: -13px;
  cursor: pointer;
}

.profile-agree-check > input {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  opacity: 0;
  cursor: pointer;
}

.profile-agree-box {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #8b9392;
  border-radius: 2px;
  background: #fff;
}

.profile-agree-check > input:checked + .profile-agree-box {
  border-color: var(--profile-brand);
  background: var(--profile-brand);
}

.profile-agree-check > input:checked + .profile-agree-box::after {
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.profile-agree-check > input:focus-visible + .profile-agree-box {
  outline: 2px solid rgba(21, 61, 63, 0.35);
  outline-offset: 3px;
}

.profile-agree > span {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  color: #666f6e;
  font-size: 12px;
}

.profile-agree > span > label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.profile-inline-link {
  min-height: 44px !important;
  color: var(--profile-brand) !important;
  font-size: 12px !important;
  text-align: left;
}

.profile-agree > small {
  grid-column: 2;
  color: var(--profile-accent);
  font-size: 11px;
  line-height: 16px;
}

.profile-verify-card > .profile-wide-button {
  width: 100%;
  margin: 0;
}

.profile-content-profile-verify .profile-verify-card > .profile-wide-button {
  min-height: 46px;
  border-radius: 10px !important;
}

.profile-verify-success {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 21px 18px 20px;
  border-radius: 14px;
  background: var(--profile-brand);
  color: #fff;
}

.profile-verify-success-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #d9ebe6;
  font-size: 25px;
  font-weight: 700;
}

.profile-verify-success-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.profile-verify-success-copy > span {
  width: max-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #d9ebe6;
  font-size: 10px;
  font-weight: 500;
  line-height: 17px;
}

.profile-verify-success-copy > strong {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 27px;
}

.profile-verify-success-copy > p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 19px;
  text-wrap: pretty;
}

.profile-verified-details {
  overflow: hidden;
  border-radius: 12px;
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-verified-details > header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-verified-details > header h2 {
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 23px;
}

.profile-verified-details > header span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--profile-brand-soft);
  color: var(--profile-brand);
  font-size: 10px;
  line-height: 17px;
}

.profile-verified-details dl {
  padding: 0 16px;
}

.profile-verified-details dl > div {
  display: grid;
  min-height: 54px;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--profile-line);
}

.profile-verified-details dl > div:last-child {
  border-bottom: 0;
}

.profile-verified-details dt {
  color: var(--profile-muted);
  font-size: 13px;
}

.profile-verified-details dd {
  overflow: hidden;
  color: var(--profile-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-verify-security {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 10px;
  background: var(--profile-brand-soft);
}

.profile-verify-security-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbe9e5;
}

.profile-verify-security-icon::before {
  position: absolute;
  top: 9px;
  left: 10px;
  width: 12px;
  height: 10px;
  border-radius: 3px;
  background: var(--profile-brand);
  content: "";
}

.profile-verify-security-icon::after {
  position: absolute;
  top: 5px;
  left: 13px;
  width: 6px;
  height: 7px;
  border: 2px solid var(--profile-brand);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  content: "";
}

.profile-verify-security > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.profile-verify-security strong {
  color: var(--profile-brand-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
}

.profile-verify-security p {
  color: #566765;
  font-size: 11px;
  line-height: 17px;
  text-wrap: pretty;
}

.profile-verify-security > button {
  min-width: 58px;
  color: var(--profile-brand);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.profile-verify-followup {
  margin-top: 2px;
}

.profile-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  padding: 28px 20px;
  text-align: center;
}

.profile-empty::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--profile-brand-soft);
  color: var(--profile-brand);
  content: "空";
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
}

.profile-empty > strong {
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 600;
}

.profile-empty > p {
  max-width: 26em;
  margin-top: 5px;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 19px;
}

.profile-empty .profile-card-actions {
  margin-top: 16px;
}

.profile-content-profile-orders .profile-empty {
  min-height: 0;
  padding: 20px 20px 18px;
}

.profile-content-profile-orders .profile-empty::before {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.profile-content-profile-orders .profile-empty > p {
  margin-top: 3px;
}

.profile-content-profile-orders .profile-empty .profile-card-actions {
  width: 218px;
  margin-top: 12px;
  gap: 10px;
}

.profile-content-profile-orders .profile-empty .profile-card-actions > button {
  width: 104px;
  min-width: 104px;
  flex: 0 0 104px;
  padding: 0 16px;
  white-space: nowrap;
}

.profile-detail-content[data-profile-page="profile-invite"] {
  gap: 0;
  padding: 0;
  background: #fafbf8;
}

.profile-detail-page:has(.profile-content-profile-invite) .profile-detail-header {
  border-bottom-color: transparent;
  background: rgba(250, 251, 248, 0.96);
}

.profile-detail-page:has(.profile-content-profile-invite) .profile-detail-header h1 {
  color: var(--profile-brand);
  font-size: 18px;
  font-weight: 500;
}

.profile-detail-page:has(.profile-content-profile-invite) .profile-detail-back {
  left: -4px;
}

.profile-detail-page:has(.profile-content-profile-invite) .profile-detail-back img {
  width: 9px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(26%) saturate(892%) hue-rotate(133deg) brightness(87%) contrast(96%);
}

.profile-distribution-page {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px calc(24px + var(--profile-safe-bottom));
}

.profile-distribution-identity {
  position: relative;
  display: grid;
  min-height: 124px;
  grid-template-columns: 54px minmax(0, 1fr) 52px;
  grid-template-rows: 30px 25px 25px;
  align-content: center;
  column-gap: 16px;
  margin: 0 -12px;
  padding: 12px 16px 12px 18px;
  overflow: hidden;
  background: #fafbf8;
}

.profile-distribution-identity::before {
  position: absolute;
  top: 0;
  right: -2%;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(250, 251, 248, 0.84), rgba(250, 251, 248, 0.12)), url("./assets/ink-home/scenes/surname-hero-mountains-v1.webp") center right / cover no-repeat;
  content: "";
  opacity: 0.22;
  pointer-events: none;
}

.profile-distribution-identity > * {
  position: relative;
  z-index: 1;
}

.profile-distribution-avatar {
  display: block;
  position: relative;
  left: -4px;
  width: 60px;
  height: 60px;
  grid-row: 1 / 4;
  align-self: start;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}

.profile-distribution-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.profile-distribution-name > strong {
  overflow: hidden;
  color: #182323;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-distribution-name > span {
  flex: none;
  padding: 2px 7px;
  border: 1px solid rgba(21, 61, 63, 0.46);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--profile-brand);
  font-size: 11px;
  line-height: 18px;
}

.profile-distribution-identity > p {
  grid-column: 2;
  align-self: center;
  color: #3f4d4c;
  font-size: 13px;
  line-height: 20px;
}

.profile-distribution-upstream {
  display: flex;
  min-width: 0;
  grid-column: 2;
  align-items: center;
  gap: 4px;
  color: #3f4d4c;
  font-size: 13px;
  line-height: 20px;
}

.profile-distribution-upstream > span {
  min-width: 0;
  white-space: nowrap;
}

.profile-distribution-fill {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  margin: -12px -5px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--profile-brand) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.profile-distribution-fill::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 34px;
  height: 24px;
  border: 1px solid rgba(21, 61, 63, 0.62);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  content: "";
  transform: translate(-50%, -50%);
}

.profile-distribution-earnings,
.profile-distribution-team,
.profile-distribution-code,
.profile-distribution-tools {
  overflow: hidden;
  border: 1px solid #dfe3e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.profile-distribution-earnings {
  min-height: 208px;
  background: linear-gradient(145deg, #fff 0%, #fff 52%, #f7fbfa 74%, #edf6f4 100%);
}

.profile-distribution-balance {
  position: relative;
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 17px 14px 13px;
}

.profile-distribution-balance::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: #e3e7e4;
  content: "";
}

.profile-distribution-balance > div {
  min-width: 0;
}

.profile-distribution-balance span {
  display: block;
  color: #263534;
  font-size: 13px;
  line-height: 20px;
}

.profile-distribution-balance strong {
  display: block;
  margin-top: 4px;
  color: var(--profile-brand-strong);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 41px;
}

.profile-distribution-balance > button {
  width: 104px;
  height: 44px;
  flex: none;
  border-radius: 6px !important;
  background: var(--profile-brand) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: center !important;
  transform: translateY(3px);
}

.profile-detail-page .profile-distribution-metrics {
  display: grid;
  min-height: 82px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 4px 16px 12px;
  background: transparent;
}

.profile-distribution-metrics > div {
  position: relative;
  min-width: 0;
  padding: 9px 5px;
  text-align: center;
}

.profile-distribution-metrics > div + div::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  background: rgba(21, 61, 63, 0.14);
  content: "";
}

.profile-distribution-metrics dt {
  overflow: hidden;
  color: #344342;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-distribution-metrics dd {
  margin-top: 3px;
  color: var(--profile-brand);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.profile-detail-page .profile-distribution-team {
  display: grid;
  width: 100%;
  min-height: 58px !important;
  grid-template-columns: 28px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 14px !important;
  border: 1px solid #dfe3e1;
  border-radius: 8px;
  background: #fff;
  text-align: left !important;
}

.profile-distribution-team > img:first-child {
  display: block;
  width: 28px;
  height: 28px;
}

.profile-distribution-team > span {
  color: #1b2928;
  font-size: 15px;
  font-weight: 400;
}

.profile-distribution-team > em {
  min-width: 16px;
  color: #71807e;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-style: normal;
  text-align: right;
}

.profile-distribution-team > .profile-distribution-chevron {
  display: block;
  width: 6px;
  height: 12px;
  justify-self: end;
  opacity: 0.5;
  transform: rotate(180deg);
}

.profile-distribution-code {
  display: grid;
  min-height: 120px;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 8px;
}

.profile-distribution-qr-wrap {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
}

.profile-distribution-qr {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.profile-distribution-qr-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 28px;
  height: 32px;
  transform: translate(-50%, -50%);
}

.profile-distribution-code > div {
  min-width: 0;
}

.profile-distribution-code > div > span {
  color: #60706e;
  font-size: 13px;
  line-height: 19px;
}

.profile-distribution-code-line {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}

.profile-distribution-code-line > strong {
  overflow: hidden;
  color: var(--profile-brand);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-distribution-code-line > button {
  min-width: 54px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(21, 61, 63, 0.42) !important;
  border-radius: 6px !important;
  color: var(--profile-brand) !important;
  font-size: 12px !important;
  text-align: center !important;
}

.profile-distribution-code > div > p {
  margin-top: 3px;
  color: #7a8584;
  font-size: 12px;
  line-height: 18px;
}

.profile-distribution-tools {
  min-height: 116px;
}

.profile-distribution-tools > h2 {
  height: 44px;
  margin: 0 16px;
  border-bottom: 1px solid #e8ebe9;
  color: #1b2928;
  font-size: 16px;
  font-weight: 500;
  line-height: 44px;
}

.profile-distribution-tools > div {
  display: grid;
  min-height: 68px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 8px 4px;
}

.profile-distribution-tools button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #283635 !important;
  font-size: 15px !important;
  text-align: center !important;
}

.profile-distribution-tools button + button::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 1px;
  background: #e8ebe9;
  content: "";
}

.profile-distribution-tools button img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.profile-distribution-tools button .profile-distribution-tool-order-icon {
  height: 36px;
}

/* Figma 169:3916 · team, distribution orders and commission */

.profile-detail-page:has(.profile-content-profile-team, .profile-content-profile-distribution-orders, .profile-content-profile-commission) .profile-detail-header {
  border-bottom-color: #eeeeee;
  background: rgba(255, 255, 255, 0.98);
}

.profile-content-profile-team,
.profile-content-profile-distribution-orders,
.profile-content-profile-commission {
  --profile-gutter: 0px;
  gap: 0;
  padding: 0 0 32px;
  background: #f6f6f6;
}

.profile-distribution-team-controls {
  display: flex;
  min-height: 134px;
  flex-direction: column;
  padding-top: 6px;
  background: #ffffff;
}

.profile-distribution-team-search {
  display: grid;
  width: calc(100% - 20px);
  height: 32px;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  margin: 0 10px;
  padding: 0 8px;
  border-radius: 16px;
  background: #f2f2f2;
}

.profile-distribution-team-search > img {
  display: block;
  width: 16px;
  height: 16px;
}

.profile-distribution-team-search > input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0;
  color: #333333;
  font-size: 14px;
  line-height: 20px;
  appearance: none;
}

.profile-distribution-team-search > input::placeholder {
  color: #979797;
}

.profile-distribution-team-search > input::-webkit-search-cancel-button {
  appearance: none;
}

.profile-distribution-team-tabs {
  display: grid;
  min-height: 52px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 6px 20px;
}

.profile-distribution-team-tabs > button {
  width: 91px;
  min-width: 0;
  min-height: 40px;
  justify-self: center;
  border-radius: 20px;
  color: #333333;
  font-size: 14px;
  line-height: 20px;
}

.profile-distribution-team-tabs > button.active {
  min-height: 28px;
  background: var(--profile-brand);
  color: #ffffff;
  font-weight: 500;
}

.profile-distribution-team-sorts {
  display: grid;
  min-height: 44px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid #f5f5f5;
}

.profile-distribution-team-sorts > button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #333333;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.profile-distribution-team-sorts > button.active {
  color: var(--profile-brand);
}

.profile-distribution-sort-arrows {
  display: flex;
  width: 8px;
  height: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.profile-distribution-sort-arrows > img {
  display: block;
  width: 7px;
  height: 6px;
  opacity: 0.44;
}

.profile-distribution-sort-arrows > img:first-child {
  transform: rotate(180deg);
}

.profile-distribution-team-sorts > button.active .profile-distribution-sort-arrows > img {
  opacity: 0.92;
}

.profile-distribution-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.profile-distribution-member {
  display: grid;
  min-height: 72px;
  grid-template-columns: 50px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: #ffffff;
}

.profile-distribution-member > img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-distribution-member-copy,
.profile-distribution-member-stats {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-distribution-member-copy {
  gap: 5px;
}

.profile-distribution-member-copy > strong {
  overflow: hidden;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-distribution-member-copy > time {
  color: #808080;
  font-size: 12px;
  line-height: 20px;
}

.profile-distribution-member-stats {
  align-items: flex-end;
  color: #333333;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.profile-distribution-member-stats strong {
  color: var(--profile-brand);
  font-weight: 400;
}

.profile-distribution-team-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: #777777;
  text-align: center;
}

.profile-distribution-team-empty > strong {
  color: #333333;
  font-size: 14px;
  font-weight: 500;
}

.profile-distribution-team-empty > p {
  font-size: 12px;
}

.profile-distribution-order-tabs {
  display: grid;
  min-height: 46px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  background: #ffffff;
}

.profile-distribution-order-tabs > button {
  position: relative;
  min-width: 0;
  min-height: 46px;
  color: #333333;
  font-size: 15px;
  line-height: 21px;
}

.profile-distribution-order-tabs > button::after {
  position: absolute;
  right: 50%;
  bottom: 5px;
  width: 30px;
  height: 2px;
  border-radius: 1px;
  background: transparent;
  content: "";
  transform: translateX(50%);
}

.profile-distribution-order-tabs > button.active {
  color: var(--profile-brand);
  font-weight: 500;
}

.profile-distribution-order-tabs > button.active::after {
  background: var(--profile-brand);
}

.profile-distribution-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.profile-distribution-order-card {
  min-height: 191px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.profile-distribution-order-card > header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  font-size: 12px;
  line-height: 17px;
}

.profile-distribution-order-card > header > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-distribution-order-card > header > strong {
  flex: none;
  color: #777777;
  font-weight: 400;
}

.profile-distribution-order-card > header > strong.is-pending {
  color: var(--profile-accent);
}

.profile-distribution-order-card > header > strong.is-settled {
  color: var(--profile-success);
}

.profile-distribution-order-product {
  display: grid;
  min-height: 110px;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  grid-template-rows: 42px 24px 24px;
  column-gap: 13px;
  padding: 15px;
  border-bottom: 1px solid #eeeeee;
}

.profile-distribution-order-media {
  display: block;
  width: 80px;
  height: 80px;
  grid-row: 1 / 4;
  overflow: hidden;
}

.profile-distribution-order-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-distribution-order-copy {
  display: contents;
}

.profile-distribution-order-copy > strong {
  display: -webkit-box;
  grid-column: 2 / 4;
  overflow: hidden;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-distribution-order-copy > span,
.profile-distribution-order-paid {
  align-self: center;
  color: #333333;
  font-size: 12px;
  line-height: 17px;
  white-space: nowrap;
}

.profile-distribution-order-copy > span:nth-of-type(1) {
  grid-column: 2;
  grid-row: 2;
}

.profile-distribution-order-copy > span:nth-of-type(2) {
  grid-column: 2;
  grid-row: 3;
}

.profile-distribution-order-copy small,
.profile-distribution-order-paid small {
  color: #aaaaaa;
  font-size: 12px;
}

.profile-distribution-order-copy em {
  color: var(--profile-accent);
  font-style: normal;
}

.profile-distribution-order-paid {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

.profile-distribution-order-card > footer {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  color: #aaaaaa;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 17px;
}

.profile-distribution-empty,
.profile-commission-empty {
  display: flex;
  min-height: 420px;
  align-items: center;
  flex-direction: column;
  padding-top: 80px;
  color: #888888;
  text-align: center;
}

.profile-distribution-empty > img,
.profile-commission-empty > img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  opacity: 0.48;
}

.profile-distribution-empty > strong,
.profile-commission-empty > strong {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.profile-commission-list {
  display: block;
  margin-top: 10px;
  background: #ffffff;
}

.profile-commission-list > article {
  display: grid;
  min-height: 61px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 15px;
  border-bottom: 1px solid #eeeeee;
}

.profile-commission-list > article > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-commission-list > article > span > strong {
  overflow: hidden;
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-commission-list time {
  color: #777777;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 17px;
}

.profile-commission-list > article > strong {
  color: var(--profile-success);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 22px;
}

.profile-commission-list > p {
  min-height: 44px;
  padding-top: 11px;
  color: #777777;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

html.view-h5 .profile-content-profile-team,
html.view-h5 .profile-content-profile-distribution-orders,
html.view-h5 .profile-content-profile-commission {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.profile-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: var(--profile-z-dialog);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 18, 0.44);
  backdrop-filter: blur(2px);
}

.profile-dialog {
  width: min(100%, 360px);
  max-height: calc(100% - 40px);
  padding: 20px;
  overflow-y: auto;
  border-radius: var(--profile-radius-lg);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 24, 23, 0.18);
}

.profile-dialog > h2 {
  color: var(--profile-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.profile-dialog > p {
  margin-top: 8px;
  color: var(--profile-muted);
  font-size: 13px;
  line-height: 20px;
}

.profile-dialog-actions {
  margin-top: 18px;
}

.profile-dialog-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.profile-dialog-form > label {
  display: grid;
  gap: 6px;
  color: var(--profile-text);
  font-size: 13px;
}

.profile-dialog-form input,
.profile-dialog-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--profile-line-strong);
  border-radius: var(--profile-radius-sm);
  background: #fafbf9;
  color: var(--profile-ink);
  font-size: 16px;
}

.profile-dialog-form textarea {
  min-height: 96px;
}

.profile-dialog-error {
  color: var(--profile-accent);
  font-size: 12px;
  line-height: 18px;
}

.profile-dialog-backdrop:has(.report-dialog-form) {
  align-items: flex-end;
  padding: 0;
  background: rgba(9, 20, 19, 0.42);
  backdrop-filter: blur(6px) saturate(0.88);
  -webkit-backdrop-filter: blur(6px) saturate(0.88);
}

.profile-dialog:has(.report-dialog-form) {
  width: 100%;
  max-width: none;
  max-height: calc(100% - 60px);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(21, 61, 63, 0.08);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  box-shadow: 0 -16px 48px rgba(7, 24, 22, 0.16);
  animation: report-dialog-rise 260ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.profile-dialog:has(.report-dialog-form)::before {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 4px;
  background: rgba(21, 61, 63, 0.14);
  content: "";
}

.profile-dialog:has(.report-dialog-form) > h2 {
  margin: 0;
  color: #172f2d;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 27px;
}

.profile-dialog:has(.report-dialog-form) > p {
  max-width: 310px;
  margin: 7px 0 0;
  color: #77817f;
  font-size: 13px;
  line-height: 20px;
}

.profile-dialog:has(.report-dialog-form) .report-dialog-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.profile-dialog:has(.report-dialog-form) .report-dialog-form > label {
  display: grid;
  gap: 8px;
  color: #2f4140;
  font-size: 13px;
}

.report-field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.report-field-label em {
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(168, 52, 43, 0.08);
  color: #a34b43;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
}

.report-field-label em.optional {
  background: rgba(21, 61, 63, 0.06);
  color: #7b8784;
}

.report-select-field,
.report-textarea-field {
  position: relative;
  display: block;
}

.profile-dialog:has(.report-dialog-form) .report-select-field select,
.profile-dialog:has(.report-dialog-form) .report-textarea-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(21, 61, 63, 0.13);
  border-radius: 12px;
  outline: 0;
  background: rgba(247, 248, 245, 0.94);
  color: #203633;
  font-family: var(--profile-font);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.profile-dialog:has(.report-dialog-form) .report-select-field select {
  height: 48px;
  min-height: 48px;
  padding: 0 44px 0 14px;
  appearance: none;
  -webkit-appearance: none;
}

.profile-dialog:has(.report-dialog-form) .report-select-field select:invalid {
  color: #8b9592;
}

.report-select-field > img {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.54;
  transform: translateY(-50%) rotate(90deg);
}

.profile-dialog:has(.report-dialog-form) .report-textarea-field textarea {
  min-height: 106px;
  padding: 12px 14px 30px;
  resize: none;
  line-height: 21px;
}

.profile-dialog:has(.report-dialog-form) .report-select-field select:focus,
.profile-dialog:has(.report-dialog-form) .report-textarea-field textarea:focus {
  border-color: rgba(32, 74, 70, 0.52);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(32, 74, 70, 0.08);
}

.report-char-count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #98a19f;
  font-size: 11px;
  line-height: 16px;
  pointer-events: none;
}

.report-form-error {
  display: block;
  min-height: 18px;
  margin: -3px 0 -5px;
  color: #a8342b;
  font-size: 11px;
  line-height: 18px;
}

.profile-dialog:has(.report-dialog-form) .profile-dialog-actions {
  gap: 12px;
  margin-top: 20px;
}

.profile-dialog:has(.report-dialog-form) .profile-dialog-actions button {
  min-height: 48px;
  border: 1px solid rgba(21, 61, 63, 0.12) !important;
  border-radius: 14px !important;
  background: #f0f4f2 !important;
  color: #31504c !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.profile-dialog:has(.report-dialog-form) .profile-dialog-actions button.primary {
  border-color: #204a46 !important;
  background: #204a46 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(32, 74, 70, 0.18);
}

@keyframes report-dialog-rise {
  from {
    opacity: 0.7;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-dialog:has(.report-dialog-form) {
    animation: none;
  }
}

.profile-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  border: 0;
}

.profile-rating legend {
  width: 100%;
  margin-bottom: 4px;
  color: var(--profile-text);
  font-size: 13px;
}

.profile-rating label {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}

.profile-rating input {
  position: absolute;
  opacity: 0;
}

.profile-rating span {
  color: #c5ccca;
  font-size: 24px;
}

.profile-rating input:checked + span {
  color: var(--profile-accent);
}

.profile-rating small {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}

.profile-poster-preview {
  display: grid;
  place-items: center;
  padding: 20px 10px 4px;
  text-align: center;
}

.profile-poster-preview > span {
  color: var(--profile-brand);
  font-size: 13px;
}

.profile-poster-preview > strong {
  margin-top: 8px;
  color: var(--profile-ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 20px;
  line-height: 28px;
}

.profile-poster-preview > img {
  width: 156px;
  height: 156px;
  margin-top: 18px;
}

.profile-poster-preview > small,
.profile-poster-preview > p {
  margin-top: 6px;
  color: var(--profile-muted);
  font-size: 12px;
}

.profile-copy-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
}

.phone[data-page="profile"] .statusbar {
  z-index: calc(var(--profile-z-sticky) + 1);
  height: 12.8cqw;
  padding: 4cqw 3.824cqw 0 5.6cqw;
  align-items: flex-start;
  background: transparent;
  box-shadow: none;
  font-size: 3.733cqw;
  line-height: 4.533cqw;
}

.phone[data-page="profile"].is-scrolled .statusbar {
  background: rgba(250, 251, 249, 0.96);
  box-shadow: inset 0 -0.133cqw 0 rgba(25, 43, 42, 0.06);
}

.phone[data-page="profile"] .statusbar .island,
.phone[data-page="profile"] .statusbar .system-icons {
  display: none;
}

.phone[data-page="profile"] .profile-status-frame {
  display: block;
  width: 17.776cqw;
  height: 3.023cqw;
  margin-top: 0.533cqw;
}

.phone[data-page="profile"][data-subpage^="profile-"] .bottom-nav {
  display: none;
}

.phone[data-subpage="profile-surname-residency"] .bottom-nav,
.phone[data-subpage="profile-surname-change"] .bottom-nav {
  display: none;
}

.phone[data-page="profile"][data-subpage^="profile-"] .toast {
  bottom: 24px;
}

html.view-h5 .profile-detail-page {
  max-width: 430px;
  min-height: 100dvh;
  border: 0;
}

html.view-h5 .phone {
  --profile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html.view-h5 .profile-detail-header {
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

html.view-h5 .profile-detail-content {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

html.view-h5 .profile-detail-content:has(.profile-bottom-bar, .profile-sticky-actions) {
  padding-bottom: 0;
}

.profile-content-profile-surname-residency,
.profile-content-profile-surname-change {
  --profile-gutter: 14px;
  gap: 10px;
}

.profile-surname-summary {
  display: grid;
  min-height: 92px;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  overflow: hidden;
  border-radius: var(--profile-radius-md);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow-sm);
}

.profile-surname-summary > img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.profile-surname-summary > span {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
}

.profile-surname-summary small {
  grid-column: 1 / -1;
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-surname-summary strong {
  color: var(--profile-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.profile-surname-summary em {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--profile-success-soft);
  color: var(--profile-success);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.profile-surname-flow ol {
  margin: 0;
  padding: 2px 0;
  list-style: none;
}

.profile-content-profile-verify .profile-surname-flow.is-compact {
  padding: 0 14px 12px;
}

.profile-content-profile-verify .profile-surname-flow.is-compact > h2 {
  padding: 12px 0 9px;
  border-bottom: 0;
  font-size: 14px;
  line-height: 20px;
}

.profile-content-profile-verify .profile-surname-flow.is-compact ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px 0 1px;
}

.profile-content-profile-verify .profile-surname-flow.is-compact li {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  border-bottom: 0;
  text-align: center;
}

.profile-content-profile-verify .profile-surname-flow.is-compact li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 10px;
  left: calc(50% + 15px);
  width: calc(100% - 30px);
  height: 1px;
  background: #dce2e0;
  content: "";
}

.profile-content-profile-verify .profile-surname-flow.is-compact li > span {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  background: #fff;
}

.profile-content-profile-verify .profile-surname-flow.is-compact li:nth-child(1) > span::after {
  content: "1";
}

.profile-content-profile-verify .profile-surname-flow.is-compact li:nth-child(2) > span::after {
  content: "2";
}

.profile-content-profile-verify .profile-surname-flow.is-compact li:nth-child(3) > span::after {
  content: "3";
}

.profile-content-profile-verify .profile-surname-flow.is-compact li.is-complete > span::after {
  content: "✓";
}

.profile-content-profile-verify .profile-surname-flow.is-compact li.is-current > span {
  background: var(--profile-brand);
  color: #fff;
}

.profile-content-profile-verify .profile-surname-flow.is-compact li > div {
  display: block;
}

.profile-content-profile-verify .profile-surname-flow.is-compact li > div strong {
  display: block;
  font-size: 12px;
  line-height: 17px;
}

.profile-content-profile-verify .profile-surname-flow.is-compact li > div small,
.profile-content-profile-verify .profile-surname-flow.is-compact li > em {
  display: none;
}

.profile-surname-flow li {
  display: grid;
  min-height: 62px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-surname-flow li:last-child {
  border-bottom: 0;
}

.profile-surname-flow li > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #9aa6a4;
  border-radius: 50%;
  color: #7b8786;
  font-size: 11px;
  font-weight: 600;
}

.profile-surname-flow li > span::after {
  content: "·";
}

.profile-surname-flow li.is-complete > span {
  border-color: var(--profile-success);
  background: var(--profile-success);
  color: #fff;
}

.profile-surname-flow li.is-complete > span::after {
  content: "✓";
}

.profile-surname-flow li.is-current > span {
  border-color: var(--profile-brand);
  background: var(--profile-brand-soft);
  color: var(--profile-brand);
}

.profile-surname-flow li.is-current > span::after {
  content: "→";
}

.profile-surname-flow li.is-warning > span {
  border-color: var(--profile-warning);
  background: var(--profile-warning-soft);
  color: var(--profile-warning);
}

.profile-surname-flow li.is-warning > span::after {
  content: "!";
}

.profile-surname-flow li > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.profile-surname-flow li > div strong {
  color: var(--profile-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.profile-surname-flow li > div small {
  overflow: hidden;
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-surname-flow li > em {
  color: var(--profile-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
  white-space: nowrap;
}

.profile-surname-flow li.is-complete > em {
  color: var(--profile-success);
}

.profile-surname-flow li.is-current > em {
  color: var(--profile-brand);
}

.profile-surname-flow li.is-warning > em {
  color: var(--profile-warning);
}

.profile-surname-picker {
  padding: 16px 14px;
  outline: none;
}

.profile-surname-picker > header {
  display: grid;
  gap: 2px;
  margin-bottom: 11px;
}

.profile-surname-picker > header strong {
  color: var(--profile-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.profile-surname-picker > header small {
  color: var(--profile-muted);
  font-size: 12px;
  line-height: 18px;
}

.profile-surname-form {
  position: relative;
  overflow: visible;
}

.profile-surname-dropdown {
  position: relative;
}

.profile-surname-dropdown summary {
  position: relative;
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  padding: 0 42px 0 13px;
  border: 1px solid #d9e1df !important;
  border-radius: 9px !important;
  outline: none;
  background: #f8faf9 !important;
  color: var(--profile-ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.profile-surname-dropdown summary::-webkit-details-marker {
  display: none;
}

.profile-surname-dropdown summary::after {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #687675;
  border-bottom: 1.5px solid #687675;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.profile-surname-dropdown[open] summary::after {
  top: 21px;
  transform: rotate(225deg);
}

.profile-surname-dropdown summary:focus-visible,
.profile-surname-dropdown[open] summary {
  border-color: var(--profile-brand) !important;
  box-shadow: 0 0 0 3px rgba(21, 61, 63, 0.11);
}

.profile-surname-dropdown-menu {
  position: absolute;
  z-index: calc(var(--profile-z-sticky) - 1);
  top: 54px;
  right: 0;
  left: 0;
  max-height: 238px;
  padding: 6px;
  overflow-y: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 35, 34, 0.16);
  scrollbar-color: #b8c3c1 transparent;
  scrollbar-width: thin;
}

.profile-surname-dropdown-menu button {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 11px !important;
  border-radius: 7px !important;
  color: #334342 !important;
  font-size: 14px !important;
  text-align: left !important;
}

.profile-surname-dropdown-menu button:hover,
.profile-surname-dropdown-menu button:focus-visible {
  background: #f2f5f4 !important;
}

.profile-surname-dropdown-menu button.is-selected {
  background: var(--profile-brand-soft) !important;
  color: var(--profile-brand) !important;
  font-weight: 600;
}

.profile-surname-dropdown-menu button.is-selected::after {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid var(--profile-brand);
  border-bottom: 1.5px solid var(--profile-brand);
  content: "";
  transform: rotate(45deg);
}

.profile-surname-picker > small {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: var(--profile-accent);
  font-size: 11px;
  line-height: 16px;
}

.profile-surname-picker > small:empty {
  display: none;
}

.profile-surname-picker.has-error {
  box-shadow: none;
}

.profile-surname-picker.has-error .profile-surname-dropdown summary {
  border-color: var(--profile-accent) !important;
  color: var(--profile-accent);
}

.profile-verify-surname-picker {
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(26, 27, 29, 0.06);
}

.profile-verify-surname-picker > header {
  gap: 1px;
  margin-bottom: 9px;
}

.profile-verify-surname-picker > header strong {
  font-size: 14px;
  line-height: 20px;
}

.profile-verify-surname-picker > header small {
  font-size: 11px;
  line-height: 16px;
}

.profile-verify-surname-picker .profile-surname-dropdown summary {
  height: 44px;
  background: #f7f9f8 !important;
}

.profile-verify-surname-picker .profile-surname-dropdown summary::after {
  top: 16px;
}

.profile-verify-surname-picker .profile-surname-dropdown[open] summary::after {
  top: 19px;
}

.profile-verify-surname-picker .profile-surname-dropdown-menu {
  top: 50px;
}

.profile-surname-application .profile-readonly-list > p > small {
  color: var(--profile-muted);
  font-size: 11px;
  line-height: 17px;
}

.profile-surname-application .profile-readonly-list > p > strong {
  overflow-wrap: anywhere;
}

@media (min-width: 431px) {
  html.view-h5 .profile-detail-page {
    border-right: 1px solid rgba(21, 61, 63, 0.05);
    border-left: 1px solid rgba(21, 61, 63, 0.05);
  }
}

@media (hover: hover) and (pointer: fine) {
  .profile-page-toolbar > button:hover,
  .profile-detail-actions > button:hover,
  .profile-bottom-bar > button:hover,
  .profile-order-card-foot button:hover,
  .profile-form > button:hover,
  .profile-logout-button:hover {
    filter: brightness(0.97);
  }
}

@media (max-width: 340px) {
  .profile-detail-screen {
    --profile-gutter: 12px;
  }

  .profile-distribution-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .profile-distribution-identity {
    grid-template-columns: 54px minmax(0, 1fr) 48px;
    column-gap: 10px;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .profile-distribution-avatar {
    width: 54px;
    height: 54px;
  }

  .profile-distribution-code {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .profile-distribution-qr-wrap,
  .profile-distribution-qr {
    width: 72px;
    height: 72px;
  }

  .profile-distribution-code-line > strong {
    font-size: 18px;
  }

  .profile-order-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-order-card-foot > div {
    width: 100%;
  }

  .profile-order-card-foot button {
    flex: 1;
  }
}

@media (max-width: 260px) {
  .profile-detail-content,
  .profile-detail-content[data-profile-page] {
    --profile-gutter: 10px;
  }

  .profile-detail-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .profile-tabs button {
    min-width: 54px;
  }

  .profile-form > label,
  .profile-settings-fields > label,
  .profile-verify-card > label,
  .profile-code-row {
    min-height: 0;
    grid-template-columns: 1fr !important;
    gap: 4px;
    padding: 12px !important;
  }

  .profile-form > label > small,
  .profile-settings-fields > label > small,
  .profile-verify-card > label > small,
  .profile-code-row > small,
  .profile-agree > small {
    grid-column: 1 !important;
  }

  .profile-code-row > button {
    width: 100%;
    min-width: 0;
  }

  .profile-code-row > button::before {
    display: none;
  }

  .profile-agree {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .profile-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-product-row > img,
  .profile-order-body > img {
    width: 64px;
    height: 64px;
  }

  .profile-order-body {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-bottom-bar {
    flex-wrap: wrap;
  }

  .profile-wallet-panel > button {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .profile-coupon-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-coupon-action {
    min-height: 56px;
    place-items: center end;
    padding: 6px 12px;
    border-top: 1px solid var(--profile-line);
    border-left: 0;
  }

  .profile-distribution-identity {
    min-height: 184px;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-content: center;
    padding: 16px 12px;
  }

  .profile-distribution-avatar {
    width: 50px;
    height: 50px;
    grid-row: 1 / 3;
  }

  .profile-distribution-name {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .profile-distribution-fill {
    width: 44px;
  }

  .profile-distribution-balance {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-distribution-balance > button {
    width: 100%;
  }

  .profile-distribution-metrics {
    grid-template-columns: 1fr;
  }

  .profile-distribution-metrics > div + div::before {
    top: 0;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    height: 1px;
  }

  .profile-distribution-code {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-distribution-qr-wrap,
  .profile-distribution-qr {
    justify-self: center;
  }

  .profile-distribution-code-line {
    flex-direction: column;
  }

  .profile-distribution-code-line > button {
    width: 100%;
  }

  .profile-distribution-tools > div {
    grid-template-columns: 1fr;
  }

  .profile-distribution-team {
    grid-template-columns: 28px minmax(0, 1fr) 8px;
  }

  .profile-distribution-team > em {
    display: none;
  }

  .profile-distribution-tools button + button::before {
    top: 0;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-detail-screen *,
  .profile-detail-screen *::before,
  .profile-detail-screen *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* 会员中心：直接展示付费 VIP，账号身份保留在资料体系 */
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/Alibaba-PuHuiTi-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

.profile-detail-page:has(.profile-content-profile-membership) {
  --membership-ink: #173f3c;
  --membership-gold: #caa04d;
  --membership-paper: #fbfaf9;
  --membership-line: #e7e3da;
  min-height: 100%;
  background: var(--membership-paper);
}

.profile-detail-page:has(.profile-content-profile-membership) .profile-detail-header {
  min-height: 92px !important;
  padding: 48px 10px 0 !important;
  border-bottom: 0;
  background: rgba(251, 250, 247, 0.97);
  backdrop-filter: blur(10px);
}

html.view-h5 .profile-detail-page:has(.profile-content-profile-membership) .profile-detail-header {
  min-height: 68px !important;
  padding: 24px 10px 0 !important;
}

.profile-detail-page:has(.profile-content-profile-membership) .profile-detail-header h1 {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.profile-detail-page:has(.profile-content-profile-membership) .profile-detail-back img {
  width: 20px;
  height: 20px;
}

.profile-content-profile-membership,
html.view-h5 .profile-content-profile-membership {
  display: block;
  gap: 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--membership-paper);
}

.membership-page {
  min-height: 100%;
  color: #202524;
  font-family: "Alibaba PuHuiTi", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

.membership-user-strip {
  display: grid;
  min-height: 86px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 20px;
  background-color: #f2f3ef;
  background-image: url("./assets/membership-reference/user-seal-watermark.webp");
  background-repeat: no-repeat;
  background-position: right 81px top 9px;
  background-size: 80px 77px;
}

.membership-avatar {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
}

.membership-user-copy {
  min-width: 0;
}

.membership-user-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.membership-user-copy strong {
  overflow: hidden;
  color: #202423;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-user-copy p {
  margin-top: 4px;
  color: #4c5452;
  font-size: 13px;
  line-height: 20px;
}

.membership-record-link {
  display: inline-flex;
  min-width: 0 !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--membership-ink) !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.membership-record-link img {
  width: 10px;
  height: 10px;
}

.membership-record-link img,
.membership-benefits-heading button img,
.membership-help-chevron {
  display: block;
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.membership-purchase {
  padding: 22px 20px 0;
}

.membership-section-heading h2 {
  color: #1e2423;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.01em;
}

.membership-benefits-heading h2 {
  color: #1e2423;
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.01em;
}

.membership-section-heading p {
  margin-top: 3px;
  color: #777b79;
  font-size: 14px;
  line-height: 21px;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.membership-plan-card {
  position: relative;
  display: flex;
  min-width: 0 !important;
  height: 136px;
  min-height: 136px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 19px 6px 12px !important;
  overflow: hidden;
  border: 1px solid #ded4bf !important;
  border-radius: 12px !important;
  background: #faf9f5 !important;
  color: var(--membership-ink) !important;
}

.membership-plan-card.is-selected {
  border-color: #ddb75d !important;
  background: #11544d !important;
  box-shadow: inset 0 0 0 1px rgba(251, 219, 143, 0.45);
  color: #fff8e8 !important;
}

.membership-plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 42px;
  padding: 4px 8px 5px;
  border-radius: 0 11px 0 12px;
  background: #e9c36d;
  color: #282518;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.membership-plan-name {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 25px;
}

.membership-plan-card strong {
  display: flex;
  align-items: baseline;
  margin-top: 6px;
  font-family: "Times New Roman", "Songti SC", serif;
  font-size: 35px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -0.03em;
}

.membership-plan-card strong small {
  margin-right: 4px;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.membership-plan-card.is-selected strong {
  color: #efc36c;
}

.membership-plan-duration {
  margin-top: 3px;
  color: #727775;
  font-size: 13px;
  line-height: 20px;
}

.membership-plan-card.is-selected .membership-plan-duration {
  color: rgba(255, 255, 255, 0.76);
}

.membership-open-button {
  display: flex;
  width: 100%;
  height: 47px;
  min-height: 47px !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px !important;
  border-radius: 7px !important;
  background: #11544d !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(17, 84, 77, 0.12);
  font-size: 17px !important;
}

.membership-open-button > span,
.membership-open-button > strong {
  color: #f0c773;
  font-family: "Times New Roman", "Songti SC", serif;
}

.membership-open-button > span {
  margin-right: -4px;
  font-size: 18px;
}

.membership-open-button > strong {
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.membership-open-button > b {
  font-family: "Alibaba PuHuiTi", "PingFang SC", sans-serif;
  font-weight: 500;
}

.membership-agreement {
  display: flex;
  height: 37px;
  min-height: 37px;
  align-items: center;
  padding-top: 8px;
  color: #535957;
  font-size: 13px;
  line-height: 20px;
}

.membership-agreement label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.membership-agreement input {
  width: 18px;
  height: 18px;
  flex: none;
  appearance: none;
  border: 1.5px solid #7f8582;
  border-radius: 50%;
  background: #fff;
}

.membership-agreement input:checked {
  border: 5px solid #11544d;
}

.membership-agreement button {
  min-width: 0 !important;
  min-height: 44px !important;
  color: #1d5d58 !important;
  font-size: 13px !important;
}

.membership-benefits {
  padding: 7px 20px 0;
}

.membership-benefits-heading {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
}

.membership-benefits-heading button {
  display: inline-flex;
  min-height: 44px !important;
  align-items: center;
  gap: 5px;
  color: #666a68 !important;
  font-size: 13px !important;
}

.membership-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.membership-benefit-card {
  display: grid;
  min-width: 0 !important;
  min-height: 78px !important;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 12px !important;
  border-radius: 11px !important;
  text-align: left;
}

.membership-benefit-card.is-green {
  background: #f2f3ef !important;
}

.membership-benefit-card.is-gold {
  background: #f7f2ea !important;
}

.membership-benefit-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.membership-benefit-card.is-gold .membership-benefit-icon {
  border-color: transparent;
}

.membership-benefit-icon img {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  opacity: 1;
}

.membership-benefit-card > span:last-child {
  min-width: 0;
}

.membership-benefit-card strong,
.membership-benefit-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-benefit-card strong {
  color: #232827;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.membership-benefit-card small {
  margin-top: 2px;
  color: #737875;
  font-size: 11px;
  line-height: 18px;
}

.membership-help-row {
  display: grid;
  width: calc(100% - 40px);
  min-height: 66px !important;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  margin: 22px 20px 0 !important;
  border-top: 1px solid var(--membership-line) !important;
  color: #5f6462 !important;
  text-align: left;
}

.membership-help-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  opacity: 1;
}

@media (max-width: 350px) {
  .membership-user-strip {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 14px;
  }

  .membership-avatar {
    width: 48px;
    height: 48px;
  }

  .membership-user-copy strong {
    font-size: 18px;
  }

  .membership-record-link {
    min-width: 68px !important;
    font-size: 13px !important;
  }

  .membership-purchase,
  .membership-benefits {
    padding-inline: 14px;
  }

  .membership-plan-grid {
    gap: 8px;
  }

  .membership-plan-card strong {
    font-size: 30px;
  }

  .membership-benefit-grid {
    grid-template-columns: 1fr;
  }

  .membership-help-row {
    width: calc(100% - 28px);
    margin-inline: 14px !important;
  }
}
