/* Studio-local black scheme; never selects native regions or the body. */
/* Black is a selectable website palette, independent of the structural skin.
 * Keep these overrides opt-in. Never filter, invert or blend cover / logo art.
 * Reader/editor application canvases keep their own preferences and controls. */
.fmp-studio-region.fbp.fbp-palette-black,
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-commerce-layout,.fbp-built-home,.fiweh-hp,.fbp-reader-introduction) {
 --fbp-paper:#101112; --fbp-bg:#101112; --fbp-panel:#1c1e21; --fbp-ink:#f5f5f5;
 --fbp-brand:#e4e4e7; --fbp-accent:#b8c4d4; --fbp-border:#646970;
 --fbp-muted:#bfc3ca; --fbp-soft:#25282d; --fbp-accent-text:#101112;
 --fbp-button-bg:#e4e4e7; --fbp-button-ink:#101112; --fbp-intro-button-text:#101112;
 --fbp-book-background:#101112; --fbp-book-card_background:#1c1e21;
 --fbp-book-card_text_color:#f5f5f5; --fbp-book-card_border_color:#646970;
 --fbp-book-card_heading_background:#25282d; --fbp-book-card_heading_color:#f5f5f5;
 --detail-bg:#1c1e21; --detail-ink:#f5f5f5;
 --fiweh-bg:#101112; --fiweh-panel:#1c1e21; --fiweh-card:#1c1e21;
 --fiweh-text:#f5f5f5; --fiweh-accent:#e4e4e7; --fiweh-button-text:#101112;
 --fiweh-hero:#1c1e21; --fiweh-hero-text:#f5f5f5; --fiweh-hero-link:#e4e4e7;
 --fiweh-link:#e4e4e7; --fiweh-focus:#b8c4d4;
 color-scheme:dark;
}
.fmp-studio-region.fbp.fbp-palette-black {background:#101112!important;color:#f5f5f5}
.fmp-studio-region.fbp.fbp-palette-black :is(.page_wrap,.page_content_wrap,.content_wrap,.fbp-commerce-layout,.fbp-page,.fbp-built-home,.fiweh-hp) {background-color:var(--fbp-paper)!important;color:var(--fbp-ink)}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-header,.fbp-footer) {--fbp-header-bg:#000;--fbp-header-ink:#fff;--fbp-footer-bg:#000;--fbp-footer-ink:#fff;background:#000!important;color:#fff!important;border-color:#646970}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-header,.fbp-footer) :is(a,h1,h2,h3,h4,h5,h6,p,small,summary,li,label) {color:#fff!important}
.fmp-studio-region.fbp.fbp-palette-black .fbp-header :is(.fbp-header-top,.fbp-header-navrow,.fbp-desktop ul ul,.fbp-mobile nav) {background:#000!important;color:#fff!important}
/* Content only: do not recolor third-party editor or Reader toolbars. */
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-commerce-layout,.fbp-built-home,.fbp-page,.fbp-demo,.fbp-story-detail-page,.fbp-series-details,.fbp-author-profile,.fbp-profile-account,.fbp-reader-introduction,.fiweh-hp,.fmp-main,.entry-content,.post_content) :is(h1,h2,h3,h4,h5,h6,label,legend):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {color:var(--fbp-ink)}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-commerce-layout,.fbp-built-home,.fbp-page,.fbp-demo,.fbp-story-detail-page,.fbp-series-details,.fbp-author-profile,.fbp-profile-account,.fbp-reader-introduction,.fiweh-hp,.entry-content,.post_content) a:not(.button):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {color:var(--fbp-brand)}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-card,.fbp-demo-panel,.fbp-details-card,.fbp-format-card,.fbp-market-book,.fbp-market-cover,.fbp-commerce-heading,.fbp-profile-panel,.fbp-author-hero,.fbp-author-book,.fbp-author-post,.fbp-story-series-summary,.fbp-reader-simple-promo,.fbp-sales-hero,.fiweh-layout-hero,.fbp-reader-introduction,.fbp-story-added) {background:var(--fbp-panel)!important;color:var(--fbp-ink)!important;border-color:var(--fbp-border)!important}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-story-tile-meta,.fbp-profile-help,.fbp-card-description,.fbp-market-author,.fbp-book-subtitle,.fbp-book-series,.post_meta,.post_meta_item) {color:var(--fbp-muted)!important}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-demo-feature,.fbp-demo-hero,.fbp-demo-notice) {background:var(--fbp-soft);color:var(--fbp-ink);border-color:var(--fbp-border)}
/* WooCommerce cart, account, product information and native review forms. */
.fmp-studio-region.fbp.fbp-palette-black .woocommerce :is(ul.products li.product,.woocommerce-tabs .panel,#reviews #comments ol.commentlist li,#review_form_wrapper,.comment-text,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content,.woocommerce-Address,.woocommerce-customer-details,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-checkout-payment,.payment_box,form.login,form.register,form.checkout_coupon,form.cart) {background:var(--fbp-panel)!important;color:var(--fbp-ink)!important;border-color:var(--fbp-border)!important}
.fmp-studio-region.fbp.fbp-palette-black .woocommerce :is(h1,h2,h3,h4,h5,h6,.price,.woocommerce-Price-amount,.product_meta,.woocommerce-breadcrumb):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {color:var(--fbp-ink)!important}
.fmp-studio-region.fbp.fbp-palette-black .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) {background:var(--fbp-soft)!important;color:var(--fbp-ink)!important;border-color:var(--fbp-accent)!important}
.fmp-studio-region.fbp.fbp-palette-black .woocommerce :is(.stock.in-stock,.star-rating,.stars a) {color:#cddfa9!important}
.fmp-studio-region.fbp.fbp-palette-black :is(.woocommerce,.fbp-series-details) :is(table,thead,tbody,tfoot,tr,th,td):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {background-color:var(--fbp-panel);color:var(--fbp-ink);border-color:var(--fbp-border)}
.fmp-studio-region.fbp.fbp-palette-black .woocommerce :is(.woocommerce-tabs ul.tabs li,.woocommerce-MyAccount-navigation li,.woocommerce-MyAccount-navigation li a) {background:var(--fbp-panel)!important;color:var(--fbp-ink)!important;border-color:var(--fbp-border)!important}
.fmp-studio-region.fbp.fbp-palette-black .woocommerce :is(.woocommerce-tabs ul.tabs li.active,.woocommerce-MyAccount-navigation li.is-active a) {background:var(--fbp-soft)!important;box-shadow:inset 0 -3px var(--fbp-accent)}
.fmp-studio-region.fbp.fbp-palette-black .fbp-web-book-product :is(.fbp-grouped-format-card,.fbp-product-format-options button) {background:var(--fbp-panel)!important;color:var(--fbp-ink)!important;border-color:var(--fbp-border)!important}
.fmp-studio-region.fbp.fbp-palette-black .fbp-web-book-product :is(.fbp-grouped-format-card.is-selected,.fbp-product-format-options button[aria-pressed=true]) {background:var(--fbp-soft)!important;border-color:var(--fbp-accent)!important}
/* Public input surfaces and buttons. Exclude application workspaces and Reader. */
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-header,.fbp-footer,.fbp-page,.fbp-demo,.fbp-built-home,.fbp-commerce-layout,.fbp-profile-account,.fbp-story-detail-page,.fbp-series-details,.fbp-author-profile,.fbp-reader-introduction,.fiweh-hp,.fmp-main,.fmp-header,.fmp-footer,.woocommerce,.entry-content,.post_content) :is(input[type=text],input[type=search],input[type=email],input[type=url],input[type=number],input[type=date],input[type=password],input[type=tel],textarea,select):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {background:#25282d!important;color:#f5f5f5!important;border-color:#7d838c!important;caret-color:#fff;color-scheme:dark}
.fmp-studio-region.fbp.fbp-palette-black :is(input,textarea):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *))::placeholder {color:#bfc3ca;opacity:1}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-header,.fbp-footer,.fbp-page,.fbp-demo,.fbp-built-home,.fbp-commerce-layout,.fbp-profile-account,.fbp-story-detail-page,.fbp-series-details,.fbp-author-profile,.fbp-reader-introduction,.fiweh-hp,.fmp-main,.fmp-header,.fmp-footer,.woocommerce,.entry-content,.post_content) :is(.button,button[type=submit],input[type=submit],.fiweh-button,.fmp-button):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {background:#e4e4e7!important;color:#101112!important;border-color:#e4e4e7!important;filter:none}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-header,.fbp-footer,.fbp-page,.fbp-demo,.fbp-built-home,.fbp-commerce-layout,.fbp-profile-account,.fbp-story-detail-page,.fbp-series-details,.fbp-author-profile,.fbp-reader-introduction,.fiweh-hp,.fmp-main,.fmp-header,.fmp-footer,.woocommerce,.entry-content,.post_content) :is(.button,button[type=submit],input[type=submit],.fiweh-button,.fmp-button):hover:not(:disabled):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {background:#fff!important;color:#101112!important}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-header,.fbp-footer,.fbp-page,.fbp-commerce-layout,.fmp-main,.fmp-header,.fmp-footer,.woocommerce) :focus-visible:not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {outline:3px solid #b8c4d4!important;outline-offset:3px!important}
.fmp-studio-region.fbp.fbp-palette-black :is(input[type=checkbox],input[type=radio]):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {accent-color:#e4e4e7}
.fmp-studio-region.fbp.fbp-palette-black .select2-dropdown,.fmp-studio-region.fbp.fbp-palette-black .select2-container .select2-selection {background:#25282d!important;color:#f5f5f5!important;border-color:#7d838c!important}
.fmp-studio-region.fbp.fbp-palette-black .select2-container .select2-selection__rendered {color:#f5f5f5!important}
.fmp-studio-region.fbp.fbp-palette-black .select2-results__option[aria-selected=true],.fmp-studio-region.fbp.fbp-palette-black .select2-results__option--highlighted {background:#e4e4e7!important;color:#101112!important}
.fmp-studio-region.fbp.fbp-palette-black .scroll_to_top,.fmp-studio-region.fbp.fbp-palette-black .scroll_to_top:before {background:#e4e4e7!important;color:#101112!important}
/* The Marketplace's layout stays identical; replace its independent blue tokens. */
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black {
 --fmp-navy:#f5f5f5; --fmp-deep:#000; --fmp-blue:#e4e4e7; --fmp-ink:#f5f5f5;
 --fmp-muted:#bfc3ca; --fmp-line:#646970; --fmp-soft:#25282d;
}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black :is(.fmp-header,.fmp-utility,.fmp-department-bar,.fmp-footer) {background:#000!important;color:#fff;border-color:#646970}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black :is(.fmp-header,.fmp-footer) :is(a,small,p,h2) {color:#fff!important}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-main {background:#101112;color:#f5f5f5}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black :is(.fmp-discovery-hero,.fmp-reader-feature,.fmp-filter-panel,.fmp-purchase-component,.fmp-account-navigation,.fmp-account-card,.fmp-manage-callout,.fmp-journal-card,.fmp-catalog-card,.fmp-author .fbp-author-hero) {background:#1c1e21!important;color:#f5f5f5;border-color:#646970}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black :is(.fmp-card-cover,.fmp-cover-placeholder,.fmp-shortcuts a,.fmp-search,.fmp-pagination .page-numbers,.fmp-pagination .nav-links>a,.fmp-pagination .nav-links>span) {background:#25282d;color:#f5f5f5!important;border-color:#646970}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black :is(.fmp-discovery-hero p:not(.fmp-kicker),.fmp-reader-feature-note p,.fmp-synopsis,.fmp-prose,.fmp-card-info p.fmp-rating,.fmp-account-icon) {color:#bfc3ca!important}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-free {color:#cddfa9}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-search button {background:#e4e4e7!important;color:#101112!important;border-color:#7d838c}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-search:focus-within {border-color:#b8c4d4;box-shadow:0 0 0 2px #b8c4d466}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-account-tools .fbp-cart-count {background:#e4e4e7;color:#101112}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black :is(.fmp-pagination .page-numbers.current,.fmp-account-navigation li a[aria-current=page]) {background:#e4e4e7!important;color:#101112!important;border-color:#e4e4e7}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-button.fmp-button-secondary {background:#25282d!important;color:#f5f5f5!important;border-color:#7d838c!important}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-button.fmp-button-secondary:hover {background:#34383e!important;color:#fff!important}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-account-card:hover {background:#25282d!important;border-color:#b8c4d4}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-reader-feature-note {border-color:#646970}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-skip-link {background:#e4e4e7;color:#101112}
/* Preserve the original brand asset, including its white circular center. */
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-brand img,.fbp-footer-logo,.custom-logo,.fmp-logo-image) {filter:none!important;mix-blend-mode:normal!important;opacity:1}

/* Legacy application integrations consume the theme button tokens. Give them
 * their established light-surface pair; Reader page themes use --reader-* and
 * retain full control of their independent reading canvas. */
.fmp-studio-region.fbp.fbp-palette-black :is(.fbs-publisher-workspace,.fbs-manager-dialog,#fbs-workspace,.fbp-epub-reader) {
 --fbp-brand:#365ecc; --fbp-ink:#263344; --fbp-panel:#fff; --fbp-paper:#f6f7f8;
 --fbp-accent:#8cbfe0; --fbp-border:#cbd1da; --fbp-muted:#626262;
 --fbp-accent-text:#fff; --fbp-button-ink:#fff; color-scheme:normal;
}
/* Match Marketplace's native grouped-edition selector specificity. */
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-purchase-component form.cart button.fbp-grouped-format-card {background:#25282d!important;color:#f5f5f5!important;border-color:#7d838c!important}
.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-purchase-component form.cart button.fbp-grouped-format-card[aria-pressed=true] {background:#34383e!important;color:#fff!important;border-color:#b8c4d4!important;box-shadow:inset 0 0 0 1px #b8c4d4!important}
.fmp-studio-region.fbp.fbp-palette-black .woocommerce .stock.out-of-stock,.fmp-studio-region.fbp.fbp-marketplace.fbp-palette-black .fmp-purchase-component .stock.out-of-stock {color:#ffb4ab!important}
/* Account table headers and pagination have legacy important color rules. */
.fmp-studio-region.fbp.fbp-palette-black.fbp-account-dashboard .woocommerce-MyAccount-content table.shop_table th {background:#25282d!important;color:#f5f5f5!important}
.fmp-studio-region.fbp.fbp-palette-black.fbp-account-dashboard .woocommerce-MyAccount-content :is(.button,.woocommerce-button):not(:where(.fbs-publisher-workspace *,.fbs-manager-dialog *,#fbs-workspace *,.fbp-epub-reader *,.fbp-reader *,.fwr-reader *)) {background:#e4e4e7!important;color:#101112!important;border-color:#e4e4e7!important}
.fmp-studio-region.fbp.fbp-palette-black.fbp-account-dashboard .woocommerce-MyAccount-content .button.fbp-button-alt {background:#25282d!important;color:#f5f5f5!important;border-color:#7d838c!important}
.fmp-studio-region.fbp.fbp-palette-black.fbp-account-dashboard :is(.page-numbers.current,.woocommerce-pagination a:hover),.fmp-studio-region.fbp.fbp-palette-black .fbp-account-topmenu a[aria-current=page] {background:#e4e4e7!important;color:#101112!important;border-color:#e4e4e7!important}
.fmp-studio-region.fbp.fbp-palette-black .fbp-web-book-product.fbp-amazon-refined :is(.single_add_to_cart_button,.fbp-book-buy-now,[data-fbp-read-online],.fbp-library-save,.fbp-free-claim button,.fbp-store-save button,.fbp-store-save a,a.fbp-store-save,[data-fbp-sample]) {background:#e4e4e7!important;color:#101112!important;border-color:#e4e4e7!important}
.fmp-studio-region.fbp.fbp-palette-black :is(.fbp-flash-shop-row,.fbp-builder-row) {--shop-row-bg:#1c1e21!important;--shop-row-color:#f5f5f5!important;--shop-row-border:#646970!important}
.fmp-studio-region.fbp.fbp-palette-black .fbp-builder-row {background-color:#101112!important;color:#f5f5f5}
.fmp-studio-region.fbp.fbp-palette-black .fbp-flash-shop-row :is(.fbp-sf-wishlist button,a.fbp-sf-wishlist) {background:#e4e4e7!important;color:#101112!important;border-color:#e4e4e7!important}
