/* Application-only theme. Public orders and canvas exports do not load this file.
   All dark overrides are screen-only: printed documents keep their light palette. */
.theme-toggle { display:inline-flex; flex:none; align-items:center; justify-content:center; width:40px; min-width:40px; height:40px; min-height:40px; padding:9px; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); box-shadow:none; }
.theme-toggle svg { flex:none; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.theme-toggle:hover { background:var(--surface-soft); color:var(--teal); }
.theme-toggle:focus-visible { outline:3px solid var(--focus-ring); outline-offset:3px; }
.theme-toggle .theme-icon-sun { display:none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display:block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display:none; }
.auth-theme { position:absolute; top:16px; right:20px; z-index:2; }
@media (max-width:700px) { .theme-toggle { width:44px; min-width:44px; height:44px; min-height:44px; }.auth-theme { top:8px; right:12px; }.auth-panel { padding-top:64px; } }
@media print { .theme-toggle,.auth-theme { display:none!important; }:root { color-scheme:light; } }

@media screen {
 :root { color-scheme:light; }
 html[data-theme="dark"] {
  color-scheme:dark;
  --ink:#e5edf7; --muted:#afbdd0; --line:#344459; --border:#344459;
  --teal:#70d8ed; --deep:#111c2d; --light:#183a49; --surface-soft:#202d3e;
  --focus-ring:#70d8ed; --brand-accent:#c2a6ff;
  --surface-shadow:0 4px 18px #0000001f;
  --theme-bg:#101722; --theme-panel:#192331; --theme-raised:#202d3e; --theme-input:#121c29;
  --theme-positive:#8ae0b3; --theme-positive-bg:#17392e;
  --theme-warning:#f1ca80; --theme-warning-bg:#3a3020;
  --theme-negative:#ffa6b2; --theme-negative-bg:#402631;
  background:var(--theme-bg); color:var(--ink);
 }
 html[data-theme="dark"] body { background:var(--theme-bg); color:var(--ink); }
 html[data-theme="dark"] :is(.auth,.main,.content) { background:var(--theme-bg); }
 html[data-theme="dark"] :is(.topbar,dialog,.auth-card) { background:var(--theme-panel); color:var(--ink); border-color:var(--line); }
 html[data-theme="dark"] dialog { box-shadow:0 24px 90px #0008; }
 html[data-theme="dark"] dialog::backdrop { background:#030810b3; }
 html[data-theme="dark"] .theme-toggle { color:#f1ca80; background:var(--theme-raised); border-color:var(--line); }
 html[data-theme="dark"] .theme-toggle:hover { background:#2b3c50; color:#ffe4ad; }
 html[data-theme="dark"] .avatar { color:#dbcaff; background:#33274b; border-color:#534276; }

 /* Shared surfaces and nested records. */
 html[data-theme="dark"] :is(#app,dialog) :is(.panel,.panel-header,.metric:not(.featured),.metric-action,.sale-card,.sale-record,.report-sheet,.machine-card,.variable-expense-card,.expense-category-card,.inventory-workspace,.inventory-history,.inventory-product,.inventory-entry,.ranking-controls,.calculator-result,.calculator-form,.product-actions-popover,.sale-actions-popover,.select-popover,.date-filter-fields,.serial-unit,.product-bulk-launch) { background:var(--theme-panel); color:var(--ink); border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) :is(.filters,.finance-period,.modal-header,.permission-grid label,.brand-rate-editor,.sale-item,.editable-payment,.expense-bulk-row,.item-entry-costs,.report-summary,.sale-record-header,.sale-record-footer,.sale-record-note,.sale-record-status-group,.sale-state-field,.summary .panel-header,.compact-disclosure,.stock-entries-table .entry-voided,.inventory-entry.entry-voided,.inventory-entry>header,.inventory-product-costs,.inventory-search>div,.inventory-search-control,.serial-entry-row,.serial-bulk-entry,.serial-entry-bulk,.ranking-row-unranked,.seller-ranking-unassigned,.calculator-table thead,.calculator-table tbody tr:nth-child(odd),.installment-option,.compact-rate-grid>div,.status-preview-row,.expense-tabs>button,.ranking-summary>div) { background:var(--theme-raised); border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) :is(.panel-header,.modal-content>.actions,.sale-card-header,.sale-card-footer,.sale-card-financials>span,.row-stat,.item-row,.payment-row,.item-details-fields,.subcategory-row,.reminder-item,.expense-status-row,.finance-partner-row,.sale-record-table td,.sale-record-table th,.sale-record-footer,.report-heading,.sale-record-totals>div,.seller-ranking-row,.ranking-row,.ranking-values>div,.ranking-metrics,.inventory-navigation,.inventory-product-costs>div+div,.inventory-entry-values>div+div,.inventory-entry-body .inventory-entry-details,.serial-unit,.bulk-footer) { border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) :is(.select-popover,.product-actions-popover,.sale-actions-popover,.date-filter-fields) { box-shadow:0 12px 36px #0007; }
 html[data-theme="dark"] :is(#app,dialog) .metric.featured { background:linear-gradient(120deg,#192d44,#332b4d); border-color:#4c4566; }

 /* Controls keep sizes, keyboard focus and all form values unchanged. */
 html[data-theme="dark"] :is(#app,dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),textarea,select,.select-trigger,.select-search,.date-filter summary) { background:var(--theme-input); color:var(--ink); border-color:#44566e; }
 html[data-theme="dark"] :is(#app,dialog) :is(input,textarea)::placeholder { color:#9baec5; opacity:1; }
 html[data-theme="dark"] :is(#app,dialog) :is(input,textarea,select):disabled { background:#263141; color:#afbdd0; border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) :is(input,textarea,select,.select-trigger):focus { border-color:var(--focus-ring); box-shadow:0 0 0 3px #70d8ed24; }
 html[data-theme="dark"] :is(#app,dialog) :is(input[type="checkbox"],input[type="radio"]) { accent-color:#ad8af0; }
 html[data-theme="dark"] :is(.main,.auth-card,dialog) :is(button,.button):not(.primary):not(.theme-toggle):not(.select-option):not(.select-trigger):not(.operational-badge):not(.status-select) { background:var(--theme-panel); color:var(--ink); border-color:var(--line); }
 html[data-theme="dark"] :is(.main,.auth-card,dialog) :is(button,.button):not(.primary):not(.theme-toggle):not(.select-option):not(.select-trigger):not(.operational-badge):not(.status-select):hover { background:var(--theme-raised); border-color:#526680; }
 html[data-theme="dark"] :is(.main,.auth-card,dialog) :is(.primary,.button.primary) { background:#086b83; color:#fff; border-color:#2199b4; }
 html[data-theme="dark"] :is(.main,.auth-card,dialog) :is(.primary,.button.primary):hover { background:#087e99; border-color:#70d8ed; }
 html[data-theme="dark"] :is(#app,dialog) :is(.subtle,.link-button,.customer-create,.item-details-toggle,.item-entry-costs summary,.bulk-extra summary,.inventory-average-button,.inventory-entry-actions button,.inventory-search button) { color:var(--teal); background:transparent; }
 html[data-theme="dark"] :is(#app,dialog) .select-option { color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.select-option:hover,.select-option.is-highlighted) { background:#2b3c50; color:#fff; }
 html[data-theme="dark"] :is(#app,dialog) .select-option[aria-selected="true"] { background:var(--light); color:#a6edfb; }
 html[data-theme="dark"] :is(#app,dialog) :is(.select-chevron,.select-option-check) { color:var(--teal); }
 html[data-theme="dark"] :is(#app,dialog) :is(.field,.customer-field-heading label,.date-filter-fields label,.flow-heading,.payment-original,.stock-average-summary dd,.calculator-field-label) { color:var(--ink); }

 /* Tables, list/grid controls, action menus and selection mode. */
 html[data-theme="dark"] :is(#app,dialog) th { background:var(--theme-raised); color:var(--muted); border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) td { border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) tbody tr:hover { background:#213347; }
 html[data-theme="dark"] :is(#app,dialog) :is(.sales-bulk-toolbar,.products-bulk-toolbar,.product-bulk-toolbar,.record-layout-switch,.inventory-layout-switch) { background:var(--theme-panel); border-color:var(--line); color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sales-bulk-toolbar.has-selection,.product-bulk-toolbar.has-selection,.product-selected,.product-selected:hover,.bulk-sales-confirmation) { background:var(--light); border-color:#467e91; color:var(--ink); }
 html[data-theme="dark"] #app :is(.record-layout-switch,.inventory-layout-switch) button[aria-pressed="true"],
 html[data-theme="dark"] #app .sales-status-shortcut[aria-pressed="true"] { background:var(--light); color:#a6edfb; border-color:#70d8ed; }
 html[data-theme="dark"] #app :is(.inventory-navigation button[aria-pressed="true"],.sales-bulk-actions button) { color:var(--teal); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-actions-popover button,.product-actions-popover button,.sale-action-label,.product-actions-popover .link-button) { color:var(--ink); }

 /* Main text / metadata, including compact stock and financial views. */
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-card-customer,.sale-card-financials strong,.sale-card-identity,.sale-identity,.sale-record-title h2,.sale-number,.inventory-product-identity .link-button,.inventory-overview strong,.inventory-entry-identification strong,.inventory-entry-values dd,.inventory-product-costs dd,.inventory-section-heading h2,.inventory-detail-heading h1,.product-sku,.product-catalog-name,.product-name,.seller-ranking-values strong,.ranking-name,.ranking-values dd,.ranking-summary strong,.summary-total .metric-value,.calculator-table td strong,.calculator-table tbody th,.installment-option>strong,.calculator-result-heading>strong,.metric-value) { color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.eyebrow,.loading,.field small,.footer-note,.payment-hint,.stat-note,.date-format-hint,.sale-timing,.sale-card-number,.sale-card-financials small,.sale-card-financials>span>span,.sale-card-seller,.sale-action-label,.inventory-overview>div,.inventory-product-meta,.inventory-entry-source,.inventory-entry-identification time,.inventory-entry-values dt,.inventory-entry-values dd small,.inventory-entry-details,.inventory-entry-count,.inventory-filter-message,.inventory-help,.inventory-detail-heading p,.inventory-product-costs dt,.inventory-page .stock-result-count,.stock-average-summary dt,.inventory-entry-range>label,.inventory-units .metric-label,.calculator-sheet-brand-name,.calculator-table td,.calculator-table thead th,.ranking-summary span,.product-code,.product-catalog-code) { color:var(--muted); }
 html[data-theme="dark"] #app #page :is(.inventory-page,.inventory-history) { --inventory-border:var(--line); --inventory-muted:var(--muted); }
 html[data-theme="dark"] #app #page :is(.inventory-search-control>input,.inventory-search input) { background:transparent; }
 html[data-theme="dark"] :is(#app,dialog) :is(.inventory-product .stock-balance-value,.inventory-units .serial-unit>strong,.inventory-units .metric-value,.metric-label .icon,.machine-identity>.icon) { color:var(--teal); }
 html[data-theme="dark"] :is(#app,dialog) :is(.inventory-serial-tag,.product-serial-badge,.serial-tracked-badge,.serial-badge,.metric-label .icon,.machine-identity>.icon,.inventory-navigation button span) { background:var(--light); border-color:#3b6678; color:#a6edfb; }
 html[data-theme="dark"] :is(#app,dialog) :is(.table-wrap,.select-options,.sidebar .nav) { scrollbar-color:#526680 transparent; }

 /* Semantic feedback stays distinct; do not overwrite user-defined status colors. */
 html[data-theme="dark"] :is(#app,dialog) .badge { background:#2b3a50; color:#c7d4e7; }
 html[data-theme="dark"] :is(#app,dialog) :is(.badge.good,.trade-in-help,.sale-detail-payment-trade-in,.payment-net-summary,.calculator-debit,.calculator-entry-note,.calculator-table .calculator-table-debit) { background:var(--theme-positive-bg); color:var(--theme-positive); border-color:#355d4a; }
 html[data-theme="dark"] :is(#app,dialog) :is(.badge.warn,.alert:not(.bad),.sale-review-status.is-required,.sale-review-status:has(input:checked),.inventory-attention,.seller-ranking-identity em) { background:var(--theme-warning-bg); color:var(--theme-warning); border-color:#6a5634; }
 html[data-theme="dark"] :is(#app,dialog) :is(.badge.bad,.alert.bad) { background:var(--theme-negative-bg); color:var(--theme-negative); border-color:#794552; }
 html[data-theme="dark"] :is(#app,dialog) :is(.error,.danger,.negative,.sale-card-financials .is-negative,.ranking-profit.loss dd) { color:var(--theme-negative); }
 html[data-theme="dark"] :is(#app,dialog) :is(.profit,.positive,.payment-net-summary strong,.calculator-table .calculator-table-debit th,.ranking-profit.profit dd,.ranking-summary-profit strong) { color:var(--theme-positive); }
 html[data-theme="dark"] :is(#app,dialog) :is(.pending,.provisional-profit,.provisional-profit small,.field-guidance,.sale-card-financials .is-pending) { color:var(--theme-warning); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-card-financials .is-pending,.sale-card-financials .pending-value) { background:var(--theme-warning-bg); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-card-financials .is-negative) { background:var(--theme-negative-bg); }
 html[data-theme="dark"] :is(#app,dialog) .danger:hover { background:var(--theme-negative-bg); color:var(--theme-negative); }
 html[data-theme="dark"] :is(#app,dialog) :is(.finance-result,.seller-ranking-profit strong,.sale-record-totals .sale-profit-total) { background:#302745; color:#d4bdff; }
 html[data-theme="dark"] :is(#app,dialog) :is(.operational-badge[data-status-color],.status-select[data-status-color],.select-control.is-status .select-trigger) { background:var(--status-bg); color:var(--status-text); border-color:var(--status-color); }
 html[data-theme="dark"] :is(#app,dialog) .select-control.is-status .select-chevron { color:currentColor; }

 /* Compact sales use nested surfaces; keep their hierarchy in both layouts. */
 html[data-theme="dark"] #app #page :is(.sale-record-overview,.sale-record-compact-footer,.product-catalog[data-layout="grid"] .product-table>tbody>tr) { background:var(--theme-panel); border-color:var(--line); }
 html[data-theme="dark"] #app #page :is(.sale-record-compact-identity>strong,.sale-record-compact-values strong,.sale-menu-heading>span) { color:var(--ink); }
 html[data-theme="dark"] #app #page :is(.sale-timing>strong,.sale-record-compact-values small,.sale-record-seller-badge,.sale-menu-heading small,.sale-actions-control>span,.sale-wholesale,.sales-select-all,.sales-selected-count,.sale-actions-menu>summary,.sales-status-shortcut) { color:var(--muted); }
 html[data-theme="dark"] #app #page :is(.sale-record-compact-values>span,.sale-record-seller-badge,.sale-record-status-summary) { background:var(--theme-raised); border-color:var(--line); }
 html[data-theme="dark"] #app #page :is(.sale-record-compact-values>.pending,.sale-record-status-summary.is-review) { background:var(--theme-warning-bg); color:var(--theme-warning); }
 html[data-theme="dark"] #app #page :is(.sale-record-compact-values>.profit,.sale-record-status-summary.is-complete) { background:var(--theme-positive-bg); color:var(--theme-positive); }
 html[data-theme="dark"] #app #page :is(.sale-record-compact-values>.loss,.sale-record-status-summary.is-cancelled) { background:var(--theme-negative-bg); color:var(--theme-negative); }
 html[data-theme="dark"] #app #page .sale-record-compact-values>:is(.pending,.profit,.loss)>:is(small,strong) { color:inherit; }
 html[data-theme="dark"] #app #page :is(.sale-menu-icon,.wholesale-badge) { background:var(--light); color:var(--teal); }
 html[data-theme="dark"] #app #page .sale-actions-cancel :is(.sale-menu-icon,.sale-menu-label) { background:transparent; color:var(--theme-negative); }
 html[data-theme="dark"] #app #page :is(.sales-list-toolbar,.sale-record-compact-footer) { border-color:var(--line); }
 html[data-theme="dark"] #app #page .sales-status-shortcut[aria-pressed="true"] { background:var(--light); color:#a6edfb; border-color:#70d8ed; }
 html[data-theme="dark"] #app #page .sales-status-shortcut:hover { background:var(--theme-raised); color:var(--ink); }
 html[data-theme="dark"] #app #page :is(.sales-bulk-actions button,.inventory-navigation button) { background:transparent; color:var(--teal); border-color:var(--line); }
 html[data-theme="dark"] #app #page .product-catalog[data-layout="grid"] .product-table>tbody>tr.product-selected { background:var(--light); border-color:#70d8ed; }
 html[data-theme="dark"] :is(#app,dialog) :is(.share-email,.share-email-history,.share-other) { background:var(--theme-raised); border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) .share-email h3 { color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.share-email-sender,.share-email-subject,.share-email-reply,.share-email-operator,.share-email-note) { color:var(--muted); }
 html[data-theme="dark"] :is(#app,dialog) .share-email-status { color:var(--theme-positive); }
 html[data-theme="dark"] :is(#app,dialog) .share-email-status[data-error="true"] { color:var(--theme-negative); }

 /* Order detail, commissions and operational panels. */
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-header,.sale-detail-status,.sale-detail-metric,.sale-detail-product,.ranking-panel) { background:var(--theme-panel); border-color:var(--line); color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-payment>header,.ranking-panel>header,.commission-help,.sale-commission-panel) { background:var(--theme-raised); border-color:var(--line); color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-party>strong,.sale-detail-metric>strong,.sale-detail-values dd,.sale-detail-payment-values dd,.sale-detail-costs>.panel-header>strong,.sale-detail-product-name,.sale-detail-payment>header>strong,.sale-commission-panel>strong) { color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-status h2,.sale-detail-metric>span,.sale-detail-values dt,.sale-detail-payment-values dt,.sale-detail-payment>header>span,.sale-detail-cost-groups h3) { color:var(--muted); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-profit.profit,.variable-expense-intro) { background:var(--theme-positive-bg); color:var(--theme-positive); border-color:#355d4a; }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-profit.pending,.sale-detail-warnings) { background:var(--theme-warning-bg); color:var(--theme-warning); border-color:#6a5634; }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-profit.loss,.sale-detail-cancel,.sale-cancellation-note) { background:var(--theme-negative-bg); color:var(--theme-negative); border-color:#794552; }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-profit>:is(strong,span),.sale-detail-warnings h2,.sale-detail-cancel>strong,.sale-cancellation-note :is(strong,span,small,p)) { color:inherit; }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-values .profit,.sale-detail-values .profit :is(dt,dd)) { color:var(--theme-positive); }
 html[data-theme="dark"] :is(#app,dialog) .sale-detail-values .pending :is(dt,dd) { color:var(--theme-warning); }
 html[data-theme="dark"] :is(#app,dialog) .sale-detail-values .loss :is(dt,dd) { color:var(--theme-negative); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-detail-product-quantity,.sale-detail-product-meta>strong) { background:var(--light); color:var(--teal); }
 html[data-theme="dark"] :is(#app,dialog) :is(.sale-menu-heading,.sale-actions-control,.sale-detail-values>div,.sale-detail-payment-values>div,.sale-detail-cost-row) { border-color:var(--line); }
 html[data-theme="dark"] #app #page .bulk-mode-toggle { background:var(--theme-raised); color:var(--teal); border-color:var(--line); }
 html[data-theme="dark"] #app #page :is(td,.inventory-entry h3,.commission-total>strong,.commission-amount,.seller-commission-rule,.variable-expense-amount) { color:var(--ink); }
 html[data-theme="dark"] #app #page :is(.inventory-list-header,.inventory-entry-list-header) { background:var(--theme-raised); color:var(--muted); border-color:var(--line); }
 html[data-theme="dark"] #app #page :is(.inventory-layout-switch,.record-layout-switch) button:not([aria-pressed="true"]) { color:var(--muted); }
 html[data-theme="dark"] #app #page .inventory-navigation button[aria-pressed="true"] { border-bottom-color:var(--teal); }
 html[data-theme="dark"] #modal :is(.entry-mode>strong,.entry-inline-heading>strong,.product-field-heading,.flow-heading) { color:var(--ink); }
 html[data-theme="dark"] #modal :is(.modal-header,.serial-batch,.product-serial-choice) { background:var(--theme-raised); border-color:var(--line); }
 html[data-theme="dark"] #modal .serial-batch>summary { color:var(--teal); }
 html[data-theme="dark"] #modal .serial-validation { color:var(--theme-negative); }
 html[data-theme="dark"] #modal [data-entry-serial][aria-invalid="true"] { background:var(--theme-negative-bg); border-color:var(--theme-negative); }
 html[data-theme="dark"] :is(#app,dialog) :is(.status-catalog-item,.sale-wholesale) { background:var(--theme-raised); border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) .sale-detail-header h1 span { color:var(--teal); }
 html[data-theme="dark"] :is(#app,dialog) .sale-detail-profit.pending>:is(strong,span) { color:var(--theme-warning); }
 html[data-theme="dark"] :is(#app,dialog) .sale-detail-profit.profit>:is(strong,span) { color:var(--theme-positive); }
 html[data-theme="dark"] :is(#app,dialog) .sale-detail-profit.loss>:is(strong,span) { color:var(--theme-negative); }
 html[data-theme="dark"] :is(#app,dialog) .ranking-panel>header h2 { color:var(--ink); }
 html[data-theme="dark"] :is(#app,dialog) .ranking-value-pending { color:var(--theme-warning); }
 html[data-theme="dark"] :is(#app,dialog) .calculator-table tbody th { background:inherit; }
 html[data-theme="dark"] #app #page .entry-layout-switch { background:var(--theme-panel); border-color:var(--line); }
 html[data-theme="dark"] #app #page .entry-layout-switch button { background:transparent; color:var(--muted); border-color:transparent; }
 html[data-theme="dark"] #app #page .entry-layout-switch button[aria-pressed="true"] { background:var(--light); color:#a6edfb; border-color:#70d8ed; }
 html[data-theme="dark"] :is(#app,dialog) :is(.compact-disclosure>summary,.compact-record-more>summary) { color:var(--teal); }
 html[data-theme="dark"] #app #page td:is(.negative,.loss) { color:var(--theme-negative); }
 html[data-theme="dark"] #app #page td:is(.positive,.profit) { color:var(--theme-positive); }
 html[data-theme="dark"] #app #page td.pending { color:var(--theme-warning); }

 /* Mobile surfaces, confirmation sheets and secondary settings. */
 html[data-theme="dark"] :is(#app,dialog) :is(.mobile-flow .flow-navigation,.mobile-filters>summary,.compact-search-details,.compact-record-more,.sale-detail-section,.sale-detail-card,.sale-detail-financials,.sale-detail-payment,.serial-bulk,.serial-picker,.serial-entry-review,.calculator-internal-details,.debit-summary,.extra-installments,.version-banner) { background:var(--theme-raised); color:var(--ink); border-color:var(--line); }
 html[data-theme="dark"] :is(#app,dialog) .debit-summary strong { color:var(--teal); }
 html[data-theme="dark"] #app .ranking-tabs button { background:#302a1e; color:#f1ca80; border-color:#675636; }
 html[data-theme="dark"] #app .ranking-tabs button[aria-selected="true"] { background:#57451f; color:#ffe4ad; border-color:#d3ac56; }
 html[data-theme="dark"] #app .ranking-metrics button[aria-pressed="true"] { background:var(--light); color:var(--teal); border-color:#467e91; }
 html[data-theme="dark"] #app .expense-tabs>button.selected { background:var(--light); border-color:#467e91; color:#a6edfb; }
 html[data-theme="dark"] .auth-hint { color:var(--muted); }
}
