/* Scoped layout corrections; existing scenes, animations and interactions stay active. */
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) main, body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) main section { min-width:0; }
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) :is(.contact-panel,.contact-aside,.jb-u-store-card,.jb-u-order-card,.jb-u-product,.jb-footer-column){min-width:0;overflow-wrap:anywhere}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-u-commerce-grid{grid-template-columns:minmax(0,1.48fr) minmax(270px,.88fr)!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase{padding-block:40px!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase .jb-logo-sequence>.jb-client-logo-item{width:150px!important;flex-basis:150px!important;height:88px!important;padding:14px!important;border-radius:14px!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase .jb-client-logo-item img{width:auto!important;max-width:100%!important;height:auto!important;max-height:56px!important;object-fit:contain!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase .jb-client-logos-grid.jb-logo-marquee{gap:12px!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase :is(.jb-logo-track,.jb-logo-sequence){gap:12px!important}
#jb-site-footer .jb-footer-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
#jb-site-footer .jb-footer-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #dedede;border-radius:50%;background:#fff;color:#292c32}
#jb-site-footer .jb-footer-social a:hover{border-color:currentColor;color:#b76e25}
#jb-site-footer .jb-footer-social svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.jb-settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.jb-settings-fields label{display:flex;flex-direction:column;gap:7px;min-width:0}
.jb-settings-fields input,.jb-settings-fields select{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#292c32}
.jb-settings-section{margin-top:24px}.jb-settings-section .btn{margin-top:20px}
@media(max-width:1000px){
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-u-commerce-grid{grid-template-columns:minmax(0,1fr)!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-u-order-card{width:100%;max-width:none}
}
@media(max-width:767px){
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .container{width:calc(100% - 32px)!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) :is(.contact-grid,.about-grid,.project-details){grid-template-columns:minmax(0,1fr)!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .main-nav.open{max-height:calc(100dvh - 80px);overflow-y:auto}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) :is(.jb-u-store-card,.jb-u-order-card){padding:20px!important;border-radius:20px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase .jb-logo-sequence>.jb-client-logo-item{width:120px!important;flex-basis:120px!important;height:72px!important;padding:12px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) #jb-client-logo-showcase .jb-client-logo-item img{max-height:46px!important}
 .admin-shell{display:block!important}.admin-sidebar{position:static!important;width:100%!important;height:auto!important;max-height:300px;overflow:auto}
 .admin-content{margin-left:0!important;min-width:0}.admin-main{padding:20px!important}.topbar{padding:16px!important;flex-wrap:wrap;gap:12px}
 .admin-main .two-col{grid-template-columns:minmax(0,1fr)!important}.admin-main .page-heading{flex-wrap:wrap;gap:12px}
 .admin-card{min-width:0;overflow-x:auto}.jb-settings-fields{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:540px){
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-product-info{padding:12px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-store-footer{flex-wrap:wrap;gap:10px}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-order-summary{min-width:0;gap:10px}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-order-summary>span:nth-child(2){min-width:0;flex:1}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-order-summary strong{overflow-wrap:anywhere}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-u-flow-step{min-width:0}
}
@media(max-width:360px){body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override) .jb-pv-products{grid-template-columns:minmax(0,1fr)!important}}

/* Responsive revision: fluid tracks account for gaps; scope overrides to JB only. */
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(.container,.header-inner,.section-head,.showcase-slide,.contact-grid,.about-grid,.portfolio-grid,.footer-grid,.jb-u-commerce-grid,.jbsd-hero-grid,.jbsd-discipline-head,.jbtl-timeline)>*{min-width:0}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(.contact-panel,.contact-aside,.footer-grid,.project-details) {overflow-wrap:anywhere}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .showcase-slide{grid-template-columns:minmax(0,2fr) minmax(0,3fr)!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .service-card{grid-template-columns:minmax(32px,.7fr) minmax(0,5.3fr) minmax(0,4fr)!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .contact-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;gap:clamp(24px,5vw,80px)!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .service-list a{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) 40px!important}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(input,textarea,select){max-width:100%;box-sizing:border-box}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(.btn,.nav-cta){max-width:100%;white-space:normal;text-align:center}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #site-header .header-inner{box-sizing:border-box;max-width:100%}
body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #site-header .mobile-toggle{min-width:44px;min-height:44px;flex-shrink:0}
.admin-main :is(.field,.filters,.form-grid,.two-col)>*{min-width:0}
.admin-main :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.admin-main .admin-scroll{max-width:100%;overscroll-behavior-x:contain}
.admin-main :is(.admin-header,.filters){flex-wrap:wrap}
.admin-main :is(.notice,.errors,.note){overflow-wrap:anywhere}
@media(max-width:1050px){
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #site-header #main-nav{max-height:calc(100vh - 100px)!important;max-height:calc(100dvh - 100px)!important;overflow-y:auto!important;overscroll-behavior:contain}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #site-header :is(.main-nav>a,.jb-nav-services-trigger){min-height:44px;box-sizing:border-box}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .section-head{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .about-grid{gap:32px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #jb-services-refined :is(.jbsd-hero-grid,.jbsd-discipline-head){grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
}
@media(max-width:780px){
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(.container,.jbsd-shell){width:calc(100% - 32px)!important;max-width:100%;margin-inline:auto!important;box-sizing:border-box}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(.about-grid,.contact-grid,.portfolio-grid,.showcase-slide,.project-details){grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .service-card{grid-template-columns:40px minmax(0,1fr)!important;padding:24px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .service-card>*:last-child{grid-column:1/-1}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .service-list a{grid-template-columns:32px minmax(0,1fr) 32px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .form-row{grid-template-columns:minmax(0,1fr)!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #jb-services-refined .jbtl-timeline{grid-template-columns:minmax(0,1fr)!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(input,textarea,select){font-size:16px!important}
 .admin-main :is(input,textarea,select){font-size:16px}
 .admin-main .form-grid{grid-template-columns:minmax(0,1fr)}
 .admin-main .btn{min-height:44px;white-space:normal;text-align:center}
 .admin-sidebar .side-link{min-height:44px}
}
@media(max-width:540px){
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .section-head{margin-bottom:32px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .footer-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #jb-services-refined .jbsd-category-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #jb-services-refined .jbsd-category-nav>*{min-width:0;white-space:normal!important;overflow-wrap:anywhere}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) :is(.jb-u-store-card,.jb-u-order-card){padding:16px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .jb-pv-products{grid-template-columns:minmax(0,1fr)!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .jb-pv-product-info{padding:16px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) .service-card{grid-template-columns:minmax(0,1fr)!important;padding:20px!important}
 body.jb-brand-theme:is(body,#jb-brand-skin#jb-brand-priority#jb-brand-final#jb-brand-system#jb-brand-override#jb-neutral-final#jb-responsive-final#jb-responsive-layout) #site-header .header-inner{padding-inline:16px!important;gap:12px!important}
 .admin-main{padding:20px 12px!important}
 .admin-main .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-main .bar-chart{gap:6px}
 .admin-main .bar-col{min-width:0;font-size:10px;overflow-wrap:anywhere}
 .login-screen{padding:16px}.login-card{padding:24px;min-width:0}
}
@media(max-width:360px){.admin-main .stat-grid{grid-template-columns:minmax(0,1fr)}}
