/* Account dashboard shares the existing Landing palette and controls. */
body #product-page>.account-return{display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;min-height:44px;margin:0 0 var(--b-panel-gap,16px);color:var(--b-muted);font:500 14px/1.5 var(--sans);text-decoration:none}
body #product-page>.account-return:hover{color:var(--b-ink)}
body #product-page.account-context[data-layout=unified]{display:grid;grid-template-columns:208px minmax(0,1fr);align-content:start;align-items:start;gap:40px;padding:32px max(var(--b-page-gutter),calc((100% - 1280px)/2)) 48px!important;scroll-padding-top:32px}
body #product-page.account-context[data-layout=unified]>*{width:100%;min-width:0;max-width:none;margin:0}
body #product-page.account-context[data-layout=unified]>.local-sim-notice{grid-column:1/-1}
body #product-page.account-context>.account-navigation{position:sticky;top:0;align-self:start;min-height:min(560px,calc(100svh - 160px));padding:0 24px 24px 0;border-right:1px solid var(--b-line);box-sizing:border-box}
.account-navigation-title{display:flex;align-items:center;min-height:44px;margin:0 0 24px;padding-left:12px;color:var(--b-ink);font:500 16px/1.5 var(--sans)}
.account-menu-toggle{display:none}
.account-navigation-links{display:flex;flex-direction:column;gap:6px}
.account-navigation-links>a{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;box-sizing:border-box;border-radius:8px;color:var(--b-muted);font:500 14px/1.5 var(--sans);text-decoration:none}
.account-navigation-links>a>svg{width:18px;height:18px;flex:none}
.account-navigation-links>a[aria-current=page]{color:var(--b-ink);background:var(--b-soft);font-weight:600}
@media(hover:hover){.account-navigation-links>a:hover{color:var(--b-ink);background:var(--b-soft)}}
.account-content{min-width:0}
body #product-page.account-context[data-layout=unified]>.account-content>.layout-page-head{display:flex!important;align-items:center!important;justify-content:space-between;gap:20px!important;min-height:44px;width:100%;margin:0 0 24px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.account-profile{width:100%;min-width:0}
.account-identity{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;padding:24px 0 32px;border-bottom:1px solid var(--b-line)}
.account-identity-summary{display:flex;align-items:center;gap:16px;min-width:0}
.account-avatar{display:grid;place-items:center;flex:none;width:56px;height:56px;border:1px solid var(--b-line);border-radius:50%;color:var(--b-ink);background:var(--b-soft)}
.account-avatar svg{width:28px;height:28px}
.account-profile .account-identity h2{margin:0;font:500 20px/1.4 var(--sans);letter-spacing:0}
.account-signin-state{margin:6px 0 0;color:var(--b-muted);font:400 14px/1.5 var(--sans)}
.account-description{margin:24px 0;color:var(--b-muted);font:400 14px/1.7 var(--sans)}
.account-facts{margin:0}
.account-facts>div{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;padding:24px 0;border-bottom:1px solid var(--b-line)}
.account-facts dt{color:var(--b-muted);font-size:14px}
.account-facts dd{margin:0;color:var(--b-ink);font:400 14px/1.7 var(--mono);overflow-wrap:anywhere}
.account-actions{display:flex;flex-wrap:wrap;gap:8px}
.account-service-summary{margin-top:32px;padding:24px 0;border-top:1px solid var(--b-line);border-bottom:1px solid var(--b-line)}
.account-service-summary>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.account-service-summary h2{margin:0;color:var(--b-ink);font:500 16px/1.5 var(--sans)}
.account-service-summary header>p{margin:0;color:var(--b-muted);font:400 14px/1.5 var(--sans)}
.account-service-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:0}
.account-service-summary dt{color:var(--b-muted);font:400 14px/1.5 var(--sans)}
.account-service-summary dd{margin:8px 0 0;color:var(--b-ink);font:500 28px/1.4 var(--sans);overflow-wrap:anywhere}
.account-watchlist-link{display:flex;align-items:center;gap:12px;min-height:68px;padding:16px 0;box-sizing:border-box;border-bottom:1px solid var(--b-line);color:var(--b-ink);font:500 16px/1.5 var(--sans);text-decoration:none}
.account-watchlist-link>svg{width:20px;height:20px;flex:none;color:var(--b-muted)}
.account-watchlist-link>svg:last-child{width:16px;height:16px;margin-left:auto}
@media(hover:hover){.account-watchlist-link:hover{color:var(--b-accent-ink)}}
@media(max-width:680px){.account-service-summary{margin-top:24px;padding-block:20px}.account-service-summary dd{font-size:24px}}
body #product-page.account-context .account-profile .p-button,body #product-page .account-settings-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:14px;text-decoration:none}
.account-settings-shortcut>svg{display:none;width:18px;height:18px}
body #product-page.account-context .commerce-page-heading.commerce-sr-only,body #product-page.account-context .commerce-page-heading>h1{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
body #product-page.account-context #membership-app .commerce-page-heading{display:flex;flex-wrap:wrap;align-items:center;min-height:44px;gap:16px 24px;margin:0 0 24px;padding:0}
body #product-page.account-context #membership-app .commerce-page-heading>h1{font:500 var(--b-title,28px)/1.3 var(--sans);letter-spacing:-.4px;margin:0 auto 0 0}
body #product-page.account-context #membership-app .commerce-usage-toolbar>.commerce-heading-controls{width:auto;flex:0 1 auto}
.account-navigation :focus-visible,.account-profile :focus-visible,body #product-page>.account-return:focus-visible{outline:2px solid var(--b-accent-ink);outline-offset:3px}
.account-navigation :focus-visible{outline-offset:-3px}
@media(max-width:680px){
 body #product-page.account-context[data-layout=unified] .layout-heading-actions .account-settings-shortcut{width:44px;min-width:44px;padding:0!important}
 .account-settings-shortcut>svg{display:block}
 .account-settings-shortcut>span{display:none}
 .account-identity{gap:20px;padding:16px 0 24px}
 .account-facts>div{grid-template-columns:1fr;gap:8px;padding:20px 0}
 body #product-page.account-context #membership-app .commerce-page-heading{margin-bottom:20px}
 body #product-page.account-context #membership-app .commerce-usage-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
 body #product-page.account-context #membership-app .commerce-usage-toolbar>h1{display:flex;align-items:center;min-height:44px;grid-column:1/-1;margin-bottom:8px}
 body #product-page.account-context #membership-app .commerce-usage-toolbar>.commerce-heading-controls{display:contents}
 body #product-page.account-context #membership-app .commerce-usage-toolbar .commerce-heading-controls>label:first-child{grid-column:1;grid-row:2}
 body #product-page.account-context #membership-app .commerce-usage-toolbar .commerce-heading-controls>label:last-child{grid-column:1/-1;grid-row:3}
 body #product-page.account-context #membership-app .commerce-usage-toolbar>button{grid-column:2;grid-row:2}
}

