.account-page .account-font-row{
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;min-height:52px;padding:5px 0;
  border-bottom:1px solid #ebf0e8
}
.account-font-label{display:inline-flex;align-items:center;gap:9px;font-size:14px}
.account-size-picker{display:grid;grid-template-columns:repeat(3,minmax(38px,1fr));gap:4px}
.account-size-picker button{
  min-height:44px;padding:4px 7px;border:1px solid #dce8d7;border-radius:9px;background:#f3f6f0;font-size:12px;
  font-weight:650;color:#294735
}
.account-size-picker button[aria-pressed=true]{border-color:#94c85d;background:#e8f5d6}
.account-page [data-action=sign-out] b{color:#864b43}
.account-page .account-filing{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 8px;
  min-height:44px;margin:-4px 0 8px;color:#35513a;
  font-size:var(--type-small,13px);text-align:center;text-decoration:underline;text-underline-offset:3px
}
.account-page .account-filing span{font-weight:650}
.account-consent{display:flex;align-items:flex-start;gap:8px;margin:10px 0 8px;font-size:13px}
.account-consent input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:#527746}
.account-consent label{cursor:pointer}
.account-consent button{color:#3b673c;text-decoration:underline;text-underline-offset:2px;padding:2px 0;font-size:inherit}
.account-legal h2{margin:0 22px 4px 0}
.account-legal h3{font-size:15px;margin:12px 0 3px;color:#2b4938}
.account-legal p{font-size:13px;line-height:1.65;margin:0;color:#405346}
.account-legal>p{color:#5a705d}
.account-legal>.button{margin-top:13px}

body:not([data-preview-merchant])[data-text-size=large]{--ui-size-step:2px}
body:not([data-preview-merchant])[data-text-size=extra]{--ui-size-step:4px}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app :is(h1,.account-identity>b){font-size:calc(24px + var(--ui-size-step))}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app .header-title{font-size:calc(16px + var(--ui-size-step))}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app :is(h2,h3){font-size:calc(16px + var(--ui-size-step))}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app :is(p,label,li,.button,.account-link b,.account-font-label,.account-tool>b,.studio-tools b){
  font-size:calc(14px + var(--ui-size-step))
}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app :is(input,textarea,select){font-size:calc(17px + var(--ui-size-step))}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app :is(small,.account-status,.bottom-nav button,.account-consent,.account-size-picker button){
  font-size:calc(12px + var(--ui-size-step))
}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) :is(#modal .account-legal p,#modal .account-legal h3){
  font-size:calc(14px + var(--ui-size-step))
}
body:not([data-preview-merchant]):is([data-text-size=large],[data-text-size=extra]) #app .account-consent button{font-size:inherit}

/* The former large preset is the merchant default. Other presets add equal steps. */
body[data-preview-merchant]{
  --type-step:0px;
  --type-heading:calc(26px + var(--type-step));
  --type-section:calc(18px + var(--type-step));
  --type-body:calc(16px + var(--type-step));
  --type-control:calc(19px + var(--type-step));
  --type-detail:calc(14px + var(--type-step));
  --layout-gutter:clamp(16px,4.65vw,20px);
  --section-gap:16px;
  --card-gap:10px;
  --card-pad:12px;
  font-size:var(--type-body);
}
body[data-preview-merchant][data-text-size=large]{--type-step:2px}
body[data-preview-merchant][data-text-size=extra]{--type-step:4px}
body[data-preview-merchant] #app :is(h1,.account-identity>b){font-size:var(--type-heading);line-height:1.3}
body[data-preview-merchant] #app :is(h2,h3,.header-title),
body[data-preview-merchant] #modal :is(h2,h3){font-size:var(--type-section);line-height:1.35}
body[data-preview-merchant] #app .app-header .wordmark{font-size:calc(20px + var(--type-step))}
body[data-preview-merchant] :is(#app,#modal) :is(p,label,li,.button,.account-link b,.account-font-label,.account-tool>b,.studio-tools b){
  font-size:var(--type-body);overflow-wrap:anywhere
}
body[data-preview-merchant] :is(#app,#modal) :is(input,textarea,select){font-size:var(--type-control);max-width:100%}
body[data-preview-merchant] :is(#app,#modal) :is(small,.account-status,.bottom-nav button,.account-consent,.account-size-picker button),
body[data-preview-merchant] #app :is(.studio-tools small,.project-meta small,.input-action .text-button,.points-pill){
  font-size:var(--type-detail)
}
body[data-preview-merchant] #modal .account-legal :is(p,h3){font-size:var(--type-body)}
body[data-preview-merchant] #app .account-consent button{font-size:inherit}
body[data-preview-merchant] #app .points-pill :is(span,i){font-size:var(--type-detail)}
body[data-preview-merchant] #app .button{min-height:44px;line-height:1.35;white-space:normal}
body[data-preview-merchant] #app .input-action{min-width:0}
body[data-preview-merchant] #app .input-action .text-button{min-height:44px;line-height:1.35}
body[data-preview-merchant] #app :is(h1,h2,h3,.header-title){min-width:0;overflow-wrap:anywhere}
body[data-preview-merchant] #app .header-title{white-space:nowrap}
body[data-preview-merchant] #app .account-size-picker{grid-template-columns:repeat(3,minmax(44px,1fr))}
body[data-preview-merchant] #app .flow-steps{padding-inline:var(--layout-gutter);gap:4px}
body[data-preview-merchant] #app .flow-steps>span{
  flex:1 1 0;min-width:0;gap:4px;font-size:calc(11px + var(--type-step));white-space:normal;line-height:1.22;
  text-align:center;justify-content:center;overflow:visible
}
body[data-preview-merchant] #app .flow-steps :is(b,.icon){width:18px;height:18px}
body[data-preview-merchant] #app .primary-tab{padding-inline:var(--layout-gutter)}
body[data-preview-merchant] #app .tab-heading{gap:var(--card-gap);margin-bottom:var(--section-gap)}
body[data-preview-merchant] #app .tab-heading>button{min-height:44px;flex-shrink:0}
body[data-preview-merchant] #app :is(.studio-tools,.project-grid,.library-grid,.account-tools,.member-plans){gap:var(--card-gap)}
body[data-preview-merchant] #app :is(.project-meta,.library-tile>b){overflow-wrap:anywhere}
body[data-preview-merchant] #app .project-meta b{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;font-size:var(--type-detail);line-height:1.35
}
body[data-preview-merchant] #app .library-tile>b{font-size:var(--type-detail);line-height:1.35}
body[data-preview-merchant] #app .project-meta small{line-height:1.35}
body[data-preview-merchant] #app .studio-tools button,
body[data-preview-merchant] #app .account-tool{padding:var(--card-pad)}
body[data-preview-merchant] #app .bottom-nav button{min-height:44px;white-space:nowrap}
body[data-preview-merchant] #app .capture-actions button{font-size:var(--type-detail);line-height:1.2;white-space:normal}
body[data-preview-merchant] #app .shoot-top div{min-width:0;flex:1}
body[data-preview-merchant] #app .shoot-top strong{font-size:var(--type-body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-preview-merchant] #app .shoot-top small{font-size:var(--type-detail)}
body[data-preview-merchant] #app .shot-direction p{font-size:var(--type-detail);line-height:1.35}
body[data-preview-merchant] #app .shot-direction span{font-size:var(--type-detail)}
body[data-preview-merchant] #app .record-bottom .record-status{font-size:var(--type-detail);line-height:1.35}
@media(max-width:380px){
  body[data-preview-merchant] #app .flow-steps>span{display:grid;justify-items:center}
}
body[data-preview-merchant][data-text-size=extra] #app .flow-steps>span{display:grid;justify-items:center}
