/* RedMarket Theme System v2.1 — loaded last to guarantee readable contrast */
:root{--rm-light-bg:#f4f7fb;--rm-light-card:#ffffff;--rm-light-text:#111722;--rm-light-muted:#5d6978;--rm-light-line:#dce4ed;--rm-dark-bg:#090c10;--rm-dark-card:#10151b;--rm-dark-card-2:#141a21;--rm-dark-text:#f3f6f9;--rm-dark-muted:#a0abb8;--rm-dark-line:#28313b}
html[data-theme="light"] body{background:var(--rm-light-bg)!important;color:var(--rm-light-text)!important}
html[data-theme="dark"] body{background:var(--rm-dark-bg)!important;color:var(--rm-dark-text)!important}
/* Chrome remains premium/dark in both modes, matching the approved concept. */
html .commerce-strip,html .market-header,html .market-nav-wrap,html .market-footer,html .mobile-commerce-nav,html .admin-topbar-v2{background:#0a0e13!important;color:#f1f4f8!important;border-color:#252d37!important}
html .market-brand-copy b{color:#f7f9fc!important}html .market-brand-copy small{color:#9ca7b5!important}html .market-header a,html .market-header button,html .market-nav-wrap a,html .commerce-strip a{color:#e5eaf0!important}html .market-nav>a,html .mega-categories>summary{color:#c9d1db!important}html .market-nav>a:hover,html .mega-categories>summary:hover{color:#fff!important}html .market-action span,html .market-cart span,html .account-summary-copy b{color:#edf1f5!important}html .account-summary-copy small{color:#98a4b2!important}
/* Sidebars are always dark; text is explicitly set to avoid inherited dark-on-dark labels. */
html .account-sidebar,html .sidebar-pro,html .admin-sidebar-v2{background:#10161d!important;border-color:#27313c!important;color:#edf2f7!important;box-shadow:0 14px 34px rgba(12,18,26,.14)!important}html .account-side-user b,html .side-brand b{color:#f6f8fb!important}html .account-side-user small,html .side-brand small{color:#a8b2bf!important}html .account-side-title,html .side-title,html .admin-sidebar-v2 .side-title{color:#94a0ae!important}html .account-sidebar>a,html .sidebar-pro>a,html .admin-sidebar-v2>a{color:#c7d0da!important}html .account-sidebar>a .ui-icon,html .sidebar-pro>a .ui-icon{color:#a7b2bf!important}html .account-sidebar>a:hover,html .sidebar-pro>a:hover,html .admin-sidebar-v2>a:hover{background:#18202a!important;color:#fff!important}html .account-sidebar>a.active,html .sidebar-pro>a.active,html .admin-sidebar-v2>a.active{background:#1d2630!important;color:#fff!important;box-shadow:inset 3px 0 #f33345!important}
/* Light surfaces */
html[data-theme="light"] .rm-category-strip,html[data-theme="light"] .rm-market-content{background:var(--rm-light-bg)!important}html[data-theme="light"] .product-card-pro,html[data-theme="light"] .rm-confidence-grid article,html[data-theme="light"] .product-hero-pro,html[data-theme="light"] .content-card-pro,html[data-theme="light"] .seller-profile-card,html[data-theme="light"] .safety-card,html[data-theme="light"] .seller-card-pro,html[data-theme="light"] .purchase-assurance,html[data-theme="light"] .workspace-kpi,html[data-theme="light"] .workspace-card,html[data-theme="light"] .order-row-card,html[data-theme="light"] .notification-row,html[data-theme="light"] .queue-card,html[data-theme="light"] .chart-pro,html[data-theme="light"] .finance-snapshot,html[data-theme="light"] .balance-card,html[data-theme="light"] .payout-card,html[data-theme="light"] .seller-store-preview,html[data-theme="light"] .seller-product-row,html[data-theme="light"] .table-wrap,html[data-theme="light"] .panel-card,html[data-theme="light"] .admin-card,html[data-theme="light"] .admin-kpi,html[data-theme="light"] .admin-queue-grid>a,html[data-theme="light"] .health-card,html[data-theme="light"] .admin-mail-row{background:var(--rm-light-card)!important;color:var(--rm-light-text)!important;border-color:var(--rm-light-line)!important;box-shadow:0 7px 22px rgba(18,28,42,.055)!important}html[data-theme="light"] .product-card-pro h3,html[data-theme="light"] .product-info,html[data-theme="light"] .buy-panel-pro h1,html[data-theme="light"] .content-card-pro h2,html[data-theme="light"] .seller-profile-card h3,html[data-theme="light"] .workspace-kpi strong,html[data-theme="light"] .workspace-card h1,html[data-theme="light"] .workspace-card h2,html[data-theme="light"] .workspace-card h3,html[data-theme="light"] .order-row-card b,html[data-theme="light"] .notification-row b,html[data-theme="light"] .account-links b,html[data-theme="light"] .admin-card h1,html[data-theme="light"] .admin-card h2,html[data-theme="light"] .admin-card h3,html[data-theme="light"] .admin-kpi strong,html[data-theme="light"] .table td b{color:var(--rm-light-text)!important}html[data-theme="light"] .product-category,html[data-theme="light"] .product-micro,html[data-theme="light"] .card-meta,html[data-theme="light"] .product-lead,html[data-theme="light"] .product-description-pro,html[data-theme="light"] .content-card-pro p,html[data-theme="light"] .seller-info-pro small,html[data-theme="light"] .workspace-kpi .label,html[data-theme="light"] .workspace-kpi small,html[data-theme="light"] .workspace-card p,html[data-theme="light"] .order-row-copy small,html[data-theme="light"] .notification-row-copy span,html[data-theme="light"] .notification-row time,html[data-theme="light"] .account-links small,html[data-theme="light"] .admin-card p,html[data-theme="light"] .admin-card small,html[data-theme="light"] .admin-kpi small,html[data-theme="light"] .table th,html[data-theme="light"] .table td{color:var(--rm-light-muted)!important}html[data-theme="light"] .input,html[data-theme="light"] .select,html[data-theme="light"] .textarea,html[data-theme="light"] .dashboard .input,html[data-theme="light"] .dashboard .select,html[data-theme="light"] .dashboard .textarea{background:#fff!important;color:#151a22!important;border-color:#d4dde7!important}html[data-theme="light"] .input::placeholder,html[data-theme="light"] .textarea::placeholder{color:#8a95a3!important}html[data-theme="light"] .table th{background:#f6f8fb!important}html[data-theme="light"] .table td{border-color:#e6ebf0!important}
/* Dark surfaces */
html[data-theme="dark"] body.public-body,html[data-theme="dark"] body.account-body,html[data-theme="dark"] body.seller-body,html[data-theme="dark"] body.admin-body{background:var(--rm-dark-bg)!important;color:var(--rm-dark-text)!important}html[data-theme="dark"] .rm-category-strip,html[data-theme="dark"] .rm-market-content{background:var(--rm-dark-bg)!important}html[data-theme="dark"] .product-card-pro,html[data-theme="dark"] .rm-confidence-grid article,html[data-theme="dark"] .product-hero-pro,html[data-theme="dark"] .content-card-pro,html[data-theme="dark"] .seller-profile-card,html[data-theme="dark"] .safety-card,html[data-theme="dark"] .seller-card-pro,html[data-theme="dark"] .purchase-assurance,html[data-theme="dark"] .workspace-kpi,html[data-theme="dark"] .workspace-card,html[data-theme="dark"] .order-row-card,html[data-theme="dark"] .notification-row,html[data-theme="dark"] .queue-card,html[data-theme="dark"] .chart-pro,html[data-theme="dark"] .finance-snapshot,html[data-theme="dark"] .balance-card,html[data-theme="dark"] .payout-card,html[data-theme="dark"] .seller-store-preview,html[data-theme="dark"] .seller-product-row,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .panel-card,html[data-theme="dark"] .admin-card,html[data-theme="dark"] .admin-kpi,html[data-theme="dark"] .admin-queue-grid>a,html[data-theme="dark"] .health-card,html[data-theme="dark"] .admin-mail-row,html[data-theme="dark"] .category-card,html[data-theme="dark"] .seller-tile,html[data-theme="dark"] .review-card{background:var(--rm-dark-card)!important;color:var(--rm-dark-text)!important;border-color:var(--rm-dark-line)!important;box-shadow:0 8px 26px rgba(0,0,0,.18)!important}html[data-theme="dark"] .product-card-pro .product-info,html[data-theme="dark"] .product-card-pro h3,html[data-theme="dark"] .buy-panel-pro h1,html[data-theme="dark"] .content-card-pro h2,html[data-theme="dark"] .seller-profile-card h3,html[data-theme="dark"] .workspace-kpi strong,html[data-theme="dark"] .workspace-card h1,html[data-theme="dark"] .workspace-card h2,html[data-theme="dark"] .workspace-card h3,html[data-theme="dark"] .order-row-card b,html[data-theme="dark"] .notification-row b,html[data-theme="dark"] .account-links b,html[data-theme="dark"] .admin-card h1,html[data-theme="dark"] .admin-card h2,html[data-theme="dark"] .admin-card h3,html[data-theme="dark"] .admin-kpi strong,html[data-theme="dark"] .table td b,html[data-theme="dark"] .rm-confidence-grid h3{color:var(--rm-dark-text)!important}html[data-theme="dark"] .product-category,html[data-theme="dark"] .product-micro,html[data-theme="dark"] .card-meta,html[data-theme="dark"] .product-lead,html[data-theme="dark"] .product-description-pro,html[data-theme="dark"] .content-card-pro p,html[data-theme="dark"] .seller-info-pro small,html[data-theme="dark"] .workspace-kpi .label,html[data-theme="dark"] .workspace-kpi small,html[data-theme="dark"] .workspace-card p,html[data-theme="dark"] .order-row-copy small,html[data-theme="dark"] .notification-row-copy span,html[data-theme="dark"] .notification-row time,html[data-theme="dark"] .account-links small,html[data-theme="dark"] .admin-card p,html[data-theme="dark"] .admin-card small,html[data-theme="dark"] .admin-kpi small,html[data-theme="dark"] .table th,html[data-theme="dark"] .table td,html[data-theme="dark"] .rm-confidence-grid p{color:var(--rm-dark-muted)!important}html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea,html[data-theme="dark"] .dashboard .input,html[data-theme="dark"] .dashboard .select,html[data-theme="dark"] .dashboard .textarea{background:#0c1117!important;color:#f3f6f9!important;border-color:#303945!important}html[data-theme="dark"] .input::placeholder,html[data-theme="dark"] .textarea::placeholder{color:#798593!important}html[data-theme="dark"] .table th{background:#121820!important}html[data-theme="dark"] .table td{border-color:#252e38!important}html[data-theme="dark"] .listing-plan-card,html[data-theme="dark"] .kyc-upload,html[data-theme="dark"] .kyc-state,html[data-theme="dark"] .account-links a{background:#121820!important;color:#eaf0f5!important;border-color:#2c3641!important}html[data-theme="dark"] .listing-plan-card>small,html[data-theme="dark"] .plan-benefits em,html[data-theme="dark"] .kyc-upload span{color:#9ca8b5!important}html[data-theme="dark"] .rm-section-head>div>nav a{color:#a1acb8!important}html[data-theme="dark"] .rm-section-head>div>nav a.active{color:#fff!important}
/* Forms and readable labels */
html .field label{color:inherit!important;opacity:.86}html .field small,html .field-hint{opacity:1!important}.eyebrow{opacity:1!important}.admin-page-head p,.workspace-head p,.dashboard-head p{opacity:1!important}.flash{color:#fff!important}
@media(max-width:700px){.theme-toggle{min-width:38px;padding:0 9px}.theme-toggle [data-theme-text]{display:none!important}}
/* Explicit fixes for previously washed-out states shown in account/security screens. */
html[data-theme="light"] .premium-empty,html[data-theme="light"] .empty{background:#f5f7fa!important;border-color:#cbd5e1!important;color:#5d6a79!important}html[data-theme="light"] .premium-empty b,html[data-theme="light"] .empty b{color:#17202b!important}html[data-theme="dark"] .premium-empty,html[data-theme="dark"] .empty{background:#0e141a!important;border-color:#34404c!important;color:#9eabb8!important}html[data-theme="dark"] .premium-empty b,html[data-theme="dark"] .empty b{color:#edf2f7!important}
html[data-theme="light"] .notice{background:#f5f8fc!important;border-color:#d6e0ea!important;color:#455468!important}html[data-theme="light"] .notice.warn,html[data-theme="light"] .notice.warning{background:#fff7df!important;border-color:#e7c35f!important;color:#6b5210!important}html[data-theme="light"] .notice.danger{background:#fff0f2!important;border-color:#efabb4!important;color:#7d202d!important}html[data-theme="light"] .notice.success{background:#ecfaf3!important;border-color:#9bd7bb!important;color:#176143!important}
html[data-theme="dark"] .notice{background:#141b23!important;border-color:#303b47!important;color:#cad2dc!important}html[data-theme="dark"] .notice.warn,html[data-theme="dark"] .notice.warning{background:#2a220e!important;border-color:#80652a!important;color:#f1d78f!important}html[data-theme="dark"] .notice.danger{background:#2a1117!important;border-color:#7c2c39!important;color:#ffb1bb!important}html[data-theme="dark"] .notice.success{background:#10261b!important;border-color:#276545!important;color:#a9ebca!important}
html[data-theme="light"] .account-side-user>span,html[data-theme="light"] .side-brand-icon{color:#fff!important;background:#222b35!important}html[data-theme="dark"] .account-side-user>span,html[data-theme="dark"] .side-brand-icon{color:#fff!important}
html[data-theme="light"] .workspace-head h1,html[data-theme="light"] .dashboard-head h1,html[data-theme="light"] .admin-page-head h1{color:#121922!important}html[data-theme="dark"] .workspace-head h1,html[data-theme="dark"] .dashboard-head h1,html[data-theme="dark"] .admin-page-head h1{color:#f5f7fa!important}

/* v2.0 — dynamic listings, financial control and recovery surfaces */
.ad-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ad-type-card{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line,#dce4ed);border-radius:14px;cursor:pointer}.ad-type-card input{margin-top:3px}.variant-builder{display:grid;gap:14px}.variant-row{border:1px solid var(--line,#dce4ed);border-radius:16px;padding:16px}.variant-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.variant-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.variant-fields .wide{grid-column:1/-1}.variant-picker{display:grid;gap:9px;margin:14px 0}.variant-option{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;padding:12px 14px;border-radius:12px;border:1px solid #d5dee8;background:transparent;color:inherit;cursor:pointer}.variant-option.active{border-color:#f33345;box-shadow:0 0 0 2px rgba(243,51,69,.12)}.variant-option:disabled{opacity:.48;cursor:not-allowed}.order-variant-chip{display:inline-flex;margin:4px 0 2px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800;background:rgba(243,51,69,.1);color:#d82d3e}.finance-policy-grid,.recovery-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-action-stack{display:flex;flex-wrap:wrap;gap:8px}.admin-action-stack form{margin:0}
html[data-theme="light"] .ad-type-card,html[data-theme="light"] .variant-row,html[data-theme="light"] .variant-option{background:#fff!important;border-color:#d7e0ea!important;color:#17202b!important}html[data-theme="light"] .ad-type-card small,html[data-theme="light"] .variant-row small{color:#647181!important}
html[data-theme="dark"] .ad-type-card,html[data-theme="dark"] .variant-row,html[data-theme="dark"] .variant-option{background:#10161d!important;border-color:#303b47!important;color:#eef3f7!important}html[data-theme="dark"] .ad-type-card small,html[data-theme="dark"] .variant-row small{color:#9eabb8!important}
@media(max-width:850px){.ad-type-grid,.finance-policy-grid,.recovery-policy-grid,.variant-fields{grid-template-columns:1fr}.variant-fields .wide{grid-column:auto}}


/* ==========================================================
   RedMarket v2.1 — Unified Professional UI
   Single visual language, stronger contrast and richer listings.
   ========================================================== */
:root{
  --rm-radius-sm:10px;--rm-radius:14px;--rm-radius-lg:18px;--rm-radius-xl:22px;
  --rm-shadow-light:0 10px 30px rgba(20,31,46,.07);
  --rm-shadow-dark:0 12px 34px rgba(0,0,0,.24);
  --rm-accent:#f02d42;--rm-accent-2:#ff586a;--rm-success:#149968;--rm-warning:#c28a13;
}
html[data-theme="light"]{--surface:#fff;--surface-2:#f7f9fc;--surface-3:#eef3f7;--text:#111722;--muted:#5e6a79;--faint:#7f8b99;--line:#dce4ec;--line-strong:#cbd5df;--shadow:var(--rm-shadow-light)}
html[data-theme="dark"]{--surface:#10151b;--surface-2:#141a21;--surface-3:#1a212a;--text:#f2f5f8;--muted:#a5afbb;--faint:#7f8a97;--line:#29333e;--line-strong:#37424e;--shadow:var(--rm-shadow-dark)}

/* Global readability guard: old component styles must never make text disappear. */
html[data-theme] body :where(.main,.section,.catalog-page,.product-page-pro,.rm-market-content,.dashboard,.auth-shell,.admin-main-v2){color:var(--text)}
html[data-theme] body :where(.main,.section,.catalog-page,.product-page-pro,.rm-market-content,.dashboard,.auth-shell,.admin-main-v2) :where(h1,h2,h3,h4,strong,b,label,summary){color:var(--text)}
html[data-theme] body :where(.main,.section,.catalog-page,.product-page-pro,.rm-market-content,.dashboard,.auth-shell,.admin-main-v2) :where(p,small,.muted,.field-hint,.tiny,time){color:var(--muted)}
html[data-theme] body :where(.input,.select,.textarea,input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="search"]){background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-theme] body :where(.input,.textarea,input)::placeholder{color:var(--faint)!important;opacity:1}
html[data-theme] body :where(.panel-card,.workspace-card,.content-card-pro,.seller-profile-card,.safety-card,.filters-card,.table-wrap,.order-row-card,.notification-row,.queue-card,.finance-snapshot,.balance-card,.payout-card,.seller-product-row,.admin-card,.admin-kpi,.health-card,.admin-mail-row,.category-card,.seller-tile,.review-card){
  border-radius:var(--rm-radius-lg)!important;border-color:var(--line)!important;box-shadow:var(--shadow)!important
}
html[data-theme="light"] body :where(.panel-card,.workspace-card,.content-card-pro,.seller-profile-card,.safety-card,.filters-card,.table-wrap,.order-row-card,.notification-row,.queue-card,.finance-snapshot,.balance-card,.payout-card,.seller-product-row,.admin-card,.admin-kpi,.health-card,.admin-mail-row,.category-card,.seller-tile,.review-card){background:var(--surface)!important}
html[data-theme="dark"] body :where(.panel-card,.workspace-card,.content-card-pro,.seller-profile-card,.safety-card,.filters-card,.table-wrap,.order-row-card,.notification-row,.queue-card,.finance-snapshot,.balance-card,.payout-card,.seller-product-row,.admin-card,.admin-kpi,.health-card,.admin-mail-row,.category-card,.seller-tile,.review-card){background:var(--surface)!important}

/* Consistent form sections */
.form-section{padding:22px 0;border-bottom:1px solid var(--line)}
.form-section:first-child{padding-top:4px}.form-section:last-of-type{border-bottom:0}
.form-section-head{margin-bottom:16px}.form-section-head h2{font-size:18px;letter-spacing:-.02em;margin:0 0 5px}.form-section-head p{margin:0;max-width:780px;line-height:1.55}
.field label{font-weight:780;font-size:12px;margin-bottom:7px;display:block}.input,.select,.textarea{border-radius:11px!important;min-height:44px}
.textarea{line-height:1.55}.upload-field{border:1px dashed var(--line-strong);background:var(--surface-2);border-radius:12px;padding:14px}.upload-field input[type=file]{width:100%;color:var(--text)}

/* Ad type selector */
.ad-type-grid{gap:14px;margin:8px 0 20px}
.ad-type-card{position:relative;display:grid!important;grid-template-columns:auto 42px 1fr;align-items:start!important;gap:12px!important;padding:17px!important;border-radius:16px!important;transition:border-color .18s,box-shadow .18s,transform .18s;background:var(--surface)!important;color:var(--text)!important}
.ad-type-card:hover{transform:translateY(-1px);border-color:var(--line-strong)!important}
.ad-type-card:has(input:checked){border-color:rgba(240,45,66,.68)!important;box-shadow:0 0 0 3px rgba(240,45,66,.10)!important}
.ad-type-card input{margin-top:14px!important;accent-color:var(--rm-accent)}
.ad-type-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);border:1px solid var(--line);color:var(--rm-accent)}
.ad-type-icon .ui-icon{width:20px;height:20px}
.ad-type-copy{display:flex;flex-direction:column;gap:4px}.ad-type-copy b{font-size:14px}.ad-type-copy small{line-height:1.45}.ad-type-copy em{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.02em;color:var(--rm-accent)}

/* Shared media upload, including Dynamic/Service listings */
.media-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.media-upload-card{border:1px solid var(--line);background:var(--surface-2);padding:16px;border-radius:16px}
.media-upload-title{display:flex;gap:11px;align-items:flex-start;margin-bottom:12px}.media-upload-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(240,45,66,.10);color:var(--rm-accent)}
.media-upload-title label{margin:0 0 3px}.media-upload-title small{display:block}.media-upload-title em{font-style:normal;font-size:9px;color:#fff;background:var(--rm-accent);padding:2px 6px;border-radius:999px;margin-left:5px;text-transform:uppercase}
.listing-banner-preview{position:relative;overflow:hidden;border-radius:12px;border:1px solid var(--line);margin-bottom:10px;aspect-ratio:16/4.2;background:var(--surface-3)}
.listing-banner-preview img{width:100%;height:100%;object-fit:cover;display:block}.listing-banner-preview span{position:absolute;left:8px;bottom:8px;padding:4px 7px;border-radius:8px;background:rgba(5,8,12,.78);color:#fff;font-size:9px;font-weight:800}
.remove-media{font-size:11px;margin:8px 0 10px}

/* Dynamic builder */
.dynamic-section{padding-top:24px}
.dynamic-builder-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding:18px;border-radius:17px;border:1px solid rgba(240,45,66,.22);background:linear-gradient(135deg,rgba(240,45,66,.09),transparent 58%),var(--surface-2);margin-bottom:10px}
.dynamic-builder-intro h2{margin:4px 0 6px;font-size:19px}.dynamic-builder-intro p{margin:0;max-width:760px;line-height:1.55}
.dynamic-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;color:var(--rm-accent)}
.dynamic-builder-tip{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:11px 13px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.dynamic-builder-tip>span{color:var(--rm-accent);margin-top:1px}.dynamic-builder-tip p{margin:0;font-size:11px;line-height:1.5}
.variant-builder{gap:12px}.variant-card{border:1px solid var(--line)!important;border-radius:17px!important;padding:0!important;overflow:hidden;background:var(--surface)!important;color:var(--text)!important;box-shadow:0 7px 20px rgba(15,24,35,.04)}
.variant-card-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 15px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.variant-card-head>div{display:flex;align-items:center;gap:12px;min-width:0}.variant-card-head strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.variant-index{font-size:9px;letter-spacing:.09em;color:var(--muted);font-weight:800}.variant-index b{color:var(--rm-accent)}
.variant-card>.form-grid,.variant-card>.field{margin-left:15px;margin-right:15px}.variant-card>.form-grid{margin-top:15px}.variant-card>.field:last-child{margin-bottom:15px}

/* Marketplace product cards */
.product-card-pro{border-radius:16px!important;border:1px solid var(--line)!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.product-card-pro:hover{transform:translateY(-3px);border-color:var(--line-strong)!important;box-shadow:0 16px 34px rgba(16,25,38,.12)!important}
.product-card-pro>a{display:flex;flex-direction:column;height:100%}.product-card-pro .product-thumb{position:relative;aspect-ratio:16/10;background:var(--surface-3)!important;overflow:hidden}
.product-card-pro .product-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .28s ease}.product-card-pro:hover .product-thumb img{transform:scale(1.025)}
.product-card-pro .product-info{display:flex;flex-direction:column;gap:8px;padding:13px 14px 12px;color:var(--text)!important;flex:1}
.product-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.product-category{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.availability-dot{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:800;color:var(--muted);white-space:nowrap}.availability-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:#8b95a1}.availability-dot.in:before{background:#18a66f}.availability-dot.out:before{background:#c54b58}
.product-card-pro h3{font-size:13.5px!important;line-height:1.38!important;min-height:37px;margin:0;color:var(--text)!important}
.product-pricing{min-height:25px}.product-pricing small{font-size:9px;font-weight:700;color:var(--muted);margin-right:1px}.product-card-pro .price{font-size:19px!important;font-weight:900;letter-spacing:-.025em}.old-price{font-size:11px;color:var(--muted)!important;text-decoration:line-through}
.product-proof-row{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:7px;padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}
.product-proof-row>span{display:flex;align-items:center;gap:3px;min-width:0;white-space:nowrap}.product-proof-row .ui-icon{width:12px;height:12px}.proof-rating{color:#ad7a00!important}.proof-rating b{color:var(--text)!important}.proof-rating small{color:var(--muted)!important}.proof-sales b{color:var(--text)!important}.proof-stock{justify-self:end;overflow:hidden;text-overflow:ellipsis}
.product-card-pro .card-meta{display:flex!important;justify-content:space-between;gap:8px;margin-top:auto;color:var(--muted)!important}.seller-mini{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-open{display:inline-flex;align-items:center;gap:4px;color:var(--rm-accent)!important;font-size:10px;font-weight:800;white-space:nowrap}.card-open .ui-icon{width:12px;height:12px}
.product-flags{position:absolute;top:9px;left:9px;right:9px;display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap;z-index:2}.flag{font-size:9px!important;border-radius:8px!important;padding:5px 7px!important;font-weight:850!important;backdrop-filter:blur(8px)}
.flag.model.dynamic{background:rgba(23,39,58,.90)!important;color:#dbeaff!important;border:1px solid rgba(133,181,235,.26)}.flag.model.service{background:rgba(71,38,78,.92)!important;color:#f3ddff!important;border:1px solid rgba(209,141,237,.26)}
.product-discount{position:absolute;right:9px;bottom:9px;background:#0d1218;color:#fff;border:1px solid rgba(255,255,255,.13);font-size:10px;font-weight:900;border-radius:8px;padding:5px 7px}
html[data-theme="dark"] .product-discount{background:#f2f5f8;color:#10151b}

/* Product banner and dynamic option selector */
.listing-hero-banner{min-height:154px;margin:8px 0 16px;border-radius:19px;border:1px solid rgba(255,255,255,.10);overflow:hidden;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;background-position:center;background-size:cover;color:#fff;box-shadow:0 12px 30px rgba(9,15,23,.16)}
.listing-hero-banner>div:first-child{max-width:760px}.listing-hero-banner span{font-size:9px;font-weight:900;letter-spacing:.14em;color:#ff7a89}.listing-hero-banner h2{color:#fff!important;margin:6px 0 6px;font-size:23px;letter-spacing:-.025em}.listing-hero-banner p{color:#dbe1e7!important;margin:0;line-height:1.55;max-width:690px}
.listing-hero-banner.auto-banner{background:radial-gradient(600px 220px at 90% 10%,rgba(240,45,66,.24),transparent 65%),linear-gradient(135deg,#111820,#0b0f14)}.listing-hero-banner.auto-banner.service{background:radial-gradient(560px 220px at 90% 10%,rgba(136,73,176,.24),transparent 65%),linear-gradient(135deg,#15131b,#0b0f14)}
.listing-banner-mark{width:78px;height:78px;flex:0 0 78px;border-radius:20px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#fff}.listing-banner-mark .ui-icon{width:34px;height:34px}
.model-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:9px;font-size:9px;font-weight:850}.model-pill.dynamic{background:#edf5ff;color:#245f9f}.model-pill.service{background:#f5edfa;color:#764298}html[data-theme="dark"] .model-pill.dynamic{background:#172536;color:#b9d8f8}html[data-theme="dark"] .model-pill.service{background:#2a1c31;color:#e1c0f1}
.variant-picker{padding:14px;border:1px solid var(--line);background:var(--surface-2);border-radius:16px;margin:14px 0!important}.variant-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.variant-picker-head>div{display:flex;flex-direction:column;gap:2px}.variant-picker-head label{font-size:12px;font-weight:850;color:var(--text)}.variant-picker-head small{font-size:10px}.variant-picker-head>span{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:var(--muted)}
.variant-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.variant-option{display:flex!important;align-items:center;justify-content:space-between!important;gap:12px!important;padding:11px 12px!important;border-radius:12px!important;background:var(--surface)!important;border-color:var(--line)!important;min-height:62px}.variant-option:hover:not(:disabled){border-color:var(--line-strong)!important}.variant-option.active{border-color:rgba(240,45,66,.72)!important;box-shadow:0 0 0 2px rgba(240,45,66,.10)!important;background:linear-gradient(135deg,rgba(240,45,66,.055),transparent 65%),var(--surface)!important}
.variant-option-copy{display:flex;flex-direction:column;gap:4px;text-align:left;min-width:0}.variant-option-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.variant-option-copy small{font-size:9px;color:var(--muted)!important}.variant-option-price{display:flex;align-items:flex-end;flex-direction:column;gap:3px;white-space:nowrap}.variant-option-price strong{font-size:12px;color:var(--text)!important}.variant-option-price em{font-style:normal;font-size:8px;font-weight:900;color:#fff;background:var(--rm-accent);padding:2px 5px;border-radius:999px}.variant-description{margin-top:9px;padding:9px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:10px;line-height:1.5;color:var(--muted)}
.product-social-proof{flex-wrap:wrap}

/* Seller catalogue improvements */
.seller-product-row{border-radius:15px!important}.seller-product-heading{display:flex;align-items:center;gap:7px;min-width:0}.seller-product-heading>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ad-model-mini{display:inline-flex;align-items:center;gap:4px;border-radius:7px;padding:3px 6px;font-size:8px;font-weight:850;white-space:nowrap}.ad-model-mini .ui-icon{width:10px;height:10px}.ad-model-mini.dynamic{background:#eaf3fd;color:#28659f}.ad-model-mini.service{background:#f4eafa;color:#744592}.ad-model-mini.normal{background:var(--surface-3);color:var(--muted)}html[data-theme="dark"] .ad-model-mini.dynamic{background:#182737;color:#b7d7f5}html[data-theme="dark"] .ad-model-mini.service{background:#2c2032;color:#dfc3ed}

/* Filters and radio/check cards */
.radio-card,.check-card{border-radius:11px!important;border-color:var(--line)!important;background:var(--surface-2)!important;color:var(--text)!important}.radio-card span,.check-card span,.check-card b{color:var(--text)!important}.check-card small{color:var(--muted)!important}

/* Tables, menus and status surfaces */
.table-wrap{overflow:hidden}.table{color:var(--text)!important}.table th{font-size:10px!important;letter-spacing:.035em;text-transform:uppercase;color:var(--muted)!important}.table td{color:var(--text)!important}
details>summary{color:var(--text)}.account-menu-panel,.mega-panel{border-radius:15px!important}.badge{border-radius:999px!important}

/* Responsive refinements */
@media(max-width:980px){.media-upload-grid{grid-template-columns:1fr}.variant-options{grid-template-columns:1fr}.dynamic-builder-intro{align-items:flex-start;flex-direction:column}.listing-hero-banner{min-height:138px}}
@media(max-width:700px){.ad-type-grid{grid-template-columns:1fr!important}.ad-type-card{grid-template-columns:auto 38px 1fr!important}.ad-type-icon{width:38px;height:38px}.listing-hero-banner{padding:19px 18px;min-height:132px;border-radius:15px}.listing-hero-banner h2{font-size:18px}.listing-banner-mark{display:none}.product-proof-row{grid-template-columns:auto auto}.proof-stock{display:none!important}.product-card-pro .product-info{padding:11px}.product-card-pro h3{font-size:12px!important}.product-card-pro .price{font-size:17px!important}.card-open{display:none}}
@media(max-width:430px){.product-card-pro .card-meta{display:flex!important}.seller-mini{max-width:100%}.product-proof-row{gap:5px;font-size:9px}.proof-rating small{display:none}.flag{font-size:8px!important;padding:4px 6px!important}}

/* Header/dropdown contrast fixes — these components stay dark in both themes. */
html[data-theme] .market-search{background:#11161d!important;border-color:#303945!important;color:#f3f6f9!important}
html[data-theme] .market-search input{background:transparent!important;color:#f3f6f9!important}
html[data-theme] .market-search input::placeholder{color:#84909e!important}
html[data-theme] .market-search button{background:#1a212a!important;color:#f2f5f8!important;border-left-color:#303945!important}
html[data-theme] .market-login,html[data-theme] .market-signup,html[data-theme] .market-action,html[data-theme] .market-cart{background:transparent!important;color:#edf2f7!important;border-color:#343e49!important;box-shadow:none!important}
html[data-theme] .account-menu-panel,html[data-theme] .mega-panel{background:#11161d!important;color:#edf2f7!important;border-color:#303945!important;box-shadow:0 22px 52px rgba(0,0,0,.32)!important}
html[data-theme] .account-menu-panel:before{background:#11161d!important;border-color:#303945!important}
html[data-theme] .account-menu-panel :where(a,button,b),html[data-theme] .mega-panel :where(a,b){color:#e9eef4!important}
html[data-theme] .account-menu-panel :where(small),html[data-theme] .mega-panel :where(small){color:#929eac!important}
html[data-theme] .account-menu-panel :where(a,button):hover,html[data-theme] .mega-grid>a:hover{background:#1a212a!important;color:#fff!important}
html[data-theme] .mega-icon{background:#1a212a!important;border-color:#343f4b!important;color:#f5f7fa!important}

.admin-listing-banner{position:relative;margin:10px 0 12px;border-radius:13px;overflow:hidden;border:1px solid var(--line);aspect-ratio:16/4.2;background:var(--surface-3)}
.admin-listing-banner img{width:100%;height:100%;object-fit:cover;display:block}.admin-listing-banner span{position:absolute;left:8px;bottom:8px;background:rgba(7,10,14,.78);color:#fff;padding:4px 7px;border-radius:7px;font-size:9px;font-weight:800}

/* Admin/internal sub-surfaces use the same tokens instead of legacy fixed colors. */
html[data-theme] :where(.admin-banner-card,.admin-tech-grid>div,.admin-system-summary>div,.admin-health-checks>div,.admin-system-actions form,.admin-action-box,.admin-chat-msg,.money-stack>div,.admin-queue-grid>a,.admin-status-grid>div,.admin-row-editor>form){background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme] .admin-table th{background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--line)!important}
html[data-theme] .admin-table td{color:var(--text)!important;border-color:var(--line)!important}
html[data-theme] .admin-table tbody tr:hover{background:var(--surface-2)!important}
html[data-theme] :where(.admin-card-head>span,.admin-subline,.admin-banner-copy p,.admin-banner-copy small,.admin-guideline-list small,.admin-tech-grid small,.admin-system-summary small,.admin-system-summary span,.admin-health-checks small,.admin-system-actions small){color:var(--muted)!important}
html[data-theme] :where(.admin-breadcrumb,.admin-breadcrumb span){color:var(--muted)!important}html[data-theme] .admin-breadcrumb b{color:var(--text)!important}


/* v2.1 final polish — consistent surfaces and contrast across the complete purchase/seller/admin flow */
html[data-theme] body :where(.auth-card,.auth-card-pro,.auth-form-card,.auth-form-panel,.cart-items-card,.checkout-main-card,.checkout-card,.summary-card,.payment-main,.payment-side-card,.pix-payment-box,.order-timeline,.action-callout,.financial-policy-card,.listing-plan-card,.marketing-card,.automation-card,.store-trust-panel,.system-version-card,.email-test-card,.admin-chart-card,.admin-dispute-card,.admin-table-card,.account-seller-box){
  border-color:var(--line)!important;background:var(--surface)!important;color:var(--text)!important;border-radius:var(--rm-radius-lg)!important;box-shadow:var(--shadow)!important
}
html[data-theme] body :where(.cart-item,.summary-product,.order-item-pro,.snapshot-row,.toggle-row,.admin-switch-row,.top-product-row,.admin-mini-row){border-color:var(--line)!important;color:var(--text)!important}
html[data-theme] body :where(.cart-item,.action-callout,.pix-payment-box){background:var(--surface-2)!important}
html[data-theme] body :where(.summary-mini,.cart-item-info small,.summary-product small,.payment-side-card p,.payment-side-card li,.pix-label,.payment-help small,.order-head-pro p,.order-item-pro small,.chat-meta small,.action-callout p,.snapshot-row span,.metric-inline span){color:var(--muted)!important}
html[data-theme] body :where(.summary-card,.checkout-card,.payment-main,.payment-side-card,.order-actions-card,.financial-policy-card,.listing-plan-card,.marketing-card,.automation-card) :where(h1,h2,h3,h4,b,strong,label){color:var(--text)!important}
html[data-theme] body :where(.summary-row,.summary-total,.seller-finance-breakdown>div,.payment-help p,.chat-message,.chat-meta){color:var(--text)!important;border-color:var(--line)!important}
html[data-theme] .summary-total,html[data-theme] .summary-mini,html[data-theme] .summary-product,html[data-theme] .order-item-pro,html[data-theme] .seller-finance-breakdown .net{border-color:var(--line)!important}
html[data-theme] .chat-message{background:var(--surface-2)!important;border-color:var(--line)!important}html[data-theme] .chat-message.me{background:color-mix(in srgb,var(--rm-accent) 8%,var(--surface))!important;border-color:color-mix(in srgb,var(--rm-accent) 24%,var(--line))!important}
html[data-theme] .pix-code{background:var(--surface-3)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme="light"] select option{background:#fff;color:#111722}html[data-theme="dark"] select option{background:#10151b;color:#f2f5f8}
html[data-theme] body :where(input,select,textarea):disabled{opacity:.62;cursor:not-allowed;background:var(--surface-3)!important;color:var(--muted)!important}
html[data-theme] body input[type="file"]::file-selector-button{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:8px 10px;margin-right:10px;cursor:pointer}
html[data-theme] .checkout-progress span{color:var(--muted)!important}.checkout-progress span.active,.checkout-progress span.done{color:var(--text)!important}.checkout-progress em{background:var(--line)!important}.checkout-progress i{border-color:var(--line-strong)!important}
html[data-theme] .order-timeline>div{color:var(--muted)!important;border-color:var(--line)!important}.order-timeline .done{color:var(--text)!important}.order-timeline i{border-color:var(--line-strong)!important}
html[data-theme="light"] .delivered-box{background:#ecfaf3!important;border-color:#9bd7bb!important;color:#176143!important}html[data-theme="dark"] .delivered-box{background:#10261b!important;border-color:#276545!important;color:#a9ebca!important}
html[data-theme="light"] .dispute-box{background:#fff6e9!important;border-color:#e5bd7a!important;color:#714c17!important}html[data-theme="dark"] .dispute-box{background:#2b1d10!important;border-color:#785030!important;color:#f0c894!important}
html[data-theme="light"] .payment-success-box{background:#ecfaf3!important;border-color:#9bd7bb!important;color:#176143!important}html[data-theme="dark"] .payment-success-box{background:#10261b!important;border-color:#276545!important;color:#a9ebca!important}
html[data-theme="light"] .payment-danger-box{background:#fff0f2!important;border-color:#efabb4!important;color:#7d202d!important}html[data-theme="dark"] .payment-danger-box{background:#2a1117!important;border-color:#7c2c39!important;color:#ffb1bb!important}
html[data-theme] .recovery-grid code{background:var(--surface-3)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:9px}
html[data-theme="light"] .mfa-secret,html[data-theme="light"] .mfa-uri code{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important}html[data-theme="dark"] .mfa-secret,html[data-theme="dark"] .mfa-uri code{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme] .mfa-secret code,html[data-theme] .mfa-uri code{color:var(--text)!important}

/* Listing cards: richer dynamic offer preview without opening the product. */
.product-pricing{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.price-range{font-size:9px;font-weight:720;color:var(--muted);white-space:nowrap}
.flag.success{background:rgba(15,94,64,.90)!important;color:#d9ffed!important;border:1px solid rgba(105,222,165,.22)!important}
.product-proof-row{min-height:35px}.proof-sales,.proof-stock{font-variant-numeric:tabular-nums}
.product-card-pro:focus-within{outline:2px solid rgba(240,45,66,.55);outline-offset:2px}

/* One radius/spacing language for secondary blocks that previously looked unrelated. */
html[data-theme] body :where(.notice,.action-callout,.delivered-box,.dispute-box,.payment-success-box,.payment-danger-box,.pix-code,.mfa-secret,.mfa-uri code,.admin-action-box,.admin-chat-msg,.admin-status-grid>div,.money-stack>div){border-radius:var(--rm-radius-sm)!important}
html[data-theme] body :where(.listing-plan-card,.marketing-card,.automation-card,.financial-policy-card,.checkout-card,.payment-side-card,.order-actions-card){overflow:hidden}
html[data-theme] body :where(.listing-plan-card,.marketing-card,.automation-card,.financial-policy-card){transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
html[data-theme] body :where(.listing-plan-card,.marketing-card,.automation-card,.financial-policy-card):hover{border-color:var(--line-strong)!important}

/* Responsive density: cards remain readable instead of collapsing text. */
@media(max-width:760px){
  .cart-shell,.checkout-shell,.payment-shell,.order-layout{grid-template-columns:1fr!important}.summary-card{position:static!important}.cart-item{grid-template-columns:64px minmax(0,1fr)!important}.cart-item-actions{grid-column:2;justify-content:flex-start}.payment-help{grid-template-columns:24px 1fr!important}.payment-help>span:nth-of-type(n+2){margin-top:4px}.product-proof-row{font-size:9px}.product-pricing{gap:4px}
}


/* v2.1.0 FINAL UI — last-pass contrast audit and one visual language across every legacy module. */
html[data-theme] body :where(.store-profile,.store-profile-body,.store-tabs,.store-trust-panel>div,.kyc-state,.kyc-upload,.kyc-admin-files a,.policy-check,.report-listing,.content-report-list .report-reason,.rm-search-suggest,.admin-entity-hero,.admin-review-mini,.admin-metric-list>div,.admin-image-grid img){border-color:var(--line)!important;color:var(--text)!important}
html[data-theme] .store-profile{background:var(--surface)!important;border-radius:var(--rm-radius-xl)!important;box-shadow:var(--shadow)!important}
html[data-theme] .store-profile-body{background:var(--surface)!important}
html[data-theme] .store-avatar-large{border-color:var(--surface)!important;background:var(--surface-3)!important;color:var(--text)!important}
html[data-theme] :where(.store-identity h1,.store-score strong,.store-trust-panel strong){color:var(--text)!important}
html[data-theme] :where(.store-identity p,.store-meta-line,.store-score span,.store-safe,.store-trust-panel span){color:var(--muted)!important}
html[data-theme] .store-tabs{border-bottom-color:var(--line)!important}.store-tabs a{color:var(--muted)!important}.store-tabs a:hover,.store-tabs a.active{color:var(--text)!important}.store-tabs a.active{border-bottom-color:var(--rm-accent)!important}
html[data-theme] .store-trust-panel>div{background:var(--surface)!important;border-radius:var(--rm-radius)!important;box-shadow:none!important}
html[data-theme] .verified-badge{background:color-mix(in srgb,#3978db 13%,var(--surface))!important;border-color:color-mix(in srgb,#3978db 30%,var(--line))!important;color:color-mix(in srgb,#3978db 78%,var(--text))!important}

html[data-theme] .rm-search-suggest{background:var(--surface)!important;border-color:var(--line)!important;border-radius:var(--rm-radius)!important;box-shadow:var(--shadow)!important}
html[data-theme] .rm-search-suggest a{color:var(--text)!important}.rm-search-suggest a:hover,html[data-theme] .rm-search-suggest a.is-active{background:var(--surface-2)!important;color:var(--text)!important}.rm-search-suggest small{color:var(--muted)!important}.rm-suggest-icon{background:var(--surface-3)!important}

html[data-theme] :where(.kyc-state,.kyc-upload,.kyc-admin-files a,.policy-check,.content-report-list .report-reason){background:var(--surface-2)!important;border-color:var(--line)!important;border-radius:var(--rm-radius)!important}
html[data-theme] :where(.kyc-state,.kyc-state b,.kyc-upload,.kyc-admin-files a,.policy-check,.policy-check b,.report-listing label,.content-report-list .report-reason strong,.content-report-list .report-reason p){color:var(--text)!important}
html[data-theme] :where(.kyc-upload span,.policy-check small,.report-listing summary){color:var(--muted)!important}
html[data-theme="light"] .kyc-state.success{background:#ecfaf3!important;color:#176143!important}html[data-theme="dark"] .kyc-state.success{background:#10261b!important;color:#a9ebca!important}
html[data-theme="light"] .kyc-state.pending{background:#fff7e8!important;color:#735018!important}html[data-theme="dark"] .kyc-state.pending{background:#2b2011!important;color:#f0cb93!important}
html[data-theme="light"] .kyc-state.rejected{background:#fff0f2!important;color:#7d202d!important}html[data-theme="dark"] .kyc-state.rejected{background:#2a1117!important;color:#ffb1bb!important}
html[data-theme] .report-listing{border-top-color:var(--line)!important}.report-listing .textarea{background:var(--surface)!important}

/* Dynamic ad builder: dense enough for power sellers, still readable and clearly segmented. */
.variant-card{border-radius:var(--rm-radius-lg)!important;box-shadow:0 5px 18px rgba(15,20,28,.045)!important}.variant-card-head{gap:14px}.variant-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.variant-live-meta{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}
html[data-theme] .variant-card :where(label,strong){color:var(--text)!important}html[data-theme] .variant-card .field-hint{color:var(--muted)!important}
.listing-banner-preview{border-radius:var(--rm-radius-lg)!important}.media-upload-card{border-radius:var(--rm-radius-lg)!important}.ad-type-card{border-radius:var(--rm-radius-lg)!important}.dynamic-builder-tip{border-radius:var(--rm-radius)!important}

/* Admin visibility for dynamic options — same data the buyer sees, without flattening the variant model. */
.admin-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-variant-card{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:var(--rm-radius);background:var(--surface-2);color:var(--text)}.admin-variant-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.admin-variant-top>div{min-width:0}.admin-variant-top b{display:block;color:var(--text);overflow-wrap:anywhere}.admin-variant-top small{display:block;color:var(--muted);margin-top:2px}.admin-variant-price{display:flex;align-items:baseline;gap:8px}.admin-variant-price strong{font-size:18px;color:var(--text)}.admin-variant-price s{font-size:10px;color:var(--muted)}.admin-variant-metrics{display:flex;gap:6px;flex-wrap:wrap}.admin-variant-metrics span{display:inline-flex;gap:4px;align-items:center;padding:5px 7px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:9px;color:var(--muted)}.admin-variant-metrics b{color:var(--text)}.admin-variant-card p{margin:0;color:var(--muted)!important;font-size:10px;line-height:1.55}.delivery-mini{display:inline-flex;padding:4px 7px;border-radius:999px;border:1px solid var(--line);font-size:8px;font-weight:850;background:var(--surface)}.delivery-mini.automatic{color:#16704b;border-color:color-mix(in srgb,#18a46c 35%,var(--line));background:color-mix(in srgb,#18a46c 8%,var(--surface))}.delivery-mini.manual{color:var(--muted)}

/* Legacy cards now obey the same radius hierarchy instead of looking like separate templates. */
html[data-theme] body :where(.workspace-card,.workspace-kpi,.kpi,.panel-card,.finance-snapshot,.chart-pro,.balance-card,.payout-card,.seller-store-preview,.seller-product-row,.queue-card,.notification-row,.review-card,.category-card,.seller-tile,.content-card-pro,.seller-profile-card,.safety-card,.product-card-pro,.admin-card,.admin-kpi,.health-card){border-radius:var(--rm-radius-lg)!important}
html[data-theme] body :where(.order-row-card,.top-product-row,.admin-mini-row,.snapshot-row,.toggle-row,.admin-switch-row){border-radius:var(--rm-radius)!important}
html[data-theme] body :where(.dashboard-head,.workspace-head,.section-head) :where(h1,h2,h3){color:var(--text)!important}html[data-theme] body :where(.dashboard-head,.workspace-head,.section-head) p{color:var(--muted)!important}
html[data-theme] body :where(.workspace-kpi,.kpi,.admin-kpi) :where(strong,b){color:var(--text)!important}html[data-theme] body :where(.workspace-kpi,.kpi,.admin-kpi) :where(.label,small,span:not(.badge)){color:var(--muted)!important}
html[data-theme] body :where(.premium-empty,.empty){background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important;border-radius:var(--rm-radius-lg)!important}html[data-theme] body :where(.premium-empty,.empty) b{color:var(--text)!important}html[data-theme] body :where(.premium-empty,.empty) span{color:var(--muted)!important}

@media(max-width:820px){.admin-variant-grid{grid-template-columns:1fr}.variant-card-head{align-items:flex-start}.variant-head-actions{width:100%;justify-content:space-between}.variant-live-meta{white-space:normal}.store-profile{border-radius:var(--rm-radius-lg)!important}}

/* Theme bridge for legacy variables and native controls. This prevents old dark-only CSS from leaking into light mode. */
html[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--bg2:#eef3f7;--panel:#fff;--panel2:#f7f9fc;--soft:#eef3f7;--border:#dce4ec;--border-strong:#cbd5df;--text:#111722;--muted:#5e6a79;--radius:18px;--radius-sm:11px}
html[data-theme="dark"]{color-scheme:dark;--bg:#090c10;--bg2:#0d1218;--panel:#10151b;--panel2:#141a21;--soft:#1a212a;--border:#29333e;--border-strong:#37424e;--text:#f2f5f8;--muted:#a5afbb;--radius:18px;--radius-sm:11px}
html[data-theme] body .btn.secondary,html[data-theme] body .btn.ghost{background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important}
html[data-theme] body .btn.secondary:hover,html[data-theme] body .btn.ghost:hover{background:var(--surface-3)!important;border-color:var(--line-strong)!important;color:var(--text)!important}
html[data-theme] body .text-link{color:var(--text)!important}html[data-theme] body .text-link:hover{color:var(--rm-accent)!important}

/* Seller catalogue controls and secondary surfaces. */
html[data-theme] .seller-stat-tab{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important;border-radius:var(--rm-radius)!important;box-shadow:0 4px 14px rgba(15,20,28,.035)}
html[data-theme] .seller-stat-tab:hover{border-color:var(--line-strong)!important;background:var(--surface-2)!important}.seller-stat-tab b{color:var(--text)!important}.seller-stat-tab span{color:var(--muted)!important}
html[data-theme] .seller-toolbar{padding:10px;border:1px solid var(--line);border-radius:var(--rm-radius-lg);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme] :where(.seller-product-title small,.seller-product-cell span,.seller-product-cell small){color:var(--muted)!important}html[data-theme] .seller-product-cell b{color:var(--text)!important}
html[data-theme] :where(.image-manager-item,.seller-store-preview,.finance-snapshot,.chart-pro,.payout-card,.balance-card){background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme] .image-manager-item{border-radius:var(--rm-radius)!important}.seller-store-preview{border-radius:var(--rm-radius-lg)!important}
html[data-theme] .seller-store-preview-avatar{border-color:var(--surface)!important;background:var(--surface-3)!important}.seller-store-preview p{color:var(--muted)!important}

/* Buyer/account navigation and nested rows. */
html[data-theme] .account-links a{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important;border-radius:var(--rm-radius)!important}html[data-theme] .account-links a:hover{background:var(--surface-3)!important}
html[data-theme] .account-links i{color:var(--muted)!important}.account-seller-box{border-radius:var(--rm-radius)!important}
html[data-theme] :where(.notification-row,.order-row-card,.top-product-row){background:var(--surface-2)!important;border-color:var(--line)!important}

/* Generic details/lists that previously inherited fixed dark colors. */
html[data-theme] :where(.detail-list>div,.feature-line,.delivery-box,.message,.endpoint-card,.settings-section,.review){border-color:var(--line)!important;color:var(--text)!important}
html[data-theme] :where(.delivery-box,.message){background:var(--surface-2)!important}.feature-line{color:var(--muted)!important}.feature-line b{color:var(--text)!important}
html[data-theme] .pagination a,html[data-theme] .pagination span{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}.pagination .active{background:color-mix(in srgb,var(--rm-accent) 10%,var(--surface))!important;border-color:color-mix(in srgb,var(--rm-accent) 48%,var(--line))!important}

@media(max-width:700px){html[data-theme] .seller-toolbar{display:grid!important;grid-template-columns:1fr 1fr}.seller-toolbar .input{grid-column:1/-1;max-width:none!important}.seller-toolbar .btn{grid-column:1/-1}.seller-stat-tab{min-width:104px!important}}
.ad-model-mini.banner-ready{background:color-mix(in srgb,#149968 11%,var(--surface));border:1px solid color-mix(in srgb,#149968 28%,var(--line));color:color-mix(in srgb,#149968 74%,var(--text))}.ad-model-mini.banner-ready .ui-icon{color:inherit}
