:root,:root[data-ui-theme=dark]{--ink:#eef0f6;--muted:#b5bbca;--line:#3d4455;--border:var(--line);--paper:#222631;--surface:#222631;--surface-alt:#292e3b;--canvas:#15171f;--nav:#0e1119;--accent:#afc8ff;--doc-hover:#30394b;--doc-focus:#c9adff;--doc-success:#a2e6bf;--doc-success-bg:#18392c;--doc-warning:#ffda98;--doc-warning-bg:#40331f;--danger:#ffb7c0;--danger-bg:#44242e;--action:#315fc9;--action-ink:#fff;--shadow:0 8px 24px #0002;color-scheme:dark}:root[data-ui-theme=light]{--ink:#202638;--muted:#606b7e;--line:#dbe1eb;--border:var(--line);--paper:#fff;--surface:#fff;--surface-alt:#eef1f6;--canvas:#f4f6f8;--nav:#171b29;--accent:#2455b8;--doc-hover:#e6ecf8;--doc-focus:#7044bb;--doc-success:#216344;--doc-success-bg:#e8f6ed;--doc-warning:#80510a;--doc-warning-bg:#fff2dd;--danger:#a42336;--danger-bg:#fff0f2;--action:#285bc4;--action-ink:#fff;--shadow:0 8px 24px #2233440a;color-scheme:light}body,html,html[data-ui-theme] .app-shell,html[data-ui-theme] .content,html[data-ui-theme] .workspace{background:var(--canvas);color:var(--ink)}html[data-ui-theme] :is(.panel,.form-section,.document-header,.receipt-line-card,.document-facts,.order-working-line,.auth-card,.project-list form,.projects-page,.mapping-expanded,.wb-transfer-dock,.wb-transfer-confirm){background:var(--surface);color:var(--ink);border-color:var(--line)}html[data-ui-theme] :is(h1,h2,h3,h4,.page-title,.document-facts dd,.document-facts strong){color:var(--ink)}html[data-ui-theme] :is(.eyebrow,.section-label,.field>span,.document-facts dt,.form-breadcrumb,.shipment-date-note,.mapping-count,.mapping-columns,.muted){color:var(--muted)}html[data-ui-theme] :is(input,select,textarea){background:var(--surface);color:var(--ink);border-color:var(--line);accent-color:var(--action)}html[data-ui-theme] input::placeholder,html[data-ui-theme] textarea::placeholder{color:var(--muted);opacity:1}html[data-ui-theme] :is(input,select,textarea):disabled{background:var(--surface-alt);color:var(--muted)}html[data-ui-theme] a{color:var(--accent)}html[data-ui-theme] :is(.secondary-action,.context-return-button,.document-more-actions>summary,.document-more-menu,.project-controls button,.mobile-navigation summary){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none}html[data-ui-theme] .primary-action{background:var(--action);border-color:var(--action);color:var(--action-ink);box-shadow:none}html[data-ui-theme] .primary-action:hover:not(:disabled){background:#244ea9;color:#fff}html[data-ui-theme] :is(.secondary-action,.context-return-button):hover{background:var(--doc-hover);color:var(--ink)}html[data-ui-theme] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--doc-focus);outline-offset:3px}html[data-ui-theme] :is(.topbar,.project-bar){background:var(--canvas);border-color:var(--line);color:var(--ink)}html[data-ui-theme] .project-bar a{color:var(--accent)}html[data-ui-theme] .sidebar{background:var(--nav);color:#eef0f6}html[data-ui-theme] .sidebar .nav-item{color:#d3d8e4}html[data-ui-theme] .brand small,html[data-ui-theme] .sidebar .nav-item small,html[data-ui-theme] .sidebar-footer small{color:#aeb7c8}html[data-ui-theme] .sidebar .nav-item.active{background:#303747;color:#fff;box-shadow:inset 3px 0 #ff8c75}html[data-ui-theme] .sidebar .nav-icon{color:#c7d1e3}html[data-ui-theme] .sidebar .nav-item:hover{background:#252c3b;color:#fff}html[data-ui-theme] :is(.user-chip small,.stat-card small,.summary-card small,.document-facts dt){color:var(--muted)}html[data-ui-theme] :is(table,th,td){border-color:var(--line)}html[data-ui-theme] th,html[data-ui-theme] thead{background:var(--surface-alt);color:var(--muted)}html[data-ui-theme] tbody tr,html[data-ui-theme] tbody tr:nth-child(2n),html[data-ui-theme] tbody tr:nth-child(odd){background:var(--surface);color:var(--ink)}html[data-ui-theme] tbody tr:hover{background:var(--doc-hover)}html[data-ui-theme] :is(.register-filters,.registry-filters,.search-panel,.active-filters,.filter-chip,.document-more-menu,.order-action-dock){background:var(--surface-alt);color:var(--ink);border-color:var(--line)}html[data-ui-theme] :is(.document-history-panel,.document-item-create,dialog){background:var(--surface);color:var(--ink);border-color:var(--line)}html[data-ui-theme] :is(.inline-sync-result,.action-pending-message){background:var(--surface-alt);color:var(--ink);border-color:var(--line)}html[data-ui-theme] :is(.notice,.catalog-disabled-reason,.document-difference,.order-stock-review,.mapping-status.is-conflict){background:var(--doc-warning-bg);color:var(--doc-warning);border-color:var(--doc-warning)}html[data-ui-theme] :is(.inline-sync-result.is-success,.order-stock-enough,.mapping-status.is-linked){background:var(--doc-success-bg);color:var(--doc-success);border-color:var(--doc-success)}html[data-ui-theme] :is(.inline-sync-result.is-error,.order-stock-short,.order-external-cancel,.mapping-status.is-unlinked){background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}html[data-ui-theme] :is(.order-stock-unknown,.mapping-status.is-unknown){background:var(--surface-alt);color:var(--muted)}html[data-ui-theme] :is(.asset-metric,.action-card,.action-card[open],.purchase-process-tabs,.hacts-summary,.warehouse-card,.summary-list>div,.data-quality-card,.data-quality-card.has-issues,.nomenclature-tabs-links,.registry-filter-chips){background:var(--surface);color:var(--ink);border-color:var(--line)}html[data-ui-theme] :is(td,.metric-card strong,.asset-metric strong,.action-card strong,.purchase-process-copy strong,.warehouse-card-stats b,.summary-list strong,.detail-list dd,.audit-snapshot){color:var(--ink)}html[data-ui-theme] :is(.asset-metric span,.asset-metric small,.purchase-process-copy small,.purchase-process-arrow,.chevron,.output-search-field small,.ozon-orders-form span,.data-count-list>div,.sales-order-date,.warehouse-card-stats small){color:var(--muted)}html[data-ui-theme] :is(.sales-sort-link span,.sort-link span,.filter-reset,.overview-panel-link,.integration-collapse-label,.warehouse-name-link){color:var(--accent)}html[data-ui-theme] :is(.list-filter-fields .field,.product-table tr.marketplace-info-row>td){background:var(--surface-alt);color:var(--ink)}html[data-ui-theme] :is(.money-in,.data-quality-card b){color:var(--doc-success)}html[data-ui-theme] :is(.money-out,.result-deduction strong){color:var(--danger)}html[data-ui-theme] :is(.counterparty-data-issues,.data-quality-card.has-issues b){color:var(--doc-warning)}html[data-ui-theme] .data-quality-card>span{background:var(--doc-success-bg);color:var(--doc-success)}html[data-ui-theme] .data-quality-card.has-issues>span{background:var(--doc-warning-bg);color:var(--doc-warning)}html[data-ui-theme] .warehouse-card-icon{background:var(--surface-alt);color:var(--accent)}html[data-ui-theme] .products-empty a{background:var(--action);color:var(--action-ink)}html[data-ui-theme] .accounting-notice{--notice-accent:var(--accent);--notice-border:var(--line);--notice-bg:var(--surface-alt);color:var(--ink)}html[data-ui-theme] .accounting-notice-warning{--notice-accent:var(--doc-warning);--notice-bg:var(--doc-warning-bg)}html[data-ui-theme] .accounting-notice-blocking{--notice-accent:var(--danger);--notice-bg:var(--danger-bg)}html[data-ui-theme] .accounting-notice-success{--notice-accent:var(--doc-success);--notice-bg:var(--doc-success-bg)}html[data-ui-theme] .accounting-notice-diagnostic{background:var(--surface);color:var(--ink)}html[data-ui-theme] .accounting-notice-related a{color:var(--accent)}.theme-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--surface);flex:0 0 auto}html[data-ui-theme] .theme-switch button{min-height:36px;padding:6px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;line-height:1.3;white-space:nowrap}html[data-ui-theme] .theme-switch button[aria-pressed=true]{background:var(--doc-hover);color:var(--ink);border-color:var(--line);font-weight:700}.theme-switch-standalone{position:fixed;right:14px;top:12px;z-index:60}body:has(.app-shell .theme-switch)>.theme-switch-standalone{display:none}@media(max-width:700px){html[data-ui-theme] .topbar{gap:8px;flex-wrap:wrap;padding:10px 12px}.theme-switch{margin-right:auto}.theme-switch-standalone{top:8px;right:8px}.auth-card{margin-top:70px}}@media print{.theme-switch{display:none!important}html[data-ui-theme],html[data-ui-theme] .workspace,html[data-ui-theme] body{--ink:#111;--muted:#444;--line:#ccc;--paper:#fff;--surface:#fff;--surface-alt:#fff;--canvas:#fff;--accent:#111;background:white;color:#111;color-scheme:light}}html[data-ui-theme] .automation-toggle{display:block;margin:16px 0;font-weight:700}html[data-ui-theme] .automation-toggle>span{display:flex;align-items:center;gap:10px;min-height:44px;color:var(--ink)}html[data-ui-theme] .automation-toggle input[type=checkbox]{width:22px;height:22px;min-height:22px;margin:0;flex:0 0 22px;accent-color:var(--action)}