@media screen{
html[data-crm-mode="dark"]{color-scheme:dark;--bg:#101827;--panel:#192438;--text:#e4ecf7;--muted:#b2bfd2;--line:#35445d;--soft:#23324a;--db-ink:#e4ecf7;--db-muted:#b2bfd2;--db-line:#35445d}
html[data-crm-mode="dark"] body:not(.crm-printing){background:#101827!important;color:#e4ecf7!important;--crm-page-bg:#101827!important;--crm-ui-line:#35445d!important;--crm-heading-color:#f1f5fb!important;--crm-column-color:#e4ecf7!important;--crm-menu-color:#e4ecf7!important;--crm-sidebar-bg:#172237!important;--crm-menu-active:#b6ccff!important;--db-ink:#e4ecf7;--db-muted:#b2bfd2;--db-line:#35445d}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.sidebar,.topbar,.card,.mini,.kpi,.db-panel,.db-key,.crm-stock-summary,.crm-workspace-tab,.crm-profile-panel,.crm-notice,.crm-notice-layer section,dialog,.crm-stock-submenu,.crm-table-settings,.crm-shipment-files article,.crm-country-options,.crm-profile summary){background:#192438!important;color:#e4ecf7!important;border-color:#35445d!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(h1,h2,h3,h4,h5,legend,label,dt,dd,th,td,strong,.crm-profile summary){color:#edf3fc!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(p,small,.file-note,.meta,.section-head p,.scope-note,.crm-sales-subtitle){color:#b2bfd2!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(input,select,textarea,.btn.secondary,summary.btn,.crm-project-tools>div,.crm-row-action-menu,.crm-action-menu){background:#111d30!important;color:#e4ecf7!important;border-color:#465771!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(table,thead,tbody,tr,th,td){border-color:#35445d!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(thead,th,.searchbar,.crm-work-item,.crm-dashboard-filters,.crm-workspace-tab.active){background:#23324a!important}
html[data-crm-mode="dark"] body:not(.crm-printing) tbody tr{background:#192438!important;color:#e4ecf7!important}
html[data-crm-mode="dark"] body:not(.crm-printing) tbody tr:nth-child(even){background:#1d2b42!important}
html[data-crm-mode="dark"] body:not(.crm-printing) a{color:#a6c4ff}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.badge,.tag,.pill){background:#263951;color:#e4ecf7}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-inline-error,.crm-work-error){color:#ffc5bf!important;background:#442b35!important}
html[data-crm-mode="dark"] body:not(.crm-printing) .sidebar .brand-logo{filter:brightness(0) invert(1)}
/* Keep navigation compact; retain keyboard/wheel access if a small screen or an expanded group needs more room. */
@media(min-width:901px){html body:not(.crm-printing) .sidebar{padding:8px 10px!important;gap:5px!important;overflow-y:auto!important;scrollbar-width:none!important}html body:not(.crm-printing) .sidebar::-webkit-scrollbar{display:none!important}html body:not(.crm-printing) .sidebar .brand{padding:3px 8px 6px!important;margin:0!important;flex-shrink:0}html body:not(.crm-printing) .sidebar .brand-logo{max-height:48px!important;width:auto!important;max-width:150px!important}html body:not(.crm-printing) .sidebar .nav{gap:1px!important;flex:0 0 auto!important;overflow:visible!important}html body:not(.crm-printing) .sidebar .nav button{padding:3px 8px!important;min-height:24px!important;line-height:1.2!important}html body:not(.crm-printing) .sidebar .nav button,html body:not(.crm-printing) .sidebar .nav button>span:not(.crm-nav-icon){font-size:var(--crm-menu-size,16px)!important}html body:not(.crm-printing) .sidebar .side-foot{gap:4px!important;margin-top:8px!important}html body:not(.crm-printing) .sidebar :is(.crm-stock-submenu,.crm-task-submenu){max-height:none!important;overflow:visible!important}}
}

@media screen{html[data-crm-mode="dark"] body:not(.crm-printing) .crm-country-options button{color:#e4ecf7}html[data-crm-mode="dark"] body:not(.crm-printing) .crm-country-options button:is(:hover,:focus){background:#293c59}}

@media screen{html[data-crm-mode="dark"] #crmWorkspaceTabs{background:#101827!important;border-color:#35445d!important;color:#e4ecf7!important}html[data-crm-mode="dark"] .crm-workspace-tab button{color:#dbe8ff!important}html[data-crm-mode="dark"] .crm-workspace-tab.active{background:#294268!important;border-color:#87adf1!important}html[data-crm-mode="dark"] .crm-workspace-tab.active [role="tab"]{color:#fff!important}html[data-crm-mode="dark"] :is(.chip,.crm-page-menu,.crm-page-menu-toggle){background:#263951!important;color:#edf3fc!important;border-color:#526984!important}html[data-crm-mode="dark"] .chip :is(span,a,button){color:#edf3fc!important}}

@media screen{html[data-crm-mode="dark"] :is(.uz-map,.uz-map-head,.uz-map-panel,.uz-map-toolbar,.uz-map-layers,.uz-map-filters,.uz-map-results,.uz-map-tooltip,.uz-map-chip,.uz-map-note,.uz-map-source-info,.uz-map-notes-drawer){background:#192438!important;color:#edf3fc!important;border-color:#35445d!important}html[data-crm-mode="dark"] .uz-map-panel :is(span,dt,dd){color:#edf3fc!important}html[data-crm-mode="dark"] .uz-map :is(.uz-map-close,.uz-map-notes-close){background:#263951!important;color:#edf3fc!important}}

@media screen{html[data-crm-mode="dark"] .crm-row-menu-trigger{background:#263951!important;color:#edf3fc!important;border-color:#526984!important}html[data-crm-mode="dark"] .crm-row-menu-trigger svg{color:#edf3fc!important;fill:currentColor!important}}

/* v345: consistent application surfaces; PDF page/document canvases retain their original colors. */
@media screen{
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.hero,.company-item,.timeline-item,.fact,.jump a,.crm-project-metric,.crm-order-metric,.crm-purchase-metric,.crm-selection-toolbar,.crm-selection-bar,.crm-quote-number,.crm-document-number,.db-period,.db-currency-tag,.db-filters,.db-donut>div,.db-work-date,.crm-theme-preset,.crm-chat-shell,.crm-chat-sidebar,.crm-chat-main,.crm-chat-history,.crm-chat-bubble,.crm-chat-settings,.crm-chat-actions,.crm-chat-context,.crm-chat-quote,.cs-requests-inline,.cs-request-review,.cs-quote-total,.cs-quote-actions,.cs-quote-payment,.cs-admin,.cs-admin>header,.cs-pricing-rule,.cs-product-note,.cs-fx>div,.pdf-tools,.pdf-tools-info,.pdf-tools-toolbar,.pdf-tools-pages,.pdf-tools-inspector,.pdf-tools-empty,.pdf-tools-stage,.pdf-replace-layout>aside,.pdf-replace-toolbar,.crm-planning-chip,.crm-project-brand-panel){background:#192438!important;color:#edf3fc!important;border-color:#35445d!important}
html[data-crm-mode="dark"] body:not(.crm-printing) #content#content :is(.crm-project-metric,.crm-order-metric,.crm-purchase-metric){background:#23324a!important;border-color:#465771!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-project-counts,.crm-order-counts,.crm-purchase-counts,.crm-project-metric,.crm-order-metric,.crm-purchase-metric,.crm-project-identity,.crm-project-detail .fact,.db-key,.db-key-detail,.db-chart-toolbar,.db-legend-list,.db-stage-list,.db-country-bars,.db-work-list,.pdf-tools-info,.pdf-tools-empty,.pdf-tools-pages,.pdf-tools-inspector) :is(span,small,b,strong){color:#dbe7f7!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-chat-title,.crm-chat-hint,.crm-chat-welcome,.db-key-label,summary,.crm-field-caption,.crm-planning-picker legend){color:#cbd9ec!important}
html[data-crm-mode="dark"] body:not(.crm-printing) #projectForm :is(label,legend,.crm-field-caption,.crm-project-brand-option){color:#e4ecf7!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(input,textarea)::placeholder{color:#a8b8ce!important;opacity:1}
html[data-crm-mode="dark"] body:not(.crm-printing) .pdf-tools-empty-icon{color:#a8c4e7!important}
html[data-crm-mode="light"] .crm-chat-welcome{color:#52647a}
}

@media screen{
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-number-hint,.crm-theme-presets>button,.pdf-tools-tip,.modal,.modal-head,.crm-project-cover-editor,.crm-planning-picker,.crm-planning-options,.crm-project-brand-field,.crm-search-results,.db-track){background:#192438!important;color:#dbe7f7!important;border-color:#35445d!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.db-filter-note,.db-donut small,.db-link,.db-link span,.db-stock-card .db-link){color:#b9d0ef!important}
html[data-crm-mode="dark"] .sidebar :is(.crm-task-submenu-toggle,.crm-stock-submenu-toggle){background:#263951!important;color:#edf3fc!important}
}

@media screen{html[data-crm-mode="dark"] .sidebar :is(.crm-task-toggle,.crm-stock-toggle){background:#263951!important;color:#edf3fc!important}}

@media screen{html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-country-list-toolbar,.crm-project-brand-dropdown,.crm-quote-check,.crm-project-select-cell){background:#192438!important;color:#edf3fc!important;border-color:#35445d!important}}

@media screen{
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-stock-value,.crm-reservation-summary>div,.crm-number-hint){background:#23324a!important;color:#dbe7f7!important;border-color:#465771!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-stock-value,.crm-reservation-summary,.crm-number-hint) :is(span,b,strong,small){color:#dbe7f7!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-product-link,.crm-country-neutral){color:#b9d0ef!important}
html[data-crm-mode="dark"] body:not(.crm-printing) #content#content #crm-dashboard-v310 :is(.db-donut small,.db-stock-card .db-link>span){color:#dbe7f7!important}
html[data-crm-mode="light"] :is(.crm-product-no-photo,.pdf-tools-empty-icon){color:#52647a!important}
}

@media screen{
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-project-selection-bar,.crm-quote-selection-bar,.crm-project-brand-dropdown,.crm-project-cover-placeholder,.crm-reservation-archive){background:#23324a!important;color:#dbe7f7!important;border-color:#465771!important}
html[data-crm-mode="dark"] body:not(.crm-printing) :is(.crm-project-selection-bar,.crm-quote-selection-bar,.crm-reservation-archive) :is(span,summary){color:#dbe7f7!important}
html[data-crm-mode="dark"] body:not(.crm-printing) [data-crm-column-id="projectSelect"]{background:#192438!important}
html[data-crm-mode="dark"] body:not(.crm-printing) .crm-project-row-selected>td{background:#294268!important}
html[data-crm-mode="dark"] .sidebar .brand-logo{filter:brightness(0) invert(1)!important}
html[data-crm-mode="dark"] body:not(.crm-printing) #content#content #crm-dashboard-v310 .db-donut small{color:#dbe7f7!important}
html[data-crm-mode="dark"] body:not(.crm-printing) #content#content #crm-dashboard-v310 .db-stock-card .db-link{background:#263951!important;color:#fff!important}
html[data-crm-mode="dark"] body:not(.crm-printing) #content#content #crm-dashboard-v310 .db-stock-card .db-link>span{color:#fff!important}
}

@media screen{html[data-crm-mode="dark"] body:not(.crm-printing){--crm-field-label-color:#e4ecf7!important}html[data-crm-mode="dark"] body:not(.crm-printing) button.icon{background:#263951!important;color:#edf3fc!important}html[data-crm-mode="dark"] body:not(.crm-printing) #content#content #crm-dashboard-v310 .db-donut>div>span{color:#dbe7f7!important}}

@media screen and (min-width:901px){html body:not(.crm-printing) .sidebar{padding-top:14px!important;gap:9px!important}html body:not(.crm-printing) .sidebar .brand{padding:5px 8px 12px!important}html body:not(.crm-printing) .sidebar .brand-logo{height:72px!important;max-height:72px!important;width:190px!important;max-width:100%!important;object-fit:contain}html body:not(.crm-printing) .sidebar .nav{gap:4px!important}html body:not(.crm-printing) .sidebar .nav button{padding:5px 8px!important;min-height:28px!important}html body:not(.crm-printing) .sidebar .side-foot{gap:6px!important;margin-top:10px!important}}
