/* One type scale across public pages, user portals, owner tools, and dialogs.
   Loaded last. Important declarations also cover legacy inline font sizes. */
:root{--s2e-title:32px;--s2e-section:24px;--s2e-subheading:18px;--s2e-body:15px;--s2e-label:14px;--s2e-caption:12px}
body{font-size:var(--s2e-body)!important;line-height:1.6}
body h1{font-size:var(--s2e-title)!important;font-weight:500!important;line-height:1.2!important;letter-spacing:-.025em!important}
body h2{font-size:var(--s2e-section)!important;font-weight:600!important;line-height:1.3!important;letter-spacing:-.015em!important}
body h3{font-size:var(--s2e-subheading)!important;font-weight:600!important;line-height:1.35!important;letter-spacing:normal!important}
body h4,body h5,body h6{font-size:16px!important;font-weight:600!important;line-height:1.4!important}
body p,body li,body dd{font-size:var(--s2e-body)!important;line-height:1.6!important}
body label,body legend,body dt{font-size:var(--s2e-label)!important;line-height:1.45!important}
body small{font-size:var(--s2e-caption)!important;line-height:1.5!important}
body :is(input,select,textarea){font-size:var(--s2e-body)!important;line-height:1.45!important}
body :is(button:not([aria-label]),.button,.btn,.workspace-button){font-size:var(--s2e-label)!important;line-height:1.4!important;font-weight:600!important}
body :is(th,td){font-size:var(--s2e-label)!important;line-height:1.5!important}
body summary{font-size:var(--s2e-body)!important;line-height:1.5!important;font-weight:600!important}
body :is(.eyebrow,.tag,.trade-plan-label,.workspace-label,.home-fee-kind,.home-fee-basis,.home-fee-status,.workspace-muted,.workspace-status,.trade-pricing-note,.portal-intro small){font-size:var(--s2e-caption)!important;line-height:1.5!important}
body :is(.quote,.partner-hero aside>strong,.about-hero aside>strong,.founder-card>strong){font-size:22px!important;font-weight:500!important;line-height:1.4!important}
body :is(.home-fee-amount,.trade-plan-price,.trade-lead-price,.workspace-price,.market-chart-heading>strong,.dashboard-stats strong,.beta-progress-copy strong,.metric strong,.workspace-account strong){font-size:26px!important;font-weight:600!important;line-height:1.25!important}
body :is(.standard-nav,.dashboard-nav){font-size:var(--s2e-label)!important}
body .public-nav-dropdown>summary,body .public-nav-dropdown-links{font-size:13px!important}
body .dashboard-nav summary{font-size:var(--s2e-label)!important}
@media(max-width:640px){
 :root{--s2e-title:28px;--s2e-section:22px}
 /* Keep mobile form text at 16px to avoid automatic zoom while typing. */
 body :is(input,select,textarea){font-size:16px!important}
}

/* Compact action controls use the same dimensions as the S2E header menu. */
:root{--s2e-button-height:32px;--s2e-button-text:13px;--s2e-button-padding:10px}
body :is(button,input[type=submit],input[type=button],input[type=reset],.button,.btn,.workspace-button,.project-primary,.project-secondary,.portal-signout,.standard-login,.qa-choice,.member-suggestion-button,.trade-project-button,.policy-dialog-full,.public-nav-dropdown>summary,.dashboard-lead-menu>summary,.owner-account-menu>summary){
 box-sizing:border-box!important;
 height:var(--s2e-button-height)!important;
 min-height:var(--s2e-button-height)!important;
 width:fit-content!important;
 min-width:32px!important;
 max-width:100%;
 padding:0 var(--s2e-button-padding)!important;
 font-size:var(--s2e-button-text)!important;
 font-weight:600!important;
 line-height:20px!important;
 border-radius:6px!important;
 gap:8px;
 vertical-align:middle;
}
/* Preserve the existing visibility rules for mobile menu toggles and hidden controls. */
body :is(button:not(.standard-menu):not(.dashboard-menu),.button,.btn,.workspace-button,.project-primary,.project-secondary,.portal-signout,.standard-login,.qa-choice,.member-suggestion-button,.trade-project-button,.policy-dialog-full):not([hidden]){
 display:inline-flex;
 align-items:center;
 justify-content:center;
}
body :is(.public-nav-dropdown>summary,.dashboard-lead-menu>summary,.owner-account-menu>summary){display:flex;align-items:center}
body .owner-project-nav button span{font-size:13px!important;line-height:20px!important}
body :is(.project-photo-arrow,.project-close,.policy-dialog-close){width:32px!important;padding:0!important}
body button[hidden]{display:none!important}

/* Owner header links and the Leads dropdown share one navigation scale. */
body .dashboard-nav > a,
body .dashboard-nav > .dashboard-lead-menu > summary {
 display:flex;
 align-items:center;
 box-sizing:border-box;
 height:auto!important;
 min-height:32px!important;
 padding:0!important;
 font-size:var(--s2e-label)!important;
 font-weight:600!important;
 line-height:20px!important;
 gap:8px;
}
@media(max-width:880px){
 body .dashboard-nav > a,
 body .dashboard-nav > .dashboard-lead-menu > summary {min-height:44px!important;}
}
