/* Shared light-theme contract. Loaded last in both application shells.
   Every rule is theme-scoped; standalone printed/public documents keep their
   own paper stylesheet. Prefer tokens and component semantics to tag overrides. */
html[data-theme="light"] {
    color-scheme: light;
    --light-ink: #101828;
    --light-muted: #344054;
    --light-subtle: #475467;
    --light-accent: #9c2f0e;
    --light-action: #b83d11;
    --light-action-hover: #9a3412;
    --light-danger: #b42318;
    --light-success: #166534;
    --light-warning: #854d0e;
    --light-info: #1e40af;
    --light-panel: #ffffff;
    --light-raised: #f2f4f7;
    --light-line: #d0d5dd;
    --light-control-line: #7c889a;
    --theme-bg: linear-gradient(180deg, #f8fafc, #f1f4f8);
    --theme-text: var(--light-ink);
    --theme-text-muted: var(--light-muted);
    --theme-card-bg: var(--light-panel);
    --theme-card-border: var(--light-line);
    --theme-input-bg: var(--light-panel);
    --theme-input-border: var(--light-control-line);
    /* Older modules use these aliases rather than the theme-* contract. */
    --text-primary: var(--light-ink);
    --text-secondary: var(--light-muted);
    --text-muted: var(--light-muted);
    --border-color: var(--light-line);
    --card-bg: var(--light-panel);
    --bg-card: var(--light-panel);
    --color-primary: var(--light-action);
    --color-primary-dark: var(--light-action-hover);
    --color-primary-light: var(--light-accent);
    --color-primary-soft: #fff1e8;
    --color-gray-light: var(--light-subtle);
    --color-muted: var(--light-subtle);
    --color-success: var(--light-success);
    --color-warning: var(--light-warning);
    --color-danger: var(--light-danger);
    --color-info: var(--light-info);
}

html[data-theme="light"] body { color: var(--light-ink); }
html[data-theme="light"] :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--light-accent) !important;
    outline-offset: 3px;
}
html[data-theme="light"] :is(input, textarea)::placeholder {
    color: var(--light-subtle) !important;
    opacity: 1;
}
html[data-theme="light"] :is(.form-label, .filter-label) { color: var(--light-ink); }
html[data-theme="light"] :is(.form-input, .form-select, .form-control, .filter-input, .filter-select) {
    background-color: #ffffff !important;
    color: var(--light-ink) !important;
    border-color: var(--light-control-line) !important;
}
html[data-theme="light"] :is(.form-input, .form-select, .form-control):disabled {
    background-color: #f2f4f7 !important;
    color: var(--light-subtle) !important;
}
html[data-theme="light"] :is(.form-input, .form-select, .form-control):is([aria-invalid="true"], .is-invalid) {
    border-color: var(--light-danger) !important;
}
html[data-theme="light"] :is(.text-muted, .form-help, .form-text, .help-text, .page-subtitle, .section-description) {
    color: var(--light-muted) !important;
}

/* Solid fills have a predictable contrast; descendants inherit the control's
   color instead of turning gray on hover, focus or a semantic status. */