@media(max-width:1100px){
 body #product-page.account-context[data-layout=unified]{display:block;padding-top:20px!important;scroll-padding-top:20px}
 body #product-page.account-context>.account-navigation{position:relative;z-index:15;min-height:0;padding:0;margin:0 0 28px;border:0}
 .account-navigation-title{display:none}
 .account-menu-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px 14px;box-sizing:border-box;border:1px solid var(--b-line);border-radius:8px;background:var(--b-panel);color:var(--b-ink);font:500 14px/1.5 var(--sans);text-align:left;cursor:pointer}
 .account-menu-toggle>span{color:var(--b-muted);white-space:nowrap}
 .account-menu-toggle>b{margin-left:auto;min-width:0;font-weight:500;text-align:right}
 .account-menu-toggle>svg{width:16px;height:16px;flex:none;transform:rotate(90deg)}
 .account-navigation-links{display:none;position:absolute;inset:calc(100% + 8px) 0 auto;padding:6px;border:1px solid var(--b-line);border-radius:10px;background:var(--b-panel);box-shadow:0 12px 32px #0002;max-height:calc(100svh - 220px);overflow:auto}
 .account-navigation.is-open>.account-navigation-links{display:flex}
 .account-navigation.is-open>.account-menu-toggle>svg{transform:rotate(-90deg)}
}

