/* The reference layout applies only to the personal center. */
html body #app .lb-profile-screen {
  --profile-accent: #38b9b7;
  --profile-amount: #684077;
  --profile-ink: #182326;
  --profile-muted: #737e82;
  --profile-line: #f0f1f2;
  --profile-gap: #f4f4f4;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--profile-ink);
  background: var(--profile-gap);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.lb-profile-screen *, .lb-profile-screen *::before, .lb-profile-screen *::after { box-sizing: border-box; }
.lb-profile-screen button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lb-profile-screen button:focus-visible { outline: 2px solid #126d75; outline-offset: -3px; }
.lb-profile-screen button:disabled { cursor: wait; opacity: .6; }
.lb-profile-screen .lb-profile-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 44px; background: var(--profile-accent); }
.lb-profile-screen .lb-profile-header h1 { margin: 0; font-size: 16px; font-weight: 600; }
.lb-profile-screen .lb-profile-header button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--profile-ink); }
.lb-profile-screen .lb-profile-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: 18px; scrollbar-width: thin; }
.lb-profile-screen .lb-profile-identity { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 12px 14px; background: #fff; }
.lb-profile-screen .lb-profile-avatar { display: block; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f4f4f4; }
.lb-profile-screen .lb-profile-identity-detail { flex: 1; min-width: 0; }
.lb-profile-screen .lb-profile-name { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.lb-profile-screen .lb-profile-name > strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 400; }
.lb-profile-screen .lb-profile-name button { min-height: 28px; padding: 3px 6px; }
.lb-profile-screen .lb-profile-invitation { margin-top: 2px; color: var(--profile-muted); font-size: 12px; }
.lb-profile-screen .lb-profile-credit { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--profile-muted); font-size: 12px; }
.lb-profile-screen .lb-profile-credit > span { flex-shrink: 0; }
.lb-profile-screen .lb-profile-credit progress { display: block; flex: 1; min-width: 32px; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; appearance: none; background: #eef1f4; }
.lb-profile-screen .lb-profile-credit progress::-webkit-progress-bar { background: #eef1f4; border-radius: 8px; }
.lb-profile-screen .lb-profile-credit progress::-webkit-progress-value { background: #2189ff; border-radius: 8px; }
.lb-profile-screen .lb-profile-credit progress::-moz-progress-bar { background: #2189ff; border-radius: 8px; }
.lb-profile-screen .lb-profile-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; padding: 10px 0; background: #fff; }
.lb-profile-screen .lb-profile-balance-item { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 54px; gap: 4px; padding: 0 8px; text-align: center; }
.lb-profile-screen .lb-profile-balance-item + .lb-profile-balance-item { border-left: 1px solid var(--profile-line); }
.lb-profile-screen .lb-profile-balance-item > strong { font-size: 14px; font-weight: 600; }
.lb-profile-screen .lb-profile-balance-toggle { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; min-height: 28px; border: 0; background: transparent; color: inherit; font-weight: 600; }
.lb-profile-screen .lb-profile-amount { max-width: 100%; color: var(--profile-amount); font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lb-profile-screen .lb-profile-money-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 4px 0; background: #fff; }
.lb-profile-screen .lb-profile-money-actions button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 66px; border: 0; background: transparent; color: inherit; }
.lb-profile-screen .lb-profile-group { margin: 10px 0 0; padding: 0 12px; background: #fff; scroll-margin-top: 10px; }
.lb-profile-screen .lb-profile-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--profile-line); border-radius: 0; background: #fff; color: var(--profile-ink); text-align: left; font-size: 14px; font-weight: 400; }
.lb-profile-screen .lb-profile-group > .lb-profile-row:last-child, .lb-profile-screen .lb-profile-logout .lb-profile-row { border-bottom: 0; }
.lb-profile-screen .lb-profile-row-icon { display: grid; flex: 0 0 22px; place-items: center; }
.lb-profile-screen .lb-profile-row-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lb-profile-screen .lb-profile-row-value { color: var(--profile-muted); font-size: 12px; }
.lb-profile-screen .lb-profile-chevron { color: #91999e; font-size: 23px; line-height: 1; font-family: Arial, sans-serif; }
.lb-profile-screen .lb-profile-logout .lb-profile-row { color: #b33e45; }
.lb-profile-screen .lb-profile-row:hover, .lb-profile-screen .lb-profile-money-actions button:hover { background: #f8fafb; }
.lb-profile-screen .lb-profile-row:active, .lb-profile-screen .lb-profile-money-actions button:active { background: #edf5f5; }
html body #app .lb-profile-screen > .h-10 { display: none !important; }
html body #app .lb-profile-screen > .van-tabbar {
  position: relative !important; inset: auto !important; transform: none !important;
  display: flex !important; flex: 0 0 auto; width: 100% !important; max-width: none !important;
  height: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
  background: var(--profile-accent) !important; border: 0 !important;
}
html body #app .lb-profile-screen > .van-tabbar::after { border: 0; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 52px; margin: 0; padding: 4px 0; color: var(--profile-ink) !important; background: transparent !important; font-size: 12px; line-height: 1.2; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item--active { color: #fff !important; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item__icon { margin: 0 0 4px; color: inherit !important; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item__icon > * { color: inherit !important; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item svg { color: inherit !important; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item svg [fill]:not([fill="none"]) { fill: currentColor; }
html body #app .lb-profile-screen > .van-tabbar .van-tabbar-item svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
@media (max-width: 350px) { .lb-profile-screen .lb-profile-identity { gap: 8px; padding-inline: 10px; } .lb-profile-screen .lb-profile-avatar { width: 48px; height: 48px; flex-basis: 48px; } .lb-profile-screen .lb-profile-credit { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .lb-profile-screen * { scroll-behavior: auto !important; } }

/* All refinements stay inside this profile, preserving other module styles. */
.lb-profile-screen .lb-profile-balances { border-radius: 8px; }
.lb-profile-screen .lb-profile-name .lb-vip-badge { position: relative; min-height: 18px; padding: 0 4px; border: 0; border-radius: 1px; background: #ba541e; color: #fff; box-shadow: none; font: 12px/18px Arial, sans-serif; }
.lb-profile-screen .lb-profile-name .lb-vip-badge::before { content: ''; position: absolute; inset: -10px -4px; }
.lb-profile-screen .lb-profile-settings-menu { position: fixed; inset: 48px max(8px, calc((100vw - 480px) / 2 + 8px)) auto auto; width: min(260px, calc(100vw - 24px)); max-height: calc(100dvh - 72px); margin: 0; padding: 8px 14px; overflow: auto; border: 0; border-radius: 8px; color: var(--profile-ink); background: #fff; box-shadow: 0 8px 28px #102a3340; }
.lb-profile-screen .lb-profile-settings-menu::backdrop { background: #0003; }
.lb-profile-screen .lb-profile-settings-menu .lb-profile-row { min-height: 46px; }
.lb-profile-screen .lb-profile-settings-close { width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 4px; color: #3a6265; background: #edf5f5; }
