/* =========================================================
   GAINVO Storefront v0.10.41 — Phase 9 Account polish
   Customer-first hierarchy, normal mobile scale, compact
   saved content, accessible settings rows, responsive sheets.
   ========================================================= */

.screen[data-screen="account"]{
  --acc-body:16px;
  --acc-secondary:14px;
  --acc-meta:12px;
  --acc-label:15px;
  --acc-title:clamp(24px,6.2vw,30px);
  --acc-section:clamp(19px,4.7vw,22px);
  --acc-radius:18px;
  padding-bottom:calc(104px + env(safe-area-inset-bottom));
}

/* Signed-in / guest identity should be concise, not a second dashboard. */
.screen[data-screen="account"] .guest-account-hero,
.screen[data-screen="account"] .signed-account-hero{
  margin:4px 0 20px!important;
  padding:18px!important;
  border-radius:20px!important;
}
.screen[data-screen="account"] .guest-account-mark{
  width:44px!important;height:44px!important;border-radius:14px!important;
  margin-bottom:12px!important;font-size:18px!important;
}
.screen[data-screen="account"] .guest-account-hero h1,
.screen[data-screen="account"] .signed-account-hero h1,
.screen[data-screen="account"] .account-identity-copy h1{
  font-size:var(--acc-title)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}
.screen[data-screen="account"] .guest-account-hero p,
.screen[data-screen="account"] .signed-account-hero p,
.screen[data-screen="account"] .account-identity-copy>p{
  font-size:var(--acc-secondary)!important;
  line-height:1.48!important;
}
.screen[data-screen="account"] .account-avatar-lg{
  width:54px!important;height:54px!important;border-radius:16px!important;
  font-size:18px!important;
}
.screen[data-screen="account"] .account-profile-edit{
  min-height:42px!important;padding:0 12px!important;
  font-size:14px!important;border-radius:12px!important;
}
.screen[data-screen="account"] .account-status-line{gap:6px!important;margin-top:7px!important}
.screen[data-screen="account"] .account-status-line span{
  min-height:26px!important;padding:4px 8px!important;font-size:12px!important;
}
.screen[data-screen="account"] .guest-account-actions{margin-top:14px!important;gap:8px!important}
.screen[data-screen="account"] .guest-account-actions .primary-cta,
.screen[data-screen="account"] .guest-account-actions .secondary-cta{
  min-height:46px!important;font-size:15px!important;border-radius:13px!important;
}

