/* ASMAA white/black/gold bridge. The profile marker is required on every rule. */
.asmaa-shell[data-design-profile="asmaa"] {
  --am-bg:#ffffff; --am-paper:#ffffff; --am-raised:#faf7f1; --am-ink:#111111;
  --am-copy:#414143; --am-muted:#737373; --am-line:#e8e2d9;
  --am-gold:#c9a96e; --am-gold-deep:#a98548; --am-black:#111111;
  --am-shadow:0 8px 25px #261d130e;
  --asma-brand:var(--am-black); --asma-brand-dark:#33302b;
  --asma-primary:var(--am-black); --asma-primary-strong:#33302b; --asma-primary-deep:#000;
  --asma-primary-soft:#faf7f1; --asma-accent:var(--am-gold);
  --asma-ink:var(--am-ink); --asma-copy:var(--am-copy); --asma-muted:var(--am-muted);
  --asma-canvas:var(--am-bg); --asma-surface:var(--am-paper);
  --asma-line:var(--am-line); --asma-line-strong:#d7c9b5;
  --asma-radius:8px; --asma-radius-sm:4px; --asma-radius-md:8px; --asma-radius-lg:12px;
  --asma-shadow:var(--am-shadow); --asma-shadow-sm:var(--am-shadow); --asma-shadow-md:0 16px 36px #261d1314;
  --tenant-primary:var(--am-black); --tenant-accent:var(--am-gold);
  --tenant-heading-font:var(--am-font); --tenant-body-font:var(--am-font);
  --color-brand:var(--am-black); --color-brand-2:var(--am-gold); --color-brand-dark:#111;
  --surface-base:#fff; --surface-raised:var(--am-raised); --surface-overlay:#fff;
  --text-base:var(--am-copy); --text-heading:var(--am-ink); --text-muted:var(--am-muted);
  --border-base:var(--am-line); --primary:var(--am-black); --primary-rgb:17,17,17;
  color-scheme:light; background:var(--am-bg); color:var(--am-ink);
}
.asmaa-shell[data-design-profile="asmaa"] #main-content { background:var(--am-bg)!important; min-width:0; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.main,.page-content,.page-header,.breadcrumb-wrap) { background-color:transparent!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.container,.container-fluid) { max-width:1440px; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(h1,h2,h3,h4,h5,h6,.text-heading) { color:var(--am-ink); }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.breadcrumb,.breadcrumb a,.breadcrumb span,.text-muted,.text-body,.font-small) { color:var(--am-muted); }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.text-brand,.primary-color,.product-price,.product-price .current-price) { color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.archive-header,.product-cart-wrap,.product-info,.sidebar-widget,.shopping-summery,.cart-totals,.order_review,.order-review,.payment_box,.payment-method,.toggle_info,.login_form,.calculate-shiping,.apply-coupon,.sara-pdp-info,.sara-pdp-summary-specs,.sara-pdp-benefits,.sara-pdp-nest-meta,.sara-pdp-brand-info,.sara-pdp-empty,.login_wrap,.register_wrap,.login-form,.form-area) {
  background:var(--am-paper)!important; border-color:var(--am-line)!important;
  color:var(--am-copy); border-radius:8px!important; box-shadow:var(--am-shadow)!important;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content .archive-header::after { background:var(--am-gold)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.product-cart-wrap .product-content-wrap,.product-cart-wrap .product-card-bottom,.product-cart-wrap .product-img-action-wrap,.sara-pdp-main,.sara-pdp-thumb,.sara-pdp-qty,.detail-qty,.sara-pdp-chip,.sara-pdp-iconbtn,.sara-pdp-tab,.shop-product-fillter,.sara-pdp-spec-table td,.sara-pdp-spec-table th) {
  background:var(--am-paper)!important; border-color:var(--am-line)!important; color:var(--am-ink)!important;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.product-cart-wrap h2 a,.sara-pdp-title,.sara-pdp-meta-grid dd,.sara-pdp-meta-grid dt,.product-name a) { color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.sara-pdp-short-desc,.sara-pdp-prose,.sara-pdp-description-body,.product-info p,.product-info li,.product-meta,.product-meta a,.product-cart-wrap .product-category a,.product-cart-wrap .product-content-wrap .font-small) { color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.product-cart-wrap:hover,.sara-pdp-thumb.is-active,.sara-pdp-chip:hover) { border-color:var(--am-gold)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.sara-pdp-chip.is-active,.sara-pdp-tab.active,.pagination .page-item.active .page-link,.list-filter li.active a) {
  background:#faf4e9!important; border-color:var(--am-gold)!important; color:#7a5521!important;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.product-cart-wrap .add-cart,.product-cart-wrap .add,.btn,.button-add-to-cart,.sara-pdp-addcart,.account button[type="submit"]) {
  background:var(--am-black)!important; border-color:var(--am-black)!important; color:#fff!important;
  border-radius:5px!important; box-shadow:none!important;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.product-cart-wrap .add-cart,.product-cart-wrap .add,.btn,.button-add-to-cart,.sara-pdp-addcart):hover:not(:disabled) { background:#3b3328!important; border-color:#3b3328!important; color:#fff!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.btn,.button-add-to-cart,.sara-pdp-addcart) :is(span,i) { color:inherit!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) {
  background:#fff!important; color:var(--am-ink)!important; border-color:var(--am-line)!important; border-radius:5px!important;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(input,textarea)::placeholder { color:#898989!important; opacity:1; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(input,select,textarea):focus { border-color:var(--am-gold)!important; box-shadow:0 0 0 3px #c9a96e33!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color:var(--am-black); }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(input,textarea,select)[aria-invalid="true"] { border-color:#bd4d42!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(table,thead,tbody,tfoot,tr,th,td) { border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.shopping-summery thead,.shopping-summery thead th,.order_review thead,.order_review th) { background:var(--am-raised)!important; color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.shopping-summery tbody td,.order_review tbody td,.table-wishlist tbody td,.sara-pdp-spec-table tr:nth-child(2n)) { background:var(--am-paper)!important; color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.shopping-summery tbody tr:hover,.shopping-summery tbody tr:hover td) { background:var(--am-raised)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.tags-list a,.pagination .page-link,.list-filter a,.sara-pdp-qty-btn,.detail-qty button,.sara-pdp-iconbtn) { background:var(--am-raised)!important; color:var(--am-ink)!important; border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.shop-filter-toggle,.asma-shop-filter-panel,.filter-card) { background:var(--am-paper)!important; color:var(--am-ink)!important; border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] .asma-shop-filter-panel { --asma-filter-ink:var(--am-ink); --asma-filter-line:var(--am-line); --asma-filter-green:var(--am-black); }
.asmaa-shell[data-design-profile="asmaa"] :is(.asma-filter-group summary,.asma-latest-name) { color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(.asma-filter-clear,.asma-latest-price,.asma-latest-price > span) { color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] .asma-filter-price { background:var(--am-raised)!important; border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] .asma-filter-price-inputs input { background:#fff!important; color:var(--am-ink)!important; border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(.asma-filter-active-count,.asma-filter-group-size) { background:#f6eddd!important; color:#7a5521!important; }
.asmaa-shell[data-design-profile="asmaa"] .main.sara-pdp.asma-product-detail {
  --pdp-ink:var(--am-ink); --pdp-muted:var(--am-muted); --pdp-soft:var(--am-raised);
  --pdp-line:var(--am-line); --pdp-green:var(--am-black);
  --surface:var(--am-paper); --line:var(--am-line); --ink:var(--am-ink);
}
.asmaa-shell[data-design-profile="asmaa"] :is(#main-content,.main.sara-pdp.asma-product-detail) :is(.product-detail.accordion-detail.sara-pdp-detail,.detail-info.sara-pdp-detail-info,.product-info.sara-pdp-info,.tab-style3.sara-pdp-tabs,.tab-content.shop_info_tab.entry-main-content.sara-pdp-tabpanels,.sara-pdp-tabpanel,.sara-pdp-prose) {
  background:var(--am-paper)!important; border-color:var(--am-line)!important; color:var(--am-copy)!important;
}
.asmaa-shell[data-design-profile="asmaa"] :is(#main-content,.main.sara-pdp.asma-product-detail) :is(.nav.nav-tabs.sara-pdp-tablist,.sara-pdp-summary-specs) { background:var(--am-raised)!important; border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(#main-content,.main.sara-pdp.asma-product-detail) :is(.title-detail.sara-pdp-title,.sara-pdp-prose h2,.sara-pdp-prose h3,.sara-pdp-prose h4,.sara-pdp-meta-grid dd,.sara-pdp-summary-specs dd) { color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(#main-content,.main.sara-pdp.asma-product-detail) :is(.sara-pdp-prose p,.sara-pdp-prose li,.sara-pdp-meta-grid dt,.sara-pdp-summary-specs dt) { color:var(--am-copy)!important; }

/* Customer account and all login, registration, recovery and checkout controls. */
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.dashboard-menu,.mobile-menu-dropdown,.mobile-menu-btn,.dashboard-content .card,.account-card,.account-row,.account-stat,.account-note,.account-empty,.account-recent,.account-order,.login-card,.register-card,.recovery-card,.card-login) {
  background:var(--am-paper)!important; color:var(--am-copy)!important; border-color:var(--am-line)!important;
  border-radius:8px!important; box-shadow:var(--am-shadow)!important;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.account-card__header,.dashboard-content .card > header,.dashboard-content .card-header,.login-header,.register-header,.recovery-header) { background:var(--am-raised)!important; border-color:var(--am-line)!important; color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.account-card__body,.dashboard-content .card .body,.dashboard-menu .nav-link,.mobile-menu-dropdown a,.mobile-menu-dropdown .logout-button) { color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.dashboard-menu .nav-link.active,.mobile-menu-dropdown a.active,.method-tab.active) { background:var(--am-black)!important; border-color:var(--am-black)!important; color:#fff!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.dashboard-menu .nav-link:hover:not(.active),.mobile-menu-dropdown a:hover:not(.active)) { background:var(--am-raised)!important; color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.account-stat strong,.account-recent h4,.account-order strong,.login-header h1,.register-header h1) { color:var(--am-ink)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.account-muted,.account-row small,.account-note,.account-empty,.login-header p,.register-header p) { color:var(--am-muted)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content .dashboard-content .detail { background:#fff!important; border-color:var(--am-line)!important; color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content .dashboard-content .detail :is(.return-form,.shipment,address) { background:var(--am-raised)!important; border-color:var(--am-line)!important; color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content .dashboard-content .detail :is(.items,.item,.returns > div,.grand) { border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content .dashboard-content :is(button:not(.logout-button):not(.danger):not(.error),a.btn,.btn-login-modern,.btn-register-modern) { background:var(--am-black)!important; color:#fff!important; border-radius:5px!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.login-method-selector,.method-tab:not(.active)) { background:var(--am-raised)!important; border-color:var(--am-line)!important; color:var(--am-copy)!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(#checkout-error,#checkout-quote-error,.dashboard-content .return-error,.dashboard-content .error) { color:#a33b32!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(.dashboard-content .return-success,.dashboard-content .ok) { color:#27693a!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(.current-language-btn,.currency-switcher > .nav-icon-btn) { background:transparent!important; color:var(--am-ink)!important; border-color:transparent!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(.current-language-btn,.currency-switcher > .nav-icon-btn):is(:hover,[aria-expanded="true"]) { background:var(--am-raised)!important; color:#8a6735!important; border-color:var(--am-line)!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(.language-dropdown-menu,.currency-switcher [role="listbox"]) { background:#fff!important; border-color:var(--am-line)!important; color:var(--am-ink)!important; box-shadow:0 12px 30px #0002!important; }
.asmaa-shell[data-design-profile="asmaa"] :is(.language-item.active,.currency-switcher [role="option"][aria-selected="true"]) { background:#f6eddd!important; border-color:var(--am-gold)!important; color:var(--am-ink)!important; }

/* Private tenant dashboard: same scoped palette, no data or workflow changes. */
#tenant-scope[data-design-profile="asmaa"] {
  --am-bg:#faf7f1; --am-paper:#fff; --am-raised:#f6f0e7; --am-ink:#111; --am-copy:#414143;
  --am-muted:#757575; --am-line:#e8e2d9; --am-gold:#c9a96e; --am-black:#111;
  --am-font:AsmaaAfacad,Arial,sans-serif;
  --tenant-primary:#111; --tenant-accent:#c9a96e;
  --primary:#111; --primary-rgb:17,17,17;
  --surface:#fff; --border-color:#e8e2d9; --bg-emphasis:#f6f0e7; --bg-inverse:#111;
  --border-strong:#d3c3aa;
  --primary-50:#faf7f1; --primary-100:#f5ebd9; --primary-200:#e7d4af;
  --primary-300:#cfad70; --primary-400:#a9874d; --primary-800:#4f3e26; --primary-900:#30281d;
  color-scheme:light; background:var(--am-bg); color:var(--am-ink); font-family:var(--am-font)!important;
}
#tenant-scope[data-design-profile="asmaa"]:is([lang="ar"],[lang="fa"]) { --am-font:AsmaaMessiri,Vazirmatn,Tahoma,sans-serif; }
#tenant-scope[data-design-profile="asmaa"] :is(h1,h2,h3,h4,h5,h6,button,input,textarea,select) { font-family:var(--am-font)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.tenant-shell,.tenant-main,.tenant-body) { background:var(--am-bg)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.layout-navbar,.layout-navbar.navbar-scrolled,.tenant-dropdown-menu,.dropdown-menu,.tenant-card,.kpi-card,.card,.modal-content,.offcanvas,.table-responsive) {
  background:var(--am-paper)!important; border-color:var(--am-line)!important; color:var(--am-copy)!important;
}
#tenant-scope[data-design-profile="asmaa"] :is(.tenant-card,.kpi-card,.card,.modal-content) { border:1px solid var(--am-line); border-radius:8px!important; box-shadow:0 8px 25px #261d130e!important; }
#tenant-scope[data-design-profile="asmaa"] .tenant-sidebar { background:#111!important; border-color:#2d2924!important; color:#f5f1e9!important; }
#tenant-scope[data-design-profile="asmaa"] .tenant-sidebar :is(a,.menu-link,.menu-item,span,i) { color:#e7e1d5!important; }
#tenant-scope[data-design-profile="asmaa"] .tenant-sidebar :is(.sidebar-menu-item.active,.menu-item.active > .menu-link) { background:var(--am-gold)!important; color:#111!important; }
#tenant-scope[data-design-profile="asmaa"] .tenant-sidebar :is(.sidebar-menu-item.active,.menu-item.active > .menu-link) :is(span,i) { color:#111!important; }
#tenant-scope[data-design-profile="asmaa"] :is(h1,h2,h3,h4,h5,h6,.card-title,.kpi-value,.text-gray-900,.text-slate-900,.text-gray-800,.text-slate-800) { color:var(--am-ink)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.text-gray-600,.text-slate-600,.text-gray-500,.text-slate-500,.text-muted,.kpi-title,.tenant-input-label) { color:var(--am-muted)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.bg-white,.bg-gray-50,.bg-slate-50,.bg-gray-100,.bg-slate-100) { background-color:var(--am-paper)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.card-header,.card-footer,.tenant-table th,.table th,.table thead th,.ts-float-input,.ts-float-input-label) { background:var(--am-raised)!important; border-color:var(--am-line)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(table,tr,td,th,.border,.border-gray-200,.border-slate-200,.border-gray-100,.border-slate-100,.tenant-table-row) { border-color:var(--am-line)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(td,.tenant-table-cell) { color:var(--am-copy); }
#tenant-scope[data-design-profile="asmaa"] :is(.tenant-btn-primary,.btn-primary,.btn.btn-primary,.pl-toolbar-actions .pl-btn-add) { background:#111!important; border-color:#111!important; color:#fff!important; border-radius:5px!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.tenant-btn-primary,.btn-primary,.btn.btn-primary):hover:not(:disabled) { background:#3b3328!important; border-color:#3b3328!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.tenant-btn-secondary,.tenant-btn-outline,.btn-outline-primary) { background:transparent!important; color:#7a5521!important; border-color:var(--am-gold)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) {
  background:#fff!important; color:#111!important; border-color:var(--am-line)!important; border-radius:5px!important;
}
#tenant-scope[data-design-profile="asmaa"] :is(input,select,textarea):focus { border-color:var(--am-gold)!important; box-shadow:0 0 0 3px #c9a96e33!important; }
#tenant-scope[data-design-profile="asmaa"] :is(input,textarea)::placeholder { color:#888!important; opacity:1; }
#tenant-scope[data-design-profile="asmaa"] :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color:#111; }
#tenant-scope[data-design-profile="asmaa"] :is(.tenant-dropdown-menu .dropdown-item:hover,.dropdown-menu .dropdown-item:hover,.tenant-table tbody tr:hover,.table tbody tr:hover) { background:var(--am-raised)!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.ts-float-trigger,.ts-float-dropdown) { background:#fff!important; border-color:var(--am-line)!important; color:#111!important; }
#tenant-scope[data-design-profile="asmaa"] .ts-float-value { color:#111!important; }
#tenant-scope[data-design-profile="asmaa"] :is(.ts-float-value--empty,.ts-float-empty,.ts-float-arrow i) { color:var(--am-muted)!important; }
#tenant-scope[data-design-profile="asmaa"] .ts-float-label { background:#fff!important; color:var(--am-muted)!important; }
#tenant-scope[data-design-profile="asmaa"] .ts-float-trigger:is(:hover,:focus-visible,.ts-float-trigger--open) { border-color:var(--am-gold)!important; box-shadow:0 0 0 3px #c9a96e33!important; }
#tenant-scope[data-design-profile="asmaa"] .ts-float-option:is(:hover,:focus-visible) { background:var(--am-raised)!important; }
#tenant-scope[data-design-profile="asmaa"] .ts-float-option--selected { background:#111!important; color:#fff!important; }
#tenant-scope[data-design-profile="asmaa"] .feature-banner { background:#fff!important; border-color:var(--am-line)!important; box-shadow:0 4px 16px #261d130e!important; }
#tenant-scope[data-design-profile="asmaa"] .feature-banner .fb-icon { background:#f6eddd!important; color:#7a5521!important; }
#tenant-scope[data-design-profile="asmaa"] .feature-banner .feature-banner-pill { background:var(--am-raised)!important; color:#111!important; border:1px solid var(--am-line)!important; }
#tenant-scope[data-design-profile="asmaa"] .feature-banner .feature-banner-pill--principle { background:#111!important; color:#fff!important; border-color:#111!important; }
#tenant-scope[data-design-profile="asmaa"] :is(a,button,input,textarea,select):focus-visible { outline:2px solid var(--am-gold); outline-offset:3px; }
/* Status/error/success colors remain semantic. */


/* Shared form/customer tokens and the administration semantic contract. */
.asmaa-shell[data-design-profile="asmaa"],
#tenant-scope[data-design-profile="asmaa"],
.asmaa-admin-auth[data-design-profile="asmaa"] {
  --am-font:AsmaaAfacad,Arial,sans-serif; --am-display:AsmaaCormorant,Georgia,serif;
  --asma-input-bg:var(--am-paper,#fff); --asma-input-readonly:var(--am-raised,#faf7f1);
  --asma-elevated:var(--am-raised,#faf7f1); --asma-on-primary:#fff; --asma-on-primary-strong:#fff;
  --asma-feedback-error-bg:#fff1f0; --asma-feedback-error-text:#a33b32; --asma-feedback-error-border:#e3b5ae;
  --asma-feedback-success-bg:#edf8f0; --asma-feedback-success-text:#27693a; --asma-feedback-success-border:#afd2b7;
  --surface-base:var(--am-paper,#fff); --surface-raised:var(--am-raised,#faf7f1); --surface-overlay:var(--am-paper,#fff);
  --bg-base:var(--am-bg,#faf7f1); --bg-subtle:var(--am-paper,#fff); --bg-muted:var(--am-raised,#f6f0e7);
  --text-base:var(--am-copy,#414143); --text-heading:var(--am-ink,#111); --text-subtle:var(--am-copy,#414143);
  --text-muted:var(--am-muted,#737373); --text-disabled:#999; --text-inverse:#fff;
  --border-base:var(--am-line,#e8e2d9); --border-subtle:#f1ece5; --border-emphasis:#d7c9b5;
  --primary:var(--am-black,#111); --primary-500:#111; --primary-600:#33302b; --primary-700:#000;
  --primary-hover:#33302b; --primary-active:#000; --primary-rgb:17,17,17;
  --font-active:var(--am-font); --font-heading:var(--am-font); --font-sans:var(--am-font);
  --tenant-heading-font:var(--am-font); --tenant-body-font:var(--am-font);
  color-scheme:light;
}
#tenant-scope[data-design-profile="asmaa"] {
  --menu-color:#414143; --menu-icon-color:#737373; --menu-active-bg:#111; --menu-active-color:#fff;
  --menu-hover-bg:#f6f0e7; --menu-hover-color:#111;
}
html:is([lang="fa"],[lang="ar"],[lang="ur"],[lang="he"]) .asmaa-shell[data-design-profile="asmaa"],
#tenant-scope[data-design-profile="asmaa"]:is([lang="fa"],[lang="ar"],[lang="ur"],[lang="he"]),
.asmaa-admin-auth[data-design-profile="asmaa"]:is([lang="fa"],[lang="ar"],[lang="ur"],[lang="he"]) {
  --am-font:var(--font-vazir,Vazirmatn),Tahoma,sans-serif; --am-display:var(--font-vazir,Vazirmatn),Tahoma,sans-serif;
}
html[lang="ar"] .asmaa-shell[data-design-profile="asmaa"],
#tenant-scope[data-design-profile="asmaa"][lang="ar"],
.asmaa-admin-auth[data-design-profile="asmaa"][lang="ar"] {
  --am-font:AsmaaMessiri,var(--font-vazir,Vazirmatn),Tahoma,sans-serif;
  --am-display:AsmaaMessiri,var(--font-vazir,Vazirmatn),Tahoma,sans-serif;
}
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(p,a,button,input,select,textarea,label,h1,h2,h3,h4,h5,h6),
#tenant-scope[data-design-profile="asmaa"] :is(p,a,button,input,select,textarea,label,h1,h2,h3,h4,h5,h6) { font-family:var(--am-font); }
/* Login and recovery use the same white/black/gold system without changing auth logic. */
.asmaa-admin-auth[data-design-profile="asmaa"] {
  --am-bg:#faf7f1;--am-paper:#fff;--am-raised:#f6f0e7;--am-ink:#111;--am-copy:#414143;
  --am-muted:#737373;--am-line:#e8e2d9;--am-gold:#c9a96e;--am-black:#111;
}
.asmaa-admin-auth[data-design-profile="asmaa"] .login-wrapper { background:#faf7f1!important; color:#111!important; font-family:var(--am-font)!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-card,.login-lang-dropdown) { background:#fff!important; border-color:#e8e2d9!important; box-shadow:0 16px 45px #261d1314!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-title,.login-brand h1,.login-label,.login-welcome-email) { color:#111!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-subtitle,.login-footer,.login-welcome-label,.login-eye-btn,.login-switch-user-btn) { color:#737373!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-logo-mark,.login-btn,.login-btn-amber) { background:#111!important; color:#fff!important; border-color:#111!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] .login-btn:hover:not(:disabled) { background:#33302b!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-input,.login-lang-btn) { background:#fff!important; border-color:#d7c9b5!important; color:#111!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-input,.login-lang-btn):focus { border-color:#c9a96e!important; box-shadow:0 0 0 3px #c9a96e33!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-link-btn,.login-resend-btn,.login-lang-item.active) { color:#7a5521!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(.login-welcome-back,.login-badge,.login-lang-item:hover) { background:#f6f0e7!important; border-color:#e8e2d9!important; color:#414143!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] .login-badge-dot { background:#c9a96e!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] .login-error { background:#fff1f0!important; border-color:#e3b5ae!important; color:#a33b32!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] .login-success { background:#edf8f0!important; border-color:#afd2b7!important; color:#27693a!important; }
.asmaa-admin-auth[data-design-profile="asmaa"] :is(a,button,input,textarea,select):focus-visible { outline:2px solid #c9a96e!important; outline-offset:3px; }
/* Keep the tenant's configured Sara portrait uncropped and use the profile chat palette. */
.asmaa-shell[data-design-profile="asmaa"] [data-sara-theme] {
  --sg-gold:#111!important;--sg-gold-light:#33302b!important;--sg-gold-deep:#000!important;
  --sg-gold-rgb-csv:17,17,17!important;--sg-gold-light-rgb-csv:51,48,43!important;
  --sg-panel-top:#fff!important;--sg-panel-bottom:#faf7f1!important;
  --sg-surface-deep:#f6f0e7!important;--sg-surface-rgb-csv:246,240,231!important;
  --sg-text:#111!important;--sg-text-rgb-csv:17,17,17!important;
}
.asmaa-shell[data-design-profile="asmaa"] .sara-floating-portrait img { object-fit:contain!important;object-position:center bottom!important; }

/* Native reference headings must win over the generic shared page-heading rule. */
.asmaa-shell[data-design-profile="asmaa"] { display:flex;flex-direction:column;min-height:100vh; }
.asmaa-shell[data-design-profile="asmaa"] #main-content .am-hero-content h1,
.asmaa-shell[data-design-profile="asmaa"] #main-content .am-community h2 { color:#fff!important; }
.asmaa-shell[data-design-profile="asmaa"] #main-content :is(p,a,button,input,select,textarea,label,h1,h2,h3,h4,h5,h6),
#tenant-scope[data-design-profile="asmaa"] :is(p,a,button,input,select,textarea,label,h1,h2,h3,h4,h5,h6) {font-family:var(--am-font)!important;}
.asmaa-shell[data-design-profile="asmaa"] :is(.am-wordmark,.am-footer-brand p,.am-category-card strong,.am-empty-editorial h2,.am-about-brand) {font-family:var(--am-display)!important;}
