/* Shared layout boundaries and touch controls, after each page's component styles. */
html{scroll-padding-top:100px}
body{overflow-wrap:break-word}
body:has(dialog[open]){overflow:hidden}
:where(.home-container,.home-hero-copy,.home-docs-copy,.home-library-panel,.catalog-layout,.products,.quick-product,.gb-details,.gb-hero-main,.gb-offer-body,.gb-archive-copy,.gc-card-body,.account-main,.portal-settings section>div,.co-main,.co-summary,.main-shell){min-width:0}
:where(.home-catalog-card,.gb-details,.gc-card,.co-campaign,.portal-settings,.account-order,.settings-card){overflow-wrap:anywhere}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #9ac0ff;outline-offset:4px}
:where(dialog){overscroll-behavior:contain}
.gb-product-buy input,.quick-stepper input{font-variant-numeric:tabular-nums}
@media(max-width:900px){
 .quick-catalog-page .search{padding-block:0}
 .quick-catalog-page .search input,.gb-search input{font-size:16px;min-height:44px}
 .gb-product-buy input[data-gb-quantity]{font-size:16px;min-height:44px}
 #group-buy-board .gb-product-title{min-height:44px}
 .co-quantity button{min-width:44px;min-height:44px}
 .co-remove{min-height:44px;padding:8px 0}
 .prl-checkout :is(input:not([type=radio]):not([type=checkbox]),select,textarea),.quality-page :is(input,select),.account-page :is(input:not([type=checkbox]),select,textarea){font-size:16px}
 .gb-benefits>a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:600px){
 .prl-homepage .home-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%}
 .prl-homepage .home-nav a{display:flex;align-items:center;justify-content:center;white-space:nowrap;min-height:44px;padding:8px 0;font-size:12px}
 .account-header nav,.group-coa-page .header nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}
 .account-header nav a,.group-coa-page .header nav a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:11px;white-space:nowrap}
 .prl-homepage .home-hero-catalogs a,.prl-homepage .home-footer-links :is(a,button),.q-footer :is(a,button),.account-back{min-height:44px;display:inline-flex;align-items:center}
 .prl-homepage .home-brand{min-height:44px}
 .prl-homepage .home-text-link,.prl-homepage .home-contact-pill{min-height:44px}
 .home-hero-catalogs{flex-wrap:wrap;row-gap:6px}
 .home-hero-catalogs>span{flex-basis:100%}
 .co-header{padding:16px 18px}
 .co-header h1{font-size:27px;margin-bottom:7px}
 .co-header p{margin-bottom:7px}
 .co-close{width:44px;height:44px}
 .co-progress{gap:7px}
 .co-progress button{min-height:52px;line-height:1.5}
 .co-fields{grid-template-columns:minmax(0,1fr)}
 .co-fields label{grid-column:1/-1}
 .co-summary{padding:20px}
 .portal-section-toolbar{flex-wrap:wrap}
 .portal-settings section>div{min-width:0}
 #editor-fields,.dialog-heading>div{min-width:0}
 #editor-title{overflow-wrap:anywhere}
 .admin-support-thread small{float:none;display:block;margin-top:7px}
 #demo-banner{flex-wrap:wrap;gap:10px}
 #reset-demo{min-height:44px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:1100px){#workspace button{min-height:44px}#mobile-menu{min-width:44px}}
