/* Restore the configured studio palette after the reference layout's orange palette.
   Orange keeps its existing reference colors. These rules only change brand colors. */
html[data-workspace][data-brand-theme=red]{--brand:#b52d38;--brand-strong:#8e1928;--brand-soft:#f9ebed;--brand-rgb:181,45,56;--line:#e7e7e2}
html[data-workspace][data-brand-theme=blue]{--brand:#235f9f;--brand-strong:#17436f;--brand-soft:#eaf1f9;--brand-rgb:35,95,159;--line:#e1e7ed}
html[data-workspace][data-brand-theme=green]{--brand:#21695d;--brand-strong:#174b42;--brand-soft:#e9f2ee;--brand-rgb:33,105,93;--line:#e1e8e2}
html[data-workspace][data-brand-theme=gold]{--brand:#886531;--brand-strong:#62471e;--brand-soft:#f5efe3;--brand-rgb:136,101,49;--line:#e9e3d6}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]){--brand-primary:var(--brand)}

html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .wrapper>header.workspace-reference-header,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-reference-header,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .header-v2 .header-bar3,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .header-bottom,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-mobile-nav,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-product-categories,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-category-panel,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation>.product-name,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .quotation-form .el-form-item__label,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-rail-title,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-upload-title,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-exclusive-head{background:var(--brand);color:#fff}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-valet-label{background:var(--brand)}

html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-product-categories{border-color:var(--line)}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-reference-header nav a:hover,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-reference-header nav button:hover,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-reference-header nav .active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-business-tabs .active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-business-tabs [aria-current=page]{background:var(--brand-strong);color:#fff}

html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-auth-actions .workspace-auth-login,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-business-tabs a,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-business-tabs button,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-product-categories button:hover,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-product-categories button.active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-category-close{background:#fff;color:var(--brand);border-color:var(--line)}

html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-material-card.active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-material-card.cur,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation>.product-bar a.product-item.cur,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .quotation-btn.active{border-color:var(--brand)!important;color:var(--brand);background:var(--brand-soft)}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .quotation-calculate.active{border-color:var(--brand)!important;background:var(--brand-soft)!important}

html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .ivu-btn-error,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .ivu-btn-primary,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .el-button--primary,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) button[data-workspace-action=create],
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .atelier-primary,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-order-bar button,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-footer-calculate,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quote-footer .workspace-valet-order,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-exclusive-submit,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-pin-category,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-preflight-mapping .primary,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories button.active,
html[data-workspace][data-account-page][data-brand-theme]:not([data-brand-theme=orange]) #app .ivu-btn-primary,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .payment-balance{background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .atelier-primary:hover{background:var(--brand-strong)!important}

html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-order-bar strong,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quote-prompt,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-main .ivu-tabs-nav .ivu-tabs-tab-active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-material-card,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .bafang-vivid-eyebrow{color:var(--brand)}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-main .ivu-tabs-ink-bar,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .bafang-vivid-dots button.is-active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-top-product[aria-current=page],
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .reference-information-types button[aria-pressed=true],
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .reference-home-slide>div>a{background:var(--brand);border-color:var(--brand);color:#fff}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .bafang-vivid-cta{background:var(--brand);box-shadow:0 10px 24px rgba(var(--brand-rgb),.25)}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .bafang-vivid-cta:hover{box-shadow:0 14px 30px rgba(var(--brand-rgb),.32)}

/* Keep the reference selection surfaces and dimensions, including vendor controls. */
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .quotation-btn.active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .quotation-btn.cur,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation button[aria-pressed=true],
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .ivu-radio-group-button .ivu-radio-wrapper-checked,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .el-radio-button__orig-radio:checked + .el-radio-button__inner,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .el-radio-button.is-active .el-radio-button__inner,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation>.product-bar a.product-item.cur,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-material-card.cur{border-color:var(--brand)!important;background:#fff!important;color:var(--brand)!important;box-shadow:inset 0 0 0 1px var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .quotation-calculate.active{border-color:var(--brand)!important;background:#fff!important;color:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .quotation-calculate.active *{color:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .el-checkbox__input.is-checked .el-checkbox__inner,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .el-radio__input.is-checked .el-radio__inner,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .ivu-checkbox-checked .ivu-checkbox-inner,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .ivu-radio-checked .ivu-radio-inner{border-color:var(--brand)!important;background:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .el-checkbox__input.is-checked + .el-checkbox__label,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .el-radio__input.is-checked + .el-radio__label,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .ivu-checkbox-wrapper-checked,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .ivu-radio-wrapper-checked,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .quotation-btn:hover,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-quotation .quotation-calculate:hover{color:var(--brand)!important;border-color:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-footer-total{background:var(--brand)}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-order-bar .workspace-valet-summary-toggle,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-order-bar .workspace-footer-layout{background:#fff!important;border-color:var(--brand)!important;color:var(--brand)!important}

/* A selected category continues to take priority over the current-page link. */
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs>a,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs>button{background:#fff!important;color:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs>button.active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs:not(:has(>button.active))>a.active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs:not(:has(>button.active))>a[aria-current=page]{background:var(--brand)!important;color:#fff!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs:has(>button.active)>a.active,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-sidebar .workspace-business-tabs:has(>button.active)>a[aria-current=page]{background:#fff!important;color:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories{background:var(--brand)!important}
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories a:hover,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories a:focus-visible,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories a[aria-current=page],
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories button:hover,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories button:focus-visible,
html[data-workspace][data-brand-theme]:not([data-brand-theme=orange]) .workspace-account-categories button.active{background:var(--brand-strong)!important;color:#fff!important}
