/* A shared reading scale for phone pages, including dialogs mounted on body. */
@media screen and (max-width:760px){
 :root{font-size:100%}
 :root,:host{
  --phone-title:1.25rem;
  --phone-section:1rem;
  --phone-subhead:.9375rem;
  --phone-copy:.875rem;
  --phone-action:.8125rem;
  --phone-caption:.75rem;
 }
 html body,html body:is(.jy-page,.partners-enrollment,.collection-page,.admin-center),html body #app>.page,:host .signature-content{font-size:var(--phone-copy);font-weight:500;line-height:1.45}
 :is(h1,h2,h3,h4){line-height:1.3;font-weight:800}
 :where(main,article,section,dialog) p{font-size:var(--phone-copy);line-height:1.48}
 :where(main,article,section,dialog) :is(button,summary,label){font-size:var(--phone-action);font-weight:650}
 h1,.page-title{font-size:var(--phone-title)!important}
 h2{font-size:var(--phone-section)!important}
 h3,h4{font-size:var(--phone-subhead)!important}

 /* Text actions keep the component's padding, tap target and icon dimensions. */
 :is(.primary,.secondary,.button,.buyit-page-back,.actions button,.actions>a,.mg-back,
     .mg-dialog footer button,.cx-primary,.cx-back,.auth-card button[type=submit]){
  font-size:var(--phone-action)!important;font-weight:700;
 }
 :is(.page,.connect,.signature-content,dialog,.panel) label{font-size:var(--phone-action);font-weight:650}
 :is(.page,.property-window,.connect,dialog,.panel,.signature-content) :is(.body-copy,.lead,.account-intro,.cx-message p),
 .intake-heading p,.seller-hero p,.partner-section-heading p,.signature-content p{
  font-size:var(--phone-copy)!important;line-height:1.45;
 }
 .account-heading h1,.directory-heading h1,.property-window .detail-title,
 #start-screen.broker-home .start-greeting,#start-screen .start-greeting{font-size:var(--phone-title)!important;font-weight:800}
 #start-screen .bh-widget-heading h2,.mg-page .mg-section-head h2,.property-window .property-facts-card h3{
  font-size:var(--phone-section)!important;font-weight:800;
 }
 .mg-page .mg-heading .mg-nav-title,.mg-page .office-brand strong,.mg-page .office-picker summary,
 .mg-page .office-picker .mg-office-name{font-size:var(--phone-action)!important;font-weight:750}
 html body #app .mg-shared-search input::placeholder,html body #start-screen .bh-search input::placeholder{font-size:var(--phone-copy);font-weight:650}
 html body #app .header .brand-name,#start-screen .start-brand{font-size:1.5rem!important;font-weight:800}
 .property-window .property-heading>.price,.reels-price{font-size:1.5rem!important;font-weight:800}
 .property-window .property-fact,.property-window .property-heading .specs,.property-card h3{
  font-size:var(--phone-copy)!important;
 }
 .connect .cx-row-top strong,.connect .cx-thread-head h3{font-size:var(--phone-copy)!important}
 .connect .cx-head h2{font-size:var(--phone-section)!important}

 /* The signature workspace also runs inside a shadow root. */
 :is(.signature-content,#screen) :is(.panel,.item,.item>b,.item>div){font-size:var(--phone-copy)}
 :is(.signature-content,#screen) :is(.item b,.item strong){font-weight:750}
 .signature-title-row>#title{font-size:var(--phone-section)!important;font-weight:800}
 :is(.signature-content,#screen) :is(.badge,time,small){font-size:var(--phone-caption);font-weight:650}
 :is(.signature-content,#screen) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:max(16px,1em)}
}

/* Management uses the existing phone line boxes and grid tracks. */
@media screen and (max-width:760px){
 :is(.mg-page,.mg-dialog,.home-section-window){
  --phone-title:1.3125rem;
  --phone-section:1.0625rem;
  --phone-subhead:1rem;
 }
 :is(.mg-page,.mg-dialog,.home-section-window) h1{line-height:1.625rem}
 :is(.mg-page,.mg-dialog,.home-section-window) h2{line-height:1.3rem}
 :is(.mg-page,.mg-dialog) :is(h3,h4){line-height:1.22rem}
 .mg-page .mg-heading .mg-nav-title,
 .mg-page .office-brand strong,.mg-page .office-picker .mg-office-name{
  --phone-action:.875rem;
 }
 .mg-page :is(.mg-card,.mg-panel,.mg-task,.mg-section-head) p{font-size:.9375rem;line-height:1.27rem}
 .mg-page .sheet-record .sheet-copy strong{font-size:.9375rem;line-height:1.18125rem}
 .mg-page .sheet-record .sheet-copy small{font-size:.8125rem;line-height:.984375rem}
 html body #app .mg-page .mg-shared-search input::placeholder{font-size:.9375rem}
}
