/* Login keeps its independent garage palette; workspace theme never overrides it. */
/* Applied only to authenticated appearance-preview documents by the controller.
   Light mode deliberately retains all original workspace styles. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) {
  color-scheme: dark;
  --bs-bg: #171d25;
  --bs-surface: #222b36;
  --bs-raised: #293441;
  --bs-field: #19222d;
  --bs-line: #3a4859;
  --bs-text: #e1e8f1;
  --bs-muted: #a8b8cb;
  --bs-blue: #87baff;
  --bs-selected: #283f5a;
  --bs-hover: #2b394a;
  --bs-green: #87d5a7;
  --bs-red: #ffa2ac;
  --bs-amber: #ebcc82;
  --line: var(--bs-line);
  --muted: var(--bs-muted);
  --cp-nav-rail: var(--bs-raised);
  --cp-nav-border: var(--bs-line);
  --cp-nav-ink: var(--bs-text);
  --cp-nav-muted: var(--bs-muted);
  --cp-nav-selected: var(--bs-selected);
  --cp-nav-blue: var(--bs-blue);
  background: var(--bs-bg);
  color: var(--bs-text);
}
html[data-booster-theme="dark"]:not([data-booster-login="active"]) body { background: var(--bs-bg); color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.workspace, .orders-preview, .orders-preview .orders-workspace, .balance-workspace, .favorites-workspace) { background: var(--bs-bg); color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.glass, .panel, .balance-workspace .panel, .order-card, .workspace-dropdown, dialog, .favorites-dialog, .date-popover, .column-filter-popover, .orders-preview #extra-filters) { background: var(--bs-surface); color: var(--bs-text); border-color: var(--bs-line); box-shadow: 0 6px 22px #0003; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.panel-heading, .part-card h2, .basket-footer, .favorites-footer, .orders-footer, .messages-pane .compose, .date-footer, .column-filter-footer, .balance-footer, .cart-footer, .order-group-row>.order-group-cell, .balance-stock-card, .balance-stock-card[data-empty=true]) { background: var(--bs-raised); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(th, .orders-table th, .balance-workspace th, .table-scroll th) { background: var(--bs-raised); color: var(--bs-muted); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.table-scroll thead, .orders-table thead) { background: var(--bs-raised); box-shadow: 0 -1px 0 1px var(--bs-raised); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(td, .orders-table td, .balance-workspace td, .basket-line, .cart-selection, .favorite-item, .favorites-toolbar, .offers-foot, .balance-note, .detail-data, .detail-comment, .messages-heading, .dropdown-sort, .date-range-inputs, .date-picker-body, .calendar-area, .detail-content, .card-tabs) { border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(tbody tr:nth-child(even), .orders-table tbody tr:nth-child(even), .basket-line:nth-child(even), .cart-line:nth-child(even)) { background: #252f3b; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(tbody tr:hover, .orders-table tbody tr:hover, .shipments-table tbody tr:hover, .basket-line:not(.dragging):hover, .basket-line.basket-row-managed.is-active:not(.dragging)) { background: var(--bs-hover); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(tbody tr.selected, .orders-table tbody tr.selected, .shipments-table tbody tr[aria-selected=true], .summary-table tr[data-total=true], .order-group-row.expanded>.order-group-cell) { background: var(--bs-selected); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.search-field, .select-field, .qty-input, .quantity-stepper, .detail-editor, .detail-editor input, .basket-comment input, .basket-comment textarea, .cart-line .basket-comment textarea, .cart-order-comment textarea, .cart-name-editor input, .comment-editor textarea, .detail-comment .comment-editor textarea, .compose textarea, .date-range-inputs input, .price-filter-range input, #extra-filters input, .balance-filter input, .favorite-quantity input, .favorites-dialog input[type=text], .status-line select) { background: var(--bs-field); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(input, textarea)::placeholder { color: #9aaabe; opacity: 1; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(select, option) { color: var(--bs-text); background-color: var(--bs-field); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.search-field input, .select-field select, .profile-trigger, .status-field>button) { color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.search-field:focus-within, .select-field:focus-within, .cart-order-comment textarea:focus) { border-color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(button, input, textarea, select, tr):focus-visible { outline-color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.primary, .primary:hover:enabled) { background: #2678d9; border-color: #4c98f0; color: #fff; box-shadow: none; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.primary:hover:enabled) { background: #3188ed; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.quiet, .icon-button, .favorite-control, .favorites-dialog button:not(.primary), .cart-secondary, .cart-recover, .cart-price-refresh, .pagination button, .balance-workspace .quiet, .balance-workspace .icon-button, .compact-basket, .part-alternative-control, .orders-scopes button, .orders-view-switch button, .orders-sort button, .quantity-step, .detail-actions button, .order-card .detail-actions button, .filter-toggle) { background: var(--bs-raised); border-color: var(--bs-line); color: #c5d7ed; box-shadow: none; }
/* The current page is a span in the native orders footer. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .pagination > span { background: #243e5d; border-color: #45668e; color: #c5d7ed; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.quiet, .icon-button, .favorite-control, .cart-secondary, .pagination button, .quantity-step):hover:enabled { background: #3a4a60; color: #fff; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.dropdown-option, .dropdown-sort button, .filter-option, #date-presets button, .calendar-grid button, .card-tabs button) { background: transparent; color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.dropdown-option:hover, .dropdown-option:focus, .filter-option:hover, #date-presets button:hover, .calendar-grid button:hover) { background: var(--bs-hover); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.dropdown-option[aria-selected=true], .dropdown-sort button[aria-pressed=true], .filter-option:has(input:checked), #date-presets button.active, .calendar-grid button.between, .card-tabs button.active, .orders-scopes button[aria-pressed=true], .orders-view-switch button[aria-pressed=true], .favorites-choice:has(input:checked)) { background: var(--bs-selected); color: var(--bs-blue); border-color: #55779d; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .calendar-grid button.edge { background: #2678d9; color: #fff; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.orders-scopes button span, .orders-scopes button[aria-pressed=true] span) { background: #344c68; color: #d1e6ff; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.favorites-choice, .balance-planned) { border-color: var(--bs-line); background: var(--bs-field); color: var(--bs-muted); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.message, .messages-pane .message) { background: var(--bs-raised); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.message.mine, .messages-pane .message.mine, .favorites-undo, .favorite-flow, .basket-pending-line) { background: #263e56; color: #c7dff7; border-color: #4a6584; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-line, .panel-heading>span, td small, .orders-table td small, .part-title p, .part-card dt, .detail-label, .part-name, .part-name .detail-label, .basket-part small, .basket-amount small, .cart-line .basket-amount small, .basket-footer span, .offers-foot, .empty, .detail-empty, .hide-zero, .column-hint, .delivery-term small, .probability .probability-label, .probability .probability-count, .probability .probability-count-label, .part-card-stats>div>small, .selection-card .selection-kicker, .selection-card .selection-stats>div>small, .selection-card .selection-stats dt, .selection-card .history-label, .selection-card .selection-data dt, .selection-card .selection-stats .probability-origin, .cart-selection, .cart-item-meta, .cart-delivery, .cart-order-comment, .cart-totals dt, .cart-limit, .cart-footer #cart-status, .basket-page-list #cart-row-count, .basket-page-summary #cart-compact-total, .orders-footer, .order-ref, .order-number, .order-supplier, .part-cell .name, .part-cell .order-ref, .detail-name, .detail-kicker, .detail-data dt, .detail-comment small, .detail-probability dt, .order-probability .probability-origin, .history-label, .timeline small, .message small, .message-meta, .message-read, .compose-status, .history-feedback, .calendar-grid .weekday, .date-range-inputs label, .price-filter-range label, .dropdown-option small, .dropdown-sort button, .balance-filter label, .balance-filter span, .balance-workspace td small, .balance-footer #feedback, .balance-state, .balance-note, .balance-date-original, .balance-hero p, .balance-total-metrics dt, .stock-heading, .balance-stock-card h3, .stock-counts, .stock-share, .balance-stock-card[data-empty=true] .stock-amount, .balance-stock-card[data-empty=true] h3, .favorites-feedback, .favorite-feedback, .favorite-name, .favorite-quantity label, .favorites-empty, .favorites-footer p, .favorites-choice small, dialog p, .order-dialog p, .group-comment, .group-order-supplier, .group-context, .group-load-row small, .group-match-count, .status-time, .delivery-cell small, .delivery-date-original) { color: var(--bs-muted); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.probability .probability-value, .order-probability .probability-value, .selection-card .selection-stats .probability-value, .balance-total-metrics) { color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.probability-track, .order-probability .probability-track, .stock-track) { background: #465465; }
/* Probability fill colors/widths and stock share widths stay exactly as supplied. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.edit-detail, .detail-save, .detail-cancel, .basket-move, .remove, .dropdown-arrow, .dropdown-check, .copy-part, .favorite-button, .excel-button, .column-filter, .has-analogs, .list-picker) { color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.favorite-button:hover:enabled) { background: #4c4128; color: #f4d47e; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.banner, .cart-checkout-warning, .cart-stale) { background: #443a25; color: #efd293; border-color: #77613b; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.stock-order, .attention-note, .history .pending, .history .pendingCount) { color: var(--bs-amber); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-line [data-kind=error], .offers-status #status[data-kind=error], .cart-footer #cart-status[data-kind=error], .balance-state[data-error=true], .favorites-feedback[data-error=true], .favorites-dialog .favorites-dialog-error, .inline-error, .price-filter-error, #date-error, .native-orders #date-error, .stock-zero, .cart-danger, .favorite-remove, .delivery-overdue, .delivery-date-changed, .history .refused, .history .refusedCount, .shipments-table td[data-movement=debit]) { color: var(--bs-red); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .favorites-feedback[data-error=true] { background: #492b35; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-line [data-kind=success], .offers-status #status[data-kind=success], .history .success, .shipments-table td[data-movement=credit]) { color: var(--bs-green); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.history-group.success[data-nonzero=true]) { background: #316e4b; color: #e2ffec; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.history-group.refused[data-nonzero=true], .history-group.refusedCount[data-nonzero=true]) { background: #944451; color: #fff0f2; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.history-group.pending[data-nonzero=true], .history-group.pendingCount[data-nonzero=true]) { background: #ddbd47; color: #302500; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .history-group[data-nonzero=true] :is(.history-icon, .history-value) { color: inherit; background: transparent; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-pill, .balance-status, .group-badge) { background: #344252; color: #d0deee; border-color: #536477; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-pill[data-tone=blue], .balance-status[data-tone=payment], .group-badge.blue) { background: #294460; color: #afd2ff; border-color: #476b93; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-pill[data-tone=green], .balance-status[data-tone=issued], .group-badge.green) { background: #284b3b; color: #a1e7bb; border-color: #456e55; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-pill[data-tone=orange], .balance-status[data-tone=delayed]) { background: #4d3929; color: #efbd90; border-color: #795438; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.status-pill[data-tone=red], .balance-status[data-tone=returned], .group-badge.red) { background: #4b303a; color: #ffb7c0; border-color: #7e4c57; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.balance-status[data-tone=transit], .group-badge.amber) { background: #473d27; color: #efd38c; border-color: #796638; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .balance-status[data-tone=pickup] { background: #28484e; color: #a1dce5; border-color: #476e77; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .balance-hero { background: var(--bs-raised); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .balance-hero[data-tone=debt] { background: #392c35; color: var(--bs-red); border-color: #704651; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .balance-hero[data-tone=credit] { background: #293c34; color: var(--bs-green); border-color: #456c56; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.delivery-progress[data-outcome=refused] .stage-caption, .delivery-progress[data-outcome=return] .stage-caption, .timeline .refusal-reason, .timeline .refusal-detail) { color: var(--bs-red); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.stage-track li, .stage-caption) { color: var(--bs-muted); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.stage-track li.passed, .timeline li.passed) { color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.delivery-progress[data-complete=true] .stage-caption, .delivery-progress[data-complete=true] .stage-track li.passed, .timeline[data-complete=true] li.passed, .timeline[data-complete=true] li.current strong) { color: var(--bs-green); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.delivery-progress[data-outcome=refused] .stage-track li.passed, .timeline[data-outcome=refused] li.passed) { color: var(--bs-red); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(dialog, .order-dialog, .favorites-dialog)::backdrop { background: #080d15b3; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.table-scroll, .balance-scroll, .favorite-items, .orders-table-scroll, .dropdown-options) { scrollbar-color: #56677b transparent; }

/* The native uniGUI shell and legacy sections use Ext controls. Color only;
   sizing, navigation, visibility and native state behavior remain unchanged. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-body, .x-viewport, .x-panel-body, .x-panel-default, .x-panel-body-default, .x-window-body, .x-window-body-default, .x-form-item-body, .x-tabpanel-child, .booster-primary-tabs) { background-color: var(--bs-bg); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-toolbar, .x-toolbar-default, .x-tab-bar, .x-tab-bar-default, .x-panel-header, .x-panel-header-default, .x-window, .x-window-default, .x-window-header, .x-window-header-default, .cp-workspace-header, .cp-workspace-tabs.x-tab-bar, .booster-primary-tabbar) { background: var(--bs-raised); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-panel-header-title, .x-panel-header-title-default, .x-window-header-title, .x-window-header-title-default, .x-form-item-label, .x-form-item-label-default, .x-toolbar-text) { color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-tab, .cp-workspace-tabs.x-tab-bar .x-tab, .cp-workspace-tabs.x-tab-bar .cp-subtab-split, .main-menu-detail .x-tab-bar-top .x-tab) { background: var(--bs-raised); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-tab-inner, .x-tab-icon-el, .x-btn-inner, .x-btn-icon-el, .x-tab-glyph) { color: var(--bs-muted); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-tab-active, .booster-primary-tabbar .x-tab-active, .main-menu-detail .x-tab-bar-top .x-tab-active) { background: var(--bs-selected); border-color: #55779d; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .x-tab-active :is(.x-tab-inner, .x-tab-icon-el, .x-tab-glyph) { color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-btn-default-small, .x-btn-default-medium, .x-btn-default-toolbar-small, .cp-workspace-action) { background: var(--bs-raised); border-color: #536479; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-btn-over, .x-btn-pressed) { background: var(--bs-selected); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-btn-over, .x-btn-pressed) :is(.x-btn-inner, .x-btn-icon-el) { color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-form-text, .x-form-text-default, .x-form-trigger-wrap, .x-form-trigger-wrap-default, .x-form-trigger, .x-form-trigger-default, .x-boundlist, .x-boundlist-list-ct) { background: var(--bs-field); color: var(--bs-text); border-color: #536479; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .x-form-trigger-wrap-focus { border-color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-boundlist-item, .x-menu-item-text, .cp-subtab-menu .x-menu-item-text) { color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-boundlist-selected, .x-boundlist-item-over, .x-menu-item-active .x-menu-item-link) { background: var(--bs-selected); border-color: #55779d; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-menu, .x-menu-body, .x-menu-body-default, .x-menu-item, .x-menu-item-default, .cp-subtab-menu) { background: var(--bs-surface); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-menu-icon-separator, .x-menu-item-separator) { background: var(--bs-line); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-grid-header-ct, .x-column-header, .x-column-header-over, .x-grid-header-ct-default, .x-grid-group-hd, .x-grid-row-summary .x-grid-cell) { background: var(--bs-raised); color: var(--bs-muted); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-grid-view, .x-grid-cell, .x-tree-view, .x-tree-node-text) { background-color: var(--bs-surface); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .x-grid-item-alt .x-grid-cell { background-color: #252f3b; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-grid-item-over .x-grid-cell, .x-grid-row-over .x-grid-cell) { background-color: var(--bs-hover); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-grid-item-selected .x-grid-cell, .x-grid-row-selected .x-grid-cell) { background-color: var(--bs-selected); color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-grid-cell-inner, .x-grid-group-title) { color: inherit; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-fieldset, .x-fieldset-header-text) { border-color: var(--bs-line); color: var(--bs-muted); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-datepicker, .x-datepicker-inner, .x-datepicker-footer, .x-monthpicker, .x-monthpicker-body) { background: var(--bs-surface); color: var(--bs-text); border-color: var(--bs-line); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-datepicker-header, .x-datepicker-column-header) { background: var(--bs-raised); color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-datepicker-date, .x-monthpicker-item a) { color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-datepicker-selected .x-datepicker-date, .x-monthpicker-selected, .x-datepicker-date:hover) { background: var(--bs-selected); color: var(--bs-blue); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .x-mask { background: #101721; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-mask-msg, .x-mask-msg-inner, .x-mask-msg-text) { background-color: var(--bs-raised); border-color: var(--bs-line); color: var(--bs-text); }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .booster-primary-tabs.booster-route-pending::after { background: var(--bs-bg); color: var(--bs-muted); }

/* Complete the appearance pilot: no light islands in the basket or order chat. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.basket-workspace .cart-rows,.cart-name-editor,.detail-comment,.orders-view-switch){background:var(--bs-surface);color:var(--bs-text);border-color:var(--bs-line)}
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .messages-pane .messages{background-color:var(--bs-bg);background-image:radial-gradient(#92acc91a .8px,transparent .8px);color:var(--bs-text)}
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .orders-view-switch button[aria-pressed="true"]{background:#2678d9;color:#fff;box-shadow:none}
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .orders-footer strong{color:var(--bs-text)}

/* Keep a newly navigating workspace covered until its dark stylesheet is ready. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) iframe.bs-theme-pending { visibility: hidden !important; background: #171d25; }
/* The native frame may carry a legacy inline light bodyStyle. */
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .booster-workspace-frame > .x-panel-body { background: var(--bs-bg) !important; }