/* Readable account details and aligned billing actions within the existing frame. */
body #product-page.account-context #membership-app .commerce-page :is(.commerce-plan-facts,.commerce-plan-features span,.commerce-included>span,.commerce-plan-action small,.commerce-packs legend,.commerce-pack small,.commerce-caption,.commerce-panel-heading p,.commerce-balance-total>span,.commerce-topup-balance>span,.commerce-credit-available>span){font-size:var(--b-text-small,13px);line-height:1.6}
body #product-page.account-context #membership-app .commerce-data-table{font-size:var(--b-text-data,14px)}
body #product-page.account-context #membership-app .commerce-data-table :is(small,.commerce-table-actions button){font-size:var(--b-text-small,13px)}
body #product-page.account-context #membership-app .commerce-data-table .commerce-row-title{font-size:var(--b-text-data,14px)}
body #product-page.account-context #membership-app .commerce-data-table .commerce-label{font-size:12px;padding:4px 8px}
body #product-page.account-context #membership-app .commerce-plan-features{padding-block:20px;gap:16px}
body #product-page.account-context #membership-app .commerce-plan-action small{min-height:42px}
body #product-page.account-context #membership-app .commerce-pack{min-height:88px;border-color:var(--b-line-strong)}
body #product-page.account-context #membership-app .commerce-pack.is-selected{border-color:var(--b-ink)}
body #product-page.account-context #membership-app .commerce-pack.is-selected::after{display:none}
body #product-page.account-context #membership-app .commerce-plan-overview{padding-block:24px}
body #product-page.account-context #membership-app .commerce-billing-overview .commerce-balance-panel{display:flex;flex-direction:column}
body #product-page.account-context #membership-app .commerce-billing-overview .commerce-balance-breakdown{margin-bottom:24px}
body #product-page.account-context #membership-app .commerce-billing-overview .commerce-wide{align-self:flex-start;margin-top:auto}
body #product-page.account-context #membership-app :is(.commerce-balance-total strong,.commerce-topup-balance strong,.commerce-credit-available>strong){font-size:32px}
body #product-page.account-context .account-identity{padding-block:24px}
body #product-page.account-context .account-description{max-width:60ch;margin-top:20px;font-size:var(--b-text-body,15px)}
@media(max-width:680px){
 body #product-page.account-context #membership-app .commerce-plan-features{padding-block:16px;gap:12px}
 body #product-page.account-context #membership-app .commerce-plan-action small{min-height:0}
 body #product-page.account-context #membership-app .commerce-pack{min-height:80px}
 body #product-page.account-context #membership-app :is(.commerce-balance-total strong,.commerce-topup-balance strong,.commerce-credit-available>strong){font-size:28px}
 body #product-page.account-context .account-identity{padding-block:16px 24px}
}

/* Ruixen pricing hierarchy, adapted to the existing account state and palette. */
body #product-page.account-context #membership-app .commerce-card{display:flex;flex-direction:column}
body #product-page.account-context #membership-app .commerce-plan-intro{min-width:0}
body #product-page.account-context #membership-app .commerce-plan-desc{font-size:14px;line-height:1.6}
body #product-page.account-context #membership-app .commerce-plan-action{margin-top:0;gap:8px}
body #product-page.account-context #membership-app .commerce-plan-features{display:flex;flex-direction:column;gap:12px;margin:24px 0 0;padding:20px 0 0;border-bottom:0}
body #product-page.account-context #membership-app .commerce-plan-features>li{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:16px;min-height:22px}
body #product-page.account-context #membership-app .commerce-plan-features :is(span,b){font-size:14px;line-height:1.6}
body #product-page.account-context #membership-app .commerce-plan-features b{font-weight:600;color:var(--b-ink)}
@media(max-width:680px){
 body #product-page.account-context #membership-app .commerce-plan-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px}
 body #product-page.account-context #membership-app .commerce-plan-intro .commerce-plan-desc{margin-top:8px;max-width:none}
 body #product-page.account-context #membership-app .commerce-included>span{flex-basis:auto}
 body #product-page.account-context #membership-app .commerce-plan-features{margin-top:20px;padding-top:16px}
}