html[data-theme="light"] .btn-primary {
    background: var(--light-action) !important;
    border-color: var(--light-action) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .btn-primary:hover {
    background: var(--light-action-hover) !important;
    border-color: var(--light-action-hover) !important;
}
html[data-theme="light"] :is(.btn, .hm-button, .bc-primary, .catalog-list-add-btn) :is(span, small, strong) {
    color: inherit !important;
}
html[data-theme="light"] .btn-outline {
    background: #ffffff !important;
    border-color: var(--light-control-line) !important;
    color: var(--light-ink) !important;
}
html[data-theme="light"] .btn-outline:hover {
    background: #fff1e8 !important;
    border-color: var(--light-accent) !important;
    color: var(--light-accent) !important;
}
html[data-theme="light"] :is(.btn-danger, .btn-danger-outline, .btn-trash) {
    color: var(--light-danger) !important;
    background: #fff1f0 !important;
    border-color: #d98a83 !important;
}
html[data-theme="light"] :is(.btn-danger, .btn-danger-outline, .btn-trash):hover {
    color: #ffffff !important;
    background: var(--light-danger) !important;
    border-color: var(--light-danger) !important;
}
html[data-theme="light"] .btn-warning-outline {
    color: var(--light-warning) !important;
    background: #fff7db !important;
    border-color: #a78023 !important;
}
html[data-theme="light"] .btn-info {
    color: var(--light-info) !important;
    background: #eff6ff !important;
    border-color: #9bb5e2 !important;
}
html[data-theme="light"] :is(.company-switch-btn, .auth-footer a, .request-footer a, .breadcrumb a, .catalog-breadcrumb a) {
    color: var(--light-accent) !important;
}
html[data-theme="light"] :is(.cart-badge, .pagination .active .page-link) {
    color: #ffffff !important;
    background: var(--light-action) !important;
}

/* Public storefront, catalog and availability. */
html[data-theme="light"] .home-redesign {
    --hm-text: var(--light-ink);
    --hm-muted: var(--light-muted);
    --hm-accent: var(--light-accent);
}
html[data-theme="light"] .home-redesign .hm-button-primary {
    background: var(--light-action);
    border-color: var(--light-action);
    color: #ffffff;
}
html[data-theme="light"] .home-redesign .hm-button-primary:hover {
    background: var(--light-action-hover);
    border-color: var(--light-action-hover);
}
html[data-theme="light"] .home-redesign .home-clamp-profiles button[aria-pressed="true"] {
    background: #fff1e8;
    border-color: var(--light-accent);
    color: var(--light-accent);
}
html[data-theme="light"] .catalog-page.catalog-workspace {
    --cw-text: var(--light-ink);
    --cw-muted: var(--light-muted);
    --cw-accent: var(--light-accent);
    --cw-border: var(--light-line);
    --cw-soft: #fff1e8;
}
html[data-theme="light"] :is(.catalog-price-caption, .catalog-download-caption, .product-sku, .product-category-path, .price-hidden) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] :is(.catalog-eyebrow, .detail-availability strong, .bc-eyebrow, .related-products-head span) {
    color: var(--light-accent) !important;
}
html[data-theme="light"] :is(.product-stock.on-order, .bc-stock.is-order) {
    color: var(--light-warning) !important;
    background: #fff7db;
    border-color: #e9ca76;
}
html[data-theme="light"] :is(.product-stock.in-stock, .bc-stock.is-stock, .excel-download-btn) {
    color: var(--light-success) !important;
    background: #ecfdf3 !important;
    border-color: #86cda0 !important;
}
html[data-theme="light"] .bc-catalog {
    --bc-muted: var(--light-muted);
    --bc-border: var(--light-line);
}
html[data-theme="light"] .bc-catalog .bc-primary {
    background: var(--light-action);
    border-color: var(--light-action);
    color: #ffffff;
}
html[data-theme="light"] .bc-catalog .bc-primary:hover { background: var(--light-action-hover); }

/* Client portal: no pale gradient numerals or transparent dark-mode text. */
html[data-theme="light"] :is(.portal-header, .portal-card, .portal-panel, .order-card, .cart-summary-card) {
    color: var(--light-ink);
    background: var(--light-panel) !important;
    border-color: var(--light-line) !important;
}
html[data-theme="light"] :is(.portal-number, .portal-number.text-danger) {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--light-ink) !important;
}
html[data-theme="light"] .portal-number.text-danger { color: var(--light-danger) !important; }
html[data-theme="light"] :is(.portal-icon-wrapper, .portal-badge, .portal-header-icon) {
    color: var(--light-accent);
    background: #fff1e8;
    border-color: #e6a58b;
}
html[data-theme="light"] :is(.portal-subtitle, .portal-card-subtitle, .portal-description, .portal-header p, .portal-panel p) {
    color: var(--light-muted) !important;
}