/* One outer rhythm across authenticated Search workspaces. */
html[data-booster-theme]:not([data-booster-login="active"]) {
  --bs-workspace-gap: 14px;
  --bs-glass-surface: #ffffffe0;
  --bs-glass-heading: #ecf6ffcc;
  --bs-glass-border: #b8cde16b;
  --bs-glass-shine: #ffffffff;
  --bs-glass-shadow: #1e467f0d;
}
html[data-booster-theme="dark"]:not([data-booster-login="active"]) {
  --bs-glass-surface: #223347d9;
  --bs-glass-heading: #2c4662cc;
  --bs-glass-border: #a5c5e533;
  --bs-glass-shine: #d3e7ff59;
  --bs-glass-shadow: #020c1a29;
}
html[data-booster-theme]:not([data-booster-login="active"]) :is(.workspace, .orders-workspace, .balance-workspace, .favorites-workspace, .profile-layout) {
  --workspace-gap: var(--bs-workspace-gap);
  padding: var(--workspace-gap);
  gap: var(--workspace-gap);
}
html[data-booster-theme]:not([data-booster-login="active"]) :is(.orders-layout, .profile-secondary) { gap: var(--bs-workspace-gap); }
/* Narrow Search uses a zero-gap wrapper for its basket dock. */
@media (min-width: 861px) {
  html[data-booster-theme]:not([data-booster-login="active"]) :is(.content-grid, .details-column) { gap: var(--bs-workspace-gap); }
}
@media (min-width: 861px) and (max-width: 1150px) {
  html[data-booster-theme]:not([data-booster-login="active"]) { --bs-workspace-gap: 12px; }
}
@media (max-width: 860px) {
  html[data-booster-theme]:not([data-booster-login="active"]) { --bs-workspace-gap: 8px; }
}
/* Restrained glass is confined to surfaces, leaving table cells and text sharp. */
html[data-booster-theme]:not([data-booster-login="active"]) :is(.panel.panel, dialog, .favorites-dialog, .order-dialog, .x-window-default) {
  background-color: var(--bs-glass-surface) !important;
  background-image: radial-gradient(ellipse at 14% 0%,#ffffff38,transparent 48%),linear-gradient(118deg,transparent 10%,#d3efff12 22%,transparent 35%),linear-gradient(125deg,#91caff12,transparent 48%) !important;
  border-color: var(--bs-glass-border);
  box-shadow: inset 0 1px 0 var(--bs-glass-shine), inset 1px 0 0 #d4eaff1a, inset 0 -1px 0 #97c9ff12, 0 10px 28px var(--bs-glass-shadow) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.22);
  backdrop-filter: blur(16px) saturate(1.22);
}
html[data-booster-theme]:not([data-booster-login="active"]) :is(.panel-heading, .x-window-header-default) {
  background-color: var(--bs-glass-heading) !important;
  background-image: linear-gradient(110deg,#ffffff2e,transparent 48%,#8bd3ff0f) !important;
  border-color: var(--bs-glass-border);
  box-shadow: inset 0 1px 0 var(--bs-glass-shine) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.22);
  backdrop-filter: blur(16px) saturate(1.22);
}

/* The workspace gets a real smaller layout viewport before a 1.2 visual scale.
   Responsive breakpoints and inner scroll areas therefore keep their meaning. */
html.booster-appearance-enabled iframe[data-booster-workspace="true"] {
  display:block; width:calc(100% / 1.2) !important; height:calc(100% / 1.2) !important;
  min-width:0; min-height:0; flex:none !important;
  transform:scale(1.2); transform-origin:top left; border:0;
}
html[data-booster-theme]:not([data-booster-login="active"]) iframe.bs-theme-pending { visibility:hidden !important; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .booster-workspace-frame,
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .booster-workspace-frame .x-panel-body { background:#171d25 !important; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) .x-mask { background:#101721 !important; }
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.x-mask-msg,.x-mask-msg-inner,.x-mask-msg-text) { background-color:#293441 !important;color:#e1e8f1 !important; }
html[data-booster-theme]:not([data-booster-login="active"]) body {
  background-image:radial-gradient(ellipse at 4% 0%,#4aa9ff20,transparent 50%),radial-gradient(ellipse at 100% 92%,#3884e919,transparent 58%);
  background-attachment:fixed;
}
html[data-booster-theme="dark"]:not([data-booster-login="active"]) :is(.danger,.danger-button,.cart-danger) {background:#683347 !important;color:#ffb7bf;border-color:#b16b7a}

html[data-booster-theme]:not([data-booster-login="active"]) :is(.workspace,.orders-workspace,.balance-workspace,.favorites-workspace,.profile-layout) { background-color:transparent !important; }