/* Account content shares one filled section surface across profile and billing pages. */
.account-profile-sections{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:stretch}
body #product-page.account-context :is(.account-section-card,.commerce-pricing,.commerce-section,.commerce-usage-main,.commerce-balance-panel,.commerce-records-section,.commerce-plan-overview,.commerce-credit-overview,.commerce-membership-status,.commerce-faq){min-width:0;border:1px solid transparent;border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--b-ink) 3%,transparent),transparent 60%),var(--b-panel);box-shadow:0 1px 2px #0000000a,0 8px 24px #00000014,inset 0 1px 0 color-mix(in srgb,var(--b-ink) 5%,transparent)}
body #product-page.account-context .account-section-card{margin:0;padding:24px}
body #product-page.account-context .account-identity-card{display:flex;flex-direction:column;justify-content:space-between;gap:28px}
body #product-page.account-context .account-identity-card .account-identity{padding:0;border:0;gap:16px}
body #product-page.account-context .account-identity-card .account-description{margin:0;max-width:48ch}
.account-identity-card .account-facts>div{display:block;padding:0;border:0}
.account-identity-card .account-facts dd{margin-top:10px}
body #product-page.account-context .account-service-summary{display:flex;flex-direction:column;justify-content:space-between;gap:28px}
.account-service-summary>header{margin:0}
.account-service-summary dl{gap:20px}
body #product-page.account-context .account-watchlist-link{grid-column:1/-1;min-height:88px;padding:20px 24px}
.account-watchlist-link>svg:first-child{width:40px;height:40px;padding:10px;box-sizing:border-box;border-radius:12px;background:var(--b-soft);color:var(--b-ink)}
.account-security-card>header,.account-invitation-card>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.account-security-card h2,.account-invitation-card h2{margin:0;color:var(--b-ink);font:500 16px/1.5 var(--sans)}
.account-security-card dl{margin:0}
.account-security-card dl>div{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:16px;padding:14px 0}
.account-security-card dl>div+div{border-top:1px solid var(--b-line)}
.account-security-card dt,.account-security-card dd{margin:0;font:400 14px/1.6 var(--sans);overflow-wrap:anywhere}
.account-security-card dt{color:var(--b-muted)}
.account-security-card dd{text-align:end;color:var(--b-ink)}
.account-card-footer{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:20px}
.account-card-footer p{flex:1;min-width:140px;margin:0;color:var(--b-muted);font:400 14px/1.7 var(--sans)}
.account-invite-count{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.account-invite-count strong{color:var(--b-ink);font:500 24px/1.3 var(--sans)}
.account-invite-count span{color:var(--b-muted);font:400 13px/1.5 var(--sans)}
.account-invite-label{display:block;margin-bottom:8px;color:var(--b-muted);font:400 14px/1.5 var(--sans)}
.account-invite-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.account-invite-copy input{min-width:0;width:100%;height:44px;padding:10px 12px;border:1px solid var(--b-control-line);border-radius:var(--b-control-radius,10px);background:var(--b-panel);color:var(--b-ink);font:400 14px/1.5 var(--sans);box-sizing:border-box}
.account-invite-copy input::placeholder{color:var(--b-muted);opacity:1}
.account-invite-copy button:disabled{opacity:.45;cursor:not-allowed}
.account-invite-feedback{margin:12px 0 0;color:var(--b-muted);font:400 14px/1.6 var(--sans)}
.account-invite-feedback:empty{display:none}
.account-invite-records{margin-top:24px;padding-top:20px;border-top:1px solid var(--b-line)}
.account-invite-records h3{margin:0 0 12px;color:var(--b-ink);font:500 14px/1.5 var(--sans)}
.account-invite-records p{margin:0;color:var(--b-muted);font:400 14px/1.7 var(--sans)}
.account-invite-records ul{list-style:none;margin:0;padding:0}
.account-invite-records li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:10px 0;color:var(--b-ink);font:400 14px/1.6 var(--sans)}
.account-invite-records li>span{min-width:0;overflow-wrap:anywhere}
.account-invite-records time{flex:none;color:var(--b-muted);font-size:13px}
@media(min-width:1101px){
 body #product-page.account-context>.account-navigation{min-height:0;padding:16px;border:0;border-radius:16px;background:var(--b-panel);box-shadow:0 1px 2px #0000000a,0 8px 24px #00000014}
 .account-navigation .account-navigation-title{margin-bottom:12px;padding-left:8px}
}
@media(hover:hover){body #product-page.account-context .account-watchlist-link:hover{background:var(--b-soft);color:var(--b-ink)}}
@media(max-width:840px){.account-profile-sections{grid-template-columns:minmax(0,1fr);gap:16px}}
@media(max-width:680px){
 body #product-page.account-context .account-section-card{padding:20px}
 body #product-page.account-context .account-identity-card{gap:24px}
 body #product-page.account-context .account-service-summary{gap:24px}
 body #product-page.account-context .account-watchlist-link{min-height:76px;padding:16px 20px}
 .account-profile-sections .account-avatar{width:48px;height:48px}
 .account-profile-sections .account-identity-summary{gap:12px}
}