/* Keep the at-a-glance strip useful but visually secondary. */
.screen[data-screen="account"] .account-summary-row{
  gap:8px!important;margin-top:14px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.screen[data-screen="account"] .account-summary-row button{
  min-height:68px!important;padding:10px 8px!important;border-radius:15px!important;
}
.screen[data-screen="account"] .account-summary-row button strong{font-size:20px!important}
.screen[data-screen="account"] .account-summary-row button span{font-size:13px!important}
.screen[data-screen="account"] .account-summary-row button small{font-size:11px!important;line-height:1.25!important}

/* Section rhythm and headings. */
.screen[data-screen="account"] .account-dashboard-section{margin-bottom:22px!important}
.screen[data-screen="account"] .account-section-title{
  margin:0 1px 10px!important;gap:10px!important;align-items:flex-end!important;
}
.screen[data-screen="account"] .account-section-title h2{
  font-size:var(--acc-section)!important;line-height:1.2!important;letter-spacing:-.02em!important;
}
.screen[data-screen="account"] .account-section-title p,
.screen[data-screen="account"] .account-section-title>div>p{
  font-size:13px!important;line-height:1.4!important;margin-top:3px!important;
}
.screen[data-screen="account"] .account-section-title>button{
  min-height:40px!important;font-size:14px!important;padding:0 4px!important;
}

/* Saved items: product first, merchant secondary. */
.screen[data-screen="account"] .account-saved-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
}
.screen[data-screen="account"] .account-saved-grid .product-card{min-width:0!important}
.screen[data-screen="account"] .account-saved-grid .product-title{
  font-size:15px!important;line-height:1.28!important;
  min-height:38px!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.screen[data-screen="account"] .account-saved-grid .product-shop{
  font-size:11px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.screen[data-screen="account"] .account-saved-grid .product-meta{font-size:12px!important}
.screen[data-screen="account"] .account-saved-grid .product-price{font-size:17px!important}

/* Saved shops / addresses use calm list rows. */
.screen[data-screen="account"] .account-saved-shops,
.screen[data-screen="account"] .address-list{gap:8px!important}
.screen[data-screen="account"] .account-saved-shop,
.screen[data-screen="account"] .address-card{
  min-height:64px!important;padding:9px 10px!important;gap:10px!important;border-radius:16px!important;
}
.screen[data-screen="account"] .account-saved-shop-logo,
.screen[data-screen="account"] .address-icon{
  width:44px!important;height:44px!important;border-radius:13px!important;
}
.screen[data-screen="account"] .account-saved-shop strong,
.screen[data-screen="account"] .address-card strong{font-size:14px!important;line-height:1.3!important}
.screen[data-screen="account"] .account-saved-shop small,
.screen[data-screen="account"] .address-card p,
.screen[data-screen="account"] .address-card small{font-size:12px!important;line-height:1.4!important}
.screen[data-screen="account"] .address-label-line span{font-size:11px!important}
.screen[data-screen="account"] .address-card>button{width:42px!important;height:42px!important;min-width:42px!important}

/* Empty states should explain once, then offer one clear action. */
.screen[data-screen="account"] .account-empty-inline{
  min-height:68px!important;padding:12px!important;gap:10px!important;border-radius:16px!important;
}
.screen[data-screen="account"] .account-empty-inline>span{width:42px!important;height:42px!important}
.screen[data-screen="account"] .account-empty-inline strong{font-size:14px!important}
.screen[data-screen="account"] .account-empty-inline p{font-size:12px!important;line-height:1.4!important}
.screen[data-screen="account"] .account-empty-inline button{min-height:42px!important;font-size:14px!important}

/* Notifications/preferences: readable row + standard mobile switch. */
.screen[data-screen="account"] .preference-card{border-radius:17px!important}
.screen[data-screen="account"] .preference-row{
  min-height:66px!important;padding:11px 13px!important;gap:12px!important;
}
.screen[data-screen="account"] .preference-row strong{font-size:14px!important}
.screen[data-screen="account"] .preference-row small{font-size:12px!important;line-height:1.35!important}
.screen[data-screen="account"] .preference-row i{width:44px!important;height:26px!important;min-width:44px!important}
.screen[data-screen="account"] .preference-row i:after{width:20px!important;height:20px!important}
.screen[data-screen="account"] .preference-row input:checked+i:after{transform:translateX(18px)!important}

/* Account actions/security: one clean list, no oversized admin feel. */
.screen[data-screen="account"] .account-settings-list,
.screen[data-screen="account"] .account-settings-24{border-radius:17px!important}
.screen[data-screen="account"] .account-settings-list button,
.screen[data-screen="account"] .account-settings-24 button{
  min-height:64px!important;padding:10px 12px!important;
  grid-template-columns:42px minmax(0,1fr) 22px!important;gap:10px!important;
}
.screen[data-screen="account"] .account-settings-list button>span,
.screen[data-screen="account"] .account-settings-24 button>span{
  width:42px!important;height:42px!important;border-radius:12px!important;font-size:17px!important;
}
.screen[data-screen="account"] .account-settings-list strong,
.screen[data-screen="account"] .account-settings-24 strong{font-size:14px!important;line-height:1.3!important}
.screen[data-screen="account"] .account-settings-list small,
.screen[data-screen="account"] .account-settings-24 small{font-size:12px!important;line-height:1.35!important}

.screen[data-screen="account"] .account-trust-panel{
  border-radius:16px!important;padding:13px!important;gap:10px!important;
}
.screen[data-screen="account"] .account-trust-panel>span{width:40px!important;height:40px!important}
.screen[data-screen="account"] .account-trust-panel strong{font-size:14px!important}
.screen[data-screen="account"] .account-trust-panel p{font-size:12px!important;line-height:1.4!important}

/* Authentication/profile/address sheets: normal iPhone form scale. */
.customer-account-sheet,
.account-editor-sheet{
  width:min(100%,540px)!important;
  max-height:min(90dvh,760px)!important;
  border-radius:24px 24px 0 0!important;
  padding-left:max(16px,env(safe-area-inset-left))!important;
  padding-right:max(16px,env(safe-area-inset-right))!important;
}
.customer-account-sheet .sheet-head h2,
.account-editor-sheet .sheet-head h2{font-size:21px!important;line-height:1.18!important}
.customer-account-sheet .sheet-head .micro,
.account-editor-sheet .sheet-head .micro{font-size:11px!important}
.customer-account-sheet .auth-mode-tabs button{font-size:14px!important}
.customer-auth-form label,
.account-editor-form label,
.auth-form-24 label,
.account-form-24 label{font-size:14px!important}
.customer-auth-form input:not([type=checkbox]),
.account-editor-form input:not([type=checkbox]),
.auth-form-24 input:not([type=checkbox]),
.account-form-24 input:not([type=checkbox]){
  min-height:50px!important;font-size:16px!important;border-radius:13px!important;
}
.field-guidance,
.customer-auth-form label>small,
.account-editor-form label>small{font-size:12px!important;line-height:1.4!important}
.auth-security-intro strong,.auth-value-strip strong,.auth-consent strong,
.auth-merge-choice strong,.editor-check strong,.delete-account-warning strong{font-size:14px!important}
.auth-security-intro p,.auth-value-strip small,.auth-consent small,
.auth-merge-choice small,.editor-check small,.delete-account-warning p,
.editor-intro{font-size:12px!important;line-height:1.45!important}
.customer-auth-form .primary-cta,
.account-editor-form .primary-cta,
.account-editor-form .secondary-cta,
.account-editor-form .danger-confirm-button{min-height:48px!important;font-size:15px!important}

/* Narrow phones reflow; do not shrink typography. */
@media(max-width:390px){
  .screen[data-screen="account"]{--acc-title:23px;--acc-section:19px}
  .screen[data-screen="account"] .guest-account-hero,
  .screen[data-screen="account"] .signed-account-hero{padding:16px!important}
  .screen[data-screen="account"] .signed-account-top{grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important}
  .screen[data-screen="account"] .account-profile-edit{grid-column:1/-1!important;width:100%!important}
  .screen[data-screen="account"] .account-summary-row button{padding:9px 5px!important}
  .screen[data-screen="account"] .account-summary-row button small{display:none!important}
  .screen[data-screen="account"] .account-saved-grid{gap:8px!important}
  .screen[data-screen="account"] .account-section-title{align-items:flex-start!important;flex-wrap:wrap!important}
}
@media(max-width:340px){
  .screen[data-screen="account"] .account-summary-row{grid-template-columns:1fr!important}
  .screen[data-screen="account"] .account-summary-row button{
    min-height:56px!important;grid-template-columns:46px minmax(0,1fr)!important;text-align:left!important;align-items:center!important;
  }
  .screen[data-screen="account"] .account-saved-grid{grid-template-columns:1fr!important}
}

/* Larger screens: more breathing room, still customer-first. */
@media(min-width:700px){
  .screen[data-screen="account"]{max-width:1040px!important;margin-inline:auto!important}
  .screen[data-screen="account"] .account-saved-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .screen[data-screen="account"] .account-summary-row{max-width:680px!important}
}
@media(min-width:1024px){
  .screen[data-screen="account"] .account-saved-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media(prefers-reduced-motion:reduce){
  .screen[data-screen="account"] *,
  .customer-account-sheet *,
  .account-editor-sheet *{scroll-behavior:auto!important;transition-duration:.001ms!important}
}