/* Admin forms, tables, feedback and shared workspaces. */
html[data-theme="light"] .admin-body {
    --admin-text-muted: var(--light-muted);
    --admin-text-subtle: var(--light-subtle);
    --glass-bg: #ffffff;
    --glass-border: var(--light-line);
    --glass-border-light: var(--light-line);
    --glass-shadow: 0 10px 28px #1018280d;
    background: var(--theme-bg) !important;
}
html[data-theme="light"] .admin-body .btn {
    font-size: max(12px, 0.86rem) !important;
    box-shadow: 0 2px 6px #1018280d;
}
html[data-theme="light"] .admin-body .admin-table th {
    color: var(--light-muted) !important;
    font-size: 12px !important;
}
html[data-theme="light"] .admin-body :is(.badge, .status-badge, .backup-pill) {
    font-size: 11px;
    font-weight: 600;
}
html[data-theme="light"] .admin-body :is(.badge-success, .badge-active, .status-approved, .backup-pill.is-good) {
    color: var(--light-success) !important;
    background: #ecfdf3 !important;
}
html[data-theme="light"] .admin-body :is(.badge-warning, .status-pending, .backup-pill.is-warning) {
    color: var(--light-warning) !important;
    background: #fff7db !important;
}
html[data-theme="light"] .admin-body :is(.badge-danger, .badge-inactive, .status-cancelled, .backup-pill.is-danger) {
    color: var(--light-danger) !important;
    background: #fff1f0 !important;
}
html[data-theme="light"] .admin-body :is(.badge-info, .backup-pill.is-progress) {
    color: var(--light-info) !important;
    background: #eff6ff !important;
}
html[data-theme="light"] .admin-body .badge-secondary {
    color: var(--light-muted) !important;
    background: #f2f4f7 !important;
}
html[data-theme="light"] .admin-body .badge-primary {
    color: var(--light-accent) !important;
    background: #fff1e8 !important;
}
html[data-theme="light"] .admin-body .avatar-text { color: var(--light-ink) !important; }
html[data-theme="light"] .admin-body .product-stock-cell > span.is-empty {
    color: var(--light-warning) !important;
    background: #fff7db !important;
    font-size: 11px;
}
html[data-theme="light"] .admin-body .btn-move-tree {
    color: var(--light-info) !important;
    background: #eff6ff !important;
    border-color: #9bb5e2 !important;
}
html[data-theme="light"] .admin-body .btn-move-tree:hover {
    color: #ffffff !important;
    background: var(--light-info) !important;
    border-color: var(--light-info) !important;
}
html[data-theme="light"] :is(.notification-optin, .brand-workspace-toast, .omni-search-content, .admin-search-modal) {
    background: #ffffff !important;
    color: var(--light-ink);
    border-color: var(--light-line) !important;
    box-shadow: 0 12px 36px #10182826;
}
html[data-theme="light"] :is(.notification-optin-text, .nav-section, .backup-muted, .backup-footnote, .backup-file-link small) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] :is(.catalog-diagnostic-card strong, .sales-hub-hero-stats strong, .sales-workspace-count strong) {
    color: var(--light-ink) !important;
}
html[data-theme="light"] :is(.sales-workspace-kicker, .sales-hub-next-badge, .sales-workspace-group-toggle) {
    color: var(--light-accent) !important;
}
html[data-theme="light"] :is(.sales-hub-eyebrow, .sales-hub-hero-stats small, .sales-workspace-count span) {
    color: var(--light-muted) !important;
    font-size: 11px;
}
html[data-theme="light"] .backup-notice span { color: var(--light-muted) !important; }
html[data-theme="light"] .backup-notice-danger strong { color: var(--light-danger); }
html[data-theme="light"] .backup-notice-warning strong { color: var(--light-warning); }
html[data-theme="light"] .backup-notice-info strong { color: var(--light-info); }
html[data-theme="light"] :is(.backup-eyebrow, .backup-verify) { color: var(--light-accent); }
html[data-theme="light"] .backup-warning-text { color: var(--light-warning) !important; }
html[data-theme="light"] .backup-restore-ok { color: var(--light-success) !important; }
html[data-theme="light"] .brand-product-workspace {
    --brand-text: var(--light-ink);
    --brand-muted: var(--light-muted);
    --brand-muted-soft: var(--light-subtle);
    --brand-orange: var(--light-accent);
    --brand-cyan: #075985;
    --brand-green: var(--light-success);
    --brand-red: var(--light-danger);
}

