/* Both theme assets are present before first paint; preferences.js resolves data-theme in the head. */
.brand-themed-pair{position:relative;display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;}
.brand-themed-pair>.brand-theme-light{display:block;}
.brand-themed-pair>.brand-theme-dark{display:none;}
html[data-theme="dark"] .brand-themed-pair>.brand-theme-light{display:none;}
html[data-theme="dark"] .brand-themed-pair>.brand-theme-dark{display:block;}
.brand-themed-pair>.brand-image{max-width:100%;max-height:100%;object-fit:contain;}
[data-brand-preview-theme="light"] .brand-themed-pair>.brand-theme-light{display:block!important;}
[data-brand-preview-theme="light"] .brand-themed-pair>.brand-theme-dark{display:none!important;}
[data-brand-preview-theme="dark"] .brand-themed-pair>.brand-theme-light{display:none!important;}
[data-brand-preview-theme="dark"] .brand-themed-pair>.brand-theme-dark{display:block!important;}
.loading-brand[data-brand-mode="image"]{width:min(var(--brand-width),100%);height:var(--brand-height);display:flex;align-items:center;justify-content:center;}
.loading-brand[data-brand-mode="image"] .brand-logo{width:100%;height:100%;}
.branding-surface-light{background:#f6f4f7!important;color:#302530!important;border-color:#ded7df!important;}
.branding-surface-dark{background:#211b27!important;color:#eee7f0!important;border-color:#504154!important;}
.branding-preview[class*="wordmark-"] img{max-width:100%;max-height:84px;width:auto;height:auto;}
.branding-display-settings,.branding-theme-settings{padding:24px;border-bottom:1px solid var(--line);}
.branding-display-settings>label{display:grid;gap:8px;max-width:620px;}
.branding-display-settings>label input{width:100%;}
.branding-tab-preview{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 14px;border:1px solid var(--line);border-bottom-width:3px;border-radius:10px 10px 0 0;max-width:340px;background:var(--bg);min-width:0;}
.branding-tab-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;}
.branding-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px;}
.branding-theme-previews{display:grid;gap:10px;min-width:0;}
.branding-theme-caption{font-size:11px;align-self:flex-start;}
.branding-theme-previews .branding-live-preview{display:flex;flex-direction:column;gap:12px;min-width:0;overflow:hidden;}
@media(max-width:700px){.branding-theme-grid{grid-template-columns:1fr;}.branding-display-settings,.branding-theme-settings{padding:18px;}}
