/* Admin-controlled public palette. Loaded last; explicit overrides beat legacy component colours. */
html,body,main{background:var(--theme-page,var(--ivory));color:var(--theme-text,var(--ink))}
body :is(h1,h2,h3,h4,h5,h6){color:var(--theme-text,var(--ink))}
.section,.simple-page,.file-detail,.file-market,.support-page,.user-dashboard-page{background:var(--theme-page,var(--ivory))!important;color:var(--theme-text,var(--ink))}
.section-muted,.pricing-section,.subscription-section,.catalogue-flow,.payment-page,.fd-related{background:var(--theme-soft,var(--paper))!important}

/* Light cards deliberately exclude featured/dark cards. */
.product-card,.category-card,.brand-card,.file-type-card,.fm-brand-card,.fm-file,.fd-header,.fd-purchase,.fd-info,.subscription-card:not(.subscription-best),.price-card:not(.featured),.blog-card,.support-card,.conversation-card,.payment-main-card,.order-summary,.cart-items article,.dash-panel,.auth-card,.admin-public-card,.device-filter-stage,.fm-filter-form,.review-card,.review-form,.promo-dialog{background:var(--theme-card,#fff)!important;border-color:var(--theme-border,var(--line))!important}
.site-header{background:color-mix(in srgb,var(--theme-card,#fff) 94%,transparent)!important;border-color:var(--theme-border,var(--line))!important}
.footer,.testimonial-section,.subscription-best,.price-card.featured,.transfer-box{background:var(--theme-dark,var(--ink))!important}
.footer :is(h1,h2,h3,h4,h5,h6),.testimonial-section :is(h1,h2,h3,h4,h5,h6),.subscription-best :is(h1,h2,h3,h4,h5,h6),.price-card.featured :is(h1,h2,h3,h4,h5,h6){color:#fff!important}

/* Every public primary purchase/action button follows the four button settings. */
body :is(.btn-primary,.market-search button,.fm-button,.fd-primary,.product-buy-btn,.subscription-choose,.subscription-best .subscription-choose,.catalogue-filter>summary,[data-add-cart]){
 background:var(--theme-button,var(--theme-accent,var(--gold)))!important;
 background-image:none!important;
 border-color:var(--theme-button-border,var(--theme-button))!important;
 color:var(--theme-button-text,var(--theme-text))!important;
 box-shadow:0 10px 26px color-mix(in srgb,var(--theme-button) 24%,transparent);
}
body :is(.btn-primary,.market-search button,.fm-button,.fd-primary,.product-buy-btn,.subscription-choose,.subscription-best .subscription-choose,.catalogue-filter>summary,[data-add-cart]):is(:hover,:focus-visible){
 background:var(--theme-button-hover,var(--theme-button))!important;
 background-image:none!important;
 border-color:var(--theme-button-border,var(--theme-button-hover))!important;
 color:var(--theme-button-text,var(--theme-text))!important;
}
body :is(.btn-primary,.fm-button,.fd-primary,.product-buy-btn,.subscription-choose,[data-add-cart]):disabled{opacity:.55!important;box-shadow:none!important}

.section-kicker,.eyebrow,.file-new-badge,.fd-eyebrow{color:var(--theme-accent,var(--gold-dark))!important}
.product-card,.category-card,.brand-card,.file-type-card,.fm-brand-card,.fm-file,.support-card,.conversation-card,.payment-main-card,.order-summary{box-shadow:0 16px 42px color-mix(in srgb,var(--theme-text,var(--ink)) 8%,transparent)}
.payment-unavailable{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-soft);color:var(--theme-text);margin:4px 0 20px}.payment-unavailable>i{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:color-mix(in srgb,var(--theme-accent) 20%,var(--theme-card));color:var(--theme-text);font-size:18px}.payment-unavailable div{display:grid;gap:4px}.payment-unavailable b{font-size:14px}.payment-unavailable span{font-size:11px;color:var(--theme-muted)}

/* Consistent yellow document mark for downloadable files (never a ZIP archive glyph). */
.mini-file,.summary-file-icon{background:color-mix(in srgb,var(--theme-accent,var(--gold)) 18%,var(--theme-card,#fff))!important;color:color-mix(in srgb,var(--theme-accent,var(--gold)) 76%,#5f4300)!important;border:1px solid color-mix(in srgb,var(--theme-accent,var(--gold)) 34%,var(--theme-border,var(--line)))!important}
.mini-file{font-size:20px!important}.summary-file-icon{display:inline-grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;margin-right:9px;vertical-align:middle}