/* Brand tree, client dashboards and the technical quoter use local styles. */
html[data-theme="light"] :is(.brand-quality-card small, .brand-toggle-control, .client-section-heading > span, .client-category-rank, .clamp-code-pill small) {
    color: var(--light-muted) !important;
    font-size: 11px;
}
html[data-theme="light"] :is(.brand-tree-controls-copy strong, .brand-toggle .brand-name, .client-stat-copy .number) {
    color: var(--light-ink) !important;
}
html[data-theme="light"] :is(.brand-tree-control, .btn-edit, .client-panel-link) {
    color: var(--light-ink) !important;
    background: #ffffff !important;
    border-color: var(--light-control-line) !important;
    font-size: 12px;
}
html[data-theme="light"] :is(.brand-tree-control, .btn-edit, .client-panel-link):hover {
    color: var(--light-accent) !important;
    background: #fff1e8 !important;
    border-color: var(--light-accent) !important;
}
html[data-theme="light"] :is(.brand-toggle-chevron, .rubro-title, .reports-card-type, .client-report-card-cta, .clamp-section-header) {
    color: var(--light-accent) !important;
}
html[data-theme="light"] .client-category-count { color: #075985 !important; font-size: 11px; }
html[data-theme="light"] .clamp-btn-calc {
    color: #ffffff !important;
    background: var(--light-action) !important;
    border-color: var(--light-action) !important;
}
html[data-theme="light"] .clamp-btn-calc:hover { background: var(--light-action-hover) !important; }

/* Spreadsheet editor: light surfaces also apply to its inline-edit fields,
   side panel and autocomplete, not only the surrounding admin shell. */
html[data-theme="light"] :is(.grid-control-bar, .spreadsheet-wrapper, .categories-sidebar) {
    background: #ffffff !important;
    color: var(--light-ink) !important;
    border-color: var(--light-line) !important;
    box-shadow: 0 4px 14px #1018280d;
}
html[data-theme="light"] :is(.grid-control-bar p, .grid-control-bar .bulk-empty-hint, .grid-control-bar .quick-filter-tabs > span, .pagination-bar, .sidebar-info-banner) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] :is(.grid-tools-row, .quick-filter-tabs, .sidebar-header, .sidebar-search-container, .sidebar-info-banner) {
    border-color: var(--light-line) !important;
}
html[data-theme="light"] :is(.bulk-actions-group, .spreadsheet-table th, .spreadsheet-table .filter-row td) {
    background: var(--light-raised) !important;
    color: var(--light-muted) !important;
    border-color: var(--light-line) !important;
}
html[data-theme="light"] .spreadsheet-table { color: var(--light-ink); }
html[data-theme="light"] .spreadsheet-table :is(th, td) { border-color: #d0d5dd; }
html[data-theme="light"] .spreadsheet-table tbody tr { background: #ffffff; }
html[data-theme="light"] .spreadsheet-table tbody tr:nth-child(even) { background: #f8fafc; }
html[data-theme="light"] .spreadsheet-table tbody tr:hover { background: #fff7ed !important; }
html[data-theme="light"] .spreadsheet-table tr.selected { background: #ffeadb !important; }
html[data-theme="light"] .spreadsheet-table tr.inactive-row td:not(.col-select):not(.col-actions) {
    color: var(--light-muted) !important;
    opacity: 1;
}
html[data-theme="light"] :is(.grid-editor-container, .categories-sidebar) :is(input, select, .autocomplete-dropdown),
html[data-theme="light"] .spreadsheet-cell.editing {
    background-color: #ffffff !important;
    color: var(--light-ink) !important;
    border-color: var(--light-control-line) !important;
}
html[data-theme="light"] .spreadsheet-cell:focus { background: #fff1e8 !important; outline-color: var(--light-accent) !important; }
html[data-theme="light"] .spreadsheet-cell :is(input, select) { border-color: var(--light-accent) !important; }
html[data-theme="light"] :is(.grid-editor-container .autocomplete-option, .category-tree-node, .sidebar-title) { color: var(--light-ink); }
html[data-theme="light"] :is(.grid-editor-container .autocomplete-option, .category-tree-node):hover,
html[data-theme="light"] :is(.grid-editor-container .autocomplete-option.highlighted, .category-tree-node.selected-active) {
    background: #fff1e8;
    color: var(--light-accent);
}
html[data-theme="light"] :is(.category-empty, .stock-empty, .add-assoc-btn, .quick-tab, .spreadsheet-cell[data-field="sku"], .spreadsheet-cell[data-field="ref"]) {
    color: var(--light-muted);
    opacity: 1;
}
html[data-theme="light"] :is(.add-assoc-btn, .quick-tab) { background: #f2f4f7; border-color: var(--light-control-line); }
html[data-theme="light"] :is(.add-assoc-btn:hover, .quick-tab:hover, .quick-tab.active, .brand-association-badge) {
    background: #fff1e8 !important;
    color: var(--light-accent) !important;
    border-color: var(--light-accent) !important;
}
html[data-theme="light"] :is(.status-saved, .margin-positive) { color: var(--light-success); background: #ecfdf3; }
html[data-theme="light"] :is(.status-saving, .margin-low) { color: var(--light-warning); background: #fff7db; }
html[data-theme="light"] :is(.status-error, .margin-negative, .stock-low, .remove-assoc, .row-action-btn:hover) { color: var(--light-danger); }
html[data-theme="light"] :is(.status-error, .margin-negative) { background: #fff1f0; }
html[data-theme="light"] :is(.suggestion-pill, .select-info-banner) { color: var(--light-info); background: #eff6ff; border-color: #9bb5e2; }
html[data-theme="light"] .sidebar-toggle-floating { color: #ffffff; background: var(--light-action); }
html[data-theme="light"] .sidebar-toggle-floating:hover { background: var(--light-action-hover); }

html[data-theme="light"] :is(.brand-quality-card, .product-center-kpi, .product-center-card) {
    background: #ffffff !important;
    border-color: var(--light-line) !important;
}
html[data-theme="light"] .product-center-hero {
    background: linear-gradient(135deg, #fff1e8, #ffffff);
    border-color: var(--light-line);
}
html[data-theme="light"] .product-timeline-item { background: #f8fafc; }
html[data-theme="light"] .brand-quality-card > span { color: var(--light-muted); }
html[data-theme="light"] .brand-quality-card strong { color: var(--light-ink); }
html[data-theme="light"] .brand-quality-card.is-good strong { color: var(--light-success); }
html[data-theme="light"] .brand-quality-card.is-warning strong { color: var(--light-warning); }
html[data-theme="light"] .sidebar-close-btn { color: var(--light-muted); }
html[data-theme="light"] .sidebar-close-btn:hover { color: var(--light-danger); }
html[data-theme="light"] :is(.brand-workspace-back, .product-timeline-filters a.is-active) {
    color: var(--light-accent) !important;
}
html[data-theme="light"] .product-timeline-filters a.is-active { background: #fff1e8; border-color: var(--light-accent); }
html[data-theme="light"] :is(.import-section-heading p, .import-section-note, .fiscal-table-head p, .grid-editor-container .bulk-selection-label, .grid-editor-container .bulk-selection-label span, .grid-editor-container .filter-row span, .grid-editor-container .filter-row label, .row-action-btn) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] .grid-editor-container .filter-row a { color: var(--light-accent) !important; }

/* Product sheets and related suggestions must not retain dark paper cards. */
html[data-theme="light"] :is(.product-detail-card, .related-product-card) {
    background: #ffffff !important;
    border-color: var(--light-line);
}
html[data-theme="light"] :is(.detail-category, .related-product-price) { color: var(--light-accent) !important; }
html[data-theme="light"] :is(.detail-list-price, .related-product-sku, .related-product-path) { color: var(--light-muted) !important; }
html[data-theme="light"] .detail-discount { color: var(--light-success); }
html[data-theme="light"] .related-product-body h3 a { color: var(--light-ink); }
html[data-theme="light"] :is(.related-product-thumb, .product-placeholder) { color: var(--light-subtle); background: #f2f4f7; opacity: 1; }
html[data-theme="light"] :is(.related-product-thumb, .product-media) :is(span, p) { color: var(--light-subtle) !important; }

/* Client-facing order screens have their own inline styles. */
html[data-theme="light"] .portal-welcome { background: #ffffff; border-color: var(--light-line); }
html[data-theme="light"] :is(.portal-welcome p, .orders-page .empty-state p, .cart-page .empty-state p, .order-date, .order-card .info-label, .cart-item .item-sku) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] :is(.order-number, .order-card .info-value, .portal-recent-item strong, .item-name) { color: var(--light-ink) !important; }
html[data-theme="light"] .order-total {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--light-ink) !important;
}
html[data-theme="light"] .portal-number.is-danger { color: var(--light-danger) !important; }
html[data-theme="light"] :is(.cart-item, .cart-summary) { background: #ffffff; border-color: var(--light-line); }
html[data-theme="light"] :is(.item-price, .item-subtotal) { color: var(--light-accent); }
html[data-theme="light"] :is(.orders-page .filter-select, .qty-input) {
    background: #ffffff !important;
    color: var(--light-ink) !important;
    border-color: var(--light-control-line) !important;
}
html[data-theme="light"] .order-card :is(.badge-draft, .status-draft) { color: var(--light-warning); background: #fff7db; }
html[data-theme="light"] .order-card :is(.badge-confirmed, .status-confirmed) { color: var(--light-info); background: #eff6ff; }
html[data-theme="light"] .order-card :is(.badge-completed, .status-completed) { color: var(--light-success); background: #ecfdf3; }
html[data-theme="light"] .order-card :is(.badge-cancelled, .status-cancelled) { color: var(--light-danger); background: #fff1f0; }

/* Operational metadata and fiscal setup, separate from printable documents. */
html[data-theme="light"] :is(.sales-record-kicker, .order-sale-setting-label, .settings-section-count, .import-center-eyebrow, .import-flow-kicker, .import-flow-cta, .reports-hub-eyebrow) {
    color: var(--light-accent) !important;
}
html[data-theme="light"] .sales-record-tag { color: var(--light-accent) !important; background: #fff1e8; }
html[data-theme="light"] :is(.sales-record-tag.is-info, .fiscal-global-status) { color: var(--light-info) !important; background: #eff6ff; }
html[data-theme="light"] .sales-record-tag.is-success { color: var(--light-success) !important; background: #ecfdf3; }
html[data-theme="light"] .sales-record-tag.is-danger { color: var(--light-danger) !important; background: #fff1f0; }
html[data-theme="light"] :is(.fiscal-wizard-subtitle, .fiscal-step-desc, .fiscal-step-snapshot span, .doc-type-table th, .import-center-metrics span, .reports-hub-context span) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] :is(.fiscal-step-title, .fiscal-step-snapshot strong, .fiscal-step-number) { color: var(--light-ink) !important; }
html[data-theme="light"] :is(.fiscal-wizard-head, .fiscal-step-card, .fiscal-table-card) { border-color: var(--light-line); }
html[data-theme="light"] .fiscal-step-errors { color: var(--light-danger); background: #fff1f0; border-color: #d98a83; }
html[data-theme="light"] .import-flow-index { color: var(--light-subtle); }

html[data-theme="light"] :is(.brand-result-count, .brand-text-button, .brand-product-copy code, .brand-assigned-copy code, .brand-selection-dock strong) { color: #075985 !important; }
html[data-theme="light"] .brand-workspace-title h2 span { color: var(--light-subtle); }
html[data-theme="light"] .brand-product-associations .is-conflict { color: var(--light-warning); }
html[data-theme="light"] .brand-suggestion-chip { color: var(--light-success); }
html[data-theme="light"] .brand-suggestion-chip.is-other { color: #6b21a8; }
html[data-theme="light"] .brand-product-state.is-inactive { color: var(--light-danger); }
html[data-theme="light"] .brand-status-toast { background: #ecfdf3; }

html[data-theme="light"] :is(.gallery-count-badge, .gallery-count-badge span, .import-center-context-card > span, .execution-total, .execution-total strong, .reports-hub-company > span, .portal-list small, .empty-orders-card p, .empty-table-wrap p, .order-movement-inline-state) {
    color: var(--light-muted) !important;
}
html[data-theme="light"] :is(.portal-list strong, .category-check-item strong) { color: var(--light-ink) !important; }
html[data-theme="light"] :is(.category-check-item .tree-toggle, .category-check-item .tree-arrow, .category-check-item .btn-add-subcategory, .brand-recent-batches header a) { color: var(--light-accent) !important; }
html[data-theme="light"] .execution-filter { color: var(--light-muted); }
html[data-theme="light"] .execution-filter.is-active { color: var(--light-accent); background: #fff1e8; }
html[data-theme="light"] .doc-type-status-pill.is-enabled { color: var(--light-success); background: #ecfdf3; }
html[data-theme="light"] .doc-type-status-pill.is-disabled { color: var(--light-muted); background: #f2f4f7; }
html[data-theme="light"] :is(.doc-type-table-name small, .doc-type-rule) { color: var(--light-muted); }
html[data-theme="light"] .doc-type-rule.is-on { color: var(--light-accent); background: #fff1e8; }
html[data-theme="light"] .doc-type-number-block { background: #f2f4f7; border-color: var(--light-line); }
html[data-theme="light"] :is(.doc-type-number-label, .doc-type-number-block small) { color: var(--light-muted) !important; }
html[data-theme="light"] .category-create-btn { color: var(--light-accent) !important; border-color: var(--light-accent) !important; }
html[data-theme="light"] .sales-record-summary-row > span { color: var(--light-muted) !important; }

/* Overlay surfaces and account-specific catalog feedback. */
html[data-theme="light"] :is(.modal-content, .admin-modal-content, #categoryModal > div) {
    background: #ffffff !important;
    color: var(--light-ink);
    border-color: var(--light-line) !important;
    box-shadow: 0 16px 48px #10182833 !important;
}
html[data-theme="light"] #categoryModal h3 { color: var(--light-ink) !important; }
html[data-theme="light"] #categoryModal label { color: var(--light-muted) !important; }
html[data-theme="light"] #categoryModal > div > div > span { color: var(--light-subtle) !important; }
html[data-theme="light"] :is(.smart-select__trigger, .smart-select__search-wrap) { border-color: var(--light-control-line); }
html[data-theme="light"] :is(.smart-select__empty, .smart-select__footer) { color: var(--light-muted); }
html[data-theme="light"] .discount-notice-premium {
    color: var(--light-success);
    background: #ecfdf3;
    border-color: #86cda0;
}
html[data-theme="light"] .discount-notice-premium > span { color: var(--light-success) !important; }
html[data-theme="light"] .discount-percent-highlight { color: var(--light-success) !important; }
html[data-theme="light"] .clamp-status-chip span { color: var(--light-muted); }
html[data-theme="light"] .client-inline-badge.is-live { color: var(--light-success); background: #ecfdf3; }
html[data-theme="light"] .client-inline-badge.is-internal { color: var(--light-accent); background: #fff1e8; }
html[data-theme="light"] :is(.company-select-eyebrow, .ranking-workbench-kicker, .ranking-filter-step) { color: var(--light-accent) !important; }
html[data-theme="light"] .ranking-filter-field small { color: var(--light-muted); }
html[data-theme="light"] .ranking-company-badge span { color: var(--light-muted) !important; }
html[data-theme="light"] .company-select-hero .company-select-eyebrow { color: var(--light-accent) !important; }
