/* Craft guidance adapted from unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   Account-only surface adjustments preserve content, navigation and controls. */
#main:has(> .account-screen){background:#f6f7f5}
#main .account-screen{color:#26372d}
#main .account-screen .account-overview{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:40px;border-radius:0 0 24px 24px;background:#075239;box-shadow:none}
#main .account-screen .account-overview::before,#main .account-screen .account-overview::after{content:none}
#main .account-screen .account-brand{gap:8px;font-size:20px;line-height:24px;font-style:normal;font-weight:600;letter-spacing:0}
#main .account-screen .account-profile{gap:12px;min-height:56px}
#main .account-screen .account-profile h1{color:#fff;font-size:20px;line-height:28px;font-weight:600;letter-spacing:0}
#main .account-screen .account-profile p{color:#e5efe9;font-size:13px;line-height:20px}
#main .account-screen .account-profile .chevron{color:#fff}
#main .account-screen .account-profile:focus-visible{outline-color:#fff}
#main .account-screen :is(.account-stats,.account-menu){border:1px solid #dfe4df;border-radius:16px;background:#fff;box-shadow:none}
/* Align account cards with the guest notice and the page's content edge. */
#main .account-screen :is(.account-stats,.account-menu,.account-trust){margin-inline:0}
#main .account-screen .account-stats{margin-top:-24px;margin-bottom:16px;padding:12px 4px}
#main .account-screen .account-stats button{grid-template-rows:24px 24px minmax(20px,auto);gap:4px;min-height:72px;padding:4px;border-right:1px solid #e5e9e5;background:transparent}
#main .account-screen .account-stats button:last-child{border-right:0}
#main .account-screen .account-stats button .ui-icon{width:22px;height:22px;color:#536f5f!important;stroke-width:1.8;filter:none}
#main .account-screen .account-stats button:nth-child(1) .ui-icon{color:#087448!important}
#main .account-screen .account-stats button:nth-child(3) .ui-icon{color:#92621a!important}
#main .account-screen .account-stats button:nth-child(4) .ui-icon{color:#b33c35!important}
#main .account-screen .account-stats strong{color:#26372d;font-size:20px;line-height:24px;font-weight:600;font-variant-numeric:tabular-nums}
#main .account-screen .account-stats small{color:#405348;font-size:13px;line-height:18px;font-weight:500;white-space:normal;overflow-wrap:break-word;word-break:normal}
#main .account-screen .account-menu{margin-bottom:16px;padding-inline:16px}
#main .account-screen .account-menu .account-row{column-gap:8px;min-height:56px;padding:8px 0;border-bottom:1px solid #e5e9e5;background:transparent;box-shadow:none}
#main .account-screen .account-menu .account-row:hover,#main .account-screen .account-menu .account-row:active{background:transparent;box-shadow:none}
#main .account-screen .account-menu .account-row:last-child{border-bottom:0}
#main .account-screen .account-menu .account-row strong{padding-left:4px;color:#263b30;font-size:15px;line-height:22px;font-weight:500;overflow-wrap:break-word;word-break:normal}
#main .account-screen .account-menu .menu-icon{color:#536f5f}
#main .account-screen .account-menu .menu-icon .ui-icon{width:20px;height:20px;stroke-width:1.8}
#main .account-screen .account-menu .chevron{color:#536f5f}
#main .account-screen .account-menu .account-points-balance{color:#087448;font-size:14px;line-height:20px;font-weight:600}
html #main .account-screen .account-menu .account-row .coupon-count{max-width:none;min-width:max-content;padding:4px 8px;border-radius:8px;background:#f4e9e8;color:#913a35;font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}
#main .account-screen .account-trust{gap:8px;min-height:56px;margin-bottom:16px;padding:12px 16px;border:1px solid #e9d3a2;border-radius:12px;background:#fff7e5;color:#4f462e;box-shadow:none}
#main .account-screen .account-trust .trust-laurel{display:none}
#main .account-screen .account-trust .trust-shield{filter:none}
#main .account-screen .account-trust .trust-shield .ui-icon{width:20px;height:20px;color:#087448;stroke-width:1.8}
#main .account-screen .account-trust strong{font-size:13px;line-height:20px;font-weight:500;overflow-wrap:anywhere}
#main .account-screen .guest-identity-note{gap:8px;margin:0 0 24px;padding:12px 16px;border:1px solid #dfe4df;border-radius:12px;background:#f3f5f1;color:#566259;font-size:13px;line-height:20px}
#main .account-screen .guest-identity-note>.ui-icon{width:20px;height:20px;margin:0;color:#536f5f;stroke-width:1.8}
#main .account-screen .signout-button{min-height:48px;border-radius:10px;font-size:14px;line-height:20px;font-weight:500}
#main .account-subpage{color:#26372d}
#main .account-subpage .secondary-top{min-height:56px;padding:6px 14px}
#main .account-subpage .secondary-top h1{font-size:18px;line-height:24px;font-weight:600;letter-spacing:0}
#main .account-subpage .secondary-top button{width:44px;min-width:44px;min-height:44px}
#main .account-subpage .secondary-content{min-width:0;padding-bottom:32px}
#main .account-subpage .member-intro{margin-bottom:16px;padding:24px 20px;border-radius:16px;background:#075239;box-shadow:none}
#main .account-subpage .member-intro-icon{display:grid;place-items:center;color:#e4c979}
#main .account-subpage .member-intro-icon .ui-icon{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#main .account-subpage .member-intro h2{margin:8px 0;font-size:18px;line-height:24px;font-weight:600}
#main .account-subpage .member-intro p{color:#e6f0e9;font-size:14px;line-height:20px}
#main .account-subpage .profile-sheet .avatar-photo{width:64px;height:64px}
#main .account-subpage .profile-sheet{padding:16px 0 24px}
#main .account-subpage .profile-sheet h2{margin:8px 0 4px}
#main .account-subpage .secondary-empty{margin-bottom:16px;padding:24px 16px;border-color:#dfe4df;border-radius:16px;background:#fff}
#main .account-subpage .secondary-empty .ui-icon{width:32px;height:32px;color:#536f5f}
#main .account-subpage .secondary-empty h2{margin:8px 0 4px;color:#26372d;font-size:15px;line-height:22px;font-weight:600}
#main .account-subpage .secondary-empty p{color:#566259;font-size:13px;line-height:20px}
#main .account-subpage .support-intro{padding:16px 8px 24px}
#main .account-subpage .support-intro h2{margin:8px 0 4px}
#main .account-subpage .support-intro>.ui-icon{width:32px;height:32px;stroke-width:1.8}
#main .account-subpage :is(.secondary-card,.coupon-card,.settings-list,.account-settings-list,.faq-list){min-width:0;border-color:#dfe4df;border-radius:16px;background:#fff;box-shadow:none}
#main .account-subpage :is(.secondary-card,.coupon-card){padding:16px;margin-bottom:12px}
#main .account-subpage .coupon-card:has(button:not(:disabled)),#main .account-subpage .coupon-card:has(button:disabled){border-color:#dfe4df;background:#fff;box-shadow:none}
#main .account-subpage .coupon-card>div,#main .account-subpage .coupon-card>div :is(strong,small){color:#a72f29;font-variant-numeric:tabular-nums}
#main .account-subpage .coupon-card>div strong{font-size:24px;line-height:28px;font-weight:600}
#main .account-subpage .coupon-card:has(button:disabled)>div,#main .account-subpage .coupon-card:has(button:disabled)>div :is(strong,small){color:#69736c}
#main .account-subpage .coupon-card section{border-left-color:#e5e9e5}
#main .account-subpage :is(.secondary-card,.support-intro,.coupon-card,.profile-sheet,.about-brand) :is(h2,h3){color:#26372d;font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}
#main .account-subpage :is(.secondary-card,.support-intro,.about-brand,.profile-sheet,.coupon-card,.faq-list) p{color:#566259;font-size:14px;line-height:22px;overflow-wrap:anywhere}
#main .account-subpage :is(.account-form label,.faq-list summary){font-size:14px;line-height:20px;font-weight:500;overflow-wrap:anywhere}
#main .account-subpage .account-form label{margin-bottom:16px}
#main .account-subpage .account-form :is(input:not([type=checkbox]),textarea,select){width:100%;min-height:48px;margin-top:8px;padding:12px;border:1px solid #bbc7bd;border-radius:8px;background:#fff;color:#26372d;font-size:16px;line-height:22px}
#main .account-subpage .account-form textarea{min-height:96px}
#main .account-subpage .account-form .inline-actions{display:flex;flex-wrap:wrap;gap:8px}
#main .account-subpage :is(.secondary-action,.inline-actions button,.coupon-card button,#readAllMessages,[data-read-message],.points-more){min-height:44px;max-width:100%;font-size:14px;line-height:20px;font-weight:500;white-space:normal;overflow-wrap:anywhere}
#main .account-subpage .secondary-action{border-color:#087448;border-radius:8px;background:#087448;color:#fff;box-shadow:none}
#main .account-subpage .secondary-content :is(.inline-actions button:not(.secondary-action),.coupon-card button,#readAllMessages,[data-read-message],.points-more)::before{border-radius:8px;background:#f4f6f3;border-color:#cbd5cc}
#main .account-subpage .secondary-content .coupon-card button:not(:disabled)::before{border-color:#aa2628!important;background:#b62027!important}
#main .account-subpage .coupon-card button:not(:disabled){color:#fff}
#main .account-subpage .secondary-content .coupon-card button:disabled,
#main .account-subpage .secondary-content .coupon-card button:disabled [data-i18n-key]{color:#536158;opacity:1}
#main .account-subpage .secondary-content .coupon-card button:disabled::before{border-color:#d8e0d9!important;background:#edf1eb!important}
#main .account-subpage .faq-list{padding-inline:16px}
#main .account-subpage .faq-list details{padding:0;border-bottom-color:#e5e9e5}
#main .account-subpage .faq-list details:last-child{border-bottom:0}
#main .account-subpage .faq-list summary{min-height:52px;padding:16px 0}
#main .account-subpage .faq-list details p{margin:0 0 16px}
#main .account-settings-page .account-settings-list{padding-inline:16px}
#main .account-settings-page .account-settings-row{min-height:56px;padding:8px 0;border-bottom-color:#e5e9e5;background:transparent;box-shadow:none}
#main .account-settings-page .account-settings-row:hover,#main .account-settings-page .account-settings-row:active{background:transparent;box-shadow:none}
#main .account-settings-page .account-settings-row strong{padding-left:4px;color:#26372d;font-size:14px;line-height:20px;font-weight:500;overflow-wrap:break-word;word-break:normal}
#main .account-settings-page .account-settings-value{max-width:min(130px,38vw);color:#566259;line-height:20px;overflow-wrap:anywhere}
#main .account-subpage .points-summary{gap:4px;margin-bottom:16px;padding:16px;border:1px solid #dfe4df;border-left:4px solid #c79d44;border-radius:16px;background:#fff;color:#26372d}
#main .account-subpage .points-summary>span,#main .account-subpage .points-summary>small{color:#566259;line-height:20px}
#main .account-subpage .points-summary>strong{color:#26372d;font-size:28px;line-height:32px;font-weight:600;font-variant-numeric:tabular-nums}
#main .account-subpage .points-list{gap:0;overflow:hidden;border:1px solid #dfe4df;border-radius:16px;background:#fff}
#main .account-subpage .points-list:empty{display:none}
#main .account-subpage .points-record{padding:16px;border:0;border-bottom:1px solid #e5e9e5;border-radius:0;background:#fff;box-shadow:none}
#main .account-subpage .points-record:last-child{border-bottom:0}
#main .account-subpage .points-record h2{color:#26372d;font-size:14px;line-height:20px;font-weight:600}
#main .account-subpage .points-record-top strong{color:#087448;font-size:14px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums}
#main .account-subpage .points-record :is(p,time){margin-top:4px;color:#566259;font-size:13px;line-height:20px}
#main .account-subpage :is(button,input,textarea,select):focus-visible{outline:2px solid #087448;outline-offset:2px}
dialog.phone-auth-dialog{border-color:#dfe4df;border-radius:16px;background:#fff;color:#26372d;box-shadow:0 8px 24px #0000001a;scrollbar-width:none}
dialog.phone-auth-dialog::-webkit-scrollbar{display:none}
.phone-auth-dialog .phone-auth-head{gap:12px;padding-bottom:12px;border-color:#e5e9e5}
.phone-auth-dialog .phone-auth-head h2{color:#26372d;font-size:18px;line-height:24px;font-weight:600}
.phone-auth-dialog .phone-auth-head .phone-auth-close{flex-basis:44px;width:44px;height:44px;min-height:44px;border:0;border-radius:8px;background:transparent;color:#536f5f;font-size:24px}
.phone-auth-dialog .phone-auth-intro{color:#566259;font-size:14px;line-height:20px}
.phone-auth-dialog .phone-auth-tabs button{min-height:44px;border-radius:8px;font-weight:500}
.phone-auth-dialog .phone-auth-form label{margin-bottom:16px;color:#26372d;font-size:14px;line-height:20px;font-weight:500}
.phone-auth-dialog .phone-auth-form input{min-height:48px;height:48px;margin-top:8px;padding:12px;border-color:#bbc7bd;border-radius:8px;font-size:16px;line-height:22px}
.phone-auth-dialog .phone-auth-form small{margin-top:8px;color:#566259;font-size:13px;line-height:20px}
.phone-auth-dialog .phone-auth-form .phone-auth-forgot{min-height:44px;color:#087448;font-weight:500}
.phone-auth-dialog .phone-auth-form .phone-auth-submit{min-height:48px;border-radius:8px;background:#087448;font-size:14px;font-weight:500}
.phone-auth-dialog :is(button,input):focus-visible{outline:2px solid #087448;outline-offset:2px}
@media(max-width:350px){#main .account-screen .account-menu{padding-inline:12px}#main .account-screen .account-menu .account-row{column-gap:6px}#main .account-settings-page .account-settings-list{padding-inline:12px}}

/* The content container already supplies the first card's top spacing. */
#main .account-subpage .secondary-content>.coupon-card:first-child{margin-top:0}
#main .account-subpage .coupon-stack>.coupon-face{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;max-width:none}
#main .account-subpage .coupon-stack .coupon-face-amount{display:flex;align-items:baseline;gap:3px;white-space:nowrap}
#main .account-subpage .coupon-stack .coupon-stack-count{color:#486553;font-size:12px;font-weight:700;line-height:18px;white-space:nowrap}

/* Paired form actions share the same visible height and baseline. */
#main #addressForm.account-form .inline-actions{align-items:stretch}
#main #addressForm.account-form .inline-actions button{min-height:48px;margin:0}
#main #addressForm.account-form .inline-actions button:not(.secondary-action)::before{inset:0}

/* Guest recovery risk belongs near the account summary and its next action. */
#main .account-screen .guest-identity-note{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:4px 8px;margin:0 0 16px;padding:12px 16px;border-color:#e8d9b6;background:#fff9ec}
#main .account-screen .guest-identity-note p{grid-column:2;min-width:0;margin:0;color:#4b594d;font-size:13px;line-height:20px}
#main .account-screen .guest-settings-link{grid-column:2;justify-self:start;min-width:44px;min-height:44px;margin:0;padding:8px 0;border:0;border-radius:6px;background:transparent;color:#075d3d;font-size:13px;line-height:20px;font-weight:600;text-align:left}
#main .account-screen .guest-settings-link:focus-visible{outline:2px solid #087448;outline-offset:2px}

/* Balance short empty-state descriptions on narrow screens. */
#main .account-subpage .secondary-empty p{text-wrap:pretty}
@media(max-width:350px){html:lang(zh) #main .account-subpage .secondary-empty p{max-width:190px;margin-inline:auto}}

/* Keep short Chinese help answers readable instead of leaving an orphaned last line. */
html:lang(zh) #main .account-subpage .faq-list details p{max-width:21em;text-wrap:balance}

/* Account lists use natural trailing values rather than an empty reserved column. */
#main .account-screen .account-menu .account-row{grid-template-columns:24px minmax(0,1fr) auto 10px}
#main .account-screen .account-menu .account-points-balance{width:auto;max-width:none;justify-self:end;white-space:nowrap;overflow-wrap:normal}
#main .account-screen .account-menu .unread-dot{justify-self:end}
#main .account-screen .account-profile>.avatar-photo{display:block;flex:none}

/* Matching side slots keep every account subpage title visually centered. */
#main .account-subpage .secondary-top>button{flex:0 0 44px}
#main .account-subpage .secondary-top>.header-spacer{display:block;flex:0 0 44px;width:44px;min-width:44px}
#main .account-subpage .account-form .form-feedback:empty{margin:0;padding:0}

/* Text actions need their own symmetric slots instead of the 44px icon slots. */
#main .account-subpage .asset-page-top{display:grid!important;grid-template-columns:minmax(72px,1fr) minmax(0,auto) minmax(72px,1fr);align-items:center;gap:8px;min-height:56px;padding:6px 14px;box-sizing:border-box}
#main .account-subpage .asset-page-top>h1{min-width:0;margin:0;text-align:center;line-height:24px}
#main .account-subpage .asset-page-top>button:first-child{justify-self:start}
#main .account-subpage .asset-page-top>:is(.points-exchange-entry,.coupon-exchange-link){display:inline-flex;align-items:center;justify-content:flex-end;justify-self:end;flex:none;width:auto;min-width:72px;max-width:100%;min-height:44px;height:auto;margin:0;padding:0 4px;border:0;border-radius:8px;background:transparent;color:#096a44;box-shadow:none;font-size:14px!important;font-weight:650;line-height:20px;white-space:nowrap;overflow-wrap:normal;word-break:normal;letter-spacing:0}

/* Profile controls use the same app bar and a single compact spacing rhythm. */
#main .profile-page .secondary-top{min-height:56px;padding:6px 14px}
#main .profile-page .profile-sheet{padding:8px 0 16px}
#main .profile-page .avatar-editor{margin-bottom:8px}
#main .profile-page .avatar-choose{width:auto;min-width:112px;min-height:104px;margin:0;padding:4px;gap:8px;font-size:14px;line-height:20px;box-shadow:none}
#main .profile-page .avatar-editor .avatar-photo{width:72px;height:72px}
#main .profile-page .profile-sheet h2{margin:4px 0;line-height:24px}
#main .profile-page .profile-sheet p{margin:0;line-height:20px}
#main .profile-page .profile-sheet p+p{margin-top:4px}
#main .profile-page .account-form{margin:0;padding:16px}
#main .profile-page .account-form label{display:block;margin:0 0 16px}
#main .profile-page .account-form input{margin-top:6px}
#main .profile-page .account-form>.secondary-action{width:100%;min-height:46px;margin:0}

/* A thumbnail stays beside the whole product summary instead of floating through its text. */
#main .account-subpage .favorite-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:6px 12px}
#main .account-subpage .favorite-card>.favorite-product-image{grid-column:1;grid-row:1 / span 3;float:none;width:72px;height:72px;margin:0;border-radius:10px}
#main .account-subpage .favorite-card>.favorite-product-image>.product-custom-image{display:block;width:100%;height:100%;object-fit:cover}
#main .account-subpage .favorite-product-image{display:grid;place-items:center;overflow:hidden;background-repeat:no-repeat;background-position:center;background-size:cover}
#main .account-subpage .favorite-product-image.art-0{background-image:url('/demo-product.jpg')}
#main .account-subpage .favorite-product-image.art-1{background-image:url('/catalog-accessories.jpg');background-size:200% 100%;background-position:left center}
#main .account-subpage .favorite-product-image.art-2{background-image:url('/catalog-accessories.jpg');background-size:200% 100%;background-position:right center}
#main .account-subpage .favorite-product-image:has(>.product-custom-image){background-image:none}
#main .account-subpage .favorite-product-image.art-none{background-image:none;color:#718676}
#main .account-subpage .favorite-product-image.art-none>.ui-icon{width:28px;height:28px;stroke-width:1.5}
#main .account-subpage .favorite-card>:not(.favorite-product-image){grid-column:2;min-width:0;margin:0}
#main .account-subpage .favorite-card>h2{font-size:15px;line-height:22px}
#main .account-subpage .favorite-card>p{font-size:13px;line-height:20px}
#main .account-subpage .favorite-card>p:has(.home-value){display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px}
#main .account-subpage .favorite-card .home-value{display:inline;font-size:16px;line-height:20px}
#main .account-subpage .favorite-card>.inline-actions{grid-column:1 / -1;justify-content:flex-end;align-items:stretch;gap:4px 8px;margin-top:2px}
#main .account-subpage .favorite-card:not(:has(>.favorite-product-image)){grid-template-columns:minmax(0,1fr)}
#main .account-subpage .favorite-card:not(:has(>.favorite-product-image))>*{grid-column:1}
#main .account-subpage .favorite-card::after{content:none}

/* Address actions and message receipts share a compact, aligned footer. */
#main .account-subpage :is(.address-card,.message-card){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}
#main .account-subpage :is(.address-card,.message-card)>:is(h2,p){grid-column:1 / -1;min-width:0;margin:0}
#main .account-subpage .address-card>h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
#main .account-subpage .address-card>h2 small{font-size:13px;line-height:20px;font-weight:400}
#main .account-subpage .address-card>.detail-tag{grid-column:1;justify-self:start;max-width:100%;margin:0}
#main .account-subpage .address-card>.inline-actions{grid-column:2;justify-content:flex-end;align-items:stretch;gap:8px;margin:0}
#main .account-subpage .message-card>small{grid-column:1;min-width:0;font-size:12px;line-height:18px}
#main .account-subpage .message-card>[data-read-message]{grid-column:2;align-self:center;margin:0}
#main .account-subpage #readAllMessages{display:flex;width:fit-content;margin:0 0 12px auto}

/* Keep amount, conditions and coupon action in stable columns on phone widths. */
#main .account-subpage .coupon-card{display:grid;grid-template-columns:minmax(48px,64px) minmax(0,1fr) auto;gap:12px;align-items:center}
#main .account-subpage .coupon-card>div{min-width:0;max-width:64px;flex-wrap:wrap}
#main .account-subpage .coupon-card section{min-width:0;padding-left:12px}
#main .account-subpage .coupon-card section h2{margin:0 0 4px;font-size:15px;line-height:22px}
#main .account-subpage .coupon-card section p{margin:0 0 4px;font-size:13px;line-height:20px}
#main .account-subpage .coupon-card button{min-width:44px;max-width:88px;min-height:44px;margin:0;padding-inline:10px}
@media(max-width:350px){
  #main .account-subpage .favorite-card{column-gap:10px;grid-template-columns:64px minmax(0,1fr)}
  #main .account-subpage .favorite-card>.favorite-product-image{width:64px;height:64px}
  #main .account-subpage .coupon-card{grid-template-columns:48px minmax(0,1fr) auto;gap:8px;padding-inline:12px}
  #main .account-subpage .coupon-card>div{max-width:48px}
  #main .account-subpage .coupon-card section{padding-left:8px}
  #main .account-subpage .coupon-card button{max-width:80px;padding-inline:8px}
}

/* Help answers open over the page; the question list keeps its original height. */
#main .account-subpage .faq-list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:14px 0;border:0;border-bottom:1px solid #e5e9e5;border-radius:0;background:transparent;box-shadow:none;color:#26372d;font-size:14px;line-height:22px;font-weight:500;text-align:left}
#main .account-subpage .faq-list>button:last-child{border-bottom:0}
#main .account-subpage .faq-list>button:is(:hover,:active){background:transparent;box-shadow:none}
#main .account-subpage .faq-list>button>[data-i18n-key]{flex:1;min-width:0;overflow-wrap:anywhere}
#main .account-subpage .account-faq-chevron{flex:none;color:#627d6d;font-size:22px;line-height:22px}
dialog.account-help-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(362px,calc(100% - 28px));height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:0;overflow:hidden;border:1px solid #dfe4df;border-radius:16px;background:#fff;color:#26372d;box-shadow:0 12px 36px #002a212e}
dialog.account-help-dialog[open]{display:flex;flex-direction:column}
dialog.account-help-dialog::backdrop{background:#00251888}
.account-help-dialog .account-help-dialog-head{display:flex;flex:none;align-items:center;gap:12px;padding:12px 12px 12px 20px;border-bottom:1px solid #e5e9e5}
.account-help-dialog .account-help-dialog-head h2{flex:1;min-width:0;margin:0;font-size:17px;line-height:24px;font-weight:600;overflow-wrap:anywhere}
.account-help-dialog [data-account-faq-close]{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:#536f5f;font-size:26px;line-height:1;box-shadow:none}
.account-help-dialog .account-help-dialog-body{box-sizing:border-box;min-height:0;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;padding:16px 20px 20px;scrollbar-width:none}
.account-help-dialog .account-help-dialog-body::-webkit-scrollbar{display:none}
.account-help-dialog .account-help-dialog-body p{margin:0;color:#566259;font-size:14px;line-height:24px;overflow-wrap:anywhere}
.account-help-dialog [data-account-faq-close]:focus-visible{outline:2px solid #087448;outline-offset:-2px}

/* Points activity is a compact ledger: source and net change, then date/reference. */
#main .account-subpage.points-page .points-summary{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin-bottom:12px;padding:10px 16px}
#main .account-subpage.points-page .points-summary>strong{font-size:24px;line-height:30px;white-space:nowrap}
#main .account-subpage.points-page .points-record{display:grid;gap:4px;padding:12px 16px}
#main .account-subpage.points-page .points-record-top{align-items:baseline;gap:10px}
#main .account-subpage.points-page .points-record-top h2{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;line-height:20px}
#main .account-subpage.points-page .points-record-top strong{flex:none;max-width:none;font-size:14px;line-height:20px;white-space:nowrap}
#main .account-subpage.points-page .points-record-debit .points-record-top strong{color:#a13b30}
#main .account-subpage.points-page .points-record-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;min-width:0;color:#68756b;font-size:12px;line-height:18px}
#main .account-subpage.points-page .points-record-meta :is(time,small){min-width:0;margin:0;font-size:12px;line-height:18px}
#main .account-subpage.points-page .points-record-meta time{white-space:nowrap}
#main .account-subpage.points-page .points-record-meta small{overflow-wrap:anywhere}

/* Editing an address replaces the list surface until the user saves or cancels. */
#main .account-subpage:has(#addressForm) .secondary-content>:is(.secondary-empty,.address-card,#newAddress){display:none}
