/* Scoped workspace refinement. No customer storefront selectors. */
html body.ebx-rules15,html body.ebx-brand15,html body.ebx-catalog15{background:#f4f6f8!important;color:#192c36; font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;}
body.ebx-rules15,body.ebx-brand15,body.ebx-catalog15{--r15-line:#dce5e7;--r15-muted:#526775;--r15-accent:var(--cp-primary,var(--g,#176b54));}
body.ebx-rules15>header,body.ebx-brand15>header,body.ebx-catalog15>.cp-top{background:#fff!important;border-bottom:1px solid var(--r15-line)!important;box-shadow:0 2px 12px #193e2c08!important;color:#192c36!important;}
body.ebx-rules15>header .bar,body.ebx-brand15>header .bar{max-width:1440px!important;width:100%;min-width:0;gap:12px;}
body.ebx-rules15>header h1,body.ebx-brand15>header h1{font:700 20px/1.3 Inter,system-ui,sans-serif!important;color:#192c36!important;}
body.ebx-rules15>header h1 small,body.ebx-brand15>header h1 small{color:var(--r15-muted)!important;font:400 12px/1.4 Inter,system-ui,sans-serif!important;}
body.ebx-rules15>header .back,body.ebx-brand15>header .back{color:var(--r15-accent)!important;}
body.ebx-rules15>main,body.ebx-brand15>main,body.ebx-catalog15>.cp-shell{max-width:1440px!important;width:100%;min-width:0;padding:24px clamp(14px,2.2vw,32px) 40px;}
body.ebx-rules15 #list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;}
body.ebx-rules15 #list>.card,body.ebx-rules15 #newBrandBox,body.ebx-brand15 #app .card,body.ebx-catalog15 .cp-card{min-width:0;border:1px solid var(--r15-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 3px 12px #193e2c08!important;padding:20px!important;margin:0 0 14px;}
body.ebx-rules15 #list>.card{margin:0;}
body.ebx-rules15 #list>.card>h3{font:700 18px/1.4 Inter,system-ui,sans-serif!important;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--r15-line);overflow-wrap:anywhere;}
body.ebx-rules15 .owner{background:#f6f9fa!important;border:1px solid var(--r15-line)!important;border-radius:10px;padding:14px!important;margin:12px 0;overflow-wrap:anywhere;}
body.ebx-rules15 .owner .row,body.ebx-rules15 .barx,body.ebx-rules15 .save-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;min-width:0;}
body.ebx-rules15 .owner .o-q{min-width:0!important;flex:1 1 180px!important;}
body.ebx-rules15 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
body.ebx-rules15 #scopeBar{background:white;border:1px solid var(--r15-line);padding:14px;border-radius:12px;}
body.ebx-rules15 #scopeBar select{flex:1 1 240px;max-width:100%;}
body.ebx-rules15 #newBrandName{flex:1 1 180px;min-width:0;}
body.ebx-rules15 .save-row{border-top:1px solid var(--r15-line);padding-top:14px;justify-content:flex-end;}
body.ebx-rules15 .hint,body.ebx-brand15 .muted,body.ebx-catalog15 .cp-muted{color:var(--r15-muted)!important;line-height:1.55;}
body.ebx-rules15 #r15-searchbox{background:white;border:1px solid var(--r15-line);border-radius:12px;padding:14px;margin:16px 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
body.ebx-rules15 #r15-searchbox input{flex:1 1 220px;min-width:0;}
body.ebx-rules15 #list>.card.r15-filtered{display:none!important;}
body.ebx-rules15 #r15-count{font-size:12px;color:var(--r15-muted);}
body.ebx-brand15 #app>section,body.ebx-brand15 #app .grid>*,body.ebx-catalog15 .cp-workarea>*{min-width:0;}
body.ebx-brand15 #app .od-it,body.ebx-brand15 #app .od-info,body.ebx-brand15 #app .od-cust,body.ebx-brand15 #app .od-btns,body.ebx-brand15 #app .toolbar{min-width:0;overflow-wrap:anywhere;}
body.ebx-brand15 #app .od-btns{flex-wrap:wrap;}
body.ebx-brand15 #app .od-btns button{flex:1 1 120px;white-space:normal;}
body.ebx-brand15 #app .od-filters{overflow-x:auto;max-width:100%;}
body.ebx-brand15 #app .od-list{gap:16px;}
body.ebx-brand15 #app .bp-workspace-heading,body.ebx-catalog15 .cp-intro{background:#fff!important;border:1px solid var(--r15-line)!important;box-shadow:none!important;padding:20px!important;border-radius:14px!important;}
body.ebx-catalog15 .cp-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));}
body.ebx-catalog15 .cp-selector{padding:16px 20px;}
body.ebx-catalog15 .cp-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));}
body.ebx-catalog15 .cp-row{flex-wrap:wrap;gap:12px;}
body.ebx-catalog15 .cp-row .cp-copy{flex:1 1 160px;min-width:0;}
body.ebx-catalog15 #cp-tabs button{min-height:44px;}
body.ebx-catalog15 #cp-tabs button[aria-selected=true]{box-shadow:inset 3px 0 var(--cp-primary);}
body.ebx-rules15 input:not([type=checkbox]):not([type=radio]),body.ebx-rules15 select,body.ebx-brand15 input:not([type=checkbox]):not([type=radio]),body.ebx-brand15 select,body.ebx-catalog15 input:not([type=checkbox]):not([type=radio]),body.ebx-catalog15 select{max-width:100%;min-width:0;min-height:44px;}
body.ebx-rules15 button,body.ebx-brand15 #app button,body.ebx-catalog15 button{min-height:42px;}
@media(min-width:1150px){body.ebx-rules15 #list{grid-template-columns:repeat(2,minmax(0,1fr));}body.ebx-catalog15 .cp-workarea:has(#cp-tabs:not([hidden])){grid-template-columns:230px minmax(0,1fr);}}
@media(max-width:899px){body.ebx-brand15>main{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;}body.ebx-catalog15 #cp-tabs:not([hidden]){position:sticky;top:68px;z-index:8;overflow-x:auto;flex-wrap:nowrap;box-shadow:0 3px 10px #193e2c0d;}body.ebx-catalog15 #cp-tabs button{flex:0 0 auto;}body.ebx-rules15>main,body.ebx-catalog15>.cp-shell{padding:14px 12px 30px;}}
@media(max-width:600px){body.ebx-rules15 .grid,body.ebx-catalog15 .cp-fields,body.ebx-brand15 #app .grid{grid-template-columns:minmax(0,1fr)!important;}body.ebx-rules15 #list>.card,body.ebx-rules15 #newBrandBox,body.ebx-brand15 #app .card,body.ebx-catalog15 .cp-card{padding:14px!important;}body.ebx-rules15 .save-row>button{flex:1 1 120px;}body.ebx-rules15 #scopeBar select{flex-basis:100%;}body.ebx-catalog15 .cp-grid{grid-template-columns:repeat(2,minmax(0,1fr));}body.ebx-catalog15 .cp-top{position:relative;}body.ebx-catalog15 #cp-tabs:not([hidden]){top:0;}body.ebx-brand15 #app>.tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important;}body.ebx-brand15 #app .tab{white-space:normal!important;line-height:1.15!important;min-height:58px!important;}body.ebx-rules15 input,body.ebx-rules15 select,body.ebx-brand15 input,body.ebx-brand15 select,body.ebx-catalog15 input,body.ebx-catalog15 select{font-size:16px!important;}}
/* Main shopping workspace: eliminate nested sticky header overlap. */
body.suite-live .m-top-wrap{position:relative!important;top:auto!important;z-index:5!important;}
body.suite-live .m-top-wrap .m-top{position:relative!important;top:auto!important;background:#fff!important;}
body.suite-live #viewSettings .m-settings-layout{min-width:0;align-items:start;}
body.suite-live #viewSettings .m-settings-pane{min-width:0;max-width:100%;}
body.suite-live #viewSettings .m-settings-layout .suite-settings-directory{top:12px!important;max-height:calc(100dvh - 30px)!important;overflow:auto;overscroll-behavior:contain;}
body.suite-live #viewSettings .settings-card,body.suite-live #viewSettings .settings-item{min-width:0;overflow-wrap:anywhere;}
body.suite-live #viewSettings .settings-save-bar{position:relative!important;bottom:auto!important;margin-top:16px;}
@media(min-width:761px) and (max-width:1050px){body.suite-live #viewSettings .m-settings-layout{grid-template-columns:minmax(155px,190px) minmax(0,1fr)!important;gap:12px;}}
@media(max-width:760px){body.suite-live #viewSettings .m-settings-layout .suite-settings-directory{position:static!important;max-height:none!important;overflow:visible;}body.suite-live #viewSettings .settings-item{padding:14px!important;}body.suite-live #viewSettings .settings-save-bar{padding-bottom:12px!important;}}

body.ebx-rules15 #r15-searchbox[hidden]{display:none!important;}
